Water Supply Planning with Dynamic Cost Selection Method in the Emergency