I want to add new contsraints to the following gams code , however i can not integrate these constraints, anyone can help me. I attached constraints.
Especially when 𝑘∈{2,3,17,18,20,25}, how can i specify this?
options limrow=1000,limcol=1000,iterlim=100000000,reslim=36000,optcr=0 ;
set i cities /1*25/;
alias (i,k);
alias (i,j);
alias (i,l);
scalar p //;
scalar q //;
scalar alfa //;
Table d(i,j) distances
…
Parameter O(i) /
…
binary variables x(i,j),
z (i,j);
positive variables f(i,j,k);
free variables amac;
…;
objective…amac=e=sum((i,k),d(i,k)*O(i)x(i,k))+sum((i,j,k),alfad(i,j)*f(i,j,k))+sum((i,k),d(k,i)*O(i)*x(i,k));
constraint1(i)…sum((j),x(i,j))=e=1;
constraint2(i,j)…x(i,j)=l=x(j,j);
constraint3(i,j)(ord(i) lt ord(j))..z(i,j)=l=x(i,i);
constraint4(i,j)(ord(i) lt ord(j))…z(i,j)=l=x(j,j);
constraint5…sum(j,x(j,j))=e=p;
.
.
.
constraint8(i,j,k)$(ord(i) lt ord(j))…f(i,j,k)+f(j,i,k)=l=O(k)*z(i,j);
model transport /all/ ;
option threads=1;
option mip=cplex
solve transport using MIP minimizing amac;
transport.optfile=1;
display amac.l,f.l, x.l, z.l;