Page 1 of 1

Subscript indices

PostPosted: Mon Jul 14, 2008 10:52 am
by Po-Hung
hi,

I got the following problem when doing stoch_simul.

??? Subscript indices must either be real positive integers or logicals.

what does it mean?

and does anyone tell me how to fix it?

really appreciate!

PostPosted: Mon Jul 14, 2008 2:34 pm
by bigbigben
Check whether you define every variable or parameter before you use it. Also check if you value every parameter. If that is the case, you may want to switch back to version 3, the error message might be more informative.

PostPosted: Tue Jul 15, 2008 1:03 pm
by Po-Hung
thanks for your respond.

I check the defined variable and parameters, and still got the same

problem.

Here is another question: my computed steady states of 3 variables are

negative. Does it result in the subcript indices problem?!

thank you!

PostPosted: Mon Jul 28, 2008 12:35 pm
by p.gelain
Hi

I had the error message

??? Subscript indices must either be real positive integers or logicals

when I defined a variable on the top of the code but I did not use it in any of the equations of the model. The number of the equations was equal to the number of declared variables because I put a redundant equation as a mistake.

Paolo

Subscript indices problem

PostPosted: Wed Jul 30, 2008 5:00 pm
by amoscp2002
I am also getting this message. I tried checking based on what the previous post said, but have not had any success. I have attached the mod file. Any help will be greatly appreciated.
AP