How can I find maximum of a function in MATLAB?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gollapinni Karthik
le 5 Mai 2015
Commenté : Gollapinni Karthik
le 7 Mai 2015
How can I find the maximum value of a function in MATLAB? And that function has some subject to constrain criteria also.
0 commentaires
Réponse acceptée
Titus Edelhofer
le 5 Mai 2015
Hi Gollapinni,
usually by finding the minimum of "-f". How to do this depends on your function. Good starting point is fminsearch, or, if you have constraints, fmincon from Optimization Toolbox.
Titus
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing 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!