Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  presenceOf

    Posted 02/26/19 06:20 AM

    Originally posted by: DavidGravot


    Hi

    How to enforce the presence of an interval

    Is 

    cp.presenceOf(x)

    enough or shall I explicitely write

    cp.add ( cp.presenceOf(x))
    

     

    Thanks !

     


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: presenceOf

    Posted 02/26/19 11:26 AM

    Originally posted by: ChrisBr


    Hello David,

    Yes presenceOf returns a constraint which has to be added.

    Hope this helps,

    Chris.


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: presenceOf

    Posted 02/26/19 11:50 AM

    Originally posted by: DavidGravot


    Thanks !

    I was confused by my own code where I was adding a constraint to CP and the line after storing the expression presenceOf, so I though "oh my god I forgot to add the constraint to enforce the presence", but my code was good : I simply wanted to return the presence...


    #CPOptimizer
    #DecisionOptimization