how to write a code for fitness function(i don't have the exact fitness function but have the training data)?
Afficher commentaires plus anciens
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 commentaires
Greg Heath
le 9 Juin 2015
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
le 9 Juin 2015
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
le 12 Juin 2015
Réponse acceptée
Plus de réponses (1)
milad moradpour
le 16 Juin 2015
Modifié(e) : Greg Heath
le 26 Sep 2016
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
1 commentaire
sethu
le 16 Juin 2015
Catégories
En savoir plus sur Genetic Algorithm dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!