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

 Respuesta aceptada

widari
widari el 24 de Nov. de 2022

0 votos

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

Más respuestas (0)

Etiquetas

Preguntada:

el 24 de Nov. de 2022

Respondida:

el 24 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!