Skip to main content
function avoidAssignment(opts?): RuleEntry<"assignment-priority", object & RuleOptions>;
Nudge the solver away from scheduling targeted members.

Parameters

opts
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. The member is still assigned when coverage requires it; the penalty only matters when the solver has a choice. Opposite of preferAssignment. Both map to the same underlying assignment-priority rule with different directions.