View Source Genetix.Problems.NQueens (Genetix v0.4.1)

A specific genetic problem implementation for NQueens. The N Queen is a combinatorial optimization problem, the objective is to configure NQueens on chess board so that no queen theatens another.any()

Hyperparameters

  • size number of queens. Default 8.

examples

Examples

iex> Genetix.Evolution.run(Genetix.Problems.NQueens, size: 8)

Link to this section Summary

Functions

Fitness function implementation for NQueen problem.

Genotype implementation for NQueen problem. Permutation.

Terminate implementation for NQueen problem.

Link to this section Functions

Link to this function

fitness_function(chromosome, opts \\ [])

View Source

Fitness function implementation for NQueen problem.

Genotype implementation for NQueen problem. Permutation.

Link to this function

terminate?(list, generation, opts \\ [])

View Source

Terminate implementation for NQueen problem.