Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

Determining Resource Usage Profile efficiently

  • 1.  Determining Resource Usage Profile efficiently

    Posted Fri April 17, 2009 12:50 PM

    Originally posted by: SystemAdmin


    [boergi said:]

    Hello everybody,

    I have a question related to ILOG Solver/Scheduler:
    What is the most efficient way to determine the usage profile (e.g. as an IloNumToNumStepFunction) of a discrete resource after the schedule is fixed, i.e. all activities are bound?

    Thank you for your help in advance!

    Best regards,
    Martin
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Determining Resource Usage Profile efficiently

    Posted Thu December 03, 2009 09:59 AM

    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