Skip to content

Commit 0ed5a04

Browse files
Fix type issues
1 parent ef5c679 commit 0ed5a04

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

genetic_algorithm/knapsack.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def generate_knapsack_instance(
8989

9090
genome_t = list[int] # An index list where 1 means item is included, 0 means excluded
9191

92-
9392
def evaluate(genome: genome_t, items: list[Item], capacity: int) -> tuple[int, int]:
9493
"""
9594
Calculates fitness (value) and weight of a candidate solution. If overweight,

0 commit comments

Comments
 (0)