-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sl/dependent machines #100
Sl/dependent machines #100
Conversation
|
…ebraicDynamics.jl into sl/dependent_machines
Update, trying out the example again after merging the latest (today) updates to the
So the issue is here in dwd_dynam: AlgebraicDynamics.jl/src/dwd_dynam.jl Lines 590 to 592 in 13d5935
AlgebraicDynamics.jl/src/dwd_dynam.jl Lines 261 to 262 in 13d5935
Somehow the wrong args are getting passed to the readout function, such that the time is getting sent into the spot where parameters should be passed. |
I think the problem comes from the fact that you are composing and In the meantime a quick solution would be to write the mosquito and host models as instantaneous machines with trivial input/output dependency. For example, instead of
try
Another good addition to PR #99 would be to have a method which turns |
Lastest commit on PR #99 adds a constructor for
|
…ebraicDynamics.jl into sl/dependent_machines
@slibkind I'm adding a simplest possible example of the RM ODE model with an
InstantaneousContinuousMachine
; the composed dynamical system should be the exact same as the existing ODE model there. Theoapply
is running into some problems when composing however, if you have a minute can you help me take a look? The composition pattern is ok so it must be an error in how I'm setting up theInstantaneousContinuousMachine
.The dyn sys should be:
EIR = maZ
\kappa = c*X
\dot{Z} = a*\kappa*(e^{-gn} - Z) - gZ
\dot{X} = bEIR(1-X) - rX