Worked perfectly! Thank you very much Mr. Renger, Cheers
Quinta-feira, 17 de Janeiro de 2013 12:15:06 UTC, Renger van Nieuwkoop escreveu:
Hi Tiago
How about this:
W treatment sequences /W1,W2,W3/
Loop(w,
p(t)=v(t,w);
SOLVE M1 USING NLP minimizing z1;
);
If you only want to run over W2 and W3:
Loop(w$(ord(w) > 1),
…
Cheers
Renger
\
Modelworks
Gewerbestrasse 15
3600 Thun – Switzerland
+41 79 818 53 73
In…@modelworks.ch
blog.modelworks.ch
Von: gams...@googlegroups.com [mailto:gams...@googlegroups.com] Im Auftrag von Tiago Baptista
Gesendet: Donnerstag, 17. Januar 2013 12:56
An: gams...@googlegroups.com
Betreff: Multiple runs
Good morning,
i want to do multiple runs of the same model, but with different data given by the set W. Instead of specifying each W in each run, i want GAMS to advance from W1 to W2, W2 to W3, W(n) to W(n+1). does anyone know how to do this? thanks in advance
W treatment sequences /W1,W2,W3/
while (count LE 3,
if (count EQ 2,
p(t)=v(t,“W2”);
);
if (count EQ 3,
p(t)=v(t,“W3”);
);
SOLVE M1 USING NLP minimizing z1;
);
\
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/vjWI9GweB9YJ.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/4H8zQQT9PzEJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.