Handling uncertainties in planning of retention facilities