Sustainable agriculture requires the integration of advanced technologies to enhance productivity and resource efficiency. This study aimed to optimize an automated drip irrigation system. Using linear programming, optimal values for key crop attributes were determined based on different irrigation systems and water quality treatments. Attributes such as plant height, number of leaves, number of branches, number of fruits and yield in respective of irrigation system, water quality and days after transplanting. The results revealed that all the independent attributes affected the plant height, number of leaves, number of fruits, number of branches and yield. The optimum values of plant height, number of leaves, number of branches, number of fruits and optimum yield were higher for the wireless-based drip irrigation system (IS2) with treated fruit processing wastewater (WQ2) than for the wire-based irrigation system. Based on the substantially increased net return in the wireless irrigation system model, it is the better-suited model under the given conditions. Hence, the combination of treated fruit processing wastewater with a wireless-based system is recommended.