When solving the global optimal solution with MATLAB fmincon function, is it to find several local optimal solutions and then compare them to choose the optimal solution?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jessie sun
le 15 Mar 2022
Commenté : jessie sun
le 15 Mar 2022
When solving the global optimal solution with MATLAB fmincon function, is it to find several local optimal solutions and then compare them to choose the optimal solution?
0 commentaires
Réponse acceptée
Walter Roberson
le 15 Mar 2022
fmincon() does not do that automatically. fmincon() stops at the first local minima it finds that satisfies the constraints -- but the process of determining whether it is a local minima involves probing other locations to see if it can find an improvement.
If you need to have several local minima compared automatically then you would use the Global Optimization Toolbox, probably using multistart() or similar.
3 commentaires
Walter Roberson
le 15 Mar 2022
Yes, that code would automatically generate multiple starting points and would compare the results to select the best of them.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!