Comments (7)
We should test what we get if we solve the system like them, i.e. with a simple Euler method with fixed step size of 5 years.
from worlddynamics.jl.
The solution returned by the Euler
solver is noisy.
The changes have been made under solvesystems.jl
in the following manner (corresponding to the first plot below) :
function solve(system::ODESystem, timespan; solver=Euler())
sys = structural_simplify(system)
prob = ODEProblem(sys, [], timespan)
sol = ModelingToolkit.solve(prob, solver, dt = 5)
return sol
end
Fixed step size of 5 :
Fixed step size of 50 :
from worlddynamics.jl.
Yes, @piluc and I also verified this independently.
Now @piluc and @paulobruno are looking into this.
from worlddynamics.jl.
There must be an error in the book, since our Figure agrees with the one of pyworld3.
from worlddynamics.jl.
To illustrate what @natema mentioned, here is the comparison of fig 7.38.
World3 | WorldDynamics.jl | PyWorld3 |
---|---|---|
from worlddynamics.jl.
Since the general agreement is that our code is now returning the correct plot, I'm closing this issue.
from worlddynamics.jl.
For future reference, the same mismatch is present in Figure 7.39 as well.
from worlddynamics.jl.
Related Issues (20)
- Implement figures of E4A (GL scenario) HOT 3
- Implement scenario and figures of E4A (TLTL scenario) HOT 1
- Fix documentation version
- Fix bug in interpolate function
- Missing World1, World3-91, and World3-03 figures documentation in webpage
- Improve some docstrings HOT 7
- Small improvement of function interpolate with single value HOT 1
- JuliaFormatter
- Add documentation link HOT 2
- Compatibility issues HOT 8
- DELAYN function HOT 1
- Inconsistency in variable initializations for Pop15
- Reorganization of scenarios
- Check missing and unnecessary `using` statements
- Improve documentation for `interpolate` function
- Remove unnecessary type restrictions
- Update default solver for each model to match Vensim's
- JOSS Review HOT 7
- Compatibility with ModelingToolkit 9 HOT 1
- The instruction in the README doesn't work (julia-1.10.5) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from worlddynamics.jl.