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 on modeling contiguous interval variables

  • 1.  Question on modeling contiguous interval variables

    Posted 11/26/17 05:45 PM

    Originally posted by: jmogali


    Hi,

          I have 2 Interval vars A, B whose respective start and end times need to be determined. I am provided with minimum lengths for both A and B. The constraint is that, the end time of A must exactly coincide with the start time of B i.e. A and B are contiguous (there are additional non overlapping constraints imposed on A, B with other interval variables which I have not posted). I am new to CP, and by looking at the class definition of IloIntervalVar (https://www.ibm.com/support/knowledgecenter/SSSA5P_12.7.0/ilog.odms.ide.help/refcppopl/html/classes/IloIntervalVar.html), I couldn't quite figure out as to how I may be able to constrain the end time of A with the start time of B to be equal. Any relevant previous posts or code snippets showing how I may be able to do this is deeply appreciated. 

     

    Thanks


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Question on modeling contiguous interval variables

    Posted 11/27/17 03:04 AM

    Originally posted by: PhilippeLaborie


    Hello, all you need is to add a constraint: endAtStart(A,B).

    Philippe


    #CPOptimizer
    #DecisionOptimization