#include <LinearAssignmentProblem.h>
|
| | LinearAssignmentProblem (unsigned int objects, const std::vector< std::vector< double > > &costs) |
| | Constructor. More...
|
| |
| | LinearAssignmentProblem (unsigned int objects, double minCost, double maxCost, bool integerValues=false) |
| | Constructor. More...
|
| |
| | LinearAssignmentProblem (const std::string &filename) |
| | Constructor. More...
|
| |
| void | setData (unsigned int objects, const std::vector< std::vector< double > > &costs) |
| | Setter for linear assignment problem data. More...
|
| |
| void | generateData (unsigned int objects, double minCost, double maxCost, bool integerValues=false) |
| | Generates linear assignment problem data according to setup. More...
|
| |
| void | readDataFromFile (const std::string &filename) |
| | Reads linear assignment problem data from a file with a filename. More...
|
| |
| void | writeDataToFile (const std::string &filename) |
| | Writes linear assignment problem data to a file with a filename. More...
|
| |
| void | showData () |
| | Shows linear assignment problem data. More...
|
| |
| double | evaluateLSAP (const std::vector< unsigned int > &schedule) |
| | Evaluates linear sum assignment problem. More...
|
| |
| double | evaluateLSAP (const std::vector< unsigned int > &schedule, const std::string &filename) |
| | Evaluates linear sum assignment problem to file with a filename. More...
|
| |
| double | evaluateLBAP (const std::vector< unsigned int > &schedule) |
| | Evaluates linear bottleneck assignment problem. More...
|
| |
| double | evaluateLBAP (const std::vector< unsigned int > &schedule, const std::string &filename) |
| | Evaluates linear bottleneck assignment problem to file with a filename. More...
|
| |
| const std::vector< std::vector< double > > & | getCosts () const |
| | Getter for costs. More...
|
| |
| unsigned int | getObjects () const |
| | Getter for number of objects. More...
|
| |
| virtual | ~IData () |
| | Virtual destructor. More...
|
| |
- Author
- Milan Hlinak
- Date
- 04/14/15
| operational_research::LinearAssignmentProblem::LinearAssignmentProblem |
( |
unsigned int |
objects, |
|
|
const std::vector< std::vector< double > > & |
costs |
|
) |
| |
Constructor.
- Parameters
-
| objects | Number of objects. |
| costs | Costs of assignment. |
- Exceptions
-
| std::invalid_argument | exception. |
| operational_research::LinearAssignmentProblem::LinearAssignmentProblem |
( |
unsigned int |
objects, |
|
|
double |
minCost, |
|
|
double |
maxCost, |
|
|
bool |
integerValues = false |
|
) |
| |
Constructor.
- Parameters
-
| objects | Number of objects. |
| minCost | Minimal cost of assignment. |
| maxCost | Maximal cost of assignment. |
| integerValues | True if generated data is integer values, false if generated data is real values. |
- Exceptions
-
| std::invalid_argument | exception. |
| operational_research::LinearAssignmentProblem::LinearAssignmentProblem |
( |
const std::string & |
filename | ) |
|
Constructor.
- Parameters
-
- Exceptions
-
| std::runtime_error | exception. |
| std::invalid_argument | exception. |
| double operational_research::LinearAssignmentProblem::evaluateLBAP |
( |
const std::vector< unsigned int > & |
schedule | ) |
|
Evaluates linear bottleneck assignment problem.
- Parameters
-
- Returns
- Cost function value for given schedule.
- Exceptions
-
| std::invalid_argument | exception. |
| double operational_research::LinearAssignmentProblem::evaluateLBAP |
( |
const std::vector< unsigned int > & |
schedule, |
|
|
const std::string & |
filename |
|
) |
| |
Evaluates linear bottleneck assignment problem to file with a filename.
- Parameters
-
| schedule | Schedule. |
| filename | Filename. |
- Returns
- Cost function value for given schedule.
- Exceptions
-
| std::invalid_argument | exception. |
| std::runtime_error | exception. |
| double operational_research::LinearAssignmentProblem::evaluateLSAP |
( |
const std::vector< unsigned int > & |
schedule | ) |
|
Evaluates linear sum assignment problem.
- Parameters
-
- Returns
- Cost function value for given schedule.
- Exceptions
-
| std::invalid_argument | exception. |
| double operational_research::LinearAssignmentProblem::evaluateLSAP |
( |
const std::vector< unsigned int > & |
schedule, |
|
|
const std::string & |
filename |
|
) |
| |
Evaluates linear sum assignment problem to file with a filename.
- Parameters
-
| schedule | Schedule. |
| filename | Filename. |
- Returns
- Cost function value for given schedule.
- Exceptions
-
| std::invalid_argument | exception. |
| std::runtime_error | exception. |
| void operational_research::LinearAssignmentProblem::generateData |
( |
unsigned int |
objects, |
|
|
double |
minCost, |
|
|
double |
maxCost, |
|
|
bool |
integerValues = false |
|
) |
| |
Generates linear assignment problem data according to setup.
- Parameters
-
| objects | Number of objects. |
| minCost | Minimal cost of assignment. |
| maxCost | Maximal cost of assignment. |
| integerValues | True if generated data is integer values, false if generated data is real values. |
- Exceptions
-
| std::invalid_argument | exception. |
| const std::vector<std::vector<double> >& operational_research::LinearAssignmentProblem::getCosts |
( |
| ) |
const |
|
inline |
Getter for costs.
- Returns
- Costs.
| unsigned int operational_research::LinearAssignmentProblem::getObjects |
( |
| ) |
const |
|
inline |
Getter for number of objects.
- Returns
- Number of objects.
| void operational_research::LinearAssignmentProblem::readDataFromFile |
( |
const std::string & |
filename | ) |
|
|
virtual |
Reads linear assignment problem data from a file with a filename.
- Parameters
-
- Exceptions
-
| std::runtime_error | exception. |
| std::invalid_argument | exception. |
Implements operational_research::IData.
| void operational_research::LinearAssignmentProblem::setData |
( |
unsigned int |
objects, |
|
|
const std::vector< std::vector< double > > & |
costs |
|
) |
| |
Setter for linear assignment problem data.
- Parameters
-
| objects | Number of objects. |
| costs | Costs of assignment. |
- Exceptions
-
| std::invalid_argument | exception. |
| void operational_research::LinearAssignmentProblem::showData |
( |
| ) |
|
|
virtual |
| void operational_research::LinearAssignmentProblem::writeDataToFile |
( |
const std::string & |
filename | ) |
|
|
virtual |
Writes linear assignment problem data to a file with a filename.
- Parameters
-
- Exceptions
-
| std::runtime_error | exception. |
Implements operational_research::IData.
The documentation for this class was generated from the following files: