Vensim Error: Expecting an operator

Use this forum to post Vensim related questions.
Post Reply
edyel1
Junior Member
Posts: 4
Joined: Tue Feb 25, 2025 2:08 pm
Vensim version: PLE

Vensim Error: Expecting an operator

Post by edyel1 »

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
Screenshot 2025-02-25 221719.png (61.04 KiB) Viewed 3464 times
Screenshot 2025-02-25 221656.png
Screenshot 2025-02-25 221656.png (54.62 KiB) Viewed 3464 times
tomfid
Administrator
Posts: 3986
Joined: Wed May 24, 2006 4:54 am

Re: Vensim Error: Expecting an operator

Post by tomfid »

INITIAL() can't be used in the Initial Value field (it's not needed, because that only computes at initial time anyway).
Administrator
Super Administrator
Posts: 4826
Joined: Wed Mar 05, 2003 3:10 am

Re: Vensim Error: Expecting an operator

Post by Administrator »

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.
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
edyel1
Junior Member
Posts: 4
Joined: Tue Feb 25, 2025 2:08 pm
Vensim version: PLE

Re: Vensim Error: Expecting an operator

Post by edyel1 »

tomfid wrote: Tue Feb 25, 2025 2:19 pm INITIAL() can't be used in the Initial Value field (it's not needed, because that only computes at initial time anyway).
thanks you!
Post Reply