FRAMES NO FRAMES

Class IloVariableSlopeShape

Definition file: ilsched/iloresconstrainti.h
Include file: <ilsched/iloscheduler.h>

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 IloNumVargetSlopeVar() const
public voidsetSlopeVar(IloNumVar var) const
Inherited Methods from IloShape
hasShape, isVariableSlopeShape
Constructor Detail

IloVariableSlopeShape

public IloVariableSlopeShape(const IloShape & shape)

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

getSlopeVar

public IloNumVar getSlopeVar() const

This member function returns the variable that parameterizes the slope of the shape.

See Also:


setSlopeVar

public void setSlopeVar(IloNumVar var) const

This member function sets the variable that parameterizes the slope of the shape.

See Also: