MATLAB: How to write a code for fitness function(i don’t have the exact fitness function but have the training data)

genetic algorithmneural networkneural networks

i have training data with 3 input parameters and 2 output parameters, based on that I want to use neural network to train that data and use it as a fitness function in optimization of output parameters using genetic algorithm.

Best Answer

So far, the problem is ill-posed because " for which both the outputs y1 and y2 are maximum " doesn't make sense.
There is no guarantee that the maxima of y1 and y2, will occur for the same set of input values.
You have to define a single valued function, for example y1^2 + y2^2
Hope this helps.
*Thank you for formally accepting my answer*
Greg