Questions tagged [fitness]

A fitness functions judges how good a solution of a problem is.

A fitness function is used to determine how well a solution fits a given problem. It is used in s.

104 questions
1
vote
1 answer

Find the correct fitness function for optimization using Differential Evolution for budgeting problem

i am building a website for recommendation system using differential evolution. The website will ask the user's budget and some criteria and will return the optimal package. The data field look like this and i have 8 dimensions (tables). Id | Name…
1
vote
0 answers

How to get data from Mi band 2 and to parse a JSON?

Hi Is there any way to get steps and distance count from my Mi Band 2 and to parse a JSON hosted on 000 webhost? Or a 3rd party app to do so?
Suvin Nimnaka Sukka
  • 341
  • 1
  • 7
  • 21
1
vote
0 answers

genetic algorithm, implementation of generation of new population

I have this problem with the implementation of the generation of a new population. I have a population of matrices, I defined a fitness function and I need the value of fitness to be as low as possible. So I implemented the function to re-create the…
1
vote
2 answers

Genetic Algorithms: Can my Fitness Function be too complicated?

On a Genetic Algorithm, would it be correct to make the Fitness Function something other than a mathematical ecuation? Could it have a recursive function and a loop inside of it? The thing is I'm evaluating if I can work with Genetic Algorithms for…
Adocad
  • 731
  • 1
  • 11
  • 27
1
vote
1 answer

Java Simulated Annealing Acceptance Probability

I have a program implementing simulated annealing. I'm having a problem with the acceptance probability, probably due to my lack of understanding of why raising euler's number to the power of (energy - energy') is useful. The probability is always…
Dr Ken Reid
  • 577
  • 4
  • 22
1
vote
1 answer

Fitness function for Ball and beam

I have problem to be solved and any constructive help would be good. Anyway, I have to make genetic algorithm that creates neural network for solving problem Ball-and-Beam. Only fitness function that I imagine is to set some time (like 3 - 10…
MarkoPolo
  • 11
  • 1
1
vote
1 answer

Fitness Sharing in multi objective optimization

i'm writing a genetic algorithm that uses fitness sharing in tournament selection. in all the relevant literature that i found (Sareni for example) it is mentioned that the solution's own fitness (Fi) should be divided by the sum of its niche…
1
vote
0 answers

Aforge.Genetic, Fitness function

Please, help me with creation a fitness function for chromosome with type "DoubleArrayChromosome". My chromosome contains coefficients of polynomial. Would you give me some examples or advices how to write correct code for this type population. Now…
1
vote
2 answers

Evolutionary algorithm hitting a constant fitness value

Recently I decided to take on the challenge of evolutionary programming, and following the problem posted at Rosetta Code, which says that given a target string, mutate a randomly generated string until it matches the target. I've managed to do the…
Pedro
  • 333
  • 1
  • 5
  • 24
1
vote
1 answer

Optimization of Image Reconstruction Algorithm using Genetic Algorithm in Matlab

I'm trying to optimize an image reconstruction algorithm using genetic algorithm.I took initial population size as 10.I have an input image an 10 reconstructed image.fitness function is the difference between these two.That is fitness_1 = inputimage…
1
vote
1 answer

fitness in inverted pendulum

What is the fitness function used to solve an inverted pendulum ? I am evolving neural networks with genetic algorithm. And I don't know how to evaluate each individual. I tried minimize the angle of pendulum and maximize distance traveled at the…
user1931907
  • 41
  • 10
1
vote
1 answer

Multiobjective genetic algorithm fitness evaluation Matlab

I want to write two objective functions based on NSGA2 genetic algorithm in Matlab, However, i'm confusing to input chromosomes to evaluate my objectives, and in my objective function, the chromosomes are unused, I don't know how to evaluate…
1
vote
1 answer

*Passing a Method into a Class

I'm coding a small class that maximizes a given function F and returns the coordinates. For example in maximizing the 1-dimensional fitness function below I currently have: using System; public static class Program { public static double…
Victor
  • 13
  • 2
1
vote
1 answer

Genetic algorithms: fitness function not working properly

I have a binary dataset of (m x n) m instances and n features with m >> n. And there is a target Variable or Class attribute, also binary. I want to do feature selection using genetic algorithm. I decided to use 0/ 1 strings in the GA, where 0 if a…
user76170
  • 173
  • 3
  • 10
1
vote
1 answer

Specific Genetic Algorithm Cost Function

I am assigned the task of creating a genetic algorithm which is an allocation problem where the object is to allocate components into two racks of equipment minimizing the degree of interconnect. Basically what I have to do is read in a matrix A…
Michael Miner
  • 964
  • 2
  • 17
  • 39