0
votes
0answers
21 views

Pass model parameters to NDSolve'Reinitialize

I am wondering if there is a way to pass parameter values during the NDSolve'Reinitialize step of the NDSolve process? I've read that one way to possibly speed up repeated calls to NDSolve is to ...
0
votes
0answers
86 views

How to solve a ParametricNDSolve issue when the system seems to be stiff?

I have a problem with ParametricNDSolve[]. Mathematica gives the warning that a stiff system is suspected. I have varied the methods but unfortunately I was not ...
0
votes
0answers
78 views

Parameter sensitivities of ParametricNDSolveValue involving numerical function

This is a followup of my former question from here. Consider the code ...
1
vote
1answer
151 views

Using ParametricNDSolveValue with initial conditions of another ParametricNDSolveValue

I have a system of parameter-dependent ODEs, which I can solve using ParametricNDSolveValue. Now, I have another ODE, which has as initial condition the solution of ...
2
votes
1answer
425 views

Nonlinear least squares

I have a typical nonlinear least square problem and it seems very similar to the example provided in the section on parameter fitting at the Wolfram website. Unfortunately I always get some error ...
2
votes
1answer
235 views

Limitations of ParametricNDSolve family w.r.t objective functions

Observation: I can see even for very simple modification in case of an scalar objective involving an definite integral in time ParametricNDSolve fails. Here is an ...
2
votes
1answer
190 views

How to integrate ParametricNDSolve solution with respect to a parameter?

I have just upgraded to the new version of Mathematica because of its new built-in ParametricNDSolve function. I need to solve a first-order non-linear ordinary ...
2
votes
4answers
274 views

Problem with WhenEvent

I am trying to add a time dependent fraction to a parameter in NDSolve, i.e. when 10 < t< 20, add ...