lpinterface
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
Public Member Functions | Static Public Member Functions | List of all members
lpint::SoplexSolver Class Reference
Inheritance diagram for lpint::SoplexSolver:
lpint::LinearProgramSolver

Public Member Functions

 SoplexSolver (OptimizationType optim_type)
 
bool parameter_supported (const Param param) const override
 Check whether the solver backend supports the given parameter. More...
 
void set_parameter (const Param param, const int value) override
 Set an integer-valued parameter in the internal LP solver. This method will fail with LpError::UnsupportedParameterError if param is not a valid parameter for the internal solver. More...
 
void set_parameter (const Param param, const double value) override
 Set a double-valued parameter in the internal LP solver This method will fail with LpError::UnsupportedParameterError if param is not a valid parameter for the internal solver. More...
 
Status solve () override
 Solve the linear program.
 
Status solution_status () const override
 Query the LP solver for the solution status.
 
const ILinearProgramHandlelinear_program () const override
 Get immutable access to the underlying Linear Program object.
 
ILinearProgramHandlelinear_program () override
 Get mutable access to the underlying Linear Program object.
 
const Solution< double > & get_solution () const override
 Get the solution of the linear program. This method will fail with LpError::ModelNotsolvedError if the solution has not (yet) been found.
 
- Public Member Functions inherited from lpint::LinearProgramSolver
 LinearProgramSolver (const LinearProgramSolver &)=default
 
 LinearProgramSolver (LinearProgramSolver &&)=default
 
LinearProgramSolveroperator= (const LinearProgramSolver &)=default
 
LinearProgramSolveroperator= (LinearProgramSolver &&)=default
 

Static Public Member Functions

static Status translate_status (const soplex::SPxSolver::Status status)
 

Member Function Documentation

bool lpint::SoplexSolver::parameter_supported ( const Param  param) const
overridevirtual

Check whether the solver backend supports the given parameter.

Parameters
paramThe parameter to check support for.
Returns
true The solver supports the given parameter.
false The solver does not support the given parameter.

Implements lpint::LinearProgramSolver.

void lpint::SoplexSolver::set_parameter ( const Param  param,
const int  value 
)
overridevirtual

Set an integer-valued parameter in the internal LP solver. This method will fail with LpError::UnsupportedParameterError if param is not a valid parameter for the internal solver.

Parameters
paramThe parameter to change.
valueThe value to which to set the parameter.

Implements lpint::LinearProgramSolver.

void lpint::SoplexSolver::set_parameter ( const Param  param,
const double  value 
)
overridevirtual

Set a double-valued parameter in the internal LP solver This method will fail with LpError::UnsupportedParameterError if param is not a valid parameter for the internal solver.

Parameters
paramThe parameter to change.
valueThe value to which to set the parameter.

Implements lpint::LinearProgramSolver.


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