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.

87 questions
0
votes
1 answer

Can I use something like scipy.stats, in Python, to create a fitness function responds like a distribution

I need to create a normalised fitness function for positive values 0→∞. I want to experiment, starting with (input→output) something like 0→0, 1→1, ∞→0. My maths is a bit weak and expect this is really not hard, if you no how. So the output of the…
Peter Shannon
  • 161
  • 1
  • 3
0
votes
1 answer

implementing Subset Sum with genetic Algorithm

import java.util.Collections; import java.util.Vector; public class Metaheuristic { private static int[] DATA; private static int NUM_CHROMOSOMES ; private static int MAX_POWER; private static int MAX_NUMBER; private static…
user2520051
0
votes
0 answers

Game playing AI, how to find a good board evaluation function?

I'm working on an AI to play a fairly simple game, using minimax and genetic algorithms to find weights to score board states with. The game resembles 4x4 tictactoe, but a turn can be spent to move a piece to an adjacent space, pieces come in…
0
votes
0 answers

Finding the perfect fitness function for path testing using Genetic Algorithm

I recently started working with genetic algorithm, and to understand it better, I decided to use it to solve a problem. I'm working on using genetic algorithm to generate test cases for a path testing question. I have everything figured out, except…
0
votes
1 answer

Your fitness function must return a scalar value

I tried to perform an optimization using a neural network and the genetic algorithm. I trained a neural network with input p (4x72 matrix) and target t (2x72 matrix). Regrading the optimization using genetic algorithm, I used the sim function of…
0
votes
1 answer

Fitness function to image comparison opencv, genetic programing

I am writing genetic program to extract object in image. I have two fitness functions for now: Hamming and Hausdorff distance. Hausdorff is good but too slow for bigger images. Hamming is faster but not always works (for examples sometimes white…
user3191398
0
votes
1 answer

Using fitness sharing on a minimization function

I'm trying to use fitness/function sharing on a minimization function. I'm using the standard definition of the sharing function found here which then divides the fitness by the niche count. This will lower the fitness, proportional to the amount…
David
  • 1,219
  • 1
  • 13
  • 19
0
votes
1 answer

A sample task assistance in Evolutionary Computing

I have a sample question from one of the previous exams (2006) from the Evolutionary Computing course. I don't really know how to approach this problem, so any ideas, hints and tips would be appreciated. A magic square is a N x N square where all…
-2
votes
1 answer

Translating of fitness function from a meta heuristic algorithm [LOA]

Lion Optimization Algorithm (LOA) is a newly proposed meta heuristic algorithm by Maziar Yazdani & Fariborz Jolai. I'm having problems translating a fitness function in python3 for I had no prior knowledge whether I need import numpy or scipy…
Rai Re
  • 45
  • 4
-2
votes
1 answer

Not printing same output

Simply not printing the same output as the line above and I can't figure out why this is happening, I've noticed that it's printing the last N numbers from the end backwards, whatever i input into the parameter it prints that amount a second…
Galfi
  • 1
  • 4
-2
votes
1 answer

(FitNesse, Xebium, Selenium IDE) How to use Xebium format to click on a label?

I'm a very new for Xebium. I cannot use | ensure | do | click | on | id=text | to click on a checkbox because it is a label, id is look like hidden. So, is there any way to click from label? thank you for your suggestion :)
marie
  • 1
  • 1
-4
votes
1 answer

Machine learning algorithm with fitness score

I'm not sure if this is for StackOverflow or Programmers but since it's more leaning towards implementation, I'm asking it here. I'm looking for an algorithm that could take n inputs (all floats) and produce m (all floats; m < n) outputs. This…
Martijn
  • 2,146
  • 2
  • 19
  • 49
1 2 3 4 5
6