ERRORs in gamultiobj when solving a simulink problem

Hello! This is a new starter to matlab and gamultiobj. My main program is a simulink model. I get 5 input variables and my targeted function has 2 outputs. I added a set of lower and upper bounds on the design variables (lb,ub) and run the code. At first, the simulink code picked the variables whithin bounds, but after that it picked a set of strange numbers which have nothing to do with my lb and ub, the simulink model cannot solve such inputs and returned an ERROR.
What makes me more confused is that when I switched from gamultiobj to ga with the same lb and ub (I deleted 1 ouput of my targeted function in this time), the code operated scuccessfully with no ERROR sent back. This seems to prove that my simulink model is ok to use.
I guessed I made mistake in some fundamental options for gamultiobj, but I still cant figure it out.
My code for gamultiobj is here:
FitnessFunction = @system_operation_new;
numberOfVariables = 5;
lb=[900;0.65;1.3;400;200000];%400 200000
ub=[1100;0.85;1.5;900;700000];%900 700000
options = optimoptions(@gamultiobj,'PlotFcn',@gaplotpareto,'paretoFraction',0.7,'UseParallel', true,'UseVectorized',true,'populationsize',50,'generations',100);
[n,fval,exitflag,output,population,scores] = gamultiobj(FitnessFunction,numberOfVariables,[],[],[],[],lb,ub,options);
And here are the strange inputs I get where an ERROR is sent back, appearantly these are not within the bounds that I wanted

댓글 수: 1

can you upload your code for multiobjective fitness function as well?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

태그

질문:

2019년 12월 30일

댓글:

2019년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by