4 #include "CoinHelperFunctions.hpp"
5 #include "OsiSolverInterface.hpp"
38 const int colnum = lp.getNumCols();
39 _x =
new double[colnum];
40 CoinDisjointCopyN(lp.getColSolution(), colnum,
_x);
45 _dj =
new double[colnum];
46 CoinDisjointCopyN(lp.getReducedCost(), colnum,
_dj);
49 const int rownum = lp.getNumRows();
50 _pi =
new double[rownum];
51 CoinDisjointCopyN(lp.getRowPrice(), rownum,
_pi);
52 _lhs =
new double[rownum];
53 CoinDisjointCopyN(lp.getRowActivity(), rownum,
_lhs);
double * _lhs
The left hand sides.
int _termcode
The termination code of the algorithm.
void fint fint fint real fint real real real real real real real real real fint real fint * lp
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 _dual_tolerance
The zero-tolerance used by the LP solver for the dual solution.
void get_results(OsiSolverInterface &lp_solver)
Get the result from the LP solver.
std::string _solvername
The name of the LP solver used.