CPSolver.Propagator.Sum2 (Fixpoint v0.10.2)

The propagator for Sum constraint. Sum(y, x) constrains y to be a sum of variables in the list x.

Summary

Functions

bind(propagator, source, var_field)

Callback implementation for CPSolver.Propagator.bind/3.

entailed?(args, propagator_state)

Callback implementation for CPSolver.Propagator.entailed?/2.

failed?(args, propagator_state)

Callback implementation for CPSolver.Propagator.failed?/2.

new(args)

new(y, x)

@spec new(Common.variable_or_view(), [Common.variable_or_view()]) ::
  CPSolver.Propagator.t()

reset(args, state)

Callback implementation for CPSolver.Propagator.reset/2.

reset(args, state, opts)

Callback implementation for CPSolver.Propagator.reset/3.