3 #ifndef _BCP_LP_RESULT_H
4 #define _BCP_LP_RESULT_H
14 #include "OsiSolverInterface.hpp"
120 const double*
x()
const {
return _x; }
123 const double*
pi()
const {
return _pi; }
126 const double*
dj()
const {
return _dj; }
BCP_lp_result()
The default constructor initializes an empty solution, i.e., one which holds neither an exact nor an ...
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 std::string & solvername() const
const double * lhs() const
double * _lhs
The left hand sides.
int _termcode
The termination code of the algorithm.
BCP_lp_result & operator=(const BCP_lp_result &)
The assignment operator is declared but not defined to disable it.
double primalTolerance() const
Return the primal tolerance of the solver.
double _objval
The solution value.
int _iternum
The number of iterations the algorithm took (however the algorithm used interprets "iteration")...
double * _x
The primal solution.
double * _dj
The reduced costs.
double * _pi
The dual solution.
double _primal_tolerance
The zero-tolerance used by the LP solver for the primal solution.
double _lower_bound
The name of the LP solver used.
double _dual_tolerance
The zero-tolerance used by the LP solver for the dual solution.
const double * pi() const
double dualTolerance() const
Return the dual tolerance of the solver.
void get_results(OsiSolverInterface &lp_solver)
Get the result from the LP solver.
std::string _solvername
The name of the LP solver used.
~BCP_lp_result()
The destructor deletes the data members if they are private copies.
This class holds the results after solving an LP relaxation.
BCP_termcode
LP termination codes.
const double * dj() const