Filter löschen
Filter löschen

I need help to modify my optimization code

1 Ansicht (letzte 30 Tage)
S AsZ
S AsZ am 10 Okt. 2019
Kommentiert: Star Strider am 11 Okt. 2019
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:

Akzeptierte Antwort

Star Strider
Star Strider am 10 Okt. 2019
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 Kommentare
S AsZ
S AsZ am 11 Okt. 2019
Thanks
Star Strider
Star Strider am 11 Okt. 2019
As always, my pleasure.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by