Hi dear friends
I want to have a outflow(outflow_2) from stock which should be ordered with another outflow(outflow_1).it means that the size of outflow_2 should be calculated remnant amount of stock after outflow_1 reduced the stock from.
formulation would be like this :
Note that this will only work with Euler/Diff integration techniques - generally it is much better practice to use formulations based only on the stock and choose TIME STEP small relative to those flow rates as in
outflow 2 = MIN(target outflow,stock/min stock processing time 2)
Hi
I tried to use your recommendations but when i introduced Time Step parameter i faced with an error message saying that there is a parameter with this name.
so now what should I do?
how can i use time step? and another question:
As i know this time step depends on simulation time step of modeling but i don't know if i have to change this parameter manually in model or not, if I want to change time step in any running time?
Originally posted by Administrator
Use the shadow tool to add TIME STEP to a model view. Or just type it in the equation, Vensim will add it to the sketch automatically.
i did it but it again showed an error message. I should introduce this variable to the model but when i want to use it as a auxiliary variable, an error message "the variable TIME STEP already exists" appears or when I write it directly in an equation, another message " unexpected variable" emerges.
if it is possible for yo, please give me a simple sample of your proposed model.
The Ball.mdl model shows how to write auxiliary equations for Time Step.
If you are using Vensim PLE you will need to Add TIME STEP (which is a built in variable) to the sketch using the Shadow Variable tool (keyboard then creating an arrow from that to your equation.