I am conducting simulations for Genetic Algorithm using optimtool('ga') of Matlab.
I would like to minimize the difference of two arrays so that I can fix the value
of a parameter which is the population.
The first array includes some measurement values when the second includes the theoretical values - the unknown values. Their difference is the objective function.
So I would like to minimize an array of differences. Is this possible to obtain?
I ask this because until now matlab brings me the following error:
Error using makeState (line 56)
Your fitness function must return a scalar value.
Do you have any idea? Thank you in advance.