How to make/create a fitness/objective function for GA problem
Ältere Kommentare anzeigen
hello,
how do we define , or how do we make a fitness/objective function that match with our problem in GA? Are there any specific rules?
there are many fitness/objective function such as rastrigin function, ackley, griewank etc. But what if we want to use our own function? How do we create it? Based on what?
Akzeptierte Antwort
Weitere Antworten (1)
Shashank Prasanna
am 5 Apr. 2013
0 Stimmen
I would start with the documentation to see how to write your own objective/fitness function in MATLAB. This is however a step that comes after you already have your fitness function on paper or know what it is.
There are some examples on how to MATLAB them in MATLAB:
Also scroll down to see some example on how these fitness functions were created:
That being said, you will have to come up with you specific fitness function, and GA can help find the parameters that minimize it.
Kategorien
Mehr zu Direct Search finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!