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

Instances of IloVariableSlopeShape provide control
of resource constraint rate of production or consumption, through
an IBM ILOG Solver variable.
For a given resource constraint, the rate of production or consumption
is defined as the variable: Slope = Capacity / Duration.
The corresponding variable can be accessed and set through the member
functions IloVariableSlopeShape::getSlopeVar
and IloVariableSlopeShape::setSlopeVar.
Since the slope variable uses floating point representation, the finest precision available on the values of the slope is proportional to epsilon = 2.21*10^-16. Hence, any value comprised in the interval (Slope*(1-epsilon), Slope] will be considered to verify the constraint Slope = Capacity / Duration.
See Also:
| Constructor Summary | |
|---|---|
public | IloVariableSlopeShape(const IloShape & shape) |
| Method Summary | |
|---|---|
public IloNumVar | getSlopeVar() const |
public void | setSlopeVar(IloNumVar var) const |
Inherited Methods from IloShape |
|---|
hasShape, isVariableSlopeShape |
| Constructor Detail |
|---|
This copy-constructor provides a safe down-cast of a generic instance of
IloShape
into an instance of
IloVariableSlopeShape.
In debug mode, an assertion failure will
be raised if the
IloShape
is not a instance of
IloVariableSlopeShape.
| Method Detail |
|---|
This member function returns the variable that parameterizes the slope of the shape.
See Also:
IloShape, IloResourceConstraint
This member function sets the variable that parameterizes the slope of the shape.
See Also:
IloShape, IloResourceConstraint