1 #ifndef LINEARASSIGNMENTPROBLEM_H
2 #define LINEARASSIGNMENTPROBLEM_H
29 std::vector<std::vector<double> > costs;
36 bool checkSchedule(
const std::vector<unsigned int>& schedule);
45 void writeResultToFile(
const std::vector<unsigned int>& schedule,
double costFunctionValue,
const std::string& filename);
80 void setData(
unsigned int objects,
const std::vector<std::vector<double> >& costs);
90 void generateData(
unsigned int objects,
double minCost,
double maxCost,
bool integerValues =
false);
118 double evaluateLSAP(
const std::vector<unsigned int>& schedule);
128 double evaluateLSAP(
const std::vector<unsigned int>& schedule,
const std::string& filename);
136 double evaluateLBAP(
const std::vector<unsigned int>& schedule);
146 double evaluateLBAP(
const std::vector<unsigned int>& schedule,
const std::string& filename);
152 const std::vector<std::vector<double> >&
getCosts()
const {
167 #endif // LINEARASSIGNMENTPROBLEM_H
Interface for reading, writing and displaying data.
void readDataFromFile(const std::string &filename)
Reads linear assignment problem data from a file with a filename.
Definition: LinearAssignmentProblem.cpp:144
Definition: BinPackingProblem.cpp:3
void showData()
Shows linear assignment problem data.
Definition: LinearAssignmentProblem.cpp:237
void writeDataToFile(const std::string &filename)
Writes linear assignment problem data to a file with a filename.
Definition: LinearAssignmentProblem.cpp:251
double evaluateLSAP(const std::vector< unsigned int > &schedule)
Evaluates linear sum assignment problem.
Definition: LinearAssignmentProblem.cpp:69
const std::vector< std::vector< double > > & getCosts() const
Getter for costs.
Definition: LinearAssignmentProblem.h:152
Definition: LinearAssignmentProblem.h:22
unsigned int getObjects() const
Getter for number of objects.
Definition: LinearAssignmentProblem.h:160
double evaluateLBAP(const std::vector< unsigned int > &schedule)
Evaluates linear bottleneck assignment problem.
Definition: LinearAssignmentProblem.cpp:41
Simple pseudo random number generator class.
void setData(unsigned int objects, const std::vector< std::vector< double > > &costs)
Setter for linear assignment problem data.
Definition: LinearAssignmentProblem.cpp:209
void generateData(unsigned int objects, double minCost, double maxCost, bool integerValues=false)
Generates linear assignment problem data according to setup.
Definition: LinearAssignmentProblem.cpp:97
LinearAssignmentProblem(unsigned int objects, const std::vector< std::vector< double > > &costs)
Constructor.
Definition: LinearAssignmentProblem.cpp:11