|
| GrbBase (const GRBEnv &env=_defEnv) |
| Default constructor. More...
|
|
void | _updateModel (bool what) |
|
void | _copyExprToConstr (int row) |
|
void | _copyExprToConstr () |
|
virtual int | _addCol () |
|
|
|
virtual int | _addRow () |
|
|
|
virtual int | _addRow (Value l, ExprIterator b, ExprIterator e, Value u) |
|
|
|
virtual void | _eraseCol (int i) |
|
|
|
virtual void | _eraseRow (int i) |
|
|
|
virtual void | _getColName (int col, std::string &name) const |
|
|
|
virtual void | _setColName (int col, const std::string &name) |
|
|
|
virtual int | _colByName (const std::string &name) const |
|
|
|
virtual void | _getRowName (int row, std::string &name) const |
|
|
|
virtual void | _setRowName (int row, const std::string &name) |
|
|
|
virtual int | _rowByName (const std::string &name) const |
|
|
|
virtual void | _setRowCoeffs (int row, ExprIterator b, ExprIterator e) |
|
|
|
virtual void | _getRowCoeffs (int row, InsertIterator b) const |
|
|
|
virtual void | _setColCoeffs (int col, ExprIterator b, ExprIterator e) |
|
|
|
virtual void | _getColCoeffs (int col, InsertIterator b) const |
|
|
|
virtual void | _setCoeff (int row, int col, Value value) |
| Set one element of the coefficient matrix.
|
|
virtual Value | _getCoeff (int row, int col) const |
| Get one element of the coefficient matrix.
|
|
virtual void | _setColLowerBound (int i, Value value) |
|
virtual Value | _getColLowerBound (int i) const |
| More...
|
|
virtual void | _setColUpperBound (int i, Value value) |
|
virtual Value | _getColUpperBound (int i) const |
| More...
|
|
virtual void | _setRowLowerBound (int i, Value value) |
|
virtual Value | _getRowLowerBound (int i) const |
| More...
|
|
virtual void | _setRowUpperBound (int i, Value value) |
|
virtual Value | _getRowUpperBound (int i) const |
| More...
|
|
virtual void | _setObjCoeffs (ExprIterator b, ExprIterator e) |
|
|
|
virtual void | _getObjCoeffs (InsertIterator b) const |
|
|
|
virtual void | _setObjCoeff (int i, Value obj_coef) |
|
|
|
virtual Value | _getObjCoeff (int i) const |
|
|
|
virtual void | _setSense (Sense) |
|
|
|
virtual Sense | _getSense () const |
|
|
|
virtual void | _clear () |
|
|
|
virtual void | _messageLevel (MessageLevel) |
|
|
|
virtual void | _write (std::string file, std::string format) const |
| Write model to file (disabled)
|
|
|
GRBModel | _model |
| Underlying Gurobi model.
|
|
bool | _dirtyVars |
| Dirty bit for variables.
|
|
bool | _dirtyConstrs |
| Dirty bit for constraints.
|
|
GRBEnv | _env |
| Gurobi environment for the model.
|
|
std::map< std::string, int > | _varNameToId |
| Map variable names to id.
|
|
std::vector< GRBVar > | _idToVar |
| Map id to variables.
|
|
std::vector< std::string > | _idToVarName |
| Map variable id to names.
|
|
std::vector< bool > | _deletedVars |
| List of deleted variables.
|
|
std::vector< GRBLinExpr > | _idToExpr |
| Linear expression of each constraint.
|
|
std::vector< bool > | _exprCopiedToConstr |
|
std::map< std::string, int > | _constrNameToId |
| Map constraint names to id.
|
|
std::vector< GRBConstr > | _idToConstr |
| Map id to constraints.
|
|
std::vector< std::string > | _idToConstrName |
| Map constraint id to names.
|
|
std::vector< GRBVar > | _constrAux |
| Needed because LEMON allows constraints with both upper and lower bounds.
|
|
std::vector< bool > | _deletedConstrs |
| List of deleted variables.
|
|
Base interface for the Gurobi LP and MIP solver.
This class implements the common interface of the Gurobi LP and MIP solver.
- Warning
- We recommend creating all variables before adding the constraints. Before adding the constraints, and also before solving the model, please update it using forceModelUpdate(). See minlca/lp-model.hh for an example.
Definition at line 48 of file grb.h.