Finding a fitness function for genetic algorithm

I have a problem with genetic algorithm GUI toolbox.
Now my problem is how I want to create the fitness function? Are there any tutorials regarding this problem?

1 Comment

Multi-objective Optimization with Genetic Algorithm - A MATLAB Tutorial for Beginners : https://www.youtube.com/watch?v=IV5Pr2E2cK4&spfreload=1#t=41.178291

Sign in to comment.

Answers (3)

Jan
Jan on 3 Mar 2011
Edited: John Kelly on 26 Feb 2015
Computing Objective Functions explains how to write this file:
BTW: You could ask Google for "Matlab generic fitness function" also.
HI,
I have a problem in writing the fitness function. Please help.
i need matlab code of genetic algorithm for roi extraction...

3 Comments

It is not possible to write code for that purpose. I like to give the example of the cosmic microwave background radiation, which was thought to be pure noise to always be gotten rid of, but then someone realized it held some important information and now the exact same images where the microwave signal was eliminated as "background" leaving everything else as foreground, had to be reexamined blocking out the previous foreground and looking at what was considered background before.
Since the same data might be either foreground or background depending on what you are studying, it is not possible to write an automated routine to extract ROI because such a routine cannot know what the user's intention is.
Therefore the best you can do is write code to extract ROI for some particular purpose. And since we do not know your purpose or the properties of the images you are examining we cannot provide the code.
@renu gowtham: Please do not attach a new question in the sections for answers. Open a new thread instead and provide any details. It is simply impossible to post a matching code for such a general statement as yours.

Sign in to comment.

Asked:

on 3 Mar 2011

Commented:

on 1 Feb 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!