core-logic

2019-12-26T00:50:26.019Z

dunno why, but fd/interval as written turns negative bounds into 0

erwinrooijakkers 2019-12-26T11:27:39.019700Z

Aha 🙂

erwinrooijakkers 2019-12-26T11:27:45.020Z

> non negative integer or more generally discrete constraints. These last constraints, sometimes also called finite domain constraints, are generally studied in the Constraint Satisfaction Problems (CSP)

erwinrooijakkers 2019-12-26T11:27:49.020200Z

Source: https://www.sciencedirect.com/topics/computer-science/finite-domain-constraint

erwinrooijakkers 2019-12-26T11:28:00.020500Z

So a finite domain is nonnegative by definition

erwinrooijakkers 2019-12-26T11:35:18.020700Z

Related question: https://stackoverflow.com/questions/13195493/core-logic-finite-domain-with-ve-values

erwinrooijakkers 2019-12-26T11:42:36.021600Z

There might be a reason related to increasing search space why negative numbers are excluded, but I can’t find it anywhere

erwinrooijakkers 2019-12-26T11:46:31.022100Z

But anyway for this specific problem I don’t need negative numbers

erwinrooijakkers 2019-12-26T11:47:13.022300Z

I don’t need to represent the input as maps