Weird behaviour by a percent operator
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
Realised part of my error: I'm multiplying inputs rather than adding ;(. But the remaining issue is that the percent operator summary was only showing the first input, rather than the sum of the inputs.
Curiouser and curiouser. See different sums on the way to the correct one.
Looks like this issue is resolved.
Worth promoting a bit after demoting it. We need this stuff to operate seamlessly in a release version.
Right - the code computing the port values fails to take into account multiwired inputs.
One more issue as well with multi-wiring: see attached. A multi-wired equation which should have an identical impact to a two-stage equation, doesn't. Looks like it's dividing by one entry (the scalar) while the other is zero.
Looking at it, the operations are performing correctly, AFAICT. Did you want to divide BroadMoney by 1000 rather than multiply it as you've wired it?
My mistake! I should have added those operations together before dividing
by GDP. So what I was getting was (abc)/d when I meant (a+b+c)/d.
[image: image.png]