Merge pull request #22 from williamgt/show-details-use-previous-population

Show details for previous generation, not next one
This commit is contained in:
WLS2002
2025-03-12 14:48:22 +08:00
committed by GitHub

View File

@@ -232,7 +232,7 @@ class Pipeline(StatefulBaseClass):
if self.show_problem_details: if self.show_problem_details:
pop_transformed = self.compiled_pop_transform_func( pop_transformed = self.compiled_pop_transform_func(
state, self.algorithm.ask(state) state, pop #using previous pop instead of requesting the new one from state here
) )
self.problem.show_details( self.problem.show_details(
state, state.randkey, self.algorithm.forward, pop_transformed state, state.randkey, self.algorithm.forward, pop_transformed