how to model change between two time steps

Use this forum to discuss any issues relating to Systems Dynamics and Systems Thinking.
Post Reply
Omogbai
Junior Member
Posts: 7
Joined: Tue Jan 05, 2016 9:41 pm
Vensim version: PLE

how to model change between two time steps

Post by Omogbai »

Hello all,
What equation can be written for an auxiliary variable (A) that is the result of another variable (B) when the state changes from time Tx to time Tx+1, such that,
A at time Tx+1 = B at time Tx+1 minus B at time Tx
I am trying to model the change between the simulated data generated in two consecutive time steps.
Thanks
omo
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: how to model change between two time steps

Post by Administrator »

I don't understand "A at time Tx+1 = B at time Tx+1 minus B at time Tx".

But it looks like you need a simple IF THEN ELSE statement.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Omogbai
Junior Member
Posts: 7
Joined: Tue Jan 05, 2016 9:41 pm
Vensim version: PLE

Re: how to model change between two time steps

Post by Omogbai »

thanks for your response
assuming my units of time is in months. and i want to represent the change in a variable between month 1 and 2. This change needs to be used as an equation for another variable.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: how to model change between two time steps

Post by Administrator »

Sorry, I just don't understand what you are asking for help with.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
JdX33
Junior Member
Posts: 4
Joined: Thu May 12, 2016 4:08 pm
Vensim version: PLE

Re: how to model change between two time steps

Post by JdX33 »

Hello everyone,

I don't have the answer but I think I'm facing the same problem and I'll try to make it understandable.

I want to model the evolution of an auxiliary variable with the simulation time.
For example : I have one auxiliary variable "A" , a second auxiliary variable "B" and another auxiliary variable "C". Let's say C= A*TIME + B (basic y=ax+b equation) so the value of my auxiliary variable "C" will vary for each time step of the simulation (obviously the STEP function will not be useful in this case).

How to use the time as a variable such as presented in my example ?

Thank you in advance and sorry if my question seems stupid !

J.
LAUJJL
Senior Member
Posts: 1421
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Re: how to model change between two time steps

Post by LAUJJL »

Hi

In your equation C varies with the Time and not with each time step, that is generally constant.

The time is a variable that can be used in all équations.

I join a simple model that answers too the first question about how to calculate the change in a variable.

Regards.

JJ
Attachments
example.mdl
(2.19 KiB) Downloaded 299 times
Post Reply