Subscript error

Use this forum to post Vensim related questions.
Post Reply
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Subscript error

Post by RWTH_FCN »

Hi,

My model includes 387 power plants that for Hydro power plants it has 2 categories; pump hydro storage(it has two type small power plants and big power plants) and reservoirs hydro station. My problem is that when I add new small pump storage to it, I encounter attached error, however I have made all needed changes to its respective subscripts. There is one subscript for pump hydro storage and they have two subrenge including small and big group. Can you help me how can I solve this problem?

Best Regards
Attachments
subscript error.jpg
subscript error.jpg (435.79 KiB) Viewed 4024 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Subscript error

Post by Administrator »

Can you upload the model?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Subscript error

Post by RWTH_FCN »

Administrator wrote: Sat Jul 14, 2018 12:46 pm Can you upload the model?
Unfortunatley, i am not allowed to upload it. When I added new region(country) to my model I did not get any error like this( of course because there is no subrenge for regions) but when I add new powerplant which is Pump hydro type that has such these subrenges I get this error. I have attached subscript of my small group of pump hydro here. Do you have any suggestion to fix it?

Best
Attachments
subscript error-smal group.jpg
subscript error-smal group.jpg (285 KiB) Viewed 4021 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Subscript error

Post by Administrator »

I'd need to see the model to figure out why you are getting errors. Screenshots are not really helpful.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
LAUJJL
Senior Member
Posts: 1421
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Re: Subscript error

Post by LAUJJL »

Hi

Did you try doing the modifications directly on the text model?

I have experienced some problems using the equation editor for the subscripts and working directly on the text équations is OK.

Regards.

JJ
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Subscript error

Post by tomfid »

I think the problem is exactly what the error message reports - you have different subscripts on the right and left side of the equation. "ps hydrostation small" vs. "ps hydrostation small group." That only works if you have one mapped to the other.
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Subscript error

Post by RWTH_FCN »

tomfid wrote: Mon Jul 16, 2018 1:24 am I think the problem is exactly what the error message reports - you have different subscripts on the right and left side of the equation. "ps hydrostation small" vs. "ps hydrostation small group." That only works if you have one mapped to the other.
Yes, your are right. I fixed it.
Thanks for your consideration
Post Reply