-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt Genetic Algorithm to multi-objective tasks (#76)
- Add NSGA2 selection in genetic algorithm to perform multi-objective optimization - Change return type of fitness functions to tuple - Add multiobjective fitness function TimeAndResourcesFitness - Add is_multiobjective and fitness_weights parameters in Genetic Scheduler - Add multiobjective scheduling methods to Genetic Scheduler - Add Individual and IndividialFitness classes to change them dynamically what can't be done through the deap.creator - Сhange the logic of genetic operators. Now they work with chromosomes, and individuals are then created in a genetic algorithm - Replace HallOfFame by ParetoFront in genetic algorithm to perform multi-objective optimization. In the case of single- objective optimization, the behavior will not change - Add make_offspring function to reduce code - Add test of multi-objective genetic scheduling
- Loading branch information
Showing
9 changed files
with
373 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
from sampo.scheduler.genetic.base import GeneticScheduler | ||
from sampo.scheduler.genetic.converter import ScheduleGenerationScheme | ||
from sampo.scheduler.genetic.operators import (TimeFitness, SumOfResourcesPeaksFitness, SumOfResourcesFitness, | ||
TimeWithResourcesFitness, DeadlineResourcesFitness, DeadlineCostFitness, | ||
TimeAndResourcesFitness) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.