Originally posted by: beautylo1
Hello!
I have just started to work with CPLEX and have some problems.
I need to solve a kind of bin packing problem.
There is a constrain, that every bin has a capacity, and in case its capacity is over I need to take another bin.
In program language it would be something like this: t- index number of a bin, capacity - max capacity of the bin, c[i]-cargo size, capacity[t]-fulness of the bin
t=1 // the first bin
capacity[t]=0 //fulness of the bin is 0 in the beginning
if capacity[t]+c[i]<=capacity then capacity[t]:=capacity[t]+c[i]
else t=t+1 //capacity[2]=0
it means that every time when we take another bin it is empty and we can start to fil it again.
My question is, does it possible to program this in CPLEX and if yes, then how?
Please, help me))
#DecisionOptimization#OPLusingCPLEXOptimizer