concepts.pdsketch.planners.optimistic_search.apply_action#
- apply_action(executor, state, action, csp)[source]#
Apply an action to a state.
- Parameters:
executor (PDSketchExecutor) – the executor.
state (State) – the state to be updated.
action (OperatorApplier) – the action to be applied.
csp (ConstraintSatisfactionProblem) – the CSP to which the new constraints will be added.
- Returns:
a tuple of (goal test result, the updated state), and the updated CSP.
- Return type: