GODLIKE how to write objective function with multiple function values

I have to make a multi-objective optimization . I have a function called statement, my_obj , where there are 2 decision variables and 3 objective functions . Now I call this function by another m-file :
[ s0 , FVAL ] = GODLIKE ( @my_obj , PS , lb , ub , ' ASA ' , options) ;
but I always get this error :
??? Error using == > cellfun
Non - scalar in Uniform output , at index 1 , output 1 .
Set ' UniformOutput ' to false .
How should I give the 3 objective functions to algorithm GODLIKE ? In this moment I in the function statement, my_obj I have had write:
of1 = 1 -E ;
of2 = C ;
of3 = D ;
where E , C , D are dependent on the 2 decision variables.
Who can help me? thanks

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 18일

0 개 추천

Your objective function my_obj needs to return a scalar. For multiple objectives, pass in a cell array of function handles each of which calculates one objective.

카테고리

도움말 센터File Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기

질문:

2015년 6월 17일

답변:

2015년 6월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by