Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  bin packing with CP Optimizer?

    Posted 04/03/13 03:53 AM

    Originally posted by: MichaelD.Moffitt


    Hello,

    I would like to create a bin packing solver using CP Optimizer. This was apparently possible with a predecessor called ILOG Solver:

    http://www.cs.cornell.edu/w8/iisi/ilog/cp11/usrsolver/binpacking11.html

    I copied this program and was almost able to compile it, with a few errors here and there. After massaging the code a bit, this is the only line that doesn't seem to "port" into the CP Optimizer:

    model.add(_capacity == Capacity(_type));

    It complains:

    binpacking.cpp:31: error: no match for call to â(IloIntArray) (IloIntVar&)â

    Is there something simple I can do to resurrect this example? Many thanks!
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: bin packing with CP Optimizer?

    Posted 04/03/13 09:55 AM

    Originally posted by: ol


    Hello,
    Capacity is an array, you should use:
    
    Capacity[_type]
    


    Regards,
    Olivier
    #CPOptimizer
    #DecisionOptimization