Skip to content

Commit

Permalink
Bug fix: action selector
Browse files Browse the repository at this point in the history
  • Loading branch information
bokner committed Nov 29, 2024
1 parent e00f597 commit 1aec4ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/solver/search/strategy/variable/shared/action.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ defmodule CPSolver.Search.VariableSelector.Action do
init_variable_actions(variables, action_table)
Shared.put_auxillary(shared, :action, %{variable_actions: action_table, decay: opts[:decay]})
Shared.add_handler(shared, :on_space_finalized,
fn variables, shared, _reason -> update_actions(variables, shared) end)
fn solver, %{variables: variables} = _space_data, _reason ->
update_actions(variables, solver)
end)
)
end

Expand Down

0 comments on commit 1aec4ba

Please sign in to comment.