Vensim Error: Expecting an operator
Vensim Error: Expecting an operator
I'm new to this software and trying to figure out why I'm getting an "expecting an operator" error. Below are images of my model and the simple code I entered. I've already tried changing primary and secondary recycling to primary_recycling and even 'primary recycling' but the issue persists.
- Attachments
-
- Screenshot 2025-02-25 221719.png (61.04 KiB) Viewed 3464 times
-
- Screenshot 2025-02-25 221656.png (54.62 KiB) Viewed 3464 times
Re: Vensim Error: Expecting an operator
INITIAL() can't be used in the Initial Value field (it's not needed, because that only computes at initial time anyway).
/*
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
*/
-
- Super Administrator
- Posts: 4826
- Joined: Wed Mar 05, 2003 3:10 am
Re: Vensim Error: Expecting an operator
Remove the "INITIAL" around INITIAL(Polymers).
The INITIAL function needs to be in an equation by itself. And as this field is for an initial value, it will only be calculated once anyway.
The INITIAL function needs to be in an equation by itself. And as this field is for an initial value, it will only be calculated once anyway.
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