Skip to content
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

feature request: make remake take partial parameter maps #1810

Closed
TS-CUBED opened this issue Sep 5, 2022 · 1 comment
Closed

feature request: make remake take partial parameter maps #1810

TS-CUBED opened this issue Sep 5, 2022 · 1 comment

Comments

@TS-CUBED
Copy link

TS-CUBED commented Sep 5, 2022

It would be great if on a model with, let's say, 100s of parameters one could simply change a single parameter without having to create the whole parameter map.

Something like:

remake(prob, p=[p8 => 12])

would change the parameter named p8 and keep all the other parameters the same.

My models come from MTK, acausal modelling, so the parameters are not always in the same order (or the order I define them in), but I also leave many at the component defaults. So I do not really need a full parameter map of all the few hundred parameters, if I only want to optimise for 10 of them.

At the moment I need to create the full parameter map, then use varmap_to_vars() to create the full parameter vector and then remake() to change the parameters in the ODEProblem.

Discussion about this in Discourse: https://discourse.julialang.org/t/is-there-a-way-to-change-a-single-parameter-in-am-odeproblem-and-rerun-it/86775

@ChrisRackauckas ChrisRackauckas transferred this issue from SciML/DifferentialEquations.jl Sep 6, 2022
@ChrisRackauckas
Copy link
Member

It does now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants