how to write a code for fitness function(i don't have the exact fitness function but have the training data)?
1 次查看(过去 30 天)
显示 更早的评论
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.
采纳的回答
Greg Heath
2015-6-13
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
2 个评论
Radek
2015-6-15
Weights plus Biases plus Transfer function =outputs for GA. In you case for MO. You found mathematically form this
更多回答(1 个)
milad moradpour
2015-6-16
编辑:Greg Heath
2016-9-26
Dear sethu,
I have a similar problem. I am able to
run an external simulator to obtain
corresponding outputs for the certain
inputs. Or I could avoid dynamic
cosimulation with the external
simulator, run a parametric analysis
with the simulator, and finally use a
set of inputs-outputs data to find a
mapping function. But, for each case,
the question still is that how could I
define the objective function in a
genetic algorithm code. Did you succeed
to solve the problem?
Regards, Milad
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!