Python code is the same sa Python Tutorial 8 , but soft constrained scheduling entries are different.
import sc3
for person in A_Member_in_All:
vlist=[]
s='Python Paid Holiday'+staffdef[person]+'\n'
for day in Mon:
v=sc3.GetShiftVar(person,day,'Paid_Holiday')
vlist.append(v)
sc3.AddSoft(sc3.SeqError(4,4,4,vlist),s,4) #min max allowable errors listimport sc3

