Bcp 1.4.4
Loading...
Searching...
No Matches
BCP_lp_result Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BCP_lp_result()

BCP_lp_result::BCP_lp_result ( )
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.

◆ ~BCP_lp_result()

BCP_lp_result::~BCP_lp_result ( )
inline

The destructor deletes the data members if they are private copies.

Definition at line 94 of file BCP_lp_result.hpp.

Member Function Documentation

◆ solvername()

const std::string & BCP_lp_result::solvername ( ) const
inline

Definition at line 108 of file BCP_lp_result.hpp.

◆ termcode()

int BCP_lp_result::termcode ( ) const
inline

Definition at line 111 of file BCP_lp_result.hpp.

◆ iternum()

int BCP_lp_result::iternum ( ) const
inline

Definition at line 114 of file BCP_lp_result.hpp.

◆ objval()

double BCP_lp_result::objval ( ) const
inline

Definition at line 117 of file BCP_lp_result.hpp.

◆ x()

const double * BCP_lp_result::x ( ) const
inline

Definition at line 120 of file BCP_lp_result.hpp.

◆ pi()

const double * BCP_lp_result::pi ( ) const
inline

Definition at line 123 of file BCP_lp_result.hpp.

◆ dj()

const double * BCP_lp_result::dj ( ) const
inline

Definition at line 126 of file BCP_lp_result.hpp.

◆ lhs()

const double * BCP_lp_result::lhs ( ) const
inline

Definition at line 129 of file BCP_lp_result.hpp.

◆ primalTolerance()

double BCP_lp_result::primalTolerance ( ) const
inline

Return the primal tolerance of the solver.

Definition at line 135 of file BCP_lp_result.hpp.

◆ dualTolerance()

double BCP_lp_result::dualTolerance ( ) const
inline

Return the dual tolerance of the solver.

Definition at line 137 of file BCP_lp_result.hpp.

◆ get_results()

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.

◆ fake_objective_value()

void BCP_lp_result::fake_objective_value ( const double val)
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.


The documentation for this class was generated from the following file: