|
Public Member Functions |
|
| int | getNumberOfRows () const |
| int | getNumberOfColumns () const |
| double * | getColumnSolution () const |
| double | getColumnSolution (int index) const |
| double * | getObjectiveFunctCoeff () const |
| double | getObjectiveFunctCoeff (int index) const |
| double | getObjValue () const |
| double * | getDualRightHandSide () const |
| | get pointer to array of dual rhs, i.e. shadow prices
|
| double | getDualRightHandSide (int index) const |
| | get element index of dual rhs, i.e. component index of shadow prices
|
| double * | getSlackRightHandSide () const |
| double | getSlackRightHandSide (int index) const |
| double * | getRowActivity () const |
| double | getRowActivity (int index) const |
| bool | getTestFlag () const |
| double | getInfinity () const |
| | Get solver's value for infinity.
|
| double | getTolerance () const |
| SymWarmStart * | getWarmStartSym () const |
| | returns a warm start description
|
| CoinWarmStartBasis * | getWarmStartCoin () const |
|
| virtual void | setNumberOfRows (const int numberofrows) |
| virtual void | setNumberOfColumns (const int numberofcolumns) |
| virtual void | setColumnSolution (const double *columnsolution_) |
| virtual int | setColumnSolution (const double value, int index) |
| virtual void | setObjectiveFunctCoeff (const double *objectivefunctcoeff_) |
| virtual int | setObjectiveFunctCoeff (const double value, int index) |
| virtual void | setObjValue (const double objvalue_) |
| virtual void | setDualRightHandSide (const double *dualrhs_) |
| virtual int | setDualRightHandSide (const double value, int index) |
| virtual void | setSlackRightHandSide (const double *slackrhs_) |
| virtual int | setSlackRightHandSide (const double value, int index) |
| virtual void | setRowActivity (const double *rowactivities_) |
| virtual int | setRowActivity (const double value, int index) |
| virtual void | setInfinity (double infinity) |
| virtual void | setTestFlag (bool test) |
| virtual void | setTolerance (double eps) |
| virtual void | setWarmStart (const SymWarmStart *const warmstart) |
| | set the warmstart description of the solution process in case of SYMPHONY
|
| virtual void | setWarmStart (const CoinWarmStartBasis *const warmstart) |
| | set the warmstart description of the solution process in case o OSL (maybe also CBC?)
|
| virtual void | load (const int numberofrows_, const int numberofcolumns_, const double *columnsolution_, const double *objectivefunctcoeff_, const double objvalue_, const double *dualrhs_, const double *slackrhs_, const double *rowactivities_, const SymWarmStart *warmstart) |
| | Load solution in SYMPOHNY case.
|
| virtual void | load (const int numberofrows_, const int numberofcolumns_, const double *columnsolution_, const double *objectivefunctcoeff_, const double objvalue_, const double *dualrhs_, const double *slackrhs_, const double *rowactivities_, const CoinWarmStartBasis *warmstart) |
| | The same as above for OSL.
|
|
| | AgentSolution () |
| | Standard Constructor.
|
| | AgentSolution (int numberofrows_, int numberofcols_) |
| | Constructor which also allocates apropriate memory.
|
| | AgentSolution (const AgentSolution &solution) |
| | Copy constructor.
|
| AgentSolution & | operator= (const AgentSolution &rhs) |
| | Assignment operator.
|
| virtual | ~AgentSolution () |
| | Destructor.
|
Private Member Functions |
|
| void | round () |
| | round /truncate all the data:
|
| void | round (double *vector, int vectorlength) |
| | round/truncate all elements of a vector
|
| void | round (CoinPackedMatrix *MatrixDouble) |
| | round /truncate all elements of a MatrixDouble
|
| double | round (double value) |
| | round / truncate a single value
|
| double | truncate (double precision, double &x) |
| double | round (int numberofdecimals_, double &x) |
| void | gutsOfConstructor () |
| | the real work of the constructor
|
| void | gutsOfDestructor () |
| | the real work of the destructor
|
| void | allocate () |
| | allocate all arrays
|
| template<class Type> |
| int | allocateVector (Type *&pointertovector, long int sizeofvector) |
| | allocates memory for an array of type Type with size sizefovector and checks if size is positive
|
| template<class ClassType> |
| void | copy (ClassType *&finalObjectPtr_, const ClassType *const originalObjectPtr_) |
| | Allocates memory for class member finalObjectPtr_ if necessary and copies data from the object originalObjectPtr_ points to.
|
Private Attributes |
|
| int | numberofrows |
| | Number of rows.
|
| int | numberofcolumns |
| | Number of columns.
|
| double * | columnsolution |
| | Column solution vector.
|
| double * | objectivefunctcoeff |
| | Objective function coefficient vector.
|
| double | objvalue |
| | value of optimal objective function
|
| double * | dualrhs |
| | vector of dual right hand side( in case it is retruned by the solver, i.e. not yet for SYMPHONY) (= schadow prices)
|
| double * | slackrhs |
| | vector of slack right hand side
|
| double * | rowactivities |
| | row activities (= row solution = variables left hand side)
|
| double | infinity |
| | Infinity of chosen solver.
|
| bool | test |
| | Test flag.
|
| double | eps |
| | Tolerance used in round().
|
| SymWarmStart * | lastYearWarmStartSym |
| | storage for SYMPHONY warmstart information
|
| CoinWarmStartBasis * | lastYearWarmStartCoin |
| | the same as above for OSL
|