FRAMES NO FRAMES

IloRankForward

public IloGoal IloRankForward(const IloEnv env, const IloUnaryResource res, IloResourceConstraintSelector rcSel=IloSelFirstRCMinStartMax)
public IloGoal IloRankForward(const IloEnv env, IloResourceSelector rSel=IloSelResMinGlobalSlack, IloResourceConstraintSelector rcSel=IloSelFirstRCMinStartMax)
public IloGoal IloRankForward(const IloEnv env, const IloNumVar criterion, IloResourceSelector rSel=IloSelResMinGlobalSlack, IloResourceConstraintSelector rcSel=IloSelFirstRCMinStartMax)
public IloGoal IloRankForward(const IloEnv env, const IloStateResource res, IloResourceConstraintSelector rcSel=IloSelFirstRCMinStartMax)
Definition file: ilsched/iloschedgoals.h
Include file: <ilsched/iloscheduler.h>

Resource Constraints on a Resource

These functions (1st and 4th) create and return a goal that ranks all resource constraints of the unary or state resource res. The resource constraint selector indicated by rcSel selects the next resource constraint to be ranked first. By default (when no resource constraint selector is given as an argument), the resource constraint selector IloSelFirstRCMinStartMax selects the next resource constraint to be ranked first.

Resource Constraints in a Model

This function (2nd) creates and returns a goal that ranks all resource constraints of all unary or state resources in the model. The resource selector indicated by rSel selects the next resource. The resource constraint selector rcSel selects the next resource constraint to be ranked first.

This function will rank either all the state resources (if rSel == IloSelStateRes), or all the unary resources (if rSel == IloSelResMinGlobalSlack, or IloSelResMinLocalSlack). By default (when no selectors are given as arguments), the resource selector IloSelResMinGlobalSlack selects the next resource, and the resource constraint selector IloSelFirstRCMinStartMax selects the next resource constraint to be ranked first.

Resource Constraints in a Model with a Criterion

This function (3rd) creates and returns a goal that is a logical AND of the goal described in the previous section with a goal that attempts to instantiate criterion. The instantiation goal tries values for criterion in ascending order.

Note
WARNING This function assumes that all unary or state resources that are selected are not kept open, that is, that there are no unknown resource constraints yet to be added. If you cannot close all unary or state resources, you should use a resource selector that selects only closed resources. In such a case, you should also handle the ranking of the resources that are not closed yourself.

Implementation

For an example of how the goals returned by these functions could be implemented, see IlcRank. Also see Ranking .

See Also: