error 141

Dear gams friends,

I have an existing gams model, and I try to extract some additional data , that I extract with some extra formulas

eq65 … dfETOH - sum(t, TP(t) * CFdf(t)) =e= 0 ;

TP and CFdf are already in the model and running. I added dfETOH to extract, but it gives me the $141 error message,

1458 display dfETOH.l
**** $141

I found in Rostenthal’s user guide that $141 means it ‘has not received any numerical values’, but I dont onderstand why not. the other TP and CFdf do have numerical values .

Can anyone help me?

Kind regards,

Benjamin


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/groups/opt_out.

\

Dear Benjamin,

Instead of adding an extra equation into your model, and assuming that Tp and CFdf are variables, you can do the following:

parameter dfETOH;
dfETOH = SUM(t, TP.L(t)*CFdf.L(t));


Cheers,
Pedro


On Thu, Aug 1, 2013 at 10:23 AM, benjamin visser wrote:


Dear gams friends,

I have an existing gams model, and I try to extract some additional data , that I extract with some extra formulas

eq65 … dfETOH - sum(t, TP(t) * CFdf(t)) =e= 0 ;

TP and CFdf are already in the model and running. I added dfETOH to extract, but it gives me the $141 error message,

1458 display dfETOH.l
**** $141

I found in Rostenthal’s user guide that $141 means it ‘has not received any numerical values’, but I dont onderstand why not. the other TP and CFdf do have numerical values .

Can anyone help me?

Kind regards,

Benjamin


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/groups/opt_out.





\

PEDRO JAVIER RAMÍREZ TORREALBA
Ingeniero Civil Eléctrico PUC
MSc en Ingeniería Eléctrica PUC
Londres, REINO UNIDO

Celular: +44-(0)75-8069-3119


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/groups/opt_out.

\