Application of Whale Optimization Algorithm in Optimal Allocation of Water Resources