|
solver
1.0
|
A representation of the solution that is algorithm independent. More...
Include dependency graph for Solution.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | Solution |
| The structure representing a solution found by an algorithm. More... | |
Enumerations | |
| enum | State { OPTIMAL, FEASIBLE, INFEASIBLE, UNKNOWN } |
| Enum declares constants specifying whether a found solution is optimal, feasible, infeasible, or unknown (i.e. not found), respectively. | |
Functions | |
| State | convert (const Status &ilpStatus) |
| Conversion between the ILP solver status and the solution state. | |
| std::ostream & | operator<< (std::ostream &out, const Solution &s) |
| It prints the solution to the output stream. | |
| std::ostream & | operator<< (std::ostream &out, const State &st) |
| It prints the state of a solution to the output stream. | |
| void | writeBriefResultToStream (std::ostream &OUT, const std::string &instanceName, const Solution &s) |
| It prints the solution as follows: 'instance name (state, runtime s): energy'. More... | |
| void | writeBriefResultToCsvFile (const std::string &instanceName, const std::string &pathToFile, const Solution &s) |
| It writes the solution to the file in the same format as writeBriefResultToStream function. More... | |
| void | writeSolutionToCsvFile (const std::string &file, const Solution &s, const PrecalculatedMapping &mapper) |
| It writes the solution to a csv file, the header is 'activity id, start time, duration, type, point, power saving mode, movement, energy'. More... | |
A representation of the solution that is algorithm independent.
Definition in file Solution.h.
1.8.9.1