Genetic Algorithms: Choosing a Fitness Function

AI Thread Summary
A good fitness function for evaluating animal characteristics in genetic algorithms can be based on whether the trait benefits from increased size or has an optimal range. For traits like bird beak length, a linear function can be used if longer beaks are always advantageous, while a quadratic function is suitable if there is a threshold beyond which the trait becomes detrimental. The choice of fitness function should align with the specific characteristics of the organism being modeled, as well as the goals of the project. Literature can provide insights into existing models and functions that have been used in similar contexts. Ultimately, the fitness function should be reasonable and relevant to the organism's survival and adaptation.
ashmai
Messages
2
Reaction score
0
Does anyone know of a good fitness function for evaluating an animal characteristic in genetic algorithms?
I'm doing a project. The prompt is: Select some features of an actual organism and design a genetic algorithm together with a reasonable fitness landscape to evolve the organism in time.
I'm using the Matlab genetic algorithms toolbox, but can't think of a good organism characteristic that has an interesting fitness function. I can do anything, like bird beak length, elephant ear radius, etc... I just need a good way to evaluate how the possible genotypes will survive - thus, I need a good fitness function! Maybe from literature?
 
Mathematics news on Phys.org
There are two possibilities:

1) The characteristic you picked is always better to have more of. FOr example, you might argue the longer the bird beak the better, and that's that. Then a fitness function like f(length)=length or f(length) = 1-1/(length) would work

2) It can be bad for it to be too big. For example if the beak's length is too long maybe the bird can't fly around anymore. So the fitness function is a quadratic function fitness = length*(10-length).

Obviously I can't be sure without knowing what the rest of your project says but when they say 'reasonable function' it sounds more like they just want you to pick a function that sounds pretty good rather than actually calculating one from empirical data
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top