Using different solvers in Optimization Problem

2 ビュー (過去 30 日間)
NN
NN 2022 年 10 月 24 日
コメント済み: NN 2022 年 11 月 8 日
Hi,
I am using problem based optimization problem and i am getting same optimized values for ga, patternsearch and particle swarm .but time taken is different.
Please advice what could be the mistake

採用された回答

Walter Roberson
Walter Roberson 2022 年 10 月 24 日
If you are getting exactly the same results, then there are a few possibilities:
  • you might have a mistake in your equation implementation that causes it to return the same values all of the time;
  • you might have a mistake in how you specify the solver, causing it to always be set the same;
  • you might have specified options such as integer constraints that are leading Problem Based Solver to override your solver request because the other solvers cannot handle the options / request
If you are getting the same results to within round-off error but not bit-for-bit identical:
  • you might be using a simple linear equation or quadratic equation; all of the functions should converge for those kinds of function
  • the result you are getting might be right at one of the constraint boundaries, so all of the solvers might end up at much the same solution
  12 件のコメント
NN
NN 2022 年 10 月 26 日
Ok, please check if you are free .
When i used patternsearch, i got a warning like below:
You have passed PATTERNSEARCH options to LINPROG. LINPROG will use the common options and ignore the PATTERNSEARCH options that do not apply.
To avoid this warning, convert the PATTERNSEARCH options using OPTIMOPTIONS.
NN
NN 2022 年 11 月 8 日
Hi,
Can you please chekc on the above problem and suggest a solution please

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by