FRAMES NO FRAMES

IloAssignAlternative

public IloGoal IloAssignAlternative(const IloEnv env, IloResourceSelector possibleSel=IloSelAltRes)
public IloGoal IloAssignAlternative(const IloEnv env, const IloResource resource)
public IloGoal IloAssignAlternative(const IloEnv env, const IloAltResSet resources, IloResourceSelector possibleSel=IloSelAltRes)
Definition file: ilsched/iloschedgoals.h
Include file: <ilsched/iloscheduler.h>

This function returns a goal that assigns a possible resource as the selected one for an alternative resource constraint.

The goal uses the selector possibleSel to choose the resource. If no argument of type IloResourceSelector is given, the goal uses the default selector, IloSelAltRes. The goal selects posted and metaposted alternative resource constraints in arbitrary order. To customize this behavior it is necessary to directly use the Scheduler Engine classes IlcAssignAlternative and IloSelector<IlcAltResConstraint>.

Implementation

See IlcAssignAlternative for an example of how this function can be defined.

See Also: