Page 1 of 1

The problem of “check model”

Posted: Fri Apr 08, 2022 3:40 pm
by wyy
Dear friends in Vensim forum,thanks for your reading.My English is poor so I will try my best to explain my trouble .I am writing a paper about Dynamic evolutionary game recently.When I assign value to variable(Ex2),the equation is ok(picture 1.),and I'm not use function of lookup ,however when I check model, variable(Ex2)has a serious of errors,the reason is about using function of lookup but I am not use lookup(picture 2.).I can't understand this cause ,how can I save this,thank you for your help.Two pictures as follow.

Re: The problem of “check model”

Posted: Fri Apr 08, 2022 9:57 pm
by tomfid
The "used as a lookup but not defined" error generally occurs when you have the following syntax in a pair of equations:

y = x(z)
z = (a number, expression, or anything else that isn't a lookup)

The usage of x() implies a lookup.

If you intend multiplication, then you need

y = x*z

or

y = x*(z)

Re: The problem of “check model”

Posted: Sat Apr 09, 2022 12:42 am
by wyy
tomfid wrote: Fri Apr 08, 2022 9:57 pm The "used as a lookup but not defined" error generally occurs when you have the following syntax in a pair of equations:

y = x(z)
z = (a number, expression, or anything else that isn't a lookup)

The usage of x() implies a lookup.

If you intend multiplication, then you need

y = x*z

or

y = x*(z)
Dear tomfid(may be it's your name),thanks for you help,so warm-hearted you are!Because your key tip,my trouble-The problem of “check model”-is over successfully. Thanks for you help again my dear friend.

Re: The problem of “check model”

Posted: Wed Apr 20, 2022 3:30 pm
by tomfid
Great!