Bcp 1.4.4
|
This class holds the results after solving an LP relaxation. More...
#include <BCP_lp_result.hpp>
Public Member Functions | |
Constructor and destructor | |
BCP_lp_result () | |
The default constructor initializes an empty solution, i.e., one which holds neither an exact nor an approximate solution. | |
~BCP_lp_result () | |
The destructor deletes the data members if they are private copies. | |
Query methods for the solution. These methods (except for | |
the first) just return the value of the queried member (in case of the vector members a reference to the vector is returned instead of the pointer. | |
const std::string & | solvername () const |
int | termcode () const |
int | iternum () const |
double | objval () const |
const double * | x () const |
const double * | pi () const |
const double * | dj () const |
const double * | lhs () const |
Query methods for general solver information. | |
double | primalTolerance () const |
Return the primal tolerance of the solver. | |
double | dualTolerance () const |
Return the dual tolerance of the solver. | |
Modifying methods | |
void | get_results (OsiSolverInterface &lp_solver) |
Get the result from the LP solver. | |
void | fake_objective_value (const double val) |
Set the lower bound and the exact and approximate objective values to the value given in the argument. | |
This class holds the results after solving an LP relaxation.
There may be an exact and/or an approximate solution.
Definition at line 39 of file BCP_lp_result.hpp.
|
inline |
The default constructor initializes an empty solution, i.e., one which holds neither an exact nor an approximate solution.
Definition at line 87 of file BCP_lp_result.hpp.
|
inline |
The destructor deletes the data members if they are private copies.
Definition at line 94 of file BCP_lp_result.hpp.
|
inline |
Definition at line 108 of file BCP_lp_result.hpp.
|
inline |
Definition at line 111 of file BCP_lp_result.hpp.
|
inline |
Definition at line 114 of file BCP_lp_result.hpp.
|
inline |
Definition at line 117 of file BCP_lp_result.hpp.
|
inline |
Definition at line 120 of file BCP_lp_result.hpp.
|
inline |
Definition at line 123 of file BCP_lp_result.hpp.
|
inline |
Definition at line 126 of file BCP_lp_result.hpp.
|
inline |
Definition at line 129 of file BCP_lp_result.hpp.
|
inline |
Return the primal tolerance of the solver.
Definition at line 135 of file BCP_lp_result.hpp.
|
inline |
Return the dual tolerance of the solver.
Definition at line 137 of file BCP_lp_result.hpp.
void BCP_lp_result::get_results | ( | OsiSolverInterface & | lp_solver | ) |
Get the result from the LP solver.
Non-vector members will get their values from the LP solver. Vector members are copied out from the LP solver.
|
inline |
Set the lower bound and the exact and approximate objective values to the value given in the argument.
Definition at line 148 of file BCP_lp_result.hpp.