There are some situations in which one needs to use a decision variable as an index in a specific constraint. Applying such a case, somewhat, is straightforward by introducing the auxiliary binary variables and adding appropriate constraints. Now, someone needs to use a decision variable as an index in the outer loop (for-each combination). E.g. in the following constraints:
Code: Select all
eq14(np(i) , nc(j) , t)$(ord(t)<=card(t)-cp) .. z2(i,j,t) =e= z2(i,j,t+cp)
I was wondering if, is there any way to use a decision variable in the outer loop?
Regards
Abbas