About

Page created using Nurse Rostering Problem (NRP) API (3.1.3625.27914)

1 2 3 4
2006 January02030405060708091011121314151617181920212223242526272829
MTWTFSSMTWTFSSMTWTFSSMTWTFSS

P

V

A

D

D

D

D

     

D

D

D

D

D

       

D

D

D

D

D

D

     

N

N

N

0 0
B      

D

D

D

D

N

N

     

D

D

D

D

N

N

       

D

D

D

D

D

D

1 0
C

D

D

N

N

     

D

D

D

D

D

         

D

D

D

D

N

N

   

D

D

D

0 0
D

N

N

   

D

D

D

D

D

D

   

D

D

D

D

D

D

     

D

D

N

N

      4 0
E

D

D

D

                 

D

D

       

N

N

N

   

D

D

      0 0
F        

N

N

N

     

D

D

   

D

D

D

       

D

D

          0 0
G    

D

D

             

N

N

N

       

D

D

D

   

D

D

      0 0
H        

D

D

D

   

N

N

     

N

N

                 

D

D

D

0 0

Requests

Employees' penalty (soft constraints) 5

Violations

Shift Cover (Skill : All)
D Preferred 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3   
D Provided 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 00
N Preferred 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1   
N Provided 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 00
Total penalty (soft constraints)5
Total violations (hard constraints)0

Shifts Start End Description

D

08:00 17:00 Day.

N

23:00 07:00 Night.
 
Cover constraints
Must not be over preferred levels: Hard constraint.
Must not be under preferred levels: Hard constraint.
Must not be over maximum levels: Hard constraint.
Must not be under minimum levels: Hard constraint.

KEY
 Assignment frozen
 Day off request
 Day on request
 Shift off request
 Shift on request

 

Computation
Found by   Tim Curtois
Algorithm
Computation time
Date 29 August 2008
System Microsoft Windows NT 5.1.2600
CPUIntel Pentium III Xeon processor

 

Penalties

A
Contract: FullTime
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 18 shifts
Max 18 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      18
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      3
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 6 consecutive working days
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=4, function=Linear].
0N or
D
N or
D
Off    0
AllOffN or
D
N or
D
Off   
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1, function=Linear].
0N or
D
N or
D
N or
D
Off   0
AllOffN or
D
N or
D
N or
D
Off  
Shifts per week
Min 4 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Max 5 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Min 4 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Max 5 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Min 4 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     1
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
B
Contract: FullTime
Requirement Violations Penalty Details
Patterns 0 1
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 18 shifts
Max 18 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      18
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      4
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 6 consecutive working days
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=4, function=Linear].
0N or
D
N or
D
Off    0
AllOffN or
D
N or
D
Off   
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1, function=Linear].
0N or
D
N or
D
N or
D
Off   0
AllOffN or
D
N or
D
N or
D
Off  
Shifts per week
Min 4 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      6
xShifts per week
Max 5 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      6
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
C
Contract: FullTime
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 18 shifts
Max 18 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      18
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      4
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 6 consecutive working days
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=4, function=Linear].
0N or
D
N or
D
Off    0
AllOffN or
D
N or
D
Off   
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1, function=Linear].
0N or
D
N or
D
N or
D
Off   0
AllOffN or
D
N or
D
N or
D
Off  
Shifts per week
Min 4 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Max 5 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Min 4 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Max 5 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     1
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
D
Contract: FullTime
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 4
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 18 shifts
Max 18 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      18
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      4
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 6 consecutive working days
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
xMax 0 matches between days 0-27 of patterns:
[Soft constraint, weight=4, function=Linear].
0N or
D
N or
D
Off    1
AllOffN or
D
N or
D
Off   
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1, function=Linear].
0N or
D
N or
D
N or
D
Off   0
AllOffN or
D
N or
D
N or
D
Off  
Shifts per week
Min 4 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Max 5 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Min 4 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Max 5 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      5
Shifts per week
Min 4 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Min 4 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Shifts per week
Max 5 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      4
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Hard constraint].
SaturdaysN or
D
Off     1
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
E
Contract: PartTime
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 10 shifts
Max 10 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      10
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      3
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
   0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=4, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
  0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=9, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
 0
Shifts per week
Min 2 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Min 2 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
F
Contract: PartTime
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 10 shifts
Max 10 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      10
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      3
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
   0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=4, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
  0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=9, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
 0
Shifts per week
Min 2 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Min 2 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     1
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     0
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
G
Contract: PartTime
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 10 shifts
Max 10 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      10
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      3
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
   0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=4, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
  0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=9, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
 0
Shifts per week
Min 2 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Min 2 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     2
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 
H
Contract: PartTime
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max 10 shifts
Max 10 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
      10
Max 4 nights
Max 4 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN      4
Min 2 consecutive free shifts
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=10, function=Linear].
0OffN or
D
     0
AllN or
D
OffN or
D
    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
N or
D
0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysN or
D
Off     0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=100, function=Linear].
SaturdaysOffN or
D
     0
No night shift before a free weekend
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
FridaysNOffOff    0
At least two free days after a night shift
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNOffN or
D
    0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllND     0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
0NNot N     0
AllNot NNNot N    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1000, function=Linear].
AllNNNN   0
Max 0 matches between days 0-27 of patterns:
[Soft constraint, weight=100, function=Linear].
0N or
D
Off     0
AllOffN or
D
Off    
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=1, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
   0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=4, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
  0
Max 0 matches between days 0-27 of pattern:
[Soft constraint, weight=9, function=Linear].
AllN or
D
N or
D
N or
D
N or
D
N or
D
N or
D
 0
Shifts per week
Min 2 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 0-6 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Min 2 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 7-13 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Min 2 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Max 3 matches between days 14-20 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      2
Shifts per week
Min 2 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Shifts per week
Max 3 matches between days 21-27 of pattern:
[Soft constraint, weight=1, function=Quadratic].
AllN or
D
      3
Max 2 consecutive working weekends
Max 2 matches between days 5-20 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     1
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
Max 2 consecutive working weekends
Max 2 matches between days 12-27 of patterns:
[Soft constraint, weight=1000, function=Linear].
SaturdaysN or
D
Off     1
SaturdaysOffN or
D
     
SaturdaysN or
D
N or
D
     
 

Total employees' penalty (soft constraints)

Requirement Penalty
1. Requested intervals/days and shifts on and off 0
2. Patterns 5
Total 5