This would reduce code redundancy. The passed environment object would then control whether the grid functions are invoked.
It might also be a good idea to rename the function from first_choice_hill_climbing to search, because this is simpler and currently, first-choice hill-climbing is the only implemented search algorithm for the Minimizer.
This would reduce code redundancy. The passed environment object would then control whether the grid functions are invoked.
It might also be a good idea to rename the function from
first_choice_hill_climbing
tosearch
, because this is simpler and currently, first-choice hill-climbing is the only implemented search algorithm for the Minimizer.