A simple test for a constraint solver with a cost function
Simplest cost function implementation