Originally posted by: GGR
Hi
The best way is to use a solution object :
IloDiscreteResource res = ...;
IloSchedulerSolution solution(env);
IloSolver solver(model);
IlcScheduler sched(solver);
/* solving */
solution.store(sched);
//printing
for(IloNumToNumStepFunctionCursor c(solution.getLevelMin(res)); c.ok(); ++c)
cout << "date: " << c.getSegmentMin() << " level : " << c.getValue() << endl;
Cheers
#CPOptimizer#DecisionOptimization