ConstrBuilder.ConstrBuilder()
Constructor of constrbuilder object.
Synopsis
ConstrBuilder()
ConstrBuilder.getExpr()
Get expression associated with constraint.
Synopsis
Expr getExpr()
Return
expression object.
ConstrBuilder.getRange()
Get range from lower bound to upper bound of range constraint.
Synopsis
double getRange()
Return
length from lower bound to upper bound of the constraint.
ConstrBuilder.getSense()
Get sense associated with constraint.
Synopsis
char getSense()
Return
constraint sense.
ConstrBuilder.set()
Set detail of a constraint to its builder object.
Synopsis
void set(
Expr expr,
char sense,
double rhs)
Arguments
expr
: expression object at one side of the constraint
sense
: constraint sense other than COPT_RANGE.
rhs
: constant of right side of the constraint.
ConstrBuilder.setRange()
Set a range constraint to its builder.
Synopsis
void setRange(Expr expr, double range)
Arguments
expr
: expression object, whose constant is negative upper bound.
range
: length from lower bound to upper bound of the constraint. Must greater than 0.