Skip to contents

remake(prob, u0 = , p = , tspan = ) returns a copy of prob with new initial values, parameters or time span. u0 and p may be variable maps (only the given entries change) or full values, which replace the old ones (any length; lists are allowed for p).

Usage

remake(
  prob,
  u0 = NULL,
  p = NULL,
  tspan = NULL,
  ...,
  check_initialization = TRUE
)

Arguments

prob

A problem.

u0, p, tspan

New values.

...

Further fields to replace, such as f (a plain function is wrapped with ODEFunction() for ODE problems). Names that are not fields of the problem are merged into its solver keywords prob$kwargs; kwargs = replaces those keywords.

check_initialization

Run the initialization of the new problem; with FALSE the values are taken as given.

Value

The new problem.