Class LocalSearchInterIntraSolution¶
- Defined in File local_search_inter_intra.hpp
Inheritance Relationships¶
Base Type¶
public Solution
(Class Solution)
Class Documentation¶
-
class
LocalSearchInterIntraSolution
: public Solution¶ Public Functions
-
LocalSearchInterIntraSolution
(const std::vector<Node> &nodes, const std::vector<Vehicle> &vehicles, const std::vector<std::vector<double>> &distanceMatrix)¶ Constructor.
Constructor for initial setup of problem, and solution using Local Search within all vehicles
- Return
- No return parameter
- Parameters
nodes
: Vector of nodesvehicles
: Vector of vehiclesdistanceMatrix
: Matrix containing distance between each pair of nodes
-
LocalSearchInterIntraSolution
(const Problem &p)¶ Constructor.
Constructor for initial setup of problem, and solution using Local Search within all vehicles
- Return
- No return parameter
- Parameters
p
: Instance of Problem class defining the problem parameters
-
LocalSearchInterIntraSolution
(const Solution &s)¶ Constructor.
Constructor for initial setup of problem, and solution using Local Search within all vehicles
- Return
- No return parameter
- Parameters
s
: Instance of Solution class containing a valid solution and problem parameters
-
void
Solve
()¶ Function called to solve the given problem using a local search algorithm.
Generates random iniitial solutions. Applies selected algorithm. Prints cost of best solution, and its validity.
- Return
- void
-