Does not request the new population from state, instead use the previous population to evaluate the show_details function from Problem, reflecting which generation is used for printing fitness in the prior part of this function

This commit is contained in:
williamgt
2025-03-10 12:01:14 +01:00
parent cbfc6b47f3
commit 287151bf00

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