Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Question regarding sched_calendar tutorial

  • 1.  Question regarding sched_calendar tutorial

    Posted 09/07/19 10:08 AM

    Originally posted by: Mohamed Awad


    Dears,

     

    Currently, I am working on a problem which is close to the one in "scheduling_tutorial". To be more specific, I am referring to the "sched_calendar" case. In that case, there are constraints on starting certain tasks based on the  calendar days at which the workers are not available. So, the tasks are allocated to not start until a worker is available which made gaps in the final schedule. These gaps are causing the total time of building a house varies although the tasks are the same. In my case, I would like to start all tasks  in a series without any gaps. In other words, I need to allocate the tasks in a way that they start and end avoiding the break times. If this happens, the total length of building each house should be the same which is my target. I am attaching the sched_calendar.mod and sched_calendar.mod for your kind information. 

     

    Best regards,

    Mohamed


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Question regarding sched_calendar tutorial

    Posted 09/07/19 01:27 PM

    Hi

    have you tried to change

    minimize max (h in Houses) endOf(itvs[h]["moving"]);

    into

    minimize staticLex(max(h in Houses) (endOf(itvs[h]["moving"])-startOf(itvs[h]["masonry"])),max(h in Houses) endOf(itvs[h]["moving"]));

    ?

    regards


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: Question regarding sched_calendar tutorial

    Posted 09/17/19 08:13 AM

    Originally posted by: Mohamed Awad


    Dear Alex,

     

    Thanks a million for your kind support. It really works!

     

    Best regards,

    Mohamed


    #DecisionOptimization
    #OPLusingCPOptimizer