Forum Discussion
FICO
10 years agoCommunity Manager
Container separation
Hi, I have a problem that I cannot solve for about a week. I have defined a set of Containers =[1,2,3,4,5,6] where bins have to be loaded. Bins come from differen suppliers = [L1,L2,L3], are loaded ...
FICO
10 years agoCommunity Manager
Assuming you have got binary variables ifuse(i,j) that indicate whether an arc is used, you could associate variables for the container selection with these as follows:
declarations
Plants: range
Suppliers = {"L1","L2","L3"}
Containers = 1..6
ifuse: dynamic array(Suppliers,Plants) of mpvar
assign: dynamic array(Containers,Suppliers,Plants) of mpvar
end-declarations
!... create variables 'ifuse' ...
forall(c in Containers, i in Suppliers,j in Plants | exists(ifuse(i,j))) do
create(assign(c,i,j))
assign(c,i,j) is_binary
end-do
! Use container on at most one arc
forall(c in Containers)
sum(i in Suppliers,j in Plants | exists(assign(c,i,j))) assign(c,i,j)<=1
! If arc is used, assign at least one container to it
forall(i in Suppliers,j in Plants | exists(ifuse(i,j)))
ifuse(i,j) <= sum(c in Containers) assign(c,i,j)
! Only assign containers to arcs that are used
forall(c in Containers, i in Suppliers,j in Plants | exists(assign(c,i,j)))
assign(c,i,j) <= ifuse(i,j)
You might want to try adding some additional constraints for breaking symmetry if all containers are equivalent, for example:
forall(c in Containers | c>1) do
ct:=1
sum(ct as counter, i in Suppliers,j in Plants | exists(ifuse(i,j)))
ct*(assign(c-1,i,j) - assign(c,i,j)) <= 0
end-do
Related Content
Related Content
A specific separation procedure, $(l,S)$ Inequalities, to solve the lot-sizing problem
Dear support team, I have tried to use a specific separation procedure, $(l, S)$ Inequalities, to solve the lot-sizing problem proposed in the references, like Algorithm and formulations for lot siz...8 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread5Views0likes4CommentsUsing Xpress Optimizer 8.12.3 in Docker Container
Hi, We are using Xpress 8.12.3 within the docker container. We are using Xpress with .net core C#. We ran into a problem when we wanted to use Azure Service Bus + Masstransit in the same container....5 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread0Views0likes6Comments