Skip to main content
FRAMES NO FRAMES

Enumeration StateFunctionValue

Definition file: ilcp/cp.h
Integer parameter for IloCP.

An enumeration for the class IloCP.

Integer values.

Fields

NoState = -1

This static integer of value -1 is the conventional value of an instance of IloStateFunction at any point out of its definition domain.

The following sample prints IloCP::NoState.

    IloModel model(env);
    IloStateFunction f(env);
    model.add(IloAlwaysNoState(f, -1, 1));

    cp.out() << "["  << cp.getValue(f, 0)
             << ","  << cp.getSegmentEnd(f, i)
             << "):" << cp.getSegmentValue(f, i)
             << std::endl;
 

For more information on state functions see the concept State functions in CP Optimizer.