Change fmincon from local to global search

1 Ansicht (letzte 30 Tage)
Benjamin
Benjamin am 11 Mär. 2021
Kommentiert: Benjamin am 11 Mär. 2021
Hello
Dear all experts,
I have a code that uses fmincon to minimize a parameter (i.e. alpha), however, the program does not try different values for alpha, and show the initial adopted value as the output. I read in another topic that finding a global search, rather than a local minimum search could solve this problem. But I don't know how to change the fmincon to search for the global answers. I also used the approach here, but it doesn't work. I attached my code files, and I really appreciate it if you help me.
Thanks
  2 Kommentare
Jan
Jan am 11 Mär. 2021
fmioncon is a local optimizer. You cannot convert it to a global one, because this is a completely different approach. you cannot change your bike to act like a typing machine also.
I also used the approach here, but it doesn't work.
Then please post your code and explain, what "does not work" mean. We cannot guess this important detail. Using a global optimizer is the correct way, so lets solve the occurring problems.
Benjamin
Benjamin am 11 Mär. 2021
Thanks @Jan for your clarification.
Regards.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Benjamin
Benjamin am 11 Mär. 2021
I changed the code to implement lsqcurvefit instead of fmincon and I was able to fix the problem. That means in my problem I did not need to search for a global search. Here I put the modified files just in case someone got into the same problem as me, and hopefully that helps.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by