Hi
I want to solve an ODE with parameters calculated in another function.
For example, I have the following ODE:
dy/dx = -5*y + f
where f is obtained in another function with a very complicated procedure.
f has its value in each time step.
For example, f is the control force obtained using a PID controller.
I want to see the trajectory to check if the control force works well.
Then, how can I export this f into the ode solver?
I would really appreciate if anyone can help me out.
Thank you.