I am afraid that, when I got that kind of error while using my MOEA's with outputs from simulink, I followed the indications and I started to use Level 2-S functions. With the provided MatLab template is more or less easy re-write the code. Sorry I can not be of more help!
i am getting an answer shown below while running MODEparam.m file. can anyone solve this
??? Error using ==> CostFunction> myfile at 74
The specified M-File 'myfile' in myfile/S-Function' is not a valid Level
1 S-Function. The number of input and/or output arguments is not valid. A likely cause for
this error is that the name of a level-2 M-file S-function has been specified in this block
(which supports only level-1 M-file S-functions). Use the 'Level-2 M-file S-Function' block
from the Simulink library.
Error in ==> CostFunction at 33
Error in ==> MODE at 73
JxParent = mop(Parent,MODEDat);
Error in ==> MODEparam at 85
OUT=MODE(MODEDat); % Run the algorithm.