Convex optimization problem. More...
#include <solver_interface.hpp>
Public Member Functions | |
virtual Var | addVar (const string &name)=0 |
virtual Var | addVar (const string &name, double lb, double ub) |
virtual Cnt | addEqCnt (const AffExpr &, const string &name)=0 |
virtual Cnt | addIneqCnt (const AffExpr &, const string &name)=0 |
virtual Cnt | addIneqCnt (const QuadExpr &, const string &name)=0 |
virtual void | removeVar (const Var &var) |
virtual void | removeCnt (const Cnt &cnt) |
virtual void | removeVars (const VarVector &vars)=0 |
virtual void | removeCnts (const vector< Cnt > &cnts)=0 |
virtual void | update ()=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 |
virtual CvxOptStatus | optimize ()=0 |
virtual void | setObjective (const AffExpr &)=0 |
virtual void | setObjective (const QuadExpr &)=0 |
virtual void | writeToFile (const string &fname)=0 |
virtual VarVector | getVars () const =0 |
Convex optimization problem.
Gotchas: