This class is an abstract base class for MIP solvers. This class provides a full interface for set and modify an MIP problem, solve it and retrieve the solution. You can use one of the descendants as a concrete implementation, or the Lp
default MIP solver. However, if you would like to handle MIP solvers as reference or pointer in a generic way, you can use this class directly.
#include <lemon/lp_base.h>
Set Column Type | |
enum | ColTypes { REAL = 0, INTEGER = 1 } |
Possible variable (column) types (e.g. real, integer, binary etc.) More... | |
void | colType (Col c, ColTypes col_type) |
ColTypes | colType (Col c) const |
Public Types | |
enum | ProblemType { UNDEFINED = 0, INFEASIBLE = 1, FEASIBLE = 2, OPTIMAL = 3, UNBOUNDED = 4 } |
The problem types for MIP problems. More... | |
Public Member Functions | |
virtual MipSolver * | newSolver () const =0 |
Allocate a new MIP problem instance. | |
virtual MipSolver * | cloneSolver () const =0 |
Make a copy of the MIP problem. | |
Solve the MIP | |
SolveExitStatus | solve () |
Obtain the Solution | |
ProblemType | type () const |
The type of the MIP problem. | |
Value | sol (Col c) const |
Return the value of the row in the solution. | |
Value | sol (const Expr &e) const |
Return the value of the expression in the solution. | |
Value | solValue () const |
The value of the objective function. |
enum ProblemType |
enum ColTypes |
SolveExitStatus solve | ( | ) | [inline] |
Solve the MIP problem at hand
Sets the type of the given column to the given type.
Return the value of the row in the solution.
Return the value of the expression in the solution, i.e. the dot product of the solution and the expression.