!Keyword: staff scheduling, soft constraints, goal programming;
MIN    9 M + 9 T + 9 W + 9 R + 9 F + 9 S + 9 N
      - XM  - XT  - XW  - XR  - XF  - XS  - XN
SUBJECT TO
  MON)   M              +  R   + F   + S   + N  - XM >=  3
  TUE)   M   + T               + F   + S   + N  - XT >=  3
  WED)   M   + T   + W               + S   + N  - XW >=  8
  THU)   M   + T   + W  +  R               + N  - XR >=  8
  FRI)   M   + T   + W  +  R   + F              - XF >=  8
  SAT)         T   + W  +  R   + F   + S        - XS >=  3
  SUN)               W  +  R   + F   + S   + N  - XN >=  3
    9)   XM <=   1
   10)   XT <=   1
   11)   XW <=   1
   12)   XR <=   1
   13)   XF <=   1
   14)   XS <=   1
   15)   XN <=   1
END

