Hello
I would like to set up arrays/subscript. I don't have y entire model arrayed (for a number of reasons). However, I want to array one variable, in the following way:
Subscript: Industries
Equation:
Price Agriculture,Price Construction,Price Energy supply,Price Finance,Price Information,Price Manufacturing high,Price Manufacturing low,Price Other services,Price Reserach,Price Transport, Price Wholesale and retail
ERROR: Operators expected
I added a screenshot for more info.
Thanks
Using variables for initial subscript equation
Using variables for initial subscript equation
- Attachments
-
- Bildschirmfoto 2018-02-22 um 13.50.22.png (1.48 MiB) Viewed 2468 times
Re: Using variables for initial subscript equation
This is the definining equation for a subscriopt, so you need to leave the Subscripts field empty. Remove "Industry cross" and it should work.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Using variables for initial subscript equation
Tom,
My question is different. I use now the model proj1.mdl (extended) as an example.
In the original model is the following variable, using the following equation:
Variant 1):
Variable : max work accomplishment
Equation: 8, 10, 15
I wanted to do the following:
Variant 2):
Variable: max work accomplishment (now defined as auxiliary)
Equation: indication 1,Indication 2,Indication 3
I get an error (operator expected).
I then tried a second way (see test-variable) by using different equations for each subscript element. Specifically, for each different task, I added an equation. This works.
Can I conclude that only the second possibility works, or is there something wrong with the first one?
My question is different. I use now the model proj1.mdl (extended) as an example.
In the original model is the following variable, using the following equation:
Variant 1):
Variable : max work accomplishment
Equation: 8, 10, 15
I wanted to do the following:
Variant 2):
Variable: max work accomplishment (now defined as auxiliary)
Equation: indication 1,Indication 2,Indication 3
I get an error (operator expected).
I then tried a second way (see test-variable) by using different equations for each subscript element. Specifically, for each different task, I added an equation. This works.
Can I conclude that only the second possibility works, or is there something wrong with the first one?
- Attachments
-
- PROJ_subscript variable vs constant.mdl
- (3.75 KiB) Downloaded 178 times
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Using variables for initial subscript equation
Only the second way works.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559