How to get fminsearch values for 3 parameters

1 view (last 30 days)
I want to get the values of 3 parameters usring fminsearch
for count = 1 : 25 %loop to generate 25 trials
% For Fminsearch
initguess=[1,2]+rand(1,2);
options=optimset('MaxIter',2000,'MaxFunEvals',2000);
[c(count,:),fmin(count,:)]=fminsearch(OFVL,initguess,options);
end

Accepted Answer

Walter Roberson
Walter Roberson on 26 Apr 2021
Widen your initguess to be a vector of length 3 instead of a vector of length 2.
  4 Comments
Josiah Jarenee Comia
Josiah Jarenee Comia on 26 Apr 2021
I understand it more clearly now. Thank you sir!

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Design Optimization 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!