Skip to content

Conversation

@shreyass-ranganatha
Copy link
Collaborator

Changes:

Refactoring

  1. Redefined Factory class responsibilities
  2. Using instance over class variables

Bugs

  1. Regularize optimization's Result variable
  2. Handle early genetic algorithm termination while drawing figures

Abstraction

  1. Define base classes for crossover, population and mutation

Structure

  1. Create utils.py to contain useful utility function and class definitions
  2. Create repair.py to contain Repair class implementations

Implementation

Crossover base class

  • Defined OffspringRejectionCrossover which ensures crossover reverts back to parents when offsprings violate constraints

1. Create a `Population` base class
2. Aptly define factory class functionalities
3. Create `utils.py`
4. Create `repair.py`

Signed-off-by: Shreyas Ranganatha <[email protected]>
Signed-off-by: Shreyas Ranganatha <[email protected]>
@kdemmich kdemmich merged commit 9294b5a into 52North:main Sep 16, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants