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 views (last 30 days)
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 Comments
J. Alex Lee
J. Alex Lee on 5 Jan 2020
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.

Sign in to comment.

Accepted Answer

John D'Errico
John D'Errico on 5 Jan 2020
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 Comment
tammineni ravi
tammineni ravi on 5 Jan 2020
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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!