Modeling optimal quarantines under infectious disease related mortality