Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Indexing IntervalVarArray with IntVar

    Posted 03/15/16 03:10 PM

    Originally posted by: Kyle_Coventry


    Hello there,

    Wondering if there is support to index an IntervalVarArray with an IntVar. I know that IntVarArray can be indexed in this fashion, but it does not seem IntervalVarArray has been developed yet to accommodate this. Essentially, I have an application where I am interested in enforcing NoOverlap on a subset of IntervalVars from an IntervalVarArray and the specific subset is determined via values from an IntVar.

    Thanks in advance!

    Kyle


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Indexing IntervalVarArray with IntVar

    Posted 03/17/16 12:56 PM

    Originally posted by: PhilippeLaborie


    Hello, 

    You guessed well, there is no IntervalVarArray indexed with an IntVar. Instead of that, we provide the notion of optionality on IntervalVar. With optional interval variables you can use the boolean expression PresenceOf to constrain an interval to be present (and thus to be considered by the constraints that use it).

    Philippe


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: Indexing IntervalVarArray with IntVar

    Posted 03/17/16 03:15 PM

    Originally posted by: Kyle_Coventry


    Thank you for the reply - much appreciated.

    The notion of optionality is definitely helpful, and a very nice feature. However, the ability to index these arrays based on a decision variable would be very useful in expressing much more concise programs (something that optionality does not supplement). Perhaps in a later edition!

    Once again, appreciate the response.

    Kyle


    #CPOptimizer
    #DecisionOptimization