Flood damage risk assessment optimizing a flood mitigation system