Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Script for long term scheduling

    Posted 08/23/19 12:55 PM

    Originally posted by: Sultan_Niz7755


    Hi everybody,

    Currently, I did model Surgery Scheduling for a week(from Monday to Friday) and have implemented this model. 

    I want this model to solve for a year. If I only want to simulate 12 months, I should write myself a script so that it solves itself, again and again, reads the next instance of data again and again. That means, I want the program should solve it 12*4=48 times automatically.

    Is there any example to schedule for the long term?

    I would be very thankful for any advice.

    best regards,

    Sherzod


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Script for long term scheduling

    Posted 08/25/19 11:37 PM

    Originally posted by: EdKlotz


    Which of CPLEX's many APIs did you use to implement the model?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Script for long term scheduling

    Posted 08/26/19 07:42 AM

    Originally posted by: Sultan_Niz7755


    Thank you very much for your answer.

    I created a model for surgery scheduling with OPL. It schedules surgeries for one week. But I need to schedule for a longer period. I have to run this model for different data iteratively. And, if I run the model for data1, can I add remaining surgeries(unscheduled surgeries) from data1 to data2 in the next iteration? 

     

    Best regards,

    Sherzod


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Script for long term scheduling

    Posted 08/26/19 02:52 AM

    What you have to do is to loop over the 48 weeks and create and solve a new model for each week (potentially using as input the results from the previous week).

    In case you are using OPL, take a look for example at opl/examples/opl/mulprod/mulprod_main.mod (ignore the stuff related to bases/warm starts) or opl/examples/opl/LagrangianRelaxation/LagrangianRelaxation.mod

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Script for long term scheduling

    Posted 08/26/19 07:42 AM

    Originally posted by: Sultan_Niz7755


    Thank you very much for your answer.

    I created a model for surgery scheduling with OPL. It schedules surgeries for one week. But I need to schedule for a longer period. I have to run this model for different data iteratively. And, if I run the model for data1, can I add remaining surgeries(unscheduled surgeries) from data1 to data2 in the next iteration? 

     

    Best regards,

    Sherzod

     


    #CPLEXOptimizers
    #DecisionOptimization