Software · Evolutionary navigation · 2024

Evolutionary Navigation Bench

Watch agents solve mazes with genetic algorithms and neural networks. Are they learning shorter paths each generation?

Settings

10

Simulation Statistics

Jenerasyon: 0
En İyi Skor: 0
Canlı Ajan: 0

Neuroevolution Maze Solver

This simulation develops agents that learn to solve mazes using artificial neural networks and genetic algorithms.

Mathematical Model and Technical Details

Artificial Neural Network Architecture

Neuroevolution maze solver neuron structure
  • Giriş Katmanı: 11 neurons — collects 11 local distance/obstacle signals around the agent.
  • Hidden Layers: 24, 24 and 16 neurons — process local obstacle patterns and goal direction.
  • Output Layer: 4 neurons — probabilities for up, down, left and right movement.
Achieving flawless neural evolution in its current structure takes between 3,000 and 50,000+ generations, depending on the complexity of the maze and the population size. However, if sufficiently trained, the system will train an increasing number of agents from the initial population to reach the target.

Mathematical Operations

Each neuron applies weighted sum and activation function:

Z = W·X + B

A = σ(Z)

Where W is the weight matrix, X is the input vector, B is the bias term, and σ is the activation function (typically ReLU or sigmoid).

Genetic Algorithm Process

  1. Initial Population: Start with neural networks having random weights
  2. Evaluation: Each agent is tested in the maze; fitness = goal proximity + exploration + progress + goal bonus + efficiency bonus − step penalty.
  3. Selection: Agents with highest fitness scores are selected based on elitism rate
  4. Crossover: Neural network weights of selected agents are mixed to create new generation
  5. Mutation: Random changes are applied to weights in the new generation

Optimization Parameters

  • Elitism Rate: Percentage of best agents directly transferred to next generation
  • Mutation Rate: How frequently new weights are altered
  • Mutation Range: Magnitude of weight changes
  • Random Behavior: Probability of random movement for exploration-exploitation balance

Application Areas

  • Autonomous navigation systems
  • Robotic path planning
  • Game AI development
  • Solving optimization problems
  • Decision-making mechanisms in real-world scenarios
Contact

Have an idea, a collaboration or a research question?

I am open to conversations on research, open source, data visualisation and digital cultural heritage. Email is the fastest channel.

[email protected]

LinkedIn · GitHub

Security code Refresh