| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

forall constraints.
This class allows you to manipulate the constraints generated using
forall constructs in OPL.
| Method Summary | |
|---|---|
public IloForAllRangeI * | getImpl() const |
public | IloForAllRange() |
public | IloForAllRange(IloForAllRangeI * impl) |
public | IloForAllRange(const IloConstraint & ct) |
public void | setBounds(IloNum lb, IloNum ub) |
public void | setLB(IloNum lb) |
public void | setLinearCoef(const IloNumVar var, IloNum value) |
public void | setLinearCoefs(const IloNumVarArray vars, const IloNumArray values) |
public void | setUB(IloNum ub) |
Inherited Methods from IloConstraint |
|---|
getImpl, IloConstraint, IloConstraint |
Inherited Methods from IloIntExprArg |
|---|
getImpl, IloIntExprArg, IloIntExprArg |
Inherited Methods from IloNumExprArg |
|---|
getImpl, IloNumExprArg, IloNumExprArg |
Inherited Methods from IloExtractable |
|---|
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, IloExtractable, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, removeFromAll, setLocation, setName, setObject |
| Method Detail |
|---|
This member function allows a safe cast of
a constraint of type IloConstraint.
The method checks the type of the constraint and
throws an exception if the type is not correct.
| ct |
The constraint to be cast.
|
This member function sets lb as the lower bound and
ub as the upper bound of the invoking range, and it creates
the appropriate instance of the undocumented class IloChange
to notify algorithms about this change of an
extractable object in the model.
setBounds notifies Concert Technology
algorithms about this change of this invoking object.| lb |
The lower bound of the range.
|
| ub |
The upper bound of the range.
|
This member function sets lb as the lower bound of the
invoking range, and it creates the appropriate instance of the undocumented
class IloChange to notify algorithms about this change of an
extractable object in the model.
setLB notifies Concert Technology algorithms
about this change of this invoking object.
| lb |
The lower bound of the range.
|
This member function sets value as the linear coefficient of the
variable var in the invoking range, and it creates the appropriate
instance of the undocumented class IloChange to notify algorithms about
this change of an extractable object in the model.
setLinearCoef notifies Concert Technology algorithms
about this change of this invoking object.
If you attempt to use setLinearCoef on a non linear expression, it
will throw an exception on platforms that support C++ exceptions when exceptions are
enabled.
| var |
The variable for which to set the coefficient.
|
| value |
The coefficient to set.
|
For each of the variables in vars, this member function sets the
corresponding value of values (whether integer or floating-point) as its
linear coefficient in the invoking range, and it creates the appropriate instance of
the undocumented class IloChange to notify algorithms about this change
of an extractable object in the model.
setLinearCoefs notifies Concert Technology algorithms
about this change of this invoking object.
If you attempt to use setLinearCoef on a non linear expression, it will
throw an exception on platforms that support C++ exceptions when exceptions are enabled.
| vars |
An array of variables for which to set the coefficient.
|
| values |
An array of the coefficients to set.
|
This member function sets ub as the upper bound of the
invoking range, and it creates the appropriate instance of the undocumented
class IloChange to notify algorithms about this change of an
extractable object in the model.
setUB notifies Concert Technology algorithms
about this change of this invoking object.
| ub |
The upper bound of the range.
|