What should be the optimization method for my case?

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

Alan Weiss
Alan Weiss il 29 Apr 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 Commenti
Alan Weiss
Alan Weiss il 11 Mag 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
Orcan Maktal
Orcan Maktal il 11 Mag 2021
I will try what you offer. I appreciate how fast you reply and bring ideas kind sir. Thank you, have a nice day.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by