How to write fitness function in matlab.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
2 Kommentare
Antworten (1)
Zhangxi Feng
am 1 Jul. 2019
Please add some more information for your question so we can better help you.
A fittness function is just like any other function except it is expected to return a specific output that will be used by whatever function is calling the fittness function. Looks like you need to implement the function in the image you attached.
By the way, windows have a snipping tool that can easily capture screenshots without needing to use your camera.
Jesse
4 Kommentare
Zhangxi Feng
am 2 Jul. 2019
Although I have implemented a fittness function with genetic algorithm but I never used the GUI. I just straight up programmed it. I am not familiar with the GUI part of the GA or GAmultiobj. Nevertheless, you can first try to create a simple error function that returns anything and see the results for yourself as a start.
Siehe auch
Kategorien
Mehr zu Genetic Algorithm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!