How can I find maximum of a function in MATLAB?

4 次查看(过去 30 天)
How can I find the maximum value of a function in MATLAB? And that function has some subject to constrain criteria also.

采纳的回答

Titus Edelhofer
Titus Edelhofer 2015-5-5
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 个评论
Gollapinni Karthik
How do I set these kinds of Subject to k, m ϵ N s ϵ [0, 1] my maximum function? How to model it belong to Natural number in Matlab and belongs to only 0 and 1 in Matlab?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by