1 #ifndef LPINTERFACE_LPINTERFACE_H
2 #define LPINTERFACE_LPINTERFACE_H
7 #include "data_objects.hpp"
10 #include "parameter_type.hpp"
89 #endif // LPINTERFACE_LPINTERFACE_H
virtual bool parameter_supported(const Param param) const =0
Check whether the solver backend supports the given parameter.
Interface representing linear program formulation. This interface represents linear programs of the f...
Definition: lp.hpp:53
virtual Status solve()=0
Solve the linear program.
virtual Status solution_status() const =0
Query the LP solver for the solution status.
virtual const ILinearProgramHandle & linear_program() const =0
Get immutable access to the underlying Linear Program object.
virtual const Solution< double > & get_solution() const =0
Get the solution of the linear program. This method will fail with LpError::ModelNotsolvedError if th...
Param
Enum class representing linear solver parameters. The linear solvers this library interfaces with hav...
Definition: parameter_type.hpp:12
virtual void set_parameter(const Param param, const int value)=0
Set an integer-valued parameter in the internal LP solver. This method will fail with LpError::Unsupp...
Status
Enum class representing LP solution status.
Definition: errors.hpp:129
Interface to internal linear program solver. This interface is the most important interface within lp...
Definition: lpinterface.hpp:22