Application of a Plant-Environment Model to Problems in Irrigation