Skip to content

Commit

Permalink
update genetic algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
speters9 committed Sep 12, 2024
1 parent eb2cf80 commit 4661620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobmatch/genetic_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def mutate(chromosome: List[Tuple[str, str]], instructors: List[Instructor]) ->
def genetic_algorithm(instructors: List[Instructor], courses: List[Course], max_sections: Dict[str, int],
max_unique_classes: int, num_generations: int = 500, population_size: int = 500,
non_preferred_penalty: int = 3, seed: int = 42, progress_callback: Optional[Callable[[int], None]] = None,
early_stopping_window: int = 250, min_fitness_change: float = 0.001) -> Tuple[List['Instructor'], List['Course'], List[int]]:
early_stopping_window: int = 250, min_fitness_change: float = 1e-4) -> Tuple[List['Instructor'], List['Course'], List[int]]:
"""
Run the genetic algorithm to optimize the assignment of instructors to courses with early stopping.
Expand Down

0 comments on commit 4661620

Please sign in to comment.