Опечатка в типах в lab2

This commit is contained in:
2025-10-15 16:43:05 +03:00
parent 3436f94b61
commit 2cf0693070
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import numpy as np
from gen import GARunConfig, genetic_algorithm
def fitness_function(chromosome: np.ndarray) -> np.ndarray:
def fitness_function(chromosome: np.ndarray) -> np.float64:
return chromosome[0] ** 2 + 2 * chromosome[1] ** 2