Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

OPL constrainst not working logically.Please help

  • 1.  OPL constrainst not working logically.Please help

    Posted 12/02/11 03:51 AM

    Originally posted by: raghu1987


    Hello All,
    I have a opl constrainst which is not working the way it should.
    
    forall(b in BoxData , <l> in CellLenData , <w> in CellWidData , <h> in CellHgtData)
    { sum(bt in BoxData,<ht> in CellHgtData: ht>h && bt.box_no != b.box_no)(boxloc[<bt.box_no,l,w,ht>]) <= 500*boxloc[<b.box_no,l,w,h>]; 
    }
    


    In the problem, I have a set of boxes which I am trying to fit into a container, thus maximizing utilization. I have divided the container into equal cells and
    boxloc<bt.box_no,l,w,ht> is the decision var that a box bt is in a cell with coord l,w,h . The constraint above restricts the amount of weight that can sit on top of another box, 500 being the limit. It checks for the boxes in same l,w but height > h. Though, I have boxes all of 100 kgs, but nothing is getting onto level 2, which is weird.

    Can anybody please help me figure out this issue.
    #DecisionOptimization
    #MathematicalProgramming-General