IBM ILOG Scheduler User's Manual > Local Search in Scheduler > Tabu Search for the Jobshop Problem with Alternatives > Solving the Problem > Finding the First Solution

The first solution is found with a simple predefined goal that first assigns each resource constraint to a resource, then ranks each resource, and finally instantiates the makespan variable.

  IloGoal g = IloAssignAlternative(env) && 
    IloRankForward(env) && 
    IloInstantiate(env, costVar);