From the hub, tagged: "SWISH"
Introduction to using CLP(FD). A guide from scenario description, to mathematical representation, to code, for the kind of problems that are typical in the Operational Research/Management Science domain. We're maximizing profit or minimizing spending given some constraints on resources.
Ever wondered how old you are in Martian years? To calculate our age on different planets requires data and reasoning over that data, sounds like a job for Prolog. In this SWISH notebook we also demonstrate how to cache the result of a query using assert/1.