FRAMES NO FRAMES

Class IloIIM

Definition file: ilsolver/iimextr.h
Management class for IIM components.

This class offers iterative improvement method (IIM) management facilities in much the same way as the IloSolver class does for pure constraint programming. This class is created from a solver and has the same life cycle as the solver.

See Also:

Constructor Summary
public IloIIM(IloSolver solver)

This constructor builds an IIM management class from a solver.

Method Summary
public IloSolutiongetAtDelta(const IloNeighborIdentifier nid) const

This member function returns the solution delta of the neighbor accepted in the local search using neighbor identifier nid.

public IloIntgetAtIndex(const IloNeighborIdentifier nid) const

This member function returns the index of the neighbor accepted in the local search using neighbor identifier nid.

public IlcNeighborIdentifiergetNeighborIdentifier(const IloNeighborIdentifier nid) const

This member function returns the neighbor identifier extracted from nid.

public IloSolvergetSolver() const

Delivers the solver passed at construction time.

Constructor Detail

IloIIM

public IloIIM(IloSolver solver)
This constructor builds an IIM management class from a solver.

This constructor builds an IIM management class from the solver solver. The life cycle of the constructed class will be equivalent to that of the solver. When the solver is destroyed, the IIM management object must no longer be used. If more than one instance of IloIIM is created on the same solver, then these instances will share the same implementation pointer.


Method Detail

getAtDelta

public IloSolution getAtDelta(const IloNeighborIdentifier nid) const
This member function returns the solution delta of the neighbor accepted in the local search using neighbor identifier nid.

This member function returns the solution delta of the neighbor accepted in the local search using neighbor identifier nid. The solution delta is specified by the neighborhood and is the set of extractables which change value together with their new values. This is equivalent to return getNeighborIdentifier(nid).getAtDelta(); The returned delta does not belong to the user, but the neighborhood identifier itself: end() must not be called on it.


getAtIndex

public IloInt getAtIndex(const IloNeighborIdentifier nid) const
This member function returns the index of the neighbor accepted in the local search using neighbor identifier nid.

This member function returns the index of the neighbor accepted in the local search using neighbor identifier nid. This is equivalent to return getNeighborIdentifier(nid).getAtIndex();


getNeighborIdentifier

public IlcNeighborIdentifier getNeighborIdentifier(const IloNeighborIdentifier nid) const
This member function returns the neighbor identifier extracted from nid.

This member function returns the neighborhood identifier used inside search which is extracted from the neighborhood identifier nid used for search specification.


getSolver

public IloSolver getSolver() const
Delivers the solver passed at construction time.

This member functions returns the solver passed at construction time.