Stores convex inequality constraints and affine equality constraints. More...
#include <modeling.hpp>
Public Member Functions | |
ConvexConstraints (Model *model) | |
void | addEqCnt (const AffExpr &) |
Expression that should == 0. | |
void | addIneqCnt (const AffExpr &) |
Expression that should <= 0. | |
void | setModel (Model *model) |
bool | inModel () |
void | addConstraintsToModel () |
void | removeFromModel () |
vector< double > | violations (const vector< double > &x) |
double | violation (const vector< double > &x) |
Public Attributes | |
vector< AffExpr > | eqs_ |
vector< AffExpr > | ineqs_ |
Stores convex inequality constraints and affine equality constraints.
Actually only affine inequality constraints are currently implemented.