scieee AI-readable full text Open interactive document viewer

Economic model predictive control for interactions of water sources connected crop field

Cáceres Rodríguez, Gabriela Belén; Pereira Martín, Mario; Millán Millán, Pablo Manuel

Abstract

Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity.

Full text

IFAC PapersOnLine 55-32 (2022) 194–199 ScienceDirect Available online at www.sciencedirect.com 2405-8963 Copyright © 2022 The Authors. This is an open access article under the CC BY-NC-ND license . Peer review under responsibility of International Federation of Automatic Control. 10.1016/j.ifacol.2022.11.138 10.1016/j.ifacol.2022.11.138 2405-8963 Copyright © 2022 The Authors. This is an open access article under the CC BY-NC-ND license ( https://creativecommons.org/licenses/by-nc-nd/4.0/ ) Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: gbcacer[email protected], mpereir[email protected],pmil[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. Economic model predictive control for interactions of water sources connected crop field G.B. C´aceres ∗M. Pereira ∗P. Mill´an ∗ ∗Universidad Loyola Andaluc´ıa. Avda. de las Universidades s/n 41704 Dos Hermanas (Spain)(email: [email protected], [email protected],[email protected]) Abstract: Interest in predicting and optimizing irrigation to minimize water usage in agriculture is growing. In this paper, we present how different water sources interconnected in a farm (surface and underground reservoirs) can provide the optimal amount of water to the crop, considering the water available in each water source and the energy cost associated with pumping, without compromising the crop yield. For this purpose, the formulated economic Model Predictive Control makes use of the dynamical non-linear agro-hydrological model, considering the Volumetric Water Content (VWC) at different depths of the soil and the mass balance of the surface reservoir to generate optimal interactions and flow control strategies from the water sources to the crop field to meet future irrigation demands and finally consider the use of these water sources to alleviate the effects of environmental changes and water scarcity. 1. INTRODUCTION Global environmental change and the deficient water management in agriculture is a huge concern for users and managers of water resources (Navarro-Hell´ın et al. (2015)); thus, proper management and allocation of water sources is required for irrigation optimization (Abioye et al. (2020)). Surface tank/reservoir irrigation has long been practiced in some countries where regions are subject to water stress, in which farmers use water reservoirs with their respective catchment basins to harvest rainwater and use it for supplemental irrigation (Agale and Gaikwad (2017)). On the other hand, groundwater can serve as a substitute for stored surface water (surface reservoir) and potentially as a complementary source of irrigation water, see Bharati et al. (2008) and Portoghese et al. (2021). The conjunctive use of surface and groundwater reservoirs is an important area of irrigation research (O’Mara et al. (1988)). Some farms located in higher elevations utilize a pump to collect water from the groundwater reservoir and transfer it to the surface reservoir, in which electricity consumption is a concern (dela Cruz et al. (2017)). According to Moradi-Jalal et al. (2007), the integration of surface reservoirs in irrigation areas is achieved through the objective of efficiently utilizing water storage for regulating the excess water for later use and for filling when the electricity cost is lower and emptying when the crop needs it at any time. The operation of many water systems is based on heuristic approaches and operator judgment (Incrocci et al. (2020)), which can be quite complicated in large-scale linked systems. Therefore, decision support systems are the answer to this. Advanced control techniques provide an important contribution to system water management (Cembrano et al. (2011)). Related research in MPC for irrigation control and water supply systems is very scarce. Puig et al. (2012) combines irrigation and water supply systems in which the Guardiana River provides water to the reservoir, so they control the gates and, hence, the volume of safety in the reservoir and the flow for the irrigation area. Ayaz et al. (2020) proposes a single MPC-based controller to interact with both the crop field water demand and the regulatory water level in the canal pools. The previous works consider the interaction between farms having one water source and, from the energy viewpoint, focus on obtaining water from rivers without considering the pumping of water to reservoirs at a high level at times when the electricity cost is lower and storing it until empty when the crop needs it. Motivated by the above, an economic MPC is adapted in this paper to an interaction of water sources (surface and groundwater reservoirs) and a crop field based on a farmscale strawberry plot to optimize the irrigation scheduling and minimize the energy consumption associated with the pump, minimizing costs and without compromising the crop productivity. The case study is presented to exemplify and verify the proposed MPC applied to the water supply systems. The paper is organized as follows: Section II describes the schematic of the system and the models utilized. Section III presents the MPC formulation for the combined crop field and water supply. In Section IV, we present the considered case study as well as the results of the simulation of the proposed modelling and control approach. Finally, Section V contains the main conclusions. 2. MODEL LAYOUT AND FORMULATION 2.1 Schematic Model Layout Our proposed water supply system consists of the use of two different water sources, specifically surface and underground water reservoirs. The surface water reservoir is an important water catchment for precipitation and can be filled with water from the groundwater reservoir by pumping it to store it for a specified time to be able to irrigate the crop through a valve by gravity due to the height difference. Aside from filling the surface reservoir, groundwater can also be used to pump directly into the crop field, which is important to note because it can pump water to the crop even when the surface reservoir is empty, i.e. as supplementary irrigation. Next, Figure (1) presents the schematic of the interaction between surface-groundwater reservoirs and the crop field with the controller. Fig. 1. A schematic of interaction between surfacegroundwater reservoirs and crop field with the controller. The controller receives the Volumetric Water Content (VWC) and the surface reservoir volume values with the purpose of optimizing the irrigation controls (pump 1, pump 2, and valve) and hence the amount of water and electricity costs associated with the pumps. 2.2 Surface Reservoir Dynamical Model A water surface reservoir has the storage capacity of water at appropriate elevation levels to provide the water necessary to meet the crop’s needs. The reservoir’s dynamical evolution can be expressed as a differential equation (1) relating to the mass balance in the reservoir, considering all the inputs and outputs. AdH dt =Pt+Qb−Qv(1) where Ais the reservoir area, Hrepresents the reservoir water level, working within H≤H≤H, where Hand Hare its lower and upper bounds, respectively. Ptis the direct precipitation, Qbdenotes the inflows from the underground reservoir to the surface reservoir, and Qv denotes the outflows from the surface reservoir to the crop field. 2.3 Crop field Agro-hydrological Model The common way to measure this in the soil is by Volumetric Water Content (VWC), and the land surface water balance is extracted from C´aceres et al. (2021), which the authors developed and tested. The nonlinear partial differential equations are presented as: dθ1 dt =1 D1Irr −Q1,2(θ1,θ 2)−1 ρw Eg dθi dt =1 Diˆ Qi(θi,θ i+1)−1 ρw Etr n,∀i=2···N dθN+1 dt =1 DN+1 (QN,N+1(θN,θ N+1)−QN+1(θN+1)) (2) where θi,i ∈{1,...,N +1}is the VWC of each layer, operating within θi≤θi≤θi.Diis the soil thickness of i-th layer, Irr represents the irrigation Irr =Qv+Qp2, where Qp2is the pump 2 flow, and the total irrigation is within Irr ≤Irr ≤Irr.Qi,i+1 is the water flux between layers with the nonlinear dependence of θidescribed by Qin et al. (2009), ˆ Qi=Qi−1,i −Qi,i+1 represents the water flux difference between root zone layers, Egand Etr represent evaporation from the soil surface and transpiration from the vegetation canopy, respectively. ρwis the water density, nrepresents the number of root layers. 3. ECONOMIC MPC FOR WATER SOURCES INTERCONNECTED FOR IRRIGATION A MPC controller is formulated to optimize the interaction between surface, underground reservoirs, and the crop field in order to minimize water consumption and electricity costs associated with the pumps without compromising the crop productivity. The controller consists of two layers: the upper layer is the Real-Time Optimizer (RTO), and the second layer is the MPC for tracking. The first layer computes the optimal trajectory using the highly non-linear equations (2) with the water reservoir dynamic (1), and the second layer uses a linearized model to predict the evolution of the VWC, the water reservoir level, the energy and water consumption, and the optimal irrigation, enforcing a set of constraints (maximum and minimum for the VWC, water reservoir level, pump flow and irrigation flow). This layer must move the system to maintain the parameters mentioned above as closely as possible to the RTO. This second layer follows the development of Limon et al. (2015), with this layer the controller guarantees stability and recursive feasibility even when happening changes in certain reference parameters(u∗). Remark 1. The controller is not a classic structure of an economic MPC, but an implementation in which the RTO takes care of economizing the cost function, so the controller is economic. ◦ 3.1 MPC Formulation As mentioned above, the first layer of the controller is given by the RTO using the non-linear model equations (1) and (2) and is presented as a non-linear discrete system: G.B. Caceres et al. / IFAC PapersOnLine 55-32 (2022) 194–199 195 Copyright © 2022 The Authors. This is an open access article under the CC BY-NC-ND license ( https://creativecommons.org/licenses/by-nc-nd/4.0/ ) 2. MODEL LAYOUT AND FORMULATION 2.1 Schematic Model Layout Our proposed water supply system consists of the use of two different water sources, specifically surface and underground water reservoirs. The surface water reservoir is an important water catchment for precipitation and can be filled with water from the groundwater reservoir by pumping it to store it for a specified time to be able to irrigate the crop through a valve by gravity due to the height difference. Aside from filling the surface reservoir, groundwater can also be used to pump directly into the crop field, which is important to note because it can pump water to the crop even when the surface reservoir is empty, i.e. as supplementary irrigation. Next, Figure (1) presents the schematic of the interaction between surface-groundwater reservoirs and the crop field with the controller. Fig. 1. A schematic of interaction between surfacegroundwater reservoirs and crop field with the controller. The controller receives the Volumetric Water Content (VWC) and the surface reservoir volume values with the purpose of optimizing the irrigation controls (pump 1, pump 2, and valve) and hence the amount of water and electricity costs associated with the pumps. 2.2 Surface Reservoir Dynamical Model A water surface reservoir has the storage capacity of water at appropriate elevation levels to provide the water necessary to meet the crop’s needs. The reservoir’s dynamical evolution can be expressed as a differential equation (1) relating to the mass balance in the reservoir, considering all the inputs and outputs. AdH dt =Pt+Qb−Qv(1) where Ais the reservoir area, Hrepresents the reservoir water level, working within H≤H≤H, where Hand Hare its lower and upper bounds, respectively. Ptis the direct precipitation, Qbdenotes the inflows from the underground reservoir to the surface reservoir, and Qv denotes the outflows from the surface reservoir to the crop field. 2.3 Crop field Agro-hydrological Model The common way to measure this in the soil is by Volumetric Water Content (VWC), and the land surface water balance is extracted from C´aceres et al. (2021), which the authors developed and tested. The nonlinear partial differential equations are presented as: dθ1 dt =1 D1Irr −Q1,2(θ1,θ 2)−1 ρw Eg dθi dt =1 Diˆ Qi(θi,θ i+1)−1 ρw Etr n,∀i=2···N dθN+1 dt =1 DN+1 (QN,N+1(θN,θ N+1)−QN+1(θN+1)) (2) where θi,i ∈{1,...,N +1}is the VWC of each layer, operating within θi≤θi≤θi.Diis the soil thickness of i-th layer, Irr represents the irrigation Irr =Qv+Qp2, where Qp2is the pump 2 flow, and the total irrigation is within Irr ≤Irr ≤Irr.Qi,i+1 is the water flux between layers with the nonlinear dependence of θidescribed by Qin et al. (2009), ˆ Qi=Qi−1,i −Qi,i+1 represents the water flux difference between root zone layers, Egand Etr represent evaporation from the soil surface and transpiration from the vegetation canopy, respectively. ρwis the water density, nrepresents the number of root layers. 3. ECONOMIC MPC FOR WATER SOURCES INTERCONNECTED FOR IRRIGATION A MPC controller is formulated to optimize the interaction between surface, underground reservoirs, and the crop field in order to minimize water consumption and electricity costs associated with the pumps without compromising the crop productivity. The controller consists of two layers: the upper layer is the Real-Time Optimizer (RTO), and the second layer is the MPC for tracking. The first layer computes the optimal trajectory using the highly non-linear equations (2) with the water reservoir dynamic (1), and the second layer uses a linearized model to predict the evolution of the VWC, the water reservoir level, the energy and water consumption, and the optimal irrigation, enforcing a set of constraints (maximum and minimum for the VWC, water reservoir level, pump flow and irrigation flow). This layer must move the system to maintain the parameters mentioned above as closely as possible to the RTO. This second layer follows the development of Limon et al. (2015), with this layer the controller guarantees stability and recursive feasibility even when happening changes in certain reference parameters(u∗). Remark 1. The controller is not a classic structure of an economic MPC, but an implementation in which the RTO takes care of economizing the cost function, so the controller is economic. ◦ 3.1 MPC Formulation As mentioned above, the first layer of the controller is given by the RTO using the non-linear model equations (1) and (2) and is presented as a non-linear discrete system: 196 G.B. Caceres et al. / IFAC PapersOnLine 55-32 (2022) 194–199 x(k+ 1) = g(x(k),u(k),w(k)),(3a) being x=[θ1,...θN+1,H]⊤;u=[Qb,Q v,Q p2]⊤, the control signals, and w=[Eg,E tr,I rr]⊤the disturbances associated with this model. The second layer uses a linearized model to predict, at the time window equivalent to the system period (1 day), the evolution of the VWC and the optimal surface, underground reservoirs, and crop field interactions considering the water and electricity consumption. Based on the non-linear agro-hydrological model equations (2) and (1), a Linear Time-Invariant (LTI) model is obtained from the linearization around the equilibrium points xeq, and is presented as the following linear discrete system in the state-space: x(k+ 1) = Ax(k)+Bu(k)+Bdw(k) (4a) y(k)=Cx(k)(4b) The model equations (4b) and (4b) have four constant matrices A,B,Bdand C, where Ais the system matrix, Bis the control matrix, Bdis the disturbance matrix, C is the output matrix and y(k) is the output of the system. The states and control actions are explained before. 3.2 Cost Function Settings RTO Economic cost function The operational goal for the water management in the proposed irrigation system is to provide the correct amount of water that the crop demands, while minimizing electricity use. For this, the first term weights deviations of VWC below the set-point established as the minimum soil water content permissible. The second term weights the minimization of the energy cost related to the water pumping amount from the underground reservoir to the surface reservoir. The third term weights the amount of water pumped directly from the underground reservoir to the crop field. The fourth and fifth terms weight the minimization of the water use from the surface pump and underground pump, respectively. V∗ p(x,u)=wp1f1(xop;x)+wp2f2(u1) +wp3f3(u3)+wp4f4(u1)+wp5f5(u3) f1(x)= T−1  k=0 ∥x(k)−xop∥Q(5a) f2(u)= T−1  k=0 Celec(k)u1(k)(5b) f3(u)= T−1  k=0 Celec(k)u3(k) (5c) f4(u)= T−1  k=0 Cwateru1(k)(5d) f5(u)= T−1  k=0 Cwateru3(k) (5e) where xop are the operational VWC points, Celec is a timevarying electric cost, Cwater is a fixed cost associated with the water per m3, and wpiare the corresponding weights, where i= 1..5. The cost function does not involve u2, because it considers the irrigation through the valve by gravity due to the height difference. MPC cost function To maintain the economic trajectory given by the RTO and to predict the best interaction between the water surface reservoir, water underground reservoir, and the crop field, the mathematical expression for the cost function VNis formulated as a quadratic way and is contained by two terms. The first term, VT(6a), minimizes the difference between the optimal reference of the RTO (xr,u r) and the reachable trajectory for the MPC (xT∗,u T∗), while the second term, VS(6b), minimizes the differences between the MPC tracking trajectory (x, u) and the optimal reference of the reachable trajectory for the MPC. VN(xr(0),ur,u)=VT(xr 0,ur) +VS(xr(0),xr,x,ur,u) and VT(xr 0,ur)= T−1  k=0 ∥xr(k)−xT⋆(k)∥2 W +∥ur(k)−uT⋆(k)∥2 S(6a) VS(xr,x,ur,u)= N−1  k=0 ∥x(k)−xr(k)∥2 Q +∥u(k)−ur(k)∥2 R(6b) where W,S,Qand Rdenote the respective matrix weights. 3.3 Optimization Problem The control structure focuses on the periodic operation of a closed-loop system with a fixed period Tof 24 hours. The quasi-periodic behavior of the main dynamic variables involved at a farm scale (crop transpiration, electricity costs) enables us to take advantage of a periodic, real-time optimizer and tracking layer to achieve better performance. Real Time Optimizer The optimal interaction can be obtained from the solution of the following optimization problem at any given time, k, where x(0) is a free variable and is denoted as: min x(0),u T−1  k=0 V∗ p(x(0),u T∗) (7a) s.t. x(k+ 1) = g(x(0),u(k),w(k)) (7b) (x(k),u(k)) ∈Zr,∀k≥0,(7c) x(0) = x(T)(7d) where Zris a closed polyhedron containing the maximum and minimum states and control action constraints, affecting the VWC (θi) and irrigation flow (Irr). The optimal solution to the problem (7) is used by the tracking optimization problem. Tracking MPC The tracking MPC can be implemented by solving a finite-horizon optimization problem over a prediction horizon N, where the cost function is minimized subject to the prediction model and a set of system constraints. The objective of this problem is to move the real system as close as possible to the optimal trajectory given by the RTO. Hence, the optimization problem can be formulated as follows: min xr 0,ur,uVN(x, u,w;xr(0),ur,w) s.t. xr(k+ 1) = Axr(k)+Buur(k)+Bdw(k) (8a) (xr,u r)∈Zr(8b) yr(k)=Cxr(k)+Dur(k)k∈ZT(8c) xr(0) = xr(T)(8d) x(0) = x(8e) x(k+ 1) = Ax(k)+Buu(k)+Bdw(k) (8f) y(k)=Cx(k)+Du(k)k∈ZN(8g) (x, u)∈Zr(8h) x(N)=xr(N)(8i) where xrand urare reachable trajectories by the linear model of the MPC for tracking used to avoid the problematic situation (loss of recursive feasibility) for the MPC controller. That is why this structure is used. Note that the trajectory produced by the RTO does not have to be reachable by the system. For more details, see Limon et al. (2014). 4. CASE STUDY ON SIMULATED STRAWBERRY CROP The case study in this paper corresponds to a strawberry farm located in Almonte (Spain), with a specific greenhouse type called tunnel greenhouses, in which precipitation does not affect the crop. The strawberry crop uses sandy soil, and this is a problem at the moment to irrigate because the sandy soil drains faster than other types of soil, so the farmers have to irrigate at specific times of the day so that water can be available before it is completely drained (between 8:00 a.m. and 4:00 p.m., when the crop needs water to transpire). It happens that the electricity cost in those hours is the highest, so we propose the use of the surface reservoir to store the water pumping at a lower electricity tariff and take advantage of the precipitation, thus saving the water amount while also irrigating the amount of water that the crop needs. Considering the equation (1), to determine the maximum and minimum level of water that can be stored in the surface reservoir, we consider an area of 10000cm2of crop and the type of crop. The reservoir dimension is 500 cm2. The underground reservoir is unlimited. The water cost and electricity tariff are extracted from C´aceres et al. (2021) and presented in Fig.2 (d). The system is subjected to disturbances. Holding the equation (2), the Etr is presented in the Fig. 2 (e) and Egis equal to zero because there is considered to be no evaporation from the soil. Precipitation is instant disturbance and is subject to seasonal variations. The values used are shown in Table 1. Finally, the soil thickness are D=[3 12 12 12 1] cm, is considered homogeneous soil and crop, ideal and uniform irrigation, and filling/emptying dynamics. 4.1 Case Description Considering the structure of the system (water surface, underground reservoirs, and crop field), we proposed the Table 1. Table of soil hydraulic parameters and controller constraints and weight values Soil hydraulic parameters Variables Distribution Values Units θsat uniform 0.395 cm3/cm3 Ksat uniform 1.056 cm/min ψsat uniform 12 cm Buniform 4.05 - Constraints and weights RTO MPC Variables Range/values Units (θ,θ) [0.29 0.115] [0.29 0.10] cm3/cm3 (H,H) [15 100] [15 100] cm2 (Irr,I rr) [0 0.0098] [0 0.0098] cm/min (wp1, ..wp5) [0.01 106106] - - (W,S,Q,R) - [ 5 200 100 1] - Eg0 0 cm/min comparison of two specific cases: the first is the on-off control activated with a relay, and the second is the proposed economic MPC controller. Case 1- On-off controller The on-off controller is one of the simplest closed-loop irrigation controls with widespread usage in practice. When the difference between θiand the θidetected is less than a threshold λ, this controller adjusts the amount of irrigation. When the θi value is less than the λ, the controller applies a constant amount of water Irr to the crop field, otherwise Irr =Irr. The threshold prevents the crop from reaching the WP, the point where the plant cannot absorb water from the soil. The control law can be expressed as Flugge-Lotz (2015): Irr =Irr, if θi−θi≤λ Irr, if θi−θi>λ (9) The on-off controller does not take into account the electricity prices and does not optimize the water consumption. Just change the state (0 or 1) depending on the threshold value. In this specific case, the farmers take advantage of the surface water reservoir, so they pump water only at night, when the electricity prices are lower, see in 2(d). The pumping time is 75 minutes with constant water flow. After this, during the day, the on-off controller works in a close-loop. Case 2- Economic MPC controller This controller optimizes the water consumption and the electricity cost associated with the pumping. The equations (1) and (2) were linearized around equilibrium points. The equilibrium points xeq=[xeq1,xeq2] are the points where the soil is in FC, points where it has the maximum crop productivity. In this paper xeq =xop. The xeq1= [0.154, 0.153, 0.152, 0.151]⊤cm3 cm3for the VWC, and xeq2=60 cm for the surface reservoir water level, ueq= [0, 0, 0]⊤,weq=[0, 0, 0]⊤. The prediction horizon is chosen to be equal to the period, that is N=T=96 (24 hours). The RTO and MPC for tracking constraints and weights are summarized in Table 1(b). The linear model used in this controller results in the following normalized system matrices: G.B. Caceres et al. / IFAC PapersOnLine 55-32 (2022) 194–199 197 min xr 0,ur,uVN(x, u,w;xr(0),ur,w) s.t. xr(k+ 1) = Axr(k)+Buur(k)+Bdw(k) (8a) (xr,u r)∈Zr(8b) yr(k)=Cxr(k)+Dur(k)k∈ZT(8c) xr(0) = xr(T)(8d) x(0) = x(8e) x(k+ 1) = Ax(k)+Buu(k)+Bdw(k) (8f) y(k)=Cx(k)+Du(k)k∈ZN(8g) (x, u)∈Zr(8h) x(N)=xr(N)(8i) where xrand urare reachable trajectories by the linear model of the MPC for tracking used to avoid the problematic situation (loss of recursive feasibility) for the MPC controller. That is why this structure is used. Note that the trajectory produced by the RTO does not have to be reachable by the system. For more details, see Limon et al. (2014). 4. CASE STUDY ON SIMULATED STRAWBERRY CROP The case study in this paper corresponds to a strawberry farm located in Almonte (Spain), with a specific greenhouse type called tunnel greenhouses, in which precipitation does not affect the crop. The strawberry crop uses sandy soil, and this is a problem at the moment to irrigate because the sandy soil drains faster than other types of soil, so the farmers have to irrigate at specific times of the day so that water can be available before it is completely drained (between 8:00 a.m. and 4:00 p.m., when the crop needs water to transpire). It happens that the electricity cost in those hours is the highest, so we propose the use of the surface reservoir to store the water pumping at a lower electricity tariff and take advantage of the precipitation, thus saving the water amount while also irrigating the amount of water that the crop needs. Considering the equation (1), to determine the maximum and minimum level of water that can be stored in the surface reservoir, we consider an area of 10000cm2of crop and the type of crop. The reservoir dimension is 500 cm2. The underground reservoir is unlimited. The water cost and electricity tariff are extracted from C´aceres et al. (2021) and presented in Fig.2 (d). The system is subjected to disturbances. Holding the equation (2), the Etr is presented in the Fig. 2 (e) and Egis equal to zero because there is considered to be no evaporation from the soil. Precipitation is instant disturbance and is subject to seasonal variations. The values used are shown in Table 1. Finally, the soil thickness are D=[3 12 12 12 1] cm, is considered homogeneous soil and crop, ideal and uniform irrigation, and filling/emptying dynamics. 4.1 Case Description Considering the structure of the system (water surface, underground reservoirs, and crop field), we proposed the Table 1. Table of soil hydraulic parameters and controller constraints and weight values Soil hydraulic parameters Variables Distribution Values Units θsat uniform 0.395 cm3/cm3 Ksat uniform 1.056 cm/min ψsat uniform 12 cm Buniform 4.05 - Constraints and weights RTO MPC Variables Range/values Units (θ,θ) [0.29 0.115] [0.29 0.10] cm3/cm3 (H,H) [15 100] [15 100] cm2 (Irr,I rr) [0 0.0098] [0 0.0098] cm/min (wp1, ..wp5) [0.01 106106] - - (W,S,Q,R) - [ 5 200 100 1] - Eg0 0 cm/min comparison of two specific cases: the first is the on-off control activated with a relay, and the second is the proposed economic MPC controller. Case 1- On-off controller The on-off controller is one of the simplest closed-loop irrigation controls with widespread usage in practice. When the difference between θiand the θidetected is less than a threshold λ, this controller adjusts the amount of irrigation. When the θi value is less than the λ, the controller applies a constant amount of water Irr to the crop field, otherwise Irr =Irr. The threshold prevents the crop from reaching the WP, the point where the plant cannot absorb water from the soil. The control law can be expressed as Flugge-Lotz (2015): Irr =Irr, if θi−θi≤λ Irr, if θi−θi>λ (9) The on-off controller does not take into account the electricity prices and does not optimize the water consumption. Just change the state (0 or 1) depending on the threshold value. In this specific case, the farmers take advantage of the surface water reservoir, so they pump water only at night, when the electricity prices are lower, see in 2(d). The pumping time is 75 minutes with constant water flow. After this, during the day, the on-off controller works in a close-loop. Case 2- Economic MPC controller This controller optimizes the water consumption and the electricity cost associated with the pumping. The equations (1) and (2) were linearized around equilibrium points. The equilibrium points xeq=[xeq1,xeq2] are the points where the soil is in FC, points where it has the maximum crop productivity. In this paper xeq =xop. The xeq1= [0.154, 0.153, 0.152, 0.151]⊤cm3 cm3for the VWC, and xeq2=60 cm for the surface reservoir water level, ueq= [0, 0, 0]⊤,weq=[0, 0, 0]⊤. The prediction horizon is chosen to be equal to the period, that is N=T=96 (24 hours). The RTO and MPC for tracking constraints and weights are summarized in Table 1(b). The linear model used in this controller results in the following normalized system matrices: 198 G.B. Caceres et al. / IFAC PapersOnLine 55-32 (2022) 194–199 0 500 1000 1500 0 0.005 0.01 0 500 1000 1500 0 5 10 10-3 0 500 1000 1500 0 5 10 10-3 0 500 1000 1500 0.05 0.1 0 500 1000 1500 0 2 410-7 Fig. 2. (a) Comparison between irrigation flows for the Pump1 (b) Comparison between irrigation flows for the Valve (c) Comparison between irrigation flows for the Pump2 (d) Electricity prices (e) Evolution of the Etr A=[Ad,A dd] (10a) Ad=    −0.125 −0.006 0.010 −0.037 −0.012 0.002 0.296 0.258 −0.002 0.596 0.117 −0.036 −0.013 −0.002 8.42e−04     (10b) Add =    −0.023 −0.008 3.693e−04 −0.002 −0.007 0.006 0.053 0.027 −0.002 −3.72e−04     (10c) B=[Bd,B dd] (10d) Bd=    −9.69e−04 −0.012 −8.891 0.0012 −5.06e−04 1.005 −0.018 −0.015 1.171 −0.003 0.031 2.277 −4.64e−04 −4.27e−04 −0.126     (10e) Bdd =    8.66e+ 03 −1.675 1.048 −8.94e+ 03 −1.438 −1.367 1.67e+ 05 0.369 26.35 3.58e+ 04 0.518 7.658 671.45 −0.010 −0.013     (10f) C=    −3.728 2.174 0.417 −0.577 0.496 −0.892 2.033 0.201 −0.213 0.487 0.109 0.079 0.027 0.081 0.687 0.248 0.477 −0.018 0.105 0.760 −1.014 −0.506 0.162 −0.490 −7.603     (10g) 4.2 Interactions Between Water Surface, Underground Reservoirs and Crop Field Both controllers were evaluated using the non-linear equations, and were initialized at the same points x0=xeq. A simulation of 30 days was conducted, to determine in permanent regime the irrigation amount given to the crop. To simplify the simulation, we assumed that the pump consumes 1 kWh/m3. The results of one day are presented in Figure (2) in both cases, the pump 1 extracts water from the underground reservoir when the electricity prices are lower. The valve irrigates the crop field when the roots need to absorb it. Pay attention to the on-off controller trajectory in Figure (2b). The amount of water irrigated is greater than the pump1 lead at the beginning of the simulation. That is because the surface reservoir has an initial amount of water storage (same in both cases). The pump 2 of the on-off controller irrigates when the VWC values are under the threshold and the surface reservoir does not dispose of the minimum water level. On the other hand, the pump 2 of the economic MPC controller pumps practically zero because it is not necessary to waste electricity because the water in the surface reservoir is sufficient. The crops needs per day are 5,25 l/m2. As can be checked in 30 days, the on-off strategy waste 25,07% of irrigated water, and the economic MPC controller waste 19,97% of the irrigated water. According to Table 2(a), the economic MPC controller has better results than the on-off controller and uses the surface reservoir to store the water for later use, however, the on-off controller pumps less to the surface reservoir and utilizes the pump 2 to irrigate the crops, without considering the energy costs. Table 2(b) show how the economic MPC controller pumps more into the surface reservoir because it suits the electricity price. However, the on-off controller uses pump 2, with a lot of difference in economic terms. Table 2. Table of the comparison between classical irrigation and the proposed MPC controller Irrigation amount Study terms On-off controller MPC controller Units Pump1 132.23 207.9 l Valve 141.5 201.6 l Pump2 74.84 2.65 l Electricity costs Study terms On-off controller MPC controller Units Pump1 491.1 953.1 e Valve - - e Pump2 1930 25.27 e 5. CONCLUSIONS In this paper, we have formulated an economic MPC that combines irrigation and water supply systems. Based on the conducted simulations, it can be concluded that the MPC can optimize the surface and groundwater reservoirs with the crop field interaction, economizing the energy cost and water saving. While we assume a particular configuration of two reservoirs and crop fields, the approach is generic and can easily be extended to multiple reservoirs and other energy sources (solar panels). ACKNOWLEDGEMENTS The authors thank the Spanish Agency for International Cooperation and Development (AECID) and the Junta de Andaluc´ıa, for partially funding this work, under projects Agricultura 4.0. (Grant 2020/ACDE/000192) and IRRIGATE (Grant PY20-RE-017-LOYOLA), respectively. REFERENCES Abioye, E.A., Abidin, M.S.Z., Mahmud, M.S.A., Buyamin, S., Ishak, M.H.I., Abd Rahman, M.K.I., Otuoze, A.O., Onotu, P., and Ramli, M.S.A. (2020). A review on monitoring and advanced control strategies for precision irrigation. Computers and Electronics in Agriculture, 173, 105441. Agale, R.R. and Gaikwad, D. (2017). Automated irrigation and crop security system in agriculture using internet of things. In 2017 International Conference on Computing, Communication, Control and Automation (ICCUBEA), 1–5. IEEE. Ayaz, M.A., Manzoor, T., and Muhammad, A. (2020). Mpc based soil moisture regulation of a canal-connected crop field. IFAC-PapersOnLine, 53(5), 170–175. Bharati, L., Rodgers, C., Erdenberger, T., Plotnikova, M., Shumilov, S., Vlek, P., and Martin, N. (2008). Integration of economic and hydrologic models: exploring conjunctive irrigation water use strategies in the volta basin. Agricultural water management, 95(8), 925–936. C´aceres, G., Mill´an, P., Pereira, M., and Lozano, D. (2021). Smart farm irrigation: Model predictive control for economic optimal irrigation in agriculture. Agronomy, 11(9), 1810. Cembrano, G., Quevedo, J., Puig, V., P´erez, R., Figueras, J., Verdejo, J., Escaler, I., Ram´on, G., Barnet, G., Rodr´ıguez, P., et al. (2011). Plio: a generic tool for real-time operational predictive optimal control of water networks. Water Science and Technology, 64(2), 448– 459. C´aceres, G., Mill´an, P., Pereira, M., and Lozano, D. (2021). Economic model predictive control for smart and sustainable farm irrigation. In 2021 European Control Conference (ECC), 1255–1260. doi:10.23919/ ECC54610.2021.9655201. dela Cruz, J.R., Baldovino, R.G., Culibrina, F.B., Bandala, A.A., and Dadios, E.P. (2017). Fuzzy-based decision support system for smart farm water tank monitoring and control. In 2017 5th International Conference on Information and Communication Technology (ICoIC7), 1–4. IEEE. Flugge-Lotz, I. (2015). Discontinuous automatic control. Princeton University Press. Incrocci, L., Thompson, R.B., Fernandez-Fernandez, M.D., De Pascale, S., Pardossi, A., Stanghellini, C., Rouphael, Y., and Gallardo, M. (2020). Irrigation management of european greenhouse vegetable crops. Agricultural Water Management, 242, 106393. Limon, D., Pereira, M., De La Pe˜na, D.M., Alamo, T., and Grosso, J.M. (2014). Single-layer economic model predictive control for periodic operation. Journal of Process Control, 24(8), 1207–1224. Limon, D., Pereira, M., de la Pena, D.M., Alamo, T., Jones, C.N., and Zeilinger, M.N. (2015). Mpc for tracking periodic references. IEEE Transactions on Automatic Control, 61(4), 1123–1128. Moradi-Jalal, M., Haddad, O.B., Karney, B.W., and Marino, M.A. (2007). Reservoir operation in assigning optimal multi-crop irrigation areas. Agricultural water management, 90(1-2), 149–159. Navarro-Hell´ın, H., Torres-S´anchez, R., Soto-Valles, F., Albaladejo-P´erez, C., L´opez-Riquelme, J.A., and Domingo-Miguel, R. (2015). A wireless sensors architecture for efficient irrigation water management. Agricultural Water Management, 151, 64–74. O’Mara, G.T. et al. (1988). Efficiency in irrigation. the conjunctive use of surface and groundwater resources. Portoghese, I., Giannoccaro, G., Giordano, R., and Pagano, A. (2021). Modeling the impacts of volumetric water pricing in irrigation districts with conjunctive use of surface and groundwater resources. Agricultural Water Management, 244, 106561. Puig, V., Ocampo-Martinez, C., Romera, J., Quevedo, J., Negenborn, R., Rodr´ıguez, P., and de Campos, S. (2012). Model predictive control of combined irrigation and water supply systems: application to the guadiana river. In Proceedings of 2012 9th IEEE International Conference on Networking, Sensing and Control, 85–90. IEEE. Qin, J., Liang, S., Yang, K., Kaihotsu, I., Liu, R., and Koike, T. (2009). Simultaneous estimation of both soil moisture and model parameters using particle filtering method through the assimilation of microwave signal. Journal of Geophysical Research: Atmospheres, 114(D15). G.B. Caceres et al. / IFAC PapersOnLine 55-32 (2022) 194–199 199 tricity price. However, the on-off controller uses pump 2, with a lot of difference in economic terms. Table 2. Table of the comparison between classical irrigation and the proposed MPC controller Irrigation amount Study terms On-off controller MPC controller Units Pump1 132.23 207.9 l Valve 141.5 201.6 l Pump2 74.84 2.65 l Electricity costs Study terms On-off controller MPC controller Units Pump1 491.1 953.1 e Valve - - e Pump2 1930 25.27 e 5. CONCLUSIONS In this paper, we have formulated an economic MPC that combines irrigation and water supply systems. Based on the conducted simulations, it can be concluded that the MPC can optimize the surface and groundwater reservoirs with the crop field interaction, economizing the energy cost and water saving. While we assume a particular configuration of two reservoirs and crop fields, the approach is generic and can easily be extended to multiple reservoirs and other energy sources (solar panels). ACKNOWLEDGEMENTS The authors thank the Spanish Agency for International Cooperation and Development (AECID) and the Junta de Andaluc´ıa, for partially funding this work, under projects Agricultura 4.0. (Grant 2020/ACDE/000192) and IRRIGATE (Grant PY20-RE-017-LOYOLA), respectively. REFERENCES Abioye, E.A., Abidin, M.S.Z., Mahmud, M.S.A., Buyamin, S., Ishak, M.H.I., Abd Rahman, M.K.I., Otuoze, A.O., Onotu, P., and Ramli, M.S.A. (2020). A review on monitoring and advanced control strategies for precision irrigation. Computers and Electronics in Agriculture, 173, 105441. Agale, R.R. and Gaikwad, D. (2017). Automated irrigation and crop security system in agriculture using internet of things. In 2017 International Conference on Computing, Communication, Control and Automation (ICCUBEA), 1–5. IEEE. Ayaz, M.A., Manzoor, T., and Muhammad, A. (2020). Mpc based soil moisture regulation of a canal-connected crop field. IFAC-PapersOnLine, 53(5), 170–175. Bharati, L., Rodgers, C., Erdenberger, T., Plotnikova, M., Shumilov, S., Vlek, P., and Martin, N. (2008). Integration of economic and hydrologic models: exploring conjunctive irrigation water use strategies in the volta basin. Agricultural water management, 95(8), 925–936. C´aceres, G., Mill´an, P., Pereira, M., and Lozano, D. (2021). Smart farm irrigation: Model predictive control for economic optimal irrigation in agriculture. Agronomy, 11(9), 1810. Cembrano, G., Quevedo, J., Puig, V., P´erez, R., Figueras, J., Verdejo, J., Escaler, I., Ram´on, G., Barnet, G., Rodr´ıguez, P., et al. (2011). Plio: a generic tool for real-time operational predictive optimal control of water networks. Water Science and Technology, 64(2), 448– 459. C´aceres, G., Mill´an, P., Pereira, M., and Lozano, D. (2021). Economic model predictive control for smart and sustainable farm irrigation. In 2021 European Control Conference (ECC), 1255–1260. doi:10.23919/ ECC54610.2021.9655201. dela Cruz, J.R., Baldovino, R.G., Culibrina, F.B., Bandala, A.A., and Dadios, E.P. (2017). Fuzzy-based decision support system for smart farm water tank monitoring and control. In 2017 5th International Conference on Information and Communication Technology (ICoIC7), 1–4. IEEE. Flugge-Lotz, I. (2015). Discontinuous automatic control. Princeton University Press. Incrocci, L., Thompson, R.B., Fernandez-Fernandez, M.D., De Pascale, S., Pardossi, A., Stanghellini, C., Rouphael, Y., and Gallardo, M. (2020). Irrigation management of european greenhouse vegetable crops. Agricultural Water Management, 242, 106393. Limon, D., Pereira, M., De La Pe˜na, D.M., Alamo, T., and Grosso, J.M. (2014). Single-layer economic model predictive control for periodic operation. Journal of Process Control, 24(8), 1207–1224. Limon, D., Pereira, M., de la Pena, D.M., Alamo, T., Jones, C.N., and Zeilinger, M.N. (2015). Mpc for tracking periodic references. IEEE Transactions on Automatic Control, 61(4), 1123–1128. Moradi-Jalal, M., Haddad, O.B., Karney, B.W., and Marino, M.A. (2007). Reservoir operation in assigning optimal multi-crop irrigation areas. Agricultural water management, 90(1-2), 149–159. Navarro-Hell´ın, H., Torres-S´anchez, R., Soto-Valles, F., Albaladejo-P´erez, C., L´opez-Riquelme, J.A., and Domingo-Miguel, R. (2015). A wireless sensors architecture for efficient irrigation water management. Agricultural Water Management, 151, 64–74. O’Mara, G.T. et al. (1988). Efficiency in irrigation. the conjunctive use of surface and groundwater resources. Portoghese, I., Giannoccaro, G., Giordano, R., and Pagano, A. (2021). Modeling the impacts of volumetric water pricing in irrigation districts with conjunctive use of surface and groundwater resources. Agricultural Water Management, 244, 106561. Puig, V., Ocampo-Martinez, C., Romera, J., Quevedo, J., Negenborn, R., Rodr´ıguez, P., and de Campos, S. (2012). Model predictive control of combined irrigation and water supply systems: application to the guadiana river. In Proceedings of 2012 9th IEEE International Conference on Networking, Sensing and Control, 85–90. IEEE. Qin, J., Liang, S., Yang, K., Kaihotsu, I., Liu, R., and Koike, T. (2009). Simultaneous estimation of both soil moisture and model parameters using particle filtering method through the assimilation of microwave signal. Journal of Geophysical Research: Atmospheres, 114(D15).