|
Var | addVar (const string &name) |
|
Var | addVar (const string &name, double lower, double upper) |
|
Cnt | addEqCnt (const AffExpr &, const string &name) |
|
Cnt | addIneqCnt (const AffExpr &, const string &name) |
|
Cnt | addIneqCnt (const QuadExpr &, const string &name) |
|
void | removeVars (const vector< Var > &) |
|
void | removeCnts (const vector< Cnt > &) |
|
void | update () |
|
void | setVarBounds (const std::vector< Var > &, const std::vector< double > &lower, const std::vector< double > &upper) |
|
vector< double > | getVarValues (const vector< Var > &) const |
|
CvxOptStatus | optimize () |
|
CvxOptStatus | optimizeFeasRelax () |
| Don't use this function, because it adds constraints that aren't tracked.
|
|
void | setObjective (const AffExpr &) |
|
void | setObjective (const QuadExpr &) |
|
void | writeToFile (const string &fname) |
|
VarVector | getVars () const |
|
virtual void | removeVar (const Var &var) |
|
virtual void | removeCnt (const Cnt &cnt) |
|
virtual void | removeVars (const VarVector &vars)=0 |
|
virtual void | setVarBounds (const Var &var, double lower, double upper) |
|
virtual void | setVarBounds (const VarVector &vars, const vector< double > &lower, const vector< double > &upper)=0 |
|
virtual double | getVarValue (const Var &var) const |
|
virtual vector< double > | getVarValues (const VarVector &vars) const =0 |
|
|
GRBmodel * | m_model |
|
vector< Var > | m_vars |
|
vector< Cnt > | m_cnts |
|
The documentation for this class was generated from the following file: