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