Public Member Functions | |
| GurobiSolver (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 ILinearProgramHandle & | linear_program () const override |
| Get immutable access to the underlying Linear Program object. | |
| ILinearProgramHandle & | linear_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 | |
| LinearProgramSolver & | operator= (const LinearProgramSolver &)=default |
| LinearProgramSolver & | operator= (LinearProgramSolver &&)=default |
Static Public Member Functions | |
| static Status | convert_gurobi_status (int status) |
Public Attributes | |
| std::shared_ptr< GRBenv > | gurobi_env_ |
| The gurobi environment object. | |
| std::shared_ptr< GRBmodel > | gurobi_model_ |
| The gurobi model object. | |
| LinearProgramHandleGurobi | lp_handle_ |
| The linear program to solve. | |
| Solution< double > | solution_ |
| The solution vector. | |
Static Public Attributes | |
|
static const std::unordered_map< Param, const char * > | param_dict_ |
|
static const std::unordered_map< int, Status > | status_dict_ |
|
overridevirtual |
Check whether the solver backend supports the given parameter.
| param | The parameter to check support for. |
Implements lpint::LinearProgramSolver.
|
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.
| param | The parameter to change. |
| value | The value to which to set the parameter. |
Implements lpint::LinearProgramSolver.
|
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.
| param | The parameter to change. |
| value | The value to which to set the parameter. |
Implements lpint::LinearProgramSolver.
1.8.6