Genetic algorithm solving TSP with various settings

- Main Page
- Classes

- Class List
- Class Index
- Class Members

Static Public Member Functions | List of all members
Fitness Class Reference

Trida obsahujici funkce pro vypocet hodnot fitness. More...

## Static Public Member Functions
static double | tspFitness (Chromozome chromozome, double[][] table)
static int | hwFitness (ChromozomeHW chromozomeHW, char[] target)

## Detailed Description

Trida obsahujici funkce pro vypocet hodnot fitness.

Author
  Jan Nemec

## Member Function Documentation

static int Fitness.hwFitness | ( | ChromozomeHW | chromozomeHW,
|  | char[] | target
| ) |  |
| static

Funkce pro vypocet fitness hodnoty chromozomu pro reseni textoveho problemu. Funkce scita rozdily v textu na jednotlivych pozicich oproti zadanemu cili.

Parameters

  chromozomeHW | Vstupni chromozom
  target | Cilovy text

Returns

static double Fitness.tspFitness | ( | Chromozome | chromozome,
|  | double | table[][]
| ) |  |
| static

Funkce pro vypocet fitness hodnoty chromozomu pro TSP. Scita vzdalenosti mezi jednotlivymi mesty, tak jak cestu reprezentuje chromozom.

Parameters

  chromozome | Vstupni chromozom.
  table | Tabulka reprezentujici vzdalenosti mezi mesty.

Returns
  Metoda vraci ciselnou hodnotu fitness.

The documentation for this class was generated from the following file:

- src/Fitness.java