New answers tagged

2

Math Formulation + Pyomo model We need to define 3 sets i: 1 to 8 staffs j: 1 to 3 shifts t: 1 to 18 days $X_{i,j,t} \in {0/1} $ Binary There must be 3 people on each shift $\forall t,j $ then $\sum_i X_{i,j,t} =3$ Every individual (i) must work 1 shift per day\ $\forall t,i $ then $\sum_j X_{i,j,t} \geq 1 $ Every individual must not work more than 2 ...


Top 50 recent answers are included