Can mrgsim_q() have an option to change maxsteps? #1083
-
I am trying to optimize parameters, so I would like to use the faster mrgsim_q() over mrgsim(). However, my model spits an error if I do not increase the maxsteps from 20,000 to 500,000. Is there a way to change maxsteps in mrgsim_q(), or am I misunderstanding the purpose of this function? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @annabel-meade - The different solver settings are stored in the model object. You can change them through the The difference here with So if you're writing this mod %>% mrgsim(maxsteps = 500000) just change it to this: mod <- update(mod, maxsteps = 500000)
mod %>% mrgsim_q()
Hope this helps; please let me know if I've misunderstood your question. Kyle |
Beta Was this translation helpful? Give feedback.
Hi @annabel-meade -
The different solver settings are stored in the model object. You can change them through the
update()
method. See the example here: https://mrgsolve.org/user-guide/components.html#solver-settingsThe difference here with
mrgsim()
andmrgsim_q()
is thatmrgsim()
has a...
argument so you can pass arguments through...
toupdate()
as a part of the call tomrgsim()
; it's old functionality and probably a little confusing but we keep it for convenience.So if you're writing this
mrgsim()
code:just change it to this:
Hope this helps; please let me know if I've misunderstood your qu…