fix(planning): prioritize complete holiday weeks
This commit is contained in:
1 parent
5a81e38b95
commit
31314f3969
7 files changed
+355
-25
No files matched your search
+8
-2
@@ -33,11 +33,17 @@ A Monday-to-Friday calendar date that is not a French national public holiday. O
|
||||
**Public holiday**:
|
||||
A French calendar date that cannot receive a leave placement and contributes to a time-off period.
|
||||
|
||||
**Public-holiday week**:
|
||||
A Monday-to-Friday window containing a weekday French public holiday where every other working day is a leave placement.
|
||||
|
||||
**Public-holiday week value**:
|
||||
The distance of every weekday holiday from the nearest weekend, summed within and across completed public-holiday weeks: Monday or Friday is 1, Tuesday or Thursday is 2, and Wednesday is 3.
|
||||
|
||||
**Leave placement**:
|
||||
Using one or more working days from a leave balance on specific dates within the planning horizon.
|
||||
|
||||
**Supporting placement**:
|
||||
A leave placement from a deferred balance that captures additional adjacent non-working dates, eliminates a short work sequence, or reduces the longest work sequence. Merely extending an existing period by the placed day itself is not sufficient.
|
||||
A leave placement from a deferred balance that completes a public-holiday week, captures additional adjacent non-working dates, eliminates a short work sequence, or reduces the longest work sequence. Merely extending an existing period by the placed day itself is not sufficient.
|
||||
|
||||
**Time-off period**:
|
||||
A contiguous period containing at least one leave placement together with any adjacent weekends and public holidays, including those immediately outside the planning horizon.
|
||||
@@ -94,7 +100,7 @@ The result of a calculation: invalid input, a planning conflict, an optimization
|
||||
A calculation stopped before it completed the planning objective order. It may expose its best valid plan but never implies that the obligations conflict.
|
||||
|
||||
**Planning objective order**:
|
||||
The lexicographic quality order applied after joint obligation feasibility: minimize unplaced at-risk leave; satisfy each preference in user order; maximize non-working-day gain; minimize the longest work sequence; minimize the total deficit of internal work sequences shorter than five days; minimize supporting placements; consume earlier-expiring balances; then prefer earlier placement dates. A lower criterion never degrades a higher one.
|
||||
The lexicographic quality order applied after joint obligation feasibility: minimize unplaced at-risk leave; satisfy each preference in user order; maximize public-holiday week value; maximize non-working-day gain; minimize the longest work sequence; minimize the total deficit of internal work sequences shorter than five days; minimize supporting placements; consume earlier-expiring balances; then prefer earlier placement dates. Complete holiday weeks therefore precede broader calendar-gain and work-sequence optimization. A lower criterion never degrades a higher one.
|
||||
|
||||
**Earned leave entitlement**:
|
||||
A leave entitlement created for each completed occurrence of an applicable planning rule after its generating time-off period ends. It becomes available the following day, expires one year later, and may fund any later compatible placement.
|
||||
|
||||
Reference in new issue
Block a user