How can I find maximum of a function in MATLAB?
2 views (last 30 days)
Show older comments
Gollapinni Karthik
on 5 May 2015
Commented: Gollapinni Karthik
on 7 May 2015
How can I find the maximum value of a function in MATLAB? And that function has some subject to constrain criteria also.
0 Comments
Accepted Answer
Titus Edelhofer
on 5 May 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 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!