Closed jbytecode closed 2 months ago
This commit (https://github.com/SevgiAkten/pycellga/commit/ccf8ffe54b8ddb73ce8b806fe67afea2e5721019) fixes this issue and the new optimizer definition is
def cga(
n_cols: int,
n_rows: int,
n_gen: int,
ch_size: int,
gen_type: str,
p_crossover: float,
p_mutation: float,
problem: AbstractProblem,
selection: SelectionOperator,
recombination: RecombinationOperator,
mutation: MutationOperator,
mins : list[float] = [],
maxs : list[float] = []
) -> List:
please review the changes and feel free to close this issue
Thank you! I’ve reviewed the changes, and I’m closing the issue now.
cga is defined as
but selection, recombination, and mutation are classes, not callables