← Back to CoursesEvolutionary Programming

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Genetic Algorithms II: Advanced Design and Tuning

Manual: General · Subject: Evolutionary Programming

Explore GA variants, parameter choices, constraint handling, and implementation trade-offs.

Making Genetic Algorithms Work Well

Population Size and Rates

Population size, crossover rate, and mutation rate strongly influence performance. Larger populations increase diversity but cost more evaluations. Mutation rates that are too low may stagnate; rates that are too high can destroy useful structure.

Typical Design Trade-offs

ChoiceBenefitRisk
Large populationMore diversityHigher computation cost
High crossoverMore recombinationMay disrupt good structures
High mutationMore explorationCan become random search
Strong elitismPreserves best solutionsMay reduce diversity

Constraint Handling Options

  1. 1

    Step 1: Reject invalid solutions and resample.

  2. 2

    Step 2: Add penalty terms to the fitness score.

  3. 3

    Step 3: Repair invalid solutions after mutation or crossover.

  4. 4

    Step 4: Use operators that preserve feasibility by design.

Advanced Pseudocode with Elitism

``text<br>Evaluate population P<br>Keep the top e individuals unchanged<br>While offspring count < desired size:<br> Select parents<br> Recombine parents with probability pc<br> Mutate offspring with probability pm<br> Repair if needed<br>Combine elites and offspring to form next population<br>``

What is a common effect of increasing mutation too much?

Name one way to handle constraints in a GA.

Why might elitism be useful?

⚠️

Tuning Warning

GA parameters are problem-dependent; values that work well on one task may fail on another.

When to Prefer a GA

Genetic algorithms are a strong choice when the solution is discrete, the objective is noisy, or the search landscape has many local optima and weak gradient information.