Help:
When I using GAMS to solve an Economic phenomenon based on Stacklberg Modle, once I operate the system ,some error occurs, the information shows in the below picture:
Below is the whole program:
set i ()
j ();
$load i j
parameters
t(i,j) unit transport cost
c(j) unit product cost
sl(i) supply limit
da(j) demand constant a
db(j) demand constant b
dl(j) demand limit;
load t c sl da db dl
gdxin
display i,j,t,c,sl,da,db,dl;
set leader(i) /6/;
positive variables
ps(i) supply price
pd(j) demand price
x(i,j) traffic volume between supply i to demand j;
variable benefitleader leader’s benefit;
equations
profit_leader leader’s profit
profit_follwer(i,j) follower’s profit
sb(i) supply balance
deb(j) demand balance;
alias (i,ii);
x.lo(i,j)=0.01;
deb(j)… sum(i,x(i,j))=g=dl(j);
sb(i)… sl(i)=g=sum(j,x(i,j));
profit_follwer(i,j)$(not leader(i))… t(i,j)+c(j)+ps(i)-pd(j)-exp(da(j))*sum(ii,x(ii,j))**db(j)=g=0;
profit_leader… benefitleader =e=sum((i,j)$leader(i),exp(da(j))*sum(ii,x(i,j))**db(j)*x(i,j)-c(j)x(i,j)-t(i,j)x(i,j));
model sitanboge /sb.ps,deb.pd,profit_follwer.x,profit_leader/;
solve sitanboge using mpec max benefitleader;
option NLP=conopt;
display x.l,ps.l,pd.l;
Parameter report1(i,) supply summary report
report2(j,) demand summary report ;
report1(i,“supply”) = sum(j,x.l(i,j)); report1(i,“capacity”) = sl(i); report1(i,“prices”) = ps.l(i);
report2(j,“demandl”) = dl(j);report2(j,“demand”)=sum(i,x.l(i,j)); report2(j,“priced”) = pd.l(j);
Display report1,report2, x.l;
Sincerely ask for a solution to solve this problem !!!
Many Many Thanks !!!
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.