GenConstrBuilder.GenConstrBuilder()
Constructor of genconstrbuilder.
Synopsis
GenConstrBuilder()
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
Expr getExpr()
Return
expression object.
GenConstrBuilder.getIndType()
Get type of general constraint.
Synopsis
int getIndType()
Return
type of general constraint.
GenConstrBuilder.getSense()
Get sense associated with general constraint.
Synopsis
char getSense()
Return
constraint sense.
GenConstrBuilder.set()
Set binary variable, binary value, expression and sense of general constraint.
Synopsis
void set(
Var binvar,
int binval,
Expr expr,
char sense)
Arguments
binvar
: binary variable.
binval
: binary value.
expr
: expression object.
sense
: general constraint sense.
GenConstrBuilder.set()
Set binary variable, binary value, expression and sense of general constraint.
Synopsis
void set(
Var binvar,
int binval,
Expr expr,
char sense,
int type)
Arguments
binvar
: binary variable.
binval
: binary value.
expr
: expression object.
sense
: general constraint sense.
type
: type of general constraint.