フィルターのクリア

Query: If global search found no solution

5 ビュー (過去 30 日間)
Daniela Würmseer
Daniela Würmseer 2022 年 4 月 16 日
編集済み: Matt J 2022 年 4 月 16 日
Hello,
is there a way to do a query, if the global Search Alg (or MultiStart Alg) was not able to find a solution?
I have an Algorithm and i use Global Search, and sometimes i get the message:
0 local solver runs converged with a positive local solver exit flag.
But global Search still gives a solution back but i do not want to "add" the point (to my further Alg) if this happens.
Same question for fmincon. I get the message:
Converged to an infeasible point.
And i would like to not "add" the point (to my further Alg) if fmincon converged to an infeasible point.
So i want to do something like
if (fmincon converged to an infeasible point)
....
end

採用された回答

Matt J
Matt J 2022 年 4 月 16 日
編集済み: Matt J 2022 年 4 月 16 日
run the global search with additional diagnostic outputs to see if a valid solution was found,
[x,fval,exitflag,output,solutions] = run(gs,problem)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGlobal or Multiple Starting Point Search についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by