How can I find maximum of a function in MATLAB?

조회 수: 2 (최근 30일)
Gollapinni Karthik
Gollapinni Karthik 2015년 5월 5일
댓글: Gollapinni Karthik 2015년 5월 7일
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
Gollapinni Karthik 2015년 5월 6일
Thanks a lot. It really helpful. Karthik
Gollapinni Karthik
Gollapinni Karthik 2015년 5월 7일
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에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by