how to write a code for fitness function(i don't have the exact fitness function but have the training data)?
이전 댓글 표시
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.
댓글 수: 4
Greg Heath
2015년 6월 9일
What you are asking doesn't make sense. What exactly do you mean when you say that you want to use the genetic algorithm on a trained network to optimize output parameters.
What output parameters? What are you trying to minimize or maximize?
Walter Roberson
2015년 6월 9일
If I understand correctly, your genetic algorithm will take three parameters, and will pass the three parameters into a NN prediction routine that has been trained on the training data, with the NN prediction routine predicting two outputs, and the genetic algorithm will then use those two outputs to compute a fitness value? So the overall task of the genetic algorithm stage will be to find the three inputs that predict two values that when passed into the fitness function have the smallest result?
sethu
2015년 6월 12일
채택된 답변
추가 답변 (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
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!