#include <Generator.hpp>
Public Member Functions | |
Generator (InputData &inputData) | |
std::shared_ptr< SearchGraphNode > | generate (std::vector< int > &unassigned, Types::CarData &cars, std::shared_ptr< SearchGraphNode > &prevNode) |
Finds the best possible way to distribute one ride to each car given a list of unassigned rides and a list of cars with their positions gained points and points in time.
|
inline |
Creates a generator of choices on given input data.
[in] | inputData | used internally to get specific information about rides |
std::shared_ptr< SearchGraphNode > Generator::generate | ( | std::vector< int > & | unassigned, |
Types::CarData & | cars, | ||
std::shared_ptr< SearchGraphNode > & | prevNode | ||
) |
Given the current state of the search process this generates the next optimal choice to take.
[in,out] | unassigned | a list of indices of all unassigned rides |
[in,out] | cars | represents the current state of all cars |
[in] | prevNode | is referenced by the new SearchGraphNode of the returned Choice |