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 into containers and shipped to production plant. Since bins are from different suppliers that are located in different countries, it is clear that bins from different suppliers cannot be loaded into the same container. Despite this fact, my model loads all of them into the same container. I was thinking that maybe it makes sense to introduce a binay variable that is 1 if container belongs to arc (i,j) (from supplier to plant) and is 0 otherwise and number of containers per arc available, put I am not sure how I can possibly programm that.
Could you please help me with that?
P.S. Number of bins as well as flow on each arc are known.