FRAMES NO FRAMES

Class IlcIntSelectI

Definition file: ilsolver/ilcint.h
Include file: <ilsolver/ilosolver.h>

Solver lets you control the order in which the values in the domain of a constrained variable are tried during the search for a solution.

This class is the implementation class for IlcIntSelect, the class of the object that chooses the value to try when the constrained variable under consideration is a constrained integer variable (that is, an instance of IlcIntVar).

The virtual member function in IlcIntSelectI chooses a value in the domain of the constrained integer variable under consideration.

To define new selection criteria, you can define a subclass of IlcIntSelectI. If those criteria can be expressed by an evaluation function, then you can use the predefined subclass IlcIntSelectEvalI for that purpose.

See Also:

Constructor and Destructor Summary
public IlcIntSelectI()
public ~IlcIntSelectI()
Method Summary
public virtual IlcIntselect(IlcIntVar var)
Constructor and Destructor Detail

IlcIntSelectI

public IlcIntSelectI()

This constructor creates an implementation object.


~IlcIntSelectI

public ~IlcIntSelectI()

As this class is to be subclassed, a virtual destructor is provided.


Method Detail

select

public virtual IlcInt select(IlcIntVar var)

This virtual member function returns one of the values of the domain of the constrained integer variable var. Its default implementation for the class IlcIntSelectI returns the minimum of the domain.