FRAMES NO FRAMES

Class IloAnyValueSelectorI

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

This class is the implementation class for IloAnyValueSelector.

The class IloAnyValueSelectorI is the implementation class for value selectors in a Concert Technology model. The class IlcAnySelectI is the implementation class for value selectors internally in a Solver search.

This class is the modeling object that wraps the search object. When search starts, IloAnyValueSelectorI is extracted into an instance of IlcAnySelectI.

To define new selection criteria, you define both a subclass of IloAnyValueSelectorI and a subclass of IlcAnySelectI.

See Also:

Constructor and Destructor Summary
public IloAnyValueSelectorI(IloEnvI *)
public ~IloAnyValueSelectorI()
Method Summary
public virtual voiddisplay(ostream &) const
public virtual IlcAnySelectextract(const IloSolver solver) const
public IloEnvI *getEnv() const
public virtual IloAnyValueSelectorI *makeClone(IloEnvI * env) const
Constructor and Destructor Detail

IloAnyValueSelectorI

public IloAnyValueSelectorI(IloEnvI *)

This constructor creates an instance of the class IloAnyValueSelectorI. This constructor should not be called directly as this class is an abstract class. This constructor is called automatically in the constructor of its subclasses.


~IloAnyValueSelectorI

public ~IloAnyValueSelectorI()

This destructor is called automatically by the destructor of its subclasses. It frees memory used by the invoking object.


Method Detail

display

public virtual void display(ostream &) const

This member function prints the invoking value selector on an output stream.


extract

public virtual IlcAnySelect extract(const IloSolver solver) const

In general terms, in Concert Technology, the objects of a model must be extracted for an algorithm (an instance of one of the subclasses of IloAlgorithm, such as IloSolver). This member function returns the internal value selector extracted for solver from the invoking value selector of a model.


getEnv

public IloEnvI * getEnv() const

This member function returns the environment to which the invoking value selector belongs. A value selector belongs to exactly one environment; different environments cannot share the same value selector.


makeClone

public virtual IloAnyValueSelectorI * makeClone(IloEnvI * env) const

This member function is called internally to duplicate the current value selector.