Hello,
I am facing a problem in initializing my model in equilibrium. I receive the following error:
“Simultaneous initial value equation involving…”
Can anyone help to resolve this problem? thank you.
Model is attached to this post.
The parametric value of the “InTansit” stock for equilibrium is “60”.
Best regards,
problem in initializing my model in equilibrium “Simultaneous initial value equation involving…”
-
- Member
- Posts: 46
- Joined: Thu Oct 23, 2014 1:08 pm
- Vensim version: DSS
problem in initializing my model in equilibrium “Simultaneous initial value equation involving…”
- Attachments
-
- SC Model.mdl
- (15.71 KiB) Downloaded 184 times
Re: problem in initializing my model in equilibrium “Simultaneous initial value equation involving…”
The circularity is listed in the error report:
In general, a stock initial value expression can't refer to itself, however indirectly. I'm not sure why the two structures are connected, so it's hard to suggest a fix. One way to handle this would be to set it up so that the inventory is in equilibrium, i.e. arrival = shipment which implies that in transit = shipment*lead time.
Code: Select all
ERROR: Simultaneous initial value equations involving: InTansit.
: Inventory position.
: Order decision.
: Demand2.
: Shipment requirement2.
: Shipment2.
: InTansit.
/*
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
*/
-
- Member
- Posts: 46
- Joined: Thu Oct 23, 2014 1:08 pm
- Vensim version: DSS
Re: problem in initializing my model in equilibrium “Simultaneous initial value equation involving…”
Hi,
I simplified my model to only one layer of a supply chain. the model has only 4 stocks. as suggested the formulation for the initial value of "in transit = shipment*lead time" works. But there are other stocks that not sure how what could be the initial value formulation. specifically the stock "Local inventory". the rate out of this stock include a "min" function: Shipment= MIN( Local inventory, Shipment requirement). the rate in is: InTansit/Transit leadtime.
so analytically I need to solve this formulation for local inventory: MIN( Local inventory, Shipment requirement)=InTansit/Transit leadtime
would you please help for this?
Model is attached to this post.
regards,
I simplified my model to only one layer of a supply chain. the model has only 4 stocks. as suggested the formulation for the initial value of "in transit = shipment*lead time" works. But there are other stocks that not sure how what could be the initial value formulation. specifically the stock "Local inventory". the rate out of this stock include a "min" function: Shipment= MIN( Local inventory, Shipment requirement). the rate in is: InTansit/Transit leadtime.
so analytically I need to solve this formulation for local inventory: MIN( Local inventory, Shipment requirement)=InTansit/Transit leadtime
would you please help for this?
Model is attached to this post.
regards,
- Attachments
-
- SC Model simplified.mdl
- (8.43 KiB) Downloaded 195 times
Re: problem in initializing my model in equilibrium “Simultaneous initial value equation involving…”
Generally the thing to do in nonlinear cases like this is to assume that the inventory constraint is nonbinding, i.e. shipment = shipment requirement.
/*
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
*/
Re: problem in initializing my model in equilibrium “Simultaneous initial value equation involving…”
Notice also that MIN( Local inventory, Shipment requirement) is dimensionally inconsistent - MIN( widgets, widgets/time ) is not valid. I'd encourage you to define units for the whole model before you get much further.
/*
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
*/