I am coding a multi-objective optimization problem in GUSEK. I consider a scenario with multiple players and I have put capacity constraints to select suppliers in the model.
Now I receive this cod error related to that contraintt;
set I := 1 .. t; #periods of time
set J := 1 .. 3; #player
set N := 1 .. r; # no of suppliers
set M := 1 .. z; # no of 3PL operators
param UC{i in I, n in N}; #unit production cost of supplier n in period i
param HC{i in I, n in N}; #inventory holding unit cost of the product supplier n in period i
param II{n in N}; #product supplier's initial inventory
param MCAP{i in I, n in N}; # maximum production capacity for supplier n
param WCAP{i in I, n in N}; #maximum warehouse capacity for supplier n
param VCAP{i in I, m in M};#maximum carrying capacity for 3PL operator m
subject to supplier_selection_constraint{i in I, n in N: i < t and n < r}: (if D[i] < MCAP[i,n] then D[i] <= q[i,n] + (s[i,n]+s[i+1,n])/2) else D[i] - (q[i,n-1]+(s[i,n-1]+s[i+1,1])/2) <= q[i,n] + (s[i,n] + s[i+1,n])/2);