Can global optimization toolbox-GA 'ga'function optimization many values at the same time?

Thank you for spending your time in my problem.Thank you very much!
I use 'ga'function belong to global optimization toolbox.
my syntax is:x = ga(fun,nvars,A,b,Aeq,beq,lb,ub,nonlcon,intcon,options)
my function's answer is a 1*200 values,I want all 200 values close to 100.So I decide to use genetic algorithm.But it told me that "Your fitness function must return a scalar value."
Can ga function optimization many values at the same time?If can,which function should I use?
It seems that the function I use can only optimization one value.

回答 (1 件)

George Papazafeiropoulos
George Papazafeiropoulos 2022 年 9 月 26 日
Please check the gamultiobj function

1 件のコメント

成昀 张
成昀 张 2022 年 9 月 27 日
Thanks!I will try this function.I never heard it before.

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

カテゴリ

製品

リリース

R2022a

質問済み:

2022 年 9 月 26 日

コメント済み:

2022 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by