ConstraintStreams: use asConstraint() methods to define constraints

Apache 2.0

Use penalize().asConstraint() and reward().asConstraint() instead of the deprecated penalize() and reward() methods.

ai.timefold.solver.migration.v8.AsConstraintRecipe
mod run . --recipe=ai.timefold.solver.migration.v8.AsConstraintRecipe

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.