We go over the top in this episode.
Upgraded the Vensim model for capacity limits to growth;
Further upgraded the model to endogenize the capacities by introducing a market from which MooseCo and WolfCo can draw customers;
We then solved the model directly in R, repurposing our previous work and producing an interactive visualization using *ggplot2* and **plotly**; we happened to use an integration method called **euler**;
We learned how to read the Vensim model into R using the *readsdr* package and peer into its contents;
From there we managed to solve the model using the *deSolve* package and the `rk4`, 4th order Runge-Kutta approximate integration technique, which we also investigated a little bit;
Last and the penultimate goal of all of these exercises we generated data by rerunning the model each time taking a sample of prior unobserved data from the acquisition rates;
Let's not forget the 2 dimension scatter plot of generated data using the `geom_density_2d()` and `geom_quantile()` features from **ggplot2**.
Course site: systemdynamics...
23 окт 2024