Skip to main content
Softly rewards assigning targeted members when they should work if feasible but are not required.

Parameters

RuleOptions

Returns

RuleEntry<"assignment-priority", object & RuleOptions> Soft constraint. The solver adds a bonus for each assignment of the targeted members, making them more likely to appear on the schedule. Use priority to control preference strength; higher priority means a larger bonus. This rule remains a preference, so even "MANDATORY" priority does not force an assignment when hard constraints or stronger objectives prevent it. Opposite of avoidAssignment. Both map to the same underlying assignment-priority rule with different directions.