15 #ifndef DIGNEA_ITSPSOLUTION_H
16 #define DIGNEA_ITSPSOLUTION_H
22 using coords = std::pair<float, float>;
Solution for a Instance Generation Problem used in the EIG. This is a solution for AbstractDomain.
Definition: AbstractInstance.h:30
int nVars
Definition: Solution.h:194
int nObjs
Definition: Solution.h:195
Instance Traveling Salesman Problem Solution. Class which represents the solution for the Instance Tr...
Definition: TSPInstance.h:33
vector< coords > to_coords() const
Generates the vector of coordinates for the instance. Look the TSP getPoints() method.
Definition: TSPInstance.cpp:71
TSPInstance()
Creates a default TSPInstance.
Definition: TSPInstance.cpp:25
json to_json() const override
Creates and returns a JSON object with the information from the TSP.
Definition: TSPInstance.cpp:84
void setVariables(const vector< float > &vars) override
Set the variables for the instance.
Definition: TSPInstance.cpp:56
virtual void to_instance(std::ostream &os) const
Generates the instance representation of the TSP and puts it in the ostream.
Definition: TSPInstance.cpp:116
TSPInstance(unique_ptr< TSPInstance > &ptr)=delete
Cannot be used in the AbstractInstance.