Decision Optimization

Decision Optimization

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

 View Only
  • 1.  guide me to write a capacity constraint

    Posted Wed January 30, 2019 03:21 AM

    Originally posted by: JKRATHORE


    I am trying to add few more constraint with existing  resource constraint project scheduling problem. Here I am attaching the example files of RCPSP problem. At present in this example problem I can start as many tasks as possible based on resource capacity. I want to add a constraint on maximum number of tasks performed in an interval variable should be less than or equal to 5. In other words simultaneously I can't do more than 5 tasks at a time.


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: guide me to write a capacity constraint

    Posted Thu January 31, 2019 10:22 AM

    Hi

    similar question at https://stackoverflow.com/questions/54435012/guide-me-to-write-a-capacity-constraint/54439130#54439130

    you could use cumul function:

    Before the subject to block you could write

    
    cumulFunction nbTasks = 
       sum(t in Tasks) pulse(itvs[t],1);
    
    

    and then in the subject to block you simply add

    
    nbTasks<=5;
    
    

    regards

     

    https://www.linkedin.com/pulse/making-decision-optimization-simple-alex-fleischer/


    #DecisionOptimization
    #OPLusingCPOptimizer