How to print the maximum value of a stock?

Use this forum to post Vensim related questions.
Post Reply
mammar
Junior Member
Posts: 3
Joined: Tue Sep 08, 2015 4:01 am
Vensim version: DSS

How to print the maximum value of a stock?

Post by mammar »

Hi there,

I would like to print the maximum value of the stock during a simulation to be used later on to calculate another variable. Any idea how to do that?

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

Re: How to print the maximum value of a stock?

Post by Administrator »

SAMPLE IF TRUE can be used to store the maximum value of a stock during simulation.

Alternatively use the stats tool.
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
Post Reply