FRAMES NO FRAMES

Class IloShape

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

Instances of IloShape are generic objects describing shapes associated with resource constraints on continuous reservoirs.

The concept of Shape offers fine control over the production and consumption of a resource constraint on a continuous reservoir. When no shape is activated, the usual behaviour of a resource constraint is to consume or produce at a constant rate, given by the capacity and the duration of the activity. When created, an IloVariableSlopeShape can turn this constant rate into a Solver variable, suitable for decision and search.

See Also:

Method Summary
public IloBoolhasShape() const
public IloBoolisVariableSlopeShape() const
Method Detail

hasShape

public IloBool hasShape() const

This member function returns IloTrue if the invoking handle relates to an active shape.


isVariableSlopeShape

public IloBool isVariableSlopeShape() const

This member function returns IloTrue if the invoking handle relates to an instance of IloVariableSlopeShape. In this case, the handle can be safely down-cast into a IloVariableSlopeShape handle, using the corresponding copy-constructor.

See Also: