How to write fitness function in matlab.
3 次查看(过去 30 天)
显示 更早的评论
2 个评论
回答(1 个)
Zhangxi Feng
2019-7-1
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 个评论
Zhangxi Feng
2019-7-2
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.
另请参阅
类别
在 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!