Portfolio optimization of safety measures for the prevention of time-dependent accident scenarios. (October 2019)