compile to emit solver constraints during model building,
and optionally validate to check the solution after solving.
Use the create*Rule functions to create built-in rules.
Methods
compile(builder)
Emit constraints and objectives into the model builder.
builder:ModelBuilder
validate(assignments, reporter, context) (optional)
Validate the solved schedule and report violations.
assignments:ResolvedShiftAssignment[]reporter:ValidationReportercontext:RuleValidationContext