Move values between levels

Use this forum to post Vensim related questions.
Post Reply
slanefic
Junior Member
Posts: 12
Joined: Sun Mar 20, 2005 2:07 pm

Move values between levels

Post by slanefic »

How can I move values between levels?
I have two level variables and I want to move X units from level A to level B, only when level A > 10000;also I want to move Y units from level B to level A, only when level A < 0.

How can I do it?Where do I have to write the ecuations, in the levels or in the rate?

Thank you very much
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Moving values between level

Post by LAUJJL »

Anyway is good as long it works and the better is the simplest.
There may be a simpler way, but I have not enough time to find it.

Joined a simple model.
To test it you must initialize A to -1000, run the model and verify the results and then intialize A to 11000 run the model and check the results.
Regards.
J.J. Laublé
Attachments
level.mdl
(2.36 KiB) Downloaded 337 times
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Moving values between levels

Post by LAUJJL »

Simpler model joined.
J.J. Laublé
Attachments
level2.mdl
(2.12 KiB) Downloaded 325 times
slanefic
Junior Member
Posts: 12
Joined: Sun Mar 20, 2005 2:07 pm

Problems with model

Post by slanefic »

In my model, X and Y aren´t variables. X is the diference between A - 10000 (when level A > 10000) and Y is Abs(A) (when A < 0).

How would be the model without X and Y ??
Thank you very much
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

moving values ...

Post by LAUJJL »

Still simpler and more elegant.
J.J.L.
Attachments
level3.mdl
(2.06 KiB) Downloaded 317 times
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

moving values

Post by LAUJJL »

new model joined.
J.J.L.
Attachments
level4.mdl
(2.45 KiB) Downloaded 326 times
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

moving values ...

Post by LAUJJL »

There was a bug in the last model level4 that I did not take the time to test.
Here is a new one that works.
J.J.L.
Attachments
level5.mdl
(1.96 KiB) Downloaded 326 times
slanefic
Junior Member
Posts: 12
Joined: Sun Mar 20, 2005 2:07 pm

a little part of myymodel, help!

Post by slanefic »

I send you a little part of my model, when I have to move values between levels.

I don´t know how I can move values between levels.

"BancoPastor" is the level A and "Activos financieros" is the level B

Thank you very much

[Edited on 3-28-2005 by slanefic]
Attachments
prueba3.mdl
(2.36 KiB) Downloaded 309 times
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

moving values ...

Post by LAUJJL »

at this stage I do not see what I can do to help you.

You have just to modify your model to implement my level5.mdl that Ï joined before.

I think that you need to study the Vensim user guide, chapter by chapter and eventually the modelling guide too.
Nobody can build the model for you, especially if you have not the minimum of basic knowledge!

Regards.
J.J. Laublé
slanefic
Junior Member
Posts: 12
Joined: Sun Mar 20, 2005 2:07 pm

moving values

Post by slanefic »

I have read the guides, but in your model , you only have a start rate in the levels.

In my model there is other rate in every level.

I think that it is possible because I have seen some simillar models.

Thank you very much
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Is the attached model the kind of thing you want to do?

I do agree with J.J.L, it would be a good idea to spend a bit of time going over the tutorials, this is exactly the kind of thing that is usually covered (it covers a basic savings/income model which is what I think you are trying to do). Try looking at the PLE tutorial, it is available at

http://www.public.asu.edu/~kirkwood/sysdyn/VenPLE.pdf

Tony.
Attachments
demo.mdl
(2.93 KiB) Downloaded 322 times
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

moving values

Post by LAUJJL »

Here is joined the model that moves values plus inflows and outflows to and from the levels, that can be replaced ty anything else.

J.J. Laublé
Attachments
level6.mdl
(3.11 KiB) Downloaded 311 times
slanefic
Junior Member
Posts: 12
Joined: Sun Mar 20, 2005 2:07 pm

moving values

Post by slanefic »

Thanks, I was looking for that model, I´m sorry if I´ve explained bad.
Post Reply