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 Comment

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

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 30 Dec 2019

Commented:

on 30 Dec 2019

Community Treasure Hunt

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

Start Hunting!