FRAMES NO FRAMES

Class IloRelocateActivityNHoodI

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

An instance of this class represents an activity neighborhood.

See IloComparator and IloPredicate in the IBM ILOG Solver Reference Manual for more information.

See Also:

Constructor Summary
public IloRelocateActivityNHoodI(IloEnv env, IloComparator< IloActivity > comparator, IloPredicate< IloActivity > predicate, const char * name)
Method Summary
public virtual IloSolutiondefineSelected(IloSolver solver, IloInt index)
Inherited Methods from IloSchedulerLargeNHoodI
define, defineRestoreInfo, defineSelected, finalizeDelta, getCurrentSolution, getRestoreActivityDurationPredicate, getRestoreActivityEndPredicate, getRestoreActivityExternalPredicate, getRestoreActivityProcessingTimePredicate, getRestoreActivityStartPredicate, getRestoreExtractablePredicate, getRestoreInfo, getRestoreRCCapacityPredicate, getRestoreRCDirectPredecessorPredicate, getRestoreRCDirectSuccessorPredicate, getRestoreRCNextPredicate, getRestoreRCPrevPredicate, getRestoreRCSelectedPredicate, getRestoreRCSetupPredicate, getRestoreRCTeardownPredicate, isSelected, setRestoreActivityDurationPredicate, setRestoreActivityEndPredicate, setRestoreActivityExternalPredicate, setRestoreActivityProcessingTimePredicate, setRestoreActivityStartPredicate, setRestoreExtractablePredicate, setRestoreRCCapacityPredicate, setRestoreRCDirectPredecessorPredicate, setRestoreRCDirectSuccessorPredicate, setRestoreRCNextPredicate, setRestoreRCPrevPredicate, setRestoreRCSelectedPredicate, setRestoreRCSetupPredicate, setRestoreRCTeardownPredicate
Constructor Detail

IloRelocateActivityNHoodI

public IloRelocateActivityNHoodI(IloEnv env, IloComparator< IloActivity > comparator, IloPredicate< IloActivity > predicate, const char * name)

This constructor creates an activity neighborhood.

The parameter comparator is used (if it is not an empty handle) to specify in which order the activities should be considered. When applied the comparator receives as argument the neighborhood.

The parameter predicate is used to specify which activities to consider. The size of this neighborhood is the number of activities in the current solution for which this predicate returns IloTrue. In case the predicate is an empty handle, the size of this neighborhood is the number of activities in the current solution.


Method Detail

defineSelected

public virtual IloSolution defineSelected(IloSolver solver, IloInt index)

This pure virtual member function returns the set of decision variables, or instances of IloExtractable, on which to focus the search.