Questions tagged [fitness-design]

For questions related to the design (or specification) of fitness functions in the context of evolutionary algorithms.

6 questions
8
votes
2 answers

How to create a good fitness function?

In genetic algorithms, a function called "fitness" (or "evaluation") function is used to determine the "fitness" of the chromosomes. Creating a good fitness function is one of the challenging tasks in genetic algorithms. How would you create a good…
6
votes
2 answers

Why does the fitness of my neural network to play tic-tac-toe keep oscillating?

I wrote a simple feed-forward neural network that plays tic-tac-toe: 9 neurons in input layers: 1 - my sign, -1 - opponent's sign, 0 - empty; 9 neurons in hidden layer: value calculated using ReLU; 9 neurons in output layer: value calculated using…
4
votes
1 answer

How to improve the performance of my model trained with NEAT for a drone to learn how to fly?

I am working on a project in which a drone needs to learn how to fly. I am using NEAT. For the first experiment, I want the drone to learn how to hover inside a $3 \times 3 \times 3$ meters box. My input is 6 sensors for each direction. The output…
3
votes
2 answers

How to design a fitness function for the 8-queens problem?

In evolutionary computation and, in particular, in the context of genetic algorithms, there is the concept of a fitness function. The better a state, the greater the value of the fitness function for that state. What would be a good fitness function…
3
votes
1 answer

How do I design a fitness function that weighs the importance of eating food?

Summary: I am teaching bots to pick food on a playing field. Some food is poisonous and some is good. Food Details: Poisonous food subtracts score points and good food adds. Food points vary based on its size. There is about 9:1 ratio of poisonous…
0
votes
1 answer

How to design a fitness function for a problem where there are 2 objectives?

I am told to express a fitness function for a question I have been presented. I am unsure how I would express the function. In words, what I have written down makes sense but turning this into a mathematical formula is proving a bit difficult. My…
user43972