NlConstrBuilder::GetNlExpr()
Get nonlinear expression associated with constraint.
Synopsis
const 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(
const 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(const 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.