What should be the optimization method for my case?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Orcan Maktal
el 27 de Abr. de 2021
Comentada: Orcan Maktal
el 11 de Mayo de 2021
I have an optimization problem which I minimize rms of velocity output of ODE function. When optimization runs, in each iteration first-order optimality goes high and low and repeats. I have inequality constraints, 5 for positions and, 5 for velocities. What method should it be to solve my problem?
Note: The lowest value for rms of velocity is 0 but it means there is no movement at all but I consider it in my constraints.
Thank you for help.
0 comentarios
Respuesta aceptada
Alan Weiss
el 29 de Abr. de 2021
For such a general question I can give only general advice. See the topics Optimizing a Simulation or Ordinary Differential Equation and, perhaps (though it might not be applicable), Fit ODE, Problem-Based and Fit an Ordinary Differential Equation (ODE) and Optimize an ODE in Parallel (uses Global Optimization Toolbox, but you can use fmincon as well).
I hope this helps in some way,
Alan Weiss
MATLAB mathematical toolbox documentation
5 comentarios
Alan Weiss
el 11 de Mayo de 2021
Just one more thought. Perhaps you should not be using a fixed-step ODE solver. You can always get the solution at any times you like by using deval. Perhaps the solution process would be more reliable using a variable-step solver, possibly even one designed for stiff equations such as ode15s.
But maybe you know all this already. Sorry for wasting your time if so.
Alan Weiss
MATLAB mathematical toolbox documentation
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!