Page 1 of 1
Vensim Error: Expecting an operator
Posted: Tue Feb 25, 2025 2:17 pm
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.
Re: Vensim Error: Expecting an operator
Posted: Tue Feb 25, 2025 2:19 pm
by tomfid
INITIAL() can't be used in the Initial Value field (it's not needed, because that only computes at initial time anyway).
Re: Vensim Error: Expecting an operator
Posted: Tue Feb 25, 2025 2:19 pm
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.
Re: Vensim Error: Expecting an operator
Posted: Tue Feb 25, 2025 2:23 pm
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!