Hi Vafa
This will not work properly as in the model equations you use j and in your loop you use jj. You should remove the index j from your model.
In the loop you assign for the parameters without j the value from your table and you solve the model. Here is the code (note that in your model equations there is no j left and I replace x(i,j) and y(r,j) by xl(i) and y(r).
Cheers
Renger
parameter yl(r) 'Loop value for y(j,r)',
xl(i) 'Loop value for x(j,x)';
equations
objective
const;
objective..
z=e= (sum(r,u(r)*yo(r)))/sum(i,v(i)*xo(i));
const..
sum(r,u(r)*yl(r))/sum(i,v(i)*xl(i))=l=1;
model fractionalccr_model /all/;
parameters efficiency summary report;
loop(j,
xl(i) = x(i,j);
yl(r) = y(r,j);
solve fractionalccr_model using nlp max z;
efficiency(j)=z.l;
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
gamsworld+...@googlegroups.com.
To post to this group, send email to
gams...@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.