“…Here, we combine this model based on partial differential equations with discrete decisions on switching times. The combination of optimization techniques for pde-based problems and integer restrictions on variables has been studied in the field of production in [24,26,29,30,63]. We proceed by transforming the model into a linear mixed-integer programming problem.…”