You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why solver can't be made more generic? All it would really take is passing solver in as a function (along with a description of the form it should take). The existing ode/dde/dede if/else statements could be largely replaced by a little bit of wrapper code, such as:
if (is.character(solver)) {
if (solver == "ode") {
solver <- deSolve::ode(inits, times, sim, params,
verbose=verbose, method=method, ...)
} # ...and so on for the others.
}
In any case, because the method parameters passed along is the same as the default to ode, it can be dropped and passed along with ....
The text was updated successfully, but these errors were encountered:
The solver system is not open to extension in its current state:
Is there a reason why
solver
can't be made more generic? All it would really take is passingsolver
in as a function (along with a description of the form it should take). The existing ode/dde/dede if/else statements could be largely replaced by a little bit of wrapper code, such as:In any case, because the method parameters passed along is the same as the default to
ode
, it can be dropped and passed along with...
.The text was updated successfully, but these errors were encountered: