Hi,
x.up is a constant that can be used inside the model. Consider the following example:
set t /t1*t5/
i /i1*i3/
j /j1*j2/
;
variable x(i,j,t)
Y(t)
z;
positive variable slack(t,i);
binary variable indslack(t,i);
equation Constraint1(t,i), Constraint2(t,i), Constraint3(t,i), Constraint4(t), obj;
Constraint1(t,i).. Y(t) =l= sum(j, x(i,j,t));
Constraint2(t,i).. Y(t) =e= sum(j, x(i,j,t)) - slack(t,i);
Constraint3(t,i).. slack(t,i) =l= indslack(t,i)*smax(j, x.up(i,j,t));
Constraint4(t).. sum(i, indslack(t,i)) =l= card(j) - 1;
obj.. z =e= sum(t, Y(t));
model m /all/;
x.lo(i,j,t) = uniform(1,5);
x.up(i,j,t) = uniform(5,10);
solve m min z use mip;
parameter rep(t,*);
rep(t,'smin') = Smin(i, sum(j, x.l(i,j,t)));
rep(t,'Y_t') = Y.l(t);
display rep;
Best,
Fred