Hi, i have a function which is function of a unknown constant ''á''. For each a there is a corresponding curve..i want to search that function curve for a set of ''a'' values which should have maximum peak value...

조회 수: 2 (최근 30일)
Hi, i have a curvature function which is function of a unknown constant ''k''. For each k value, there is a corresponding curve..i want to search k, such that the corresponding function reaches it's maximum bound.
Is there any matlab optimization command to search for k value?
Thank you ...
  댓글 수: 2
J. Alex Lee
J. Alex Lee 2020년 1월 5일
Do you already know what the max value of the curve is as a function of k? E.g., is the curve analytical and invertible? If so, pose the problem as a optimization in k of that max value. If not you have 2 numerical tasks, one of identifying the peak value for every k, then searching on k. For the 2nd problem I think fminsearch would work well.

댓글을 달려면 로그인하십시오.

채택된 답변

John D'Errico
John D'Errico 2020년 1월 5일
This is just a 2-dimensional optimization. fminsearch will suffice.
You have some known function, a function of r, as well as the parameter k. For any value of k, f(r,k) will attain its maximum at some value of r. You want to find the value of k at which f(r,k) attains the maximum possible value.
Just use fminsearch. Allow it to vary both r and k, until it finds the value that maximizes f(r,k). If you have the optimization toolbox, you could use fminunc, or fmincon. But for two parameters, fminsearch should suffice.
  댓글 수: 1
tammineni ravi
tammineni ravi 2020년 1월 5일
Thank you , f(r,k) should attain maximum value and mean while it should be with in bounds, in this case curvature should with in 0.1 1\m.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by