GenConstrBuilder::GetBinVal()
Get binary value associated with general constraint.
Synopsis
int GetBinVal()
Return
binary value.
GenConstrBuilder::GetBinVar()
Get binary variable associated with general constraint.
Synopsis
Var GetBinVar()
Return
binary vaiable object.
GenConstrBuilder::GetExpr()
Get expression associated with general constraint.
Synopsis
const Expr &GetExpr()
Return
expression object.
GenConstrBuilder::GetIndType()
Get type of general constraint.
Synopsis
int GetIndType()
Return
type of GenConstr, COPT_INDICATOR_IF, COPT_INDICATOR_ONLYIF and COPT_INDICATOR_IFANDONLYIF.
GenConstrBuilder::GetSense()
Get sense associated with general constraint.
Synopsis
char GetSense()
Return
constraint sense.
GenConstrBuilder::Set()
Set binary variable, binary value, expression, sense and type of general constraint.
Synopsis
void Set(
Var bvar,
int bval,
const Expr &expr,
char sense,
int type)
Arguments
bvar
: binary variable.
bval
: binary value.
expr
: expression object.
sense
: general constraint sense.
type
: type of general constraint with default value of COPT_INDICATOR_IF.