|
| Solution () |
| Default constructor.
|
|
| Solution (double objval, const double *x, ProblemPtr problem) |
| Construct a solution for a problem from an array of doubles.
|
|
| Solution (double objvalue, const DoubleVector &newx, ProblemPtr problem) |
| Construct a solution for a problem from a vector of doubles.
|
|
| Solution (ConstSolutionPtr sol) |
| Copy.
|
|
virtual | ~Solution () |
| Destroy.
|
|
virtual void | setPrimal (const double *x) |
| Copy values of variables.
|
|
virtual void | setDualOfCons (const double *vals) |
| Copy values of dual variables of constraints.
|
|
virtual void | setDualOfVars (const double *vals) |
| Copy values of dual variables of variables. More...
|
|
virtual void | setObjValue (double new_val) |
| Set a new solution value.
|
|
virtual double | getObjValue () const |
| Return solution value.
|
|
virtual double | getConstraintViolation () |
| Return the 2nd norm of constraint violations.
|
|
virtual const double * | getPrimal () const |
| Return a pointer to the solution.
|
|
virtual const double * | getDualOfCons () const |
| Return a pointer to the solution.
|
|
virtual const double * | getDualOfVars () const |
| Return a pointer to the solution.
|
|
virtual void | write (std::ostream &out) const |
| Write to a stream. More...
|
|
virtual void | writePrimal (std::ostream &out, const VarVector *v=0) const |
| Write primal values to a stream.
|
|
virtual void | writeDual (std::ostream &out) const |
| Write dual values to a stream.
|
|
|
UInt | n_ |
| Number of variables.
|
|
UInt | m_ |
| Number of constraints.
|
|
ProblemPtr | problem_ |
| Original problem (For accessing variable names).
|
|
double * | x_ |
| Store values of the variables in an array.
|
|
double * | dualCons_ |
|
double * | dualX_ |
|
double | consViol_ |
| Violation.
|
|
double | objValue_ |
| The objective value of this solution.
|
|
double | comple_ |
| Complementarity.
|
|
◆ setDualOfVars()
void Solution::setDualOfVars |
( |
const double * |
vals | ) |
|
|
virtual |
◆ write()
void Solution::write |
( |
std::ostream & |
out | ) |
const |
|
virtual |
◆ dualCons_
double* Minotaur::Solution::dualCons_ |
|
protected |
Store values of the dual variables associated with constraints in an array.
◆ dualX_
double* Minotaur::Solution::dualX_ |
|
protected |
Store values of the dual variables associated with bounds on variables in an array.
The documentation for this class was generated from the following files:
- /home/amahajan/tmp/minotaur-test/src/base/Solution.h
- /home/amahajan/tmp/minotaur-test/src/base/Solution.cpp