IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Breaks > Solve the Problem

To solve the problem, we use IloRankForward, as described previously in Solve the Problem.

    // Model    
    IloEnv env;
    IloNumVar makespan; 
    IloModel model = DefineModel(env, makespan);
  
    // Algorithm
    IloSolver solver(model);
    IloGoal goal = IloRankForward(env, makespan);