Water consumption in agriculture is impossible without considering relations between water, soil and plant. In this regard, there are various models and developed software in order to evaluate relation between soil, water and crop growth stages. These models can be used for irrigation planning if properly optimized and applied. AquaCrop is one of the known crop models, which was developed by the Food and Agriculture Organization of the United Nations. In order to optimize this model for crop production and irrigation management, an experiment was developed in a hydroponic cucumber greenhouse. Various parameters including water consumption volume, crop yield and leaf area index were measured during a season. A fuzzy control system was utilized for controlling temperature, relative humidity, planting bed moisture, light intensity and carbon dioxide values. The main purpose of designing a control system in the greenhouse is to achieve the desired values of temperature and relative humidity. In this model, evapotranspiration, irrigation requirements and crop yield were simulated. The results show that the AquaCrop model can estimate evapotranspiration with the least error in the greenhouse environment, which is controlled by a fuzzy controller. Also the system has estimated the crop yield and biomass of the product with a good degree of precision and it may support crop production in a greenhouse, including crop management and environmental control.