Scale penalty by degree of violation. Fixes #30.