The client project goes first
Three projects share five people. When they all want Ben in the same week, someone waits. With every project at the same priority, the paying client's portal is the one that slips: two working days past the date it could make on its own. Set its priority to High and the portal lands on that date again. The table shows who pays instead.
Each change levels the plan again with the forward strategy and policy: "priority":
higher-priority tasks are placed first, and among equals the task with less room to spare goes first.
The first row of the table is the reference run with every project equal; the second is yours. Every
delta is in working days.
// Each project's priority goes on its tasks; 1000 = never delayed by leveling.
project.apply({ tasks: { update: [
{ id: 11, priority: 800 }, /* … every Client portal task */
{ id: 21, priority: 500 }, /* … */
] } });
// Higher priority is placed first; ties go to the task with less slack.
const result = project.level({
strategy: "forward",
policy: "priority",
effort: "balanced",
});
Never move
Priority 1000 is special: leveling never delays those tasks. A never-move project keeps the dates it
has with no leveling at all, and the others work around it. Mark two projects that share a person and
leveling cannot help. It leaves the overload in place, and the window says why:
priority-1000. The load rows show it in red.
// Two never-move projects that need Ben on the same days:
// the overload stays, with its reason.
result.overallocations;
// → [{ resource: "ben", windows: [{ from, to, peak: 2, capacity: 1,
// tasks: [13, 23], reason: "priority-1000" }] }]
What the numbers are
A project's end is the end of its summary task. evaluate reports how far each summary
finishes from the unleveled plan, in working days, for the reference run and for yours; a slip is the
difference of the two. The run picks the best of six placement orders
(effort: "balanced"), comparing them on overload first, then on delay per priority level
from the top: a plan never buys a smaller delay for a low-priority project with a larger one for a higher
project.
The forward-leveling demo compares the strategies and their search effort on one project.