Constraint satisfaction neural network models