Optimal control of epidemics with limited resources | Synapse