About

Page created using API Version: 3.1.3720.22390

1 2 3 4 5
2004 September010203040506070809101112131415161718192021222324252627282930
WTFSSMTWTFSSMTWTFSSMTWTFSSMTWT

P

V

A  

A

A

A

 

M

M

M

 

M

M

M

V

V

V

V

V

V

V

N

N

N

   

A

A

A

 

N

N

0 0
B  

N

N

N

   

M

M

M

 

M

A

A

 

N

N

N

N

   

M

M

A

 

A

A

A

   

M

0 0
C

M

M

V

V

V

V

 

N

N

N

N

     

A

A

A

 

N

N

N

   

M

A

A

 

M

M

M

10 0
D

M

 

N

N

N

   

M

A

A

   

M

M

M

 

N

N

N

   

A

A

A

 

M

A

A

 

M

30 0
E

A

 

M

M

M

 

A

A

A

   

N

N

N

       

M

M

M

 

N

N

N

   

A

A

A

0 0
F

N

N

N

N

   

A

A

A

 

M

M

M

 

M

M

M

V

V

V

V

V

V

V

V

V

V

V

V

V

40 0
G  

M

M

A

 

A

A

A

 

N

N

N

     

A

A

A

N

N

   

M

M

M

 

M

M

M

  10 0
H

V

V

V

V

V

N

N

N

     

M

M

M

 

M

A

A

 

A

A

A

 

M

M

M

 

N

N

N

0 0
I

A

A

A

 

M

M

M

 

M

M

A

 

A

A

A

       

N

N

N

   

M

M

M

 

N

N

0 0
J

A

A

 

A

A

A

 

M

M

A

 

N

N

N

   

M

M

M

 

M

M

M

   

N

N

N

    0 0
K

M

M

M

V

V

V

V

V

V

V

V

V

N

N

N

   

M

M

M

 

A

A

A

 

A

A

A

N

N

10 0
L

A

 

N

N

N

     

M

M

A

   

M

A

A

 

M

M

M

 

N

N

N

N

     

M

A

0 0
M

N

N

   

M

M

A

 

N

N

N

   

M

M

A

   

A

A

A

 

M

M

A

 

M

M

A

  0 0
N

M

A

A

 

N

N

N

       

A

A

A

 

M

M

A

 

M

M

M

 

N

N

N

   

M

M

0 0
O

M

M

A

 

N

N

N

   

M

M

A

   

N

N

N

N

     

A

A

A

 

M

M

M

 

M

0 0
P

N

N

   

M

M

M

 

M

A

A

 

M

A

A

 

M

M

A

 

N

N

N

     

M

A

A

  0 0
Q  

M

M

M

 

M

M

A

 

M

A

A

 

N

N

N

   

A

A

A

 

N

N

N

     

M

A

0 0
R    

M

A

A

 

N

N

N

   

M

A

A

 

M

A

A

 

M

M

M

     

N

N

N

    0 0
S      

M

A

A

 

N

N

N

N

     

M

M

M

 

A

A

A

 

M

M

M

   

M

A

A

10 0
T

N

   

M

A

A

 

M

A

A

   

M

M

M

 

N

N

N

   

M

M

A

 

N

N

N

    0 0

Requests

Employees' penalty (soft constraints) 110

Violations

Shift Cover (Skill=All. Min=Soft constraint [weight=100, function=Linear]. Max=Soft constraint [weight=100, function=Linear])
V Assigned 1 1 2 3 3 2 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 00
M Min 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5   
M Max 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5   
M Assigned 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 00
A Min 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4   
A Max 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4   
A Assigned 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 00
N Assigned 4 4 4 4 4 3 4 4 4 4 4 3 3 4 4 3 4 4 4 4 4 4 4 4 4 4 3 4 4 4 00
Shift Cover (Skill=All. Min=Soft constraint [weight=10, function=Linear]. Max=Soft constraint [weight=10, function=Linear])
V Assigned 1 1 2 3 3 2 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 00
M Assigned 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 00
A Assigned 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 00
N Min 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4   
N Max 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4   
N Assigned 4 4 4 4 4 3 4 4 4 4 4 3 3 4 4 3 4 4 4 4 4 4 4 4 4 4 3 4 4 4 500
Shift Cover (Skill=All. Min=Hard constraint. Max=Hard constraint)
V Assigned 1 1 2 3 3 2 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 00
M Min 4 4 4 3 3 4 4 4 4 4 3 3 4 4 4 4 4 3 3 4 4 4 4 4 3 3 4 4 4 4   
M Max 6 6 6 5 5 6 6 6 6 6 5 5 6 6 6 6 6 5 5 6 6 6 6 6 5 5 6 6 6 6   
M Assigned 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 5 4 4 5 5 5 5 00
A Min 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 3 3   
A Max 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5   
A Assigned 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 00
N Min 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 3 3   
N Max 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5   
N Assigned 4 4 4 4 4 3 4 4 4 4 4 3 3 4 4 3 4 4 4 4 4 4 4 4 4 4 3 4 4 4 00
Total penalty (soft constraints)160
Total violations (hard constraints)0

Shifts Start End Description

V

00:00 00:00 Vacation.

M

07:00 15:00 Morning. Time units=8.

A

15:00 23:00 Afternoon. Time units=8.

N

23:00 07:00 Night. Time units=8.
 

Computation
Found by   tec on BEECHBONE (CS)
Algorithm
Computation time
Date 12 March 2010
System Microsoft Windows NT 5.1.2600 Service Pack 3
CLR Version: 2.0.50727.3607
Processors: 2
CPU  

 

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

 

 

Penalties

A
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      13
 
B
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      6
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
C
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 10
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
xPrefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     1
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      4
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      12
 
D
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 30
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
E
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      11
 
F
Contract: All
Requirement Violations Penalty Details
Patterns 0 40
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
xAt least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      3
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      4
xMin 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      4
xMin 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      3
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      3
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      17
 
G
Contract: All
Requirement Violations Penalty Details
Patterns 0 10
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
xTry to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   1
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      6
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
H
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      4
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      12
 
I
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      4
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
J
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      6
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
K
Contract: All
Requirement Violations Penalty Details
Patterns 0 10
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
xAt least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      3
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      13
 
L
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      6
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      11
 
M
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      4
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
N
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
O
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
P
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      4
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      5
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
Q
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      10
 
R
Contract: All
Requirement Violations Penalty Details
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      6
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      6
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      6
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      12
 
S
Contract: All
Requirement Violations Penalty Details
Patterns 0 10
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      4
xMin 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      4
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      7
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      8
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      11
 
T
Contract: All
Requirement Violations Penalty Details
Requested intervals/days and shifts on and off 0 0
Patterns 0 0
SatisfiedPattern matchesPatternsMatched
Start day1234567
Max five consecutive working days
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
 0
Min two consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNot NNNot N    0
Max four consecutive night shifts
Max 0 matches between days 0-29 of pattern:
[Hard constraint].
AllNNNNN  0
At least two days off after night shift
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot M or
A or
N
M or
A or
N
    0
AllNM or
A
     
At least six days between two sets of night shifts
Max 0 matches between days 0-29 of patterns:
[Hard constraint].
AllNNot NNot NN   0
AllNNot NNot NNot NN  
AllNNot NNot NNot NNot NN 
AllNNot NNot NNot NNot NNot NN
Avoid A followed by M
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllAM     0
Prefer morning shifts before a vacation period and a night shift afterwards
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot V or
M
V     0
AllVNot V or
N
     
AllNot V or
M
MV    
Try to assign two days off after five consecutive shifts
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
M or
A or
N
Not M or
A or
N
M or
A or
N
0
Avoid nights before requested days off
Max 0 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllNV     0
Try to assign nights in blocks of three (although a four block is allowed if otherwise there is a night before a free saturday)
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot NNNNot N   0
MondaysNNNN   
TuesdaysNNNN   
ThursdaysNNNN   
FridaysNNNN   
SaturdaysNNNN   
SundaysNNNN   
FridaysNNot M or
A or
N
     
Try to allocate days shifts in sets of three consecutive shifts
Max 0 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
AllNot M or
A
M or
A
Not M or
A
    0
AllM or
A
M or
A
M or
A
M or
A
   
AllNot M or
A
M or
A
M or
A
Not M or
A
   
At least four Saturdays and/or Sundays
Min 4 matches between days 0-29 of patterns:
[Soft constraint, weight=10, function=Linear].
SaturdaysM or
A or
N
      5
SundaysM or
A or
N
      
Max 7 Nights
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Nights
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllN      7
Min 5 Afternoon shifts
Min 5 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Max 7 Afternoon shifts
Max 7 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllA      5
Min 6 Morning shifts
Min 6 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
Max 8 Morning shifts
Max 8 matches between days 0-29 of pattern:
[Soft constraint, weight=10, function=Linear].
AllM      7
At least 10 days off
Min 10 matches between days 0-29 of pattern:
[Soft constraint, weight=250, function=Linear].
AllNot M or
A or
N
      11
 

Total employees' penalty (soft constraints)

Requirement Penalty
1. Patterns 80
2. Requested intervals/days and shifts on and off 30
Total 110