Hello,
Please how can I access the emp.info file?
Thank you.
Tunde
On Friday, January 30, 2015 at 1:40:36 AM UTC-7, Lutz Westermann wrote:
Nazmi,
This error is caused by the last three lines of your emp.info file:
stage 2 y(‘2’) d(‘2’) p(i,‘2’) s(‘2’) inv(‘2’) Bal_eq(‘2’)
Sales_eq1(‘2’) Sales_eq2(‘2’)
stage 3 y(‘3’) d(‘3’) p(i,‘3’) s(‘3’) inv(‘3’) Bal_eq(‘3’)
Sales_eq1(‘3’) Sales_eq2(‘3’)
stage 4 y(‘4’) d(‘4’) p(i,‘4’) s(‘4’) inv(‘4’) Bal_eq(‘4’)
Sales_eq1(‘4’) Sales_eq2(‘4’)
You cannot use p(i,‘2’) here. You need to write out all possibilities.
So you can replace your $onput … $offput section by this one:
put / “stage 1 y(‘1’) inv(‘1’) Bal_eq(‘1’)”;
put / "stage 2 y(‘2’) d(‘2’) “;
loop(i, put p.tn(i,‘2’) ’ ');
put " s(‘2’) inv(‘2’) Bal_eq(‘2’) Sales_eq1(‘2’) Sales_eq2(‘2’)”;
put / "stage 3 y(‘3’) d(‘3’) “;
loop(i, put p.tn(i,‘3’) ’ ');
put " s(‘3’) inv(‘3’) Bal_eq(‘3’) Sales_eq1(‘3’) Sales_eq2(‘3’)”;
put / "stage 4 y(‘4’) d(‘4’) “;
loop(i, put p.tn(i,‘4’) ’ ');
put " s(‘4’) inv(‘4’) Bal_eq(‘4’) Sales_eq1(‘4’) Sales_eq2(‘4’)”;
However, please note that there is a bigger issue with your model. As I
can see it, you have 18 independent random variables, each with 1000
possible outcomes. This will result in 1000^18 scenarios which is just
too big to be handled.
Is this really what you had in mind or did you actually want to have
just 1000 scenarios? If this is the case, you should define your random
variables as joint random variables instead of independent random
variables. For more information please look for “jrandvar” in the
“Stochastic Programming (SP) with EMP” documentation, which you can find
in your installation folder or here:
http://www.gams.com/dd/docs/solvers/empsp/index.html
Best regards,
Lutz
On 1/30/2015 2:51 AM, Nazmi Åžener wrote:
Hi everybody,
I try to model multistage stochastic programming model. I get an error
which is
=C*** emp.info line 1402: Unknown uel: i
=C*** emp.info line 1402: Cannot find (random) variable or equation p in
model.
How can I solve this problem? I add model to attachment. I appreciate
your help and time.
Thanks in advance,
Nazmi
–
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 http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
–
Lutz Westermann LWest...@gams.com
GAMS Development Corporation GAMS Software GmbH
1217 Potomac St. NW, P.O. Box 40 59
Washington DC, 20007, USA 50216 Frechen, Germany
Fon/Fax: +1 202 342-0180/1 Fon/Fax: +49 221 949-9170/1
http://www.gams.com
–
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 http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.