Skip to main content
Softly penalizes assigning targeted members for general preferences; use timeOff for unavailable periods.

Parameters

RuleOptions

Returns

RuleEntry<"assignment-priority", object & RuleOptions> Soft constraint. The solver adds a penalty for each assignment of the targeted members, making them less likely to appear on the schedule. Use priority to control preference strength; higher priority means a larger penalty. This rule remains a preference. The member is still assigned when coverage or hard constraints require it. Opposite of preferAssignment. Both map to the same underlying assignment-priority rule with different directions.