Basic shift pattern
Open Tutorial 6.
Click “Constraints” → “Row Constraint” → “Two-Shift”.
Three constraints are defined below.
Three constraints are combined to form the basic pattern of two-shifts commonly used in Japanese nursing homes.
✓ is the complement of the set.
The first constraint is ;
“Night_Shift” followed by Not of “After_night_shift” is prohibited. In other words, If it is “Night_Shift,” the next day must be “After_Night_Shift.”
The second constraint is;
" After_Night_Shift" preceded by Not of “Night_Shift” is prohibited. In other words, If it is “After_Night_Shift,” the previous day must be “Night Shift.”
The third constraint is;
“After_Night_Shift” followed by Not of “Paid_Holiday” is prohibited. In other words, If it is “After_Night_Shift,” the next day must be “Paid_Holiday.”
Note that the last month’s portion must be imported in a pattern that uses multiple Days.
Cardinality Constraints
Click “CardinalityConstraint”
This constraint is ;
Allocate 9 “Paid_Holiday” for all staff this month.
Allocate 3-5 “Night Shift” for all staff this month.
To try it out, set the maximum and minimum number of “Paid Holiday” to 8.
Solve
, and see what happens.