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.