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

조회 수: 1 (최근 30일)
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

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by