Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Minimize number of optional intervals

  • 1.  Minimize number of optional intervals

    Posted Mon August 24, 2015 02:25 PM

    Originally posted by: AdamGregory


    Hi Everyone,

    I'm looking for a way to determine which optional intervals are present in a solution and minimize this value.
    As far as I can tell both interval.isPresent() and model.isPresent(interval) do not seem to do what I intend.


    How can I write a constraint to minimize the number of optional intervals from a given array that appear in the final solution?

    Thank you,

    Adam
     


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Minimize number of optional intervals

    Posted Thu August 27, 2015 10:42 AM

    Originally posted by: ol


    Hi,

    you can add an objective IloMinimize on a summing expression on the IloPresenceOf(interval[i]) for all your interval[i].

    Regards,

    Olivier


    #CPOptimizer
    #DecisionOptimization