Showing maximum Slope

Use this forum to post Vensim related questions.
Post Reply
martin.michel
Junior Member
Posts: 5
Joined: Mon Apr 03, 2023 9:20 am
Vensim version: PLE

Showing maximum Slope

Post by martin.michel »

Hello everyone,
I am facing a small problem that I somehow can not solve alone.
With the help of the program I have mapped a recycling process in which two results are available. The mass of recycled material in kg and the CO2 lost in kg.
At the end, the CO2 produced should be divided by the recycled material displayed.
The background is that we have the amount of CO2 consumed by the new material.

This value represents the maximum slope, is there a function for this?
Or does anyone have another idea how to display this final value.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Showing maximum Slope

Post by Administrator »

I'm not sure I really understand what you are trying to get at.

Are you trying to calculate
max slope = CO2 produced / recycled material displayed

You don't need any special function for this. You might want to use ZIDZ to prevent any floating point errors.
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
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Showing maximum Slope

Post by tomfid »

You can use SAMPLE IF TRUE if you're trying to capture the maximum over time.
martin.michel
Junior Member
Posts: 5
Joined: Mon Apr 03, 2023 9:20 am
Vensim version: PLE

Re: Showing maximum Slope

Post by martin.michel »

Thanks for the hints, I think I have a thinking error in there.
Actually I need only the final value as output under "CO2 per kg".
I have attached the model here.
Attachments
LCA 3-Druck Materialfluss vereinfacht.mdl
(17.36 KiB) Downloaded 65 times
martin.michel
Junior Member
Posts: 5
Joined: Mon Apr 03, 2023 9:20 am
Vensim version: PLE

Re: Showing maximum Slope

Post by martin.michel »

When running the simulation, I get a n very high value for CO2/Kg at the beginning. I need only the final values for these variables to perform the operation.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Showing maximum Slope

Post by Administrator »

I'd suggest fixing the unit errors before you look at any results from the model.

To get the final values, display a table of the parameter you need, the values will be there.
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