A water resource management model for irrigation purposes