遗传算法默认的是求最大值么?。

 Akzeptierte Antwort

widari
widari am 24 Nov. 2022

0 Stimmen

Matlab工具箱函数 ga 是求最小值,所有优化工具箱函数都是求最小值,你如果要求最大值,把目标函数取负,然后求得最小值实际上就是原始目标函数的最大值了。这也是为什么matlab里所有优化工具箱函数都是求最小值了

Weitere Antworten (0)

Tags

Gefragt:

am 24 Nov. 2022

Beantwortet:

am 24 Nov. 2022

Community Treasure Hunt

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

Start Hunting!