3#ifndef _BCP_LP_RESULT_H
4#define _BCP_LP_RESULT_H
53 std::string _solvername;
56 double _primal_tolerance;
58 double _dual_tolerance;
89 _lower_bound(-
BCP_DBL_MAX), _primal_tolerance(0), _dual_tolerance(0),
91 _x(0), _pi(0), _dj(0), _lhs(0)
108 const std::string&
solvername()
const {
return _solvername; }
117 double objval()
const {
return _objval; }
120 const double*
x()
const {
return _x; }
123 const double*
pi()
const {
return _pi; }
126 const double*
dj()
const {
return _dj; }
129 const double*
lhs()
const {
return _lhs; }
BCP_termcode
LP termination codes.
@ BCP_PrimalObjLimReached
This class holds the results after solving an LP relaxation.
void get_results(OsiSolverInterface &lp_solver)
Get the result from the LP solver.
double dualTolerance() const
Return the dual tolerance of the solver.
const std::string & solvername() const
~BCP_lp_result()
The destructor deletes the data members if they are private copies.
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...
const double * dj() const
BCP_lp_result()
The default constructor initializes an empty solution, i.e., one which holds neither an exact nor an ...
const double * pi() const
double primalTolerance() const
Return the primal tolerance of the solver.
const double * lhs() const