Skip to content

πŸ§‘β€πŸ’»: Advanced Genetic Algorithm for Knapsack ProblemΒ #1812

@HARSHIDS-4

Description

@HARSHIDS-4

Title

The current genetic algorithm for the knapsack problem uses basic single-point crossover, fixed mutation, and zero-fitness penalty for overweight solutions. This leads to slow convergence and suboptimal solutions. The enhancement aims to improve GA efficiency, solution quality, and population diversity.

Enhancement Aim

improve convergence speed and solution quality by using advanced GA techniques.
Preserve best solutions through elitism and maintain diversity.
Handle overweight solutions gracefully with penalization or repair mechanisms.
Introduce adaptive mutation, multi-point crossover, and tournament selection for better exploration.

Changes

Adaptive mutation and multi-point crossover
Fitness penalization instead of zeroing
Elitism to preserve top individuals
Tournament selection for robust parent choice
Diversity maintenance to avoid stagnation
Optional gene repair for overweight solutions

Screenshots πŸ“·

No response

Guidelines

  • I have read the guidelines
  • I have the link to my latest merged PR

Full Name

Harshi Gupta

Participant Role

GSSOC
HACKTOBERFEST

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions