fminsearch does not minimize my function

2 ビュー (過去 30 日間)
Saad
Saad 2011 年 8 月 4 日
回答済み: John D'Errico 2023 年 2 月 9 日
Dear all,
I am using fminsearch to minimize a function with 7 parameters..the function is very long. Fminsearch doesnt converge, each time it iterates the value of the function doesnt change (it doesnt minimize). Any ideas where the problem is?
Thanks a lot
Saad

採用された回答

John D'Errico
John D'Errico 2023 年 2 月 9 日
Probable user error. Various possibilities exist, the most common are:
  1. Your function is improperly coded, so it does not do what you think it does. Yeah, like nobody ever does that.
  2. Your function is not smooth, and is possibly locally constant. Too often we see cases where something was done to make the objective function discrete in some way. Perhaps internal rounding is done somehow.
  3. Your starting values are such that the start point is in a region where the function is numically constant, to within the tolerances provided.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by