フィルターのクリア

I need help to modify my optimization code

1 回表示 (過去 30 日間)
S AsZ
S AsZ 2019 年 10 月 10 日
コメント済み: Star Strider 2019 年 10 月 11 日
Hi
I have an optimization model but I think this code is incorrect because the results show that objective function remains constant during running model and I have no improvement in objective function value.
I don't sure that my code be correct.
Can anyone help me to correct the mistakes in this code?
My model and its code are as follows:

採用された回答

Star Strider
Star Strider 2019 年 10 月 10 日
Note that in the ‘% Parameters’ section, you are creating new random numbers in every call to ‘objective_function’.
The optimisation routine you are using (that if I remember correctly is the ga function) is chasing a moving target! It is not possible to optimise a function that is constantly changing.
  2 件のコメント
S AsZ
S AsZ 2019 年 10 月 11 日
Thanks
Star Strider
Star Strider 2019 年 10 月 11 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by