Skip to content

Can mrgsim_q() have an option to change maxsteps? #1083

Answered by kylebaron
annabel-meade asked this question in Q&A
Discussion options

You must be logged in to vote

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-settings

The difference here with mrgsim() and mrgsim_q() is that mrgsim() has a ... argument so you can pass arguments through ... to update() as a part of the call to mrgsim(); it's old functionality and probably a little confusing but we keep it for convenience.

So if you're writing this mrgsim() code:

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 qu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@annabel-meade
Comment options

Answer selected by annabel-meade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants