Hi all,
I am writing a flow balance constraints for a multicommodity flow problem. devision variable is x-kst, representing flow or order k arrive at the destination of service s at time t by service s.
forall(k in orders, j in orders_nodes[k])
sum (<n,<i,j>,dt,c,tt,dist,cap,f> in services:<i,j> in orders_arcs[k],t in time) x[k][<n,<i,j>,dt,c,tt,dist,cap,f>][t]
- sum (<n,<j,i>,dt,c,tt,dist,cap,f> in services:<j,i> in orders_arcs[k],t in time) x[k][<n,<j,i>,dt,c,tt,dist,cap,f>][t] == k.SupDem[j];
However, some arcs which are not belonging to order k (not in the set of orders_arcs[k]) , are also selected. I mean that flow should not pass by those arcs not in its possible arcs. How to deal with it?
------------------------------
Dario
------------------------------
#DecisionOptimization