scieee AI-readable full text Open interactive document viewer

Predictive Control of Irrigation Canals Considering Well-being of Operators

Ranjbar, Roza; Sadowska, Anna D.; Maestre Torreblanca, José María; Overloop, Peter Jules van; Schutter, Bart D. de

Abstract

We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting.

Full text

IFAC PapersOnLine 56-2 (2023) 731–736 ScienceDirect ScienceDirect Available online at www.sciencedirect.com 2405-8963 Copyright © 2023 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.2023.10.1653 10.1016/j.ifacol.2023.10.1653 2405-8963 Copyright © 2023 The Authors. This is an open access article under the CC BY-NC-ND license ( https://creativecommons.org/licenses/by-nc-nd/4.0/ ) Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]om). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced Predictive Control of Irrigation Canals Considering Well-being of Operators ⋆ R. Ranjbar ∗,A. Sadowska ∗∗,J. M. Maestre ∗, P. J. van Overloop ∗∗∗∗,B. De Schutter ∗∗∗∗ ∗Systems and Automation Engineering Department, University of Seville, Spain (e-mail: {rranjbar,pepemaestre}@us.es). ∗∗ Schlumberger Cambridge Research, Cambridge, United Kingdom (email: [email protected]). ∗∗∗ Water Management Department, Delft University of Technology, The Netherlands. ∗∗∗∗ Delft Center for Systems and Control, Delft University of Technology, The Netherlands (email: [email protected]). Abstract: We propose a model-predictive control (MPC) approach to solve a human-in-the-loop control problem for a non-automatic networked system with uncertain dynamics. There are no sensors or actuators installed in the system and we involve humans in the loop to travel between various nodes in the network and to provide the remote controller with measurements as well as actuating the system according to the control requirements. We compute the time instants at which the measurements and actuations should take place to yield better performance with respect to current control methods. We present simulation results using a numerical model of a real canal, the West-M canal in Arizona, and we demonstrate the superiority of the new method over previously proposed ones for such setting. Keywords: MPC, human-in-the-loop, networked system, optimisation, uncertainty. 1. INTRODUCTION Saving costs in large-scale networked systems may require to reduce the amount of automation available. To compensate for this, human operators need to be an active part of the system and manually perform tasks related to the measurement and actuation in the system. This situation is obvious in irrigation canals, where the risk of the equipment being stolen or damaged if left alone explains why many of these systems are still operated manually (Maestre, 2021). To solve a human-in-the-loop control problem for an irrigation canal, prior papers by van Overloop et al. (2015); Rodríguez et al. (2017) introduced a method called mobile model predictive control (Mobile-MPC) in which a human operator travels between different locations in the canal as assigned by a controller, being both the measuring medium (cf. Lewis et al. (2009); Kaupp et al. (2005), which considered humans as sensors in sensor networks) and the actuating medium between the local sites and the remote controller due to the lack of the corresponding instrumentation. In Mobile-MPC, the remote central controller uses an event-driven MPC strategy with updated control actions. Whenever the operator arrives at an assigned location and sends measurements to the controller, the controller computes the travel time between different ⋆This work has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (OCONTSOLAR, grant agreement No 789051), and project C3PO-R2D2 (Grant PID2020-119476RB-I00 funded by MCIN/AEI/10.13039/501100011033). locations and the time required at a location to communicate new measurements and actuations as well as the next location to go. In order to reduce the uncertainty in the network by promoting regular visits to the locations, we introduce a new penalty to the overall cost function. Moreover, the energy consumption related to the control process and a stress level relevant to the operator is added to the controller to achieve more realistic and accurate results. The outline of this article is as follows. In Section 2, we define the considered large-scale networked system. In Section 3, the novel control algorithm is introduced. We illustrate the performance of the new controller in a numerical study in Section 4. Conclusions and future perspectives are given in Section 5. 2. NETWORKED SYSTEM MODELLING Consider a network system described by a graph G= (V,E). Here Vis the set of nodes (i.e. , all measurement and actuating locations in the networked system). It is assumed that at each node, measurements are taken and actuation is applied. However, the method can be easily extended to accommodate measurement-only or actuationonly nodes. Let Edenote the set of edges of the graph such that (vi,v j)∈Eif there is a direct route between nodes vi and vjin G(Jiang et al., 2019). We define a set of possible routes for the operator to travel, which may be a subset of the total set of existing routes in the network. To define the allowed routes, sets Rvi→vj are introduced 732 R. Ranjbar et al. / IFAC PapersOnLine 56-2 (2023) 731–736 Rvi→vj=R1 vi→vj,...,RNroutes,vi→vj vi→vj(1) that include the allowed routes from node vito node vj, in which Nroutes,vi→vj>0is the number of allowed routes from vito vj. Each individual route Rc vi→vj,c= 1,··· ,N routes,vi→vjis identified with a specific distance Dc vi→vjthat an operator must travel along that route. It is required that there are no cycles on the routes and that each route Rc vi→vjsatisfies Dc vi→vj≤D max, where Dmax is the maximised travel distance. Moreover, each path Rc vi→vjis identified with a particular stress level Sc vi→vj∈(0,1) and is assigned a minimum vc min,vi→vjand a maximum velocity vc max,vi→vjwith which an operator can travel along the route. The differences between stress levels and allowable velocities for different routes between two nodes are related to the type of different routes, e.g., empty or busy highways during different times of the day. To introduce the time instants at which the operator actions should take place, we use a continuous-time model of the network ˙x(t)=Ax(t)+Buu(t)+Bdd(t)+w(t),(2) y(t)=H(t)x(t)+v(t),(3) where x(t)∈Rndenotes the state, u(t)∈Rmdenotes the input, d(t)∈Rrdenotes the known exogenous input, w(t)∈Rndenotes the unknown process noise, y(t)∈Rpdenotes the measured output, and v(t)∈Rp is the unknown measurement noise. The states and control input take form as x(t)=xT 1(t),...,x T N(t)Tand u(t)=uT 1(t),...,u T N(t)Tfor Nnodes in the network. Furthermore, A,Bu,Bd, and H(t)are system matrices of suitable dimensions, and the output matrix H(t)is timevarying because it depends on the location of the operator in the network at a given time. 3. CONTROL ALGORITHM In the present paper, we employ Time Instant Optimisation MPC (TIO-MPC) to improve the quality of the solution over the one resulting from the formulation proposed by van Overloop et al. (2015); Maestre et al. (2014) but, as will be shown later, the problem also contains some necessary integer variables. Route definition Consider a network with Nop ≥1 operators indexed by j∈O={1,...,N op}. Assume that at t=˘ t∈Rthe operators ˘ O(˘ t)⊂Otake the measurements from their present location, communicate them to the controller, and receive information on what control action to apply. We assume that the time all these consecutive events take is negligible. We call ˘ t the activation time. At time ˘ t, operators j/∈˘ O(˘ t)are either travelling between the network nodes or are at a node completing some activities, having recently received instructions from the controller. We define a travel status function for operators j/∈˘ O(˘ t)as stj(˘ t)=1 if operator jis travelling, 0 otherwise.(4) It is assumed that operators must be allowed to travel to their originally assigned location; however, the rest of their trip can be adjusted. The operators that are finishing some activities, need to be allowed Tbusy,j (˘ t)time units to complete their current activities before any new instructions assigned to them. A new schedule can be given to operators from the controller, as soon as they become free. Define the path variable pj(˘ t)for the operator j, consisting of Nsconsecutive indices of nodes to be visited pj(˘ t)=(p1,j(˘ t),...,p Ns,j(˘ t)),p ℓ,j(˘ t)∈V (5) with p1,j(˘ t)=vcurrent,j(˘ t)for j∈˘ O(˘ t), i.e. , the current node visited at time ˘ t, and p1,j(˘ t)=p1,j(t∗)for j/∈˘ O(˘ t) if stj(˘ t)=1, where t∗denotes the time of the previous activation of the controller. The elements pℓ,j(˘ t)of the path variable pj(˘ t)may be repeated so that an operator j can review and actuate a subset of possible locations many times. In general, there are multiple possible routes between any two subsequent nodes pℓ,j (˘ t)and pℓ+1,j(˘ t). To consider an additional degree of freedom, the controller indicates the specific route that the operator should follow between pℓ,j(˘ t)and pℓ+1,j(˘ t). To do so, we introduce a complementary route index variable rj(˘ t)as rj(˘ t)=(r1,j(˘ t),...,rNs−1,1(˘ t)),(6) such that each element rℓ,j(˘ t)∈{1,...,N routes,pℓ,j (˘ t)→pℓ+1,j (˘ t)} of rj(˘ t)determines the index of the selected admissible route between pℓ,j (˘ t)and pℓ+1,j(˘ t), i.e. , rℓ,j(˘ t)is the index cof Rc pℓ,j (˘ t)→pℓ+1,j (˘ t). We denote by Tm j(˘ t)=(Tm 1,j(˘ t),...,Tm Ns,j(˘ t)),T m ℓ,j(˘ t)∈R,(7) the Nstime instants at which the operator should take measurements at the consecutive locations of path pj(˘ t). Similarly to the first element of the sequence pj(˘ t), for j∈˘ O(˘ t)the first element of the sequence Tm j(˘ t)is fixed to the current time Tm 1,j(˘ t)=˘ t. Further, denote the Nstime instants at which the operator should apply actuation at visited locations by Ta j(˘ t)=(Ta 1,j(˘ t),...,Ta Ns,j(˘ t)),T a ℓ,j(˘ t)∈R,(8) with the first element Ta 1,j(˘ t)to be assigned by the controller for all j∈O, in contrast to the first element of the sequence Tm j(˘ t), which is fixed for j∈˘ O(˘ t). The Nscontrol actions to be applied by operator jat the given locations are denoted by uop j(˘ t)=(uop 1,j(˘ t),...,u op Ns,j(˘ t)),u op ℓ,j(˘ t)∈R. Note that this whole sequence including the action to be applied at a current location for all operators servicing the network j∈Ois computed given the most up-to-date measurements provided by the operator. If at some time it so happens that no actuation is needed after providing the controller with measurements at a location pℓ,j (˘ t), the corresponding element of the sequence uop j(˘ t)will be uop ℓ,j(˘ t)=0. Considering the variables pj(˘ t),Tm j(˘ t),Ta j(˘ t), and uop j(˘ t) for all j∈Othe control input  U(˘ t)is parameterised. Here,  U(˘ t)denotes the trajectories of the control input u(t)for the whole duration Tpof the prediction window, i.e. , from the current activation time ˘ tof the controller until the end of the prediction window ˘ t+Tp. Thus, the following relation is achieved for τ∈[˘ t, ˘ t+Tp] ui(τ|˘ t)=uop ℓ,j(˘ t)δ(τ−Ta ℓ,j(˘ t)) if vi=pℓ,j (˘ t), 0 otherwise,(9) in which δdenotes the Dirac impulse function. Hence, the operator should take measurements at location pℓ,j(˘ t)and pass them to the controller at time Tm ℓ,j(˘ t)and at time Ta ℓ,j(˘ t)the control action uop ℓ,j(˘ t)should be employed at that location. Then, the operator continues to the subsequent location pℓ+1,j (˘ t). To describe the dynamics of the network, we integrate the continuous sampled-data MPC of Fontes and Paiva (2018) that employs a continuous-time model (2)-(3) of a system, but measurements are obtained from the system and new control actions are imposed at consecutive sampling times. This structure helps us defining the time instants (7) and (8) as real-valued variables. Network uncertainty minimisation To promote regular visits to all locations in the network, we introduce an additional penalty term Jloc(t), which adds terms to the overall cost that are proportional to the time passed since each location has been visited for the last time to take measurements and change control settings, see Figure 1. Using similar concepts of a refresh time of a node (Pasqualetti et al., 2012) or a node idleness (Chahal et al., 2021), define for each vi∈V ∆ti(τ|˘ t)=0if τ =Tm ℓ,j(˘ t)and vi=pℓ,j(˘ t), τ−tlast i(τ|˘ t) otherwise, (10) where tlast i(τ|˘ t)is initialised as tlast i(0|0)=0and is updated to tlast i(τ|˘ t)=τwhenever for any j,τ=Tm ℓ,j(˘ t) and vi=pℓ,j(˘ t)(otherwise the previously assigned value of tlast i(τ|˘ t)is kept). Moreover, each time the controller gets activated since the operator is sending measurements from the new location at time ts+1, the initial value is tlast i(ts+1|ts+1)=tlast i(ts+1|ts), in which tsimplies the time of the activation immediately before. So the cost function Jloc(˘ t)comes in the form Jloc(˘ t)= N  i=1 ˘ t+Tp ˘ t αloc,i∆ti(τ|˘ t)dτ, (11) in which αloc,i are positive constants and set more priority at visiting some locations and less at others as needed. To minimise the above-mentioned cost function, the controller must persistently take measurements from all locations. It can also drive the time instants Tm ℓ,j(˘ t),Ta ℓ,j(˘ t),Tm ℓ+1,j(˘ t) and Ta ℓ+1,j(˘ t)closer to cause a lower performance in terms of the cost function JMoMPC(t). Thus, by better tuning the weights (see (19)), we can enhance the overall performance. This process specifies the importance of the individual components of the entire cost function. Operator-centric approach In the prior results of van Overloop et al. (2015); Maestre et al. (2014); Sadowska et al. (2015), there was an assumption on a constant travel speed of the human operator. However, here, the speed of the operator may vary at different parts of the path Δti Δti 𝑡𝑡𝑠𝑠 𝑡𝑡𝑠𝑠+1 𝑡𝑡𝑠𝑠+1 +𝑇𝑇𝑝𝑝 𝑡𝑡𝑠𝑠+𝑇𝑇𝑝𝑝 operator arrives at the location new activation begins value carried forward operator arrives at the location 𝑡𝑡𝑠𝑠+1 න 𝑡𝑡𝑠𝑠 𝑡𝑡𝑠𝑠+𝑇𝑇𝑝𝑝Δti𝜏𝜏 𝑡𝑡𝑠𝑠𝑑𝑑𝜏𝜏 𝑖𝑖𝑡𝑡ℎ 𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑡𝑡𝑝𝑝𝑖𝑖𝑖𝑖 𝑖𝑖𝑡𝑡ℎ 𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑡𝑡𝑝𝑝𝑖𝑖𝑖𝑖න 𝑡𝑡𝑠𝑠+1 𝑡𝑡𝑠𝑠+1+𝑇𝑇𝑝𝑝Δti𝜏𝜏 𝑡𝑡𝑠𝑠+1 𝑑𝑑𝜏𝜏 Figure 1. Definition of the variables ∆ti(τ|t). The ith component of the penalty Jloc(ts)((ts+1), respectively) represents the red (green, respectively) area shown. pj(˘ t),j∈Owith the assumption that the operators drive between the locations. The objective of the variable speed is twofold: to enable the controller to assign the speed so as to minimise energy and, on the other hand, to minimise the travel time of the operator, which may be considered to represent a burden to the human operator. The controller determines the average speed of the operator using a variable vop j(˘ t)defined as vop j(˘ t)=(vop 1,j(˘ t),...,vop Ns−1,j(˘ t)),v op ℓ,j(˘ t)≥0,(12) in which vop ℓ,j(˘ t)denotes the average speed for operator j when travelling from pℓ,j(˘ t)to pℓ+1,j(˘ t). As it is possible for two subsequent locations to be identical pℓ,j (t)=pℓ+1,j (˘ t), in such circumstances the corresponding speed of the operator vop ℓ,j(˘ t)must be 0. Otherwise, if the operator is assigned to go to a different location pℓ,j(t)=pℓ+1,j(˘ t), the speed vop ℓ,j(˘ t)has to be a strictly positive number. The total time spent by an operator jon travelling between locations is defined as Jt op,j(˘ t)= Ns−1  s=1 Drs,j (˘ t) ps,j (˘ t)→ps+1,j (˘ t) vop s,j(˘ t).(13) The time intervals when the operator waits between working at two consecutive locations do not contribute to the cost Jt op(t)in (13). However, the waiting times may be a burden to some operators like the time when they engage with wasted time during an operation (Kim et al., 2020). Hence, a second term is considered to constitute the cost function of the operator as Jw op,j(˘ t)= Ns  s=1 �Ta s,j(˘ t)−Tm s,j(˘ t)(14) + Ns−1  s=1  Tm s+1,j(˘ t)−Ta s,j(˘ t)− Drs,j (˘ t) ps,j (˘ t)→ps+1,j (˘ t), vop s,j(˘ t) . The first part in (14) stands for the waiting time at a location in between taking measurements and applying a R. Ranjbar et al. / IFAC PapersOnLine 56-2 (2023) 731–736 733 the whole duration Tpof the prediction window, i.e. , from the current activation time ˘ tof the controller until the end of the prediction window ˘ t+Tp. Thus, the following relation is achieved for τ∈[˘ t, ˘ t+Tp] ui(τ|˘ t)=uop ℓ,j(˘ t)δ(τ−Ta ℓ,j(˘ t)) if vi=pℓ,j (˘ t), 0 otherwise,(9) in which δdenotes the Dirac impulse function. Hence, the operator should take measurements at location pℓ,j(˘ t)and pass them to the controller at time Tm ℓ,j(˘ t)and at time Ta ℓ,j(˘ t)the control action uop ℓ,j(˘ t)should be employed at that location. Then, the operator continues to the subsequent location pℓ+1,j (˘ t). To describe the dynamics of the network, we integrate the continuous sampled-data MPC of Fontes and Paiva (2018) that employs a continuous-time model (2)-(3) of a system, but measurements are obtained from the system and new control actions are imposed at consecutive sampling times. This structure helps us defining the time instants (7) and (8) as real-valued variables. Network uncertainty minimisation To promote regular visits to all locations in the network, we introduce an additional penalty term Jloc(t), which adds terms to the overall cost that are proportional to the time passed since each location has been visited for the last time to take measurements and change control settings, see Figure 1. Using similar concepts of a refresh time of a node (Pasqualetti et al., 2012) or a node idleness (Chahal et al., 2021), define for each vi∈V ∆ti(τ|˘ t)=0if τ =Tm ℓ,j(˘ t)and vi=pℓ,j(˘ t), τ−tlast i(τ|˘ t) otherwise, (10) where tlast i(τ|˘ t)is initialised as tlast i(0|0)=0and is updated to tlast i(τ|˘ t)=τwhenever for any j,τ=Tm ℓ,j(˘ t) and vi=pℓ,j(˘ t)(otherwise the previously assigned value of tlast i(τ|˘ t)is kept). Moreover, each time the controller gets activated since the operator is sending measurements from the new location at time ts+1, the initial value is tlast i(ts+1|ts+1)=tlast i(ts+1|ts), in which tsimplies the time of the activation immediately before. So the cost function Jloc(˘ t)comes in the form Jloc(˘ t)= N  i=1 ˘ t+Tp ˘ t αloc,i∆ti(τ|˘ t)dτ, (11) in which αloc,i are positive constants and set more priority at visiting some locations and less at others as needed. To minimise the above-mentioned cost function, the controller must persistently take measurements from all locations. It can also drive the time instants Tm ℓ,j(˘ t),Ta ℓ,j(˘ t),Tm ℓ+1,j(˘ t) and Ta ℓ+1,j(˘ t)closer to cause a lower performance in terms of the cost function JMoMPC(t). Thus, by better tuning the weights (see (19)), we can enhance the overall performance. This process specifies the importance of the individual components of the entire cost function. Operator-centric approach In the prior results of van Overloop et al. (2015); Maestre et al. (2014); Sadowska et al. (2015), there was an assumption on a constant travel speed of the human operator. However, here, the speed of the operator may vary at different parts of the path Δt i Δ ti 𝑡𝑡𝑠𝑠 𝑡𝑡𝑠𝑠+1 𝑡𝑡𝑠𝑠+1 +𝑇𝑇𝑝𝑝 𝑡𝑡𝑠𝑠+𝑇𝑇𝑝𝑝 operator arrives at the location new activation begins value carried forward operator arrives at the location 𝑡𝑡𝑠𝑠+1 න 𝑡𝑡𝑠𝑠 𝑡𝑡 𝑠𝑠 +𝑇𝑇 𝑝𝑝Δti𝜏𝜏 𝑡𝑡𝑠𝑠𝑑𝑑𝜏𝜏 𝑖𝑖𝑡𝑡ℎ 𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑡𝑡𝑝𝑝𝑖𝑖𝑖𝑖 𝑖𝑖𝑡𝑡ℎ 𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑡𝑡𝑝𝑝𝑖𝑖𝑖𝑖න 𝑡𝑡𝑠𝑠+1 𝑡𝑡𝑠𝑠+1+𝑇𝑇𝑝𝑝Δti𝜏𝜏 𝑡𝑡𝑠𝑠+1 𝑑𝑑𝜏𝜏 Figure 1. Definition of the variables ∆ti(τ|t). The ith component of the penalty Jloc(ts)((ts+1), respectively) represents the red (green, respectively) area shown. pj(˘ t),j∈Owith the assumption that the operators drive between the locations. The objective of the variable speed is twofold: to enable the controller to assign the speed so as to minimise energy and, on the other hand, to minimise the travel time of the operator, which may be considered to represent a burden to the human operator. The controller determines the average speed of the operator using a variable vop j(˘ t)defined as vop j(˘ t)=(vop 1,j(˘ t),...,vop Ns−1,j(˘ t)),v op ℓ,j(˘ t)≥0,(12) in which vop ℓ,j(˘ t)denotes the average speed for operator j when travelling from pℓ,j(˘ t)to pℓ+1,j(˘ t). As it is possible for two subsequent locations to be identical pℓ,j (t)=pℓ+1,j (˘ t), in such circumstances the corresponding speed of the operator vop ℓ,j(˘ t)must be 0. Otherwise, if the operator is assigned to go to a different location pℓ,j(t)=pℓ+1,j(˘ t), the speed vop ℓ,j(˘ t)has to be a strictly positive number. The total time spent by an operator jon travelling between locations is defined as Jt op,j(˘ t)= Ns−1  s=1 Drs,j (˘ t) ps,j (˘ t)→ps+1,j (˘ t) vop s,j(˘ t).(13) The time intervals when the operator waits between working at two consecutive locations do not contribute to the cost Jt op(t)in (13). However, the waiting times may be a burden to some operators like the time when they engage with wasted time during an operation (Kim et al., 2020). Hence, a second term is considered to constitute the cost function of the operator as Jw op,j(˘ t)= Ns  s=1 �Ta s,j(˘ t)−Tm s,j(˘ t)(14) + Ns−1  s=1  Tm s+1,j(˘ t)−Ta s,j(˘ t)− Drs,j (˘ t) ps,j (˘ t)→ps+1,j (˘ t), vop s,j(˘ t) . The first part in (14) stands for the waiting time at a location in between taking measurements and applying a 734 R. Ranjbar et al. / IFAC PapersOnLine 56-2 (2023) 731–736 control action and the second part accounts for the waiting times before travelling to a new location. Additionally, a third component of the operator’s cost function is introduced, originating from the fact that different routes may have different associated stress levels for different operators. For instance, driving on a busy highway versus a local road, where one may prefer either of those (Farahmand and Boroujerdian, 2018). Therefore, the selection of the route rℓ,j(˘ t)is also taken into consideration when evaluating the burden for the operator Js op,j(˘ t)= Ns−1  s=1 Srs,j (˘ t) ps,j (˘ t)→ps+1,j (˘ t)(˘ t),(15) where the stress level variable Sis time-varying to allow assigning different levels for different times in response to ,e.g. , traffic congestion or weather conditions. Here, we assume that the stress levels are identical for all operators but the method can be easily extended to operatordependent stress levels. While involving multiple operators, we propose an additional penalty term Juni, with the purpose of enhancing schedules with uniform workload between operators. The workload is defined in terms of an average of the travel time Ttr,j(˘ t)given in (13) and the waiting time Twait,j (˘ t) given in (14). Thus, the total time variable for operator j sets as Ttot,j(˘ t)=Ttr,j(˘ t)+Twait,j (˘ t), and an average time between all operators as Tave tot (˘ t)= 1 Nop j∈O Ttot,j(˘ t). It should be noted that the time is not counted for Ttot,j(˘ t) when the operators are active at network nodes since at this time, they are not travelling nor waiting. The penalty takes the form Juni(˘ t)= j∈O Ttot,j(˘ t)−Tave tot (˘ t)2.(16) The total time variable considered in (16) is related to its individual components Ttr,j and Twait,j . So if an operator prefers to spend different time on travelling or waiting, its preference is not a conflict with this penalty (cf. (17)). The overall cost function for the human operators that comes in form of a burden is described as Jop(˘ t)=j∈O αt op,jJt op,j(˘ t)+αw op,jJw op,j(˘ t) +αs op,jJs op,j(˘ t)+αuniJuni(˘ t),(17) with weighting parameters αt op,j,αw op,j,αs op,j, and αuni. Energy conservation The energy consumption cost can be represented as Je(˘ t)= j∈O Ns−1  s=1 Drs,j (˘ t) ps,j (˘ t)→ps+1,j (˘ t)vop s,j(˘ t).(18) We note that the two objectives (13) and (18) are in conflict since to minimise (13), the assigned speed of the operator should be maximised to allow the operator to travel faster, whereas to minimise (18) the speed of the operator should be minimised. The final control algorithm The optimal event-driven control problem to be solved when the controller is activated and the operator is providing new measurements takes the form min Uj(˘ t) j∈O JMoMPC(˘ t)+w1Jloc(˘ t)+w2Jop(˘ t)+w3Je(˘ t),(19) subject to ˆx(τ|˘ t)∈X,∀τ∈[˘ t, ˘ t+Tp],(20) u(Ta ℓ,j|˘ t)∈U,for ℓ=1,...,N s,j∈O,(21) Tm ℓ+1,j ≥Ta ℓ,j +Drℓ,j pℓ,j →pℓ+1,j vop ℓ,j +∆Tarr d,pℓ+1,j +∆Tdep d,pℓ,j , (22) for ℓ=1,...,N s−1if pℓ,j =pℓ+1,j,j∈O, Tm ℓ+1,j ≥Ta ℓ,j +∆Tmin d,pℓ,j ,(23) for ℓ=1,...,N s−1if pℓ,j =pℓ+1,j,j∈O, Ta ℓ,j ≥Tm ℓ,j +∆Ta d,pℓ,j ,for ℓ=1,...,N s,j∈O,(24) Tm 1=˘ t, p1,j =vcurrent,j,for j∈˘ O,(25) Tm 1,j ≥˘ t+Tbusy,j + Dr1,j locj→p1,j (˘ t) vop 1,j (26) p1,j ∈V,for j/∈˘ Oand stj=0, Tm 1,j ≥˘ t+ Dr1,j locj→p1,j (˘ t) vop 1,j (27) p1,j =p1,j(t∗),for j/∈˘ Oand stj=1, Tm 2,j ≤˘ t+Tmax,(28) for ℓ=1,...,N s−1,j∈O, vrℓ,j min,pℓ,j →pℓ+1,j ≤vop ℓ,j ≤vrℓ,j max,pℓ,j →pℓ+1,j (29) and (9),(2),(3),(10),(30) where the time dependence (˘ t)is discarded from the constraints for brevity, locjis the location of a travelling operator jat time ˘ t, Uj(˘ t)=pj(˘ t),r(˘ t)Tm j(˘ t),Ta j(˘ t),u op j(˘ t),vop j(˘ t) and w1,w2,w3are positive weighting parameters. If the next location is different from the previous one (pℓ,j(˘ t)= pℓ+1,j(˘ t)), the controller can freely schedule the corresponding measurement time instants Tm j(˘ t)and the actuation time instants Ta j(˘ t)granted that the time instants conform with the total resulting travelling times between the locations, the times Tarr d,virequired after arrival to a location vi∈Vto derive as (2)-(3) is in (19)-(30) and as it is a continuous-time model, the times Tdep d,virequired at the location vito finish the work and to continue to the next location, see (22). On the other hand, if the operator is scheduled to stay at the same location and time (pℓ,j(˘ t)=pℓ+1,j(˘ t)), the actuation takes place only after given a small time delay Tmin d,pℓ,j (˘ t), see (23). Furthermore, constraint (24) acts as the time delay that the operator needs to get ready to apply a control action after exchanging information with the controller, constraints (25)–(27) show when the first measurement needs to be scheduled depending on whether the operator is travelling or is at a location, and constraint (28) means that a minimum of one additional location has to be scheduled for each operator within a given maximal idle time Tmax ≤Tpto provide the controller with new measurements of the system. Reach 1 Reach 2 Reach 3 Reach 4 Reach 5 Reach 6 Reach 7 Reach 8 Figure 2. longitudinal profile of the West-M canal in Arizona (picture adapted from Negenborn et al. (2009b)). 4. CASE STUDY We apply the proposed method by using a numerical model of the West-M irrigation canal in Phoenix, Arizona (Negenborn et al., 2009a). This canal consists of eight pools, see (Figure 2), but to test the controllers, pools 5 and 6 are considered as one single pool as in (Negenborn et al., 2009b). There are movable gates between the pools that the operator can raise or lower to let more or less flow through. At the inlet to the canal, there is a head gate providing water from a source. In practice, the access to the head gate is continuous since it is directly connected to the control centre and so, in this paper, we assume that measurements and actuations of the head gate are allowed continuously while the remaining gates are only serviced by a human operator. Simulation results and discussion For using (19)-(30), we derive a discrete-time model with a sample and control step both equal to Tc=4minutes. Actually, the purpose of discretisation is the ease of implementation. It should be noted that this way of implementation means that the time instants (7)–(8) are integer variables (i.e. , sample steps) and not real-valued variables. The genetic algorithm implemented in Matlab is therefore used to solve the optimisation problem. Subsequently, we compare the results obtained with those of the algorithms introduced in Maestre et al. (2014); van Overloop et al. (2015); Sadowska et al. (2015). We use a process model identical to the prediction model and Ns=5, and assume that there is a single operator in the network. We simulate a scenario with a prediction horizon and control horizon equal to Np= 96, and Nc= 16, respectively. To enable a fair comparison, we use a simplified control algorithm to better match the settings of Maestre et al. (2014); van Overloop et al. (2015); Sadowska et al. (2015). Thus, the speed of the operator is constant, the energy consumption and the stress component are neglected, and each pair of gates is connected with a unique path. Moreover, ∆Tarr d,v =∆Tdep d,v =∆Ta d,v =0, see (21). In addition, Tmax =NcTc, and ∆Tmin d,v =Tc, see (23). The simulation starts with off-takes in pools 1 to 6 equal to 0.2, 0.4, 0.2, 0.3, 0.3, 0.2, 0.6 (in m3/s). Then after 6 hours, the off-takes are changed to 0.3, 0.6, 0.2, 0.1,0.5, 0.6, 0.9 in pools 1 to 6, respectively. We compare the approaches in terms of a posteriori performance indices Jxu = Nf  k=1 xT(k)Qx(k)+uT(k)Ru(k), J∆t = 8  i=2 Nf  k=1 ∆ti(k), in which Nf= 360 and the weighting matrices are Q= 100 and R=0.01I. For the approach in Maestre et al. (2014); van Overloop et al. (2015), we have Jxu =4.30 ·104and J∆t =4.6·105, for Sadowska et al. (2015), Jxu =1.99 ·104 and J∆t =7.4·105, and for the new method Jxu =1.66·104 and J∆t =1.4·106. In addition, we compare the total waiting time and the total travel time. For the approach of Maestre et al. (2014); van Overloop et al. (2015), the waiting time is 0 since the method does not allow any waiting, and the travel time is 360. For the structure of Sadowska et al. (2015), the waiting time is 240 and the travel time is 120. Lastly, for the new methods, we have a waiting time of 271 and the travel time of 89. As evidenced by these measures, the new method can outperform the previous methods in terms of the operational objective Jxu and the travel time of the operator. Note that Sadowska et al. (2015) implements also TIO-MPC, so if other cost components were disregarded, the same value of Jxu could be achieved. We remark that with the new method, the price for improved operational performance and shorter travel time is an extended time of the operator waiting and less frequent visits to the gates. Notice in Figure 3 that for the new method, the operator only makes a handful of trips in the second half of the simulation, whereas for the other methods, and particularly for Maestre et al. (2014); van Overloop et al. (2015), the operator continues to travel between the gates frequently. If the system was subjected to uncertainties, it would be beneficial to continue taking measurements, in which case different weighting parameters would have to be selected. We also plot in Figure 4 the results obtained with the new method. It is shown that the new method ensures that the errors in the water levels with respect to their setpoints obtained in a closed-loop simulation converge to zero faster. 5. CONCLUSIONS A human-in-the-loop control problem for an irrigation network system has been considered. The human operators act as moving sensors that obtain measurements from the current visited locations to send those to a central controller. They also perform as actuators based on the actions the controller requests. Since the human operator can only provide the controller with limited sensing and actuating actions, the actual timings of the actuations done by the human operator have been used as optimisation variables in a time instant optimisation MPC (TIO-MPC) framework. In this way, the performance of the proposed method is improved compared to the previous ones in the literature. Future work includes engaging more human-related features possibly through experiments to obtain more precise models of the human behaviour to be used with the modelpredictive controller. In addition, controller tests will be performed using a high-fidelity simulator of a networked system. Moreover, the problem of observer design for the special settings considered in the paper will be explored. R. Ranjbar et al. / IFAC PapersOnLine 56-2 (2023) 731–736 735 Reach 1 Reach 2 Reach 3 Reach 4 Reach 5 Reach 6 Reach 7 Reach 8 Figure 2. longitudinal profile of the West-M canal in Arizona (picture adapted from Negenborn et al. (2009b)). 4. CASE STUDY We apply the proposed method by using a numerical model of the West-M irrigation canal in Phoenix, Arizona (Negenborn et al., 2009a). This canal consists of eight pools, see (Figure 2), but to test the controllers, pools 5 and 6 are considered as one single pool as in (Negenborn et al., 2009b). There are movable gates between the pools that the operator can raise or lower to let more or less flow through. At the inlet to the canal, there is a head gate providing water from a source. In practice, the access to the head gate is continuous since it is directly connected to the control centre and so, in this paper, we assume that measurements and actuations of the head gate are allowed continuously while the remaining gates are only serviced by a human operator. Simulation results and discussion For using (19)-(30), we derive a discrete-time model with a sample and control step both equal to Tc=4minutes. Actually, the purpose of discretisation is the ease of implementation. It should be noted that this way of implementation means that the time instants (7)–(8) are integer variables (i.e. , sample steps) and not real-valued variables. The genetic algorithm implemented in Matlab is therefore used to solve the optimisation problem. Subsequently, we compare the results obtained with those of the algorithms introduced in Maestre et al. (2014); van Overloop et al. (2015); Sadowska et al. (2015). We use a process model identical to the prediction model and Ns=5, and assume that there is a single operator in the network. We simulate a scenario with a prediction horizon and control horizon equal to Np= 96, and Nc= 16, respectively. To enable a fair comparison, we use a simplified control algorithm to better match the settings of Maestre et al. (2014); van Overloop et al. (2015); Sadowska et al. (2015). Thus, the speed of the operator is constant, the energy consumption and the stress component are neglected, and each pair of gates is connected with a unique path. Moreover, ∆Tarr d,v =∆Tdep d,v =∆Ta d,v =0, see (21). In addition, Tmax =NcTc, and ∆Tmin d,v =Tc, see (23). The simulation starts with off-takes in pools 1 to 6 equal to 0.2, 0.4, 0.2, 0.3, 0.3, 0.2, 0.6 (in m3/s). Then after 6 hours, the off-takes are changed to 0.3, 0.6, 0.2, 0.1,0.5, 0.6, 0.9 in pools 1 to 6, respectively. We compare the approaches in terms of a posteriori performance indices Jxu = Nf  k=1 xT(k)Qx(k)+uT(k)Ru(k), J∆t = 8  i=2 Nf  k=1 ∆ti(k), in which Nf= 360 and the weighting matrices are Q= 100 and R=0.01I. For the approach in Maestre et al. (2014); van Overloop et al. (2015), we have Jxu =4.30 ·104and J∆t =4.6·105, for Sadowska et al. (2015), Jxu =1.99 ·104 and J∆t =7.4·105, and for the new method Jxu =1.66·104 and J∆t =1.4·106. In addition, we compare the total waiting time and the total travel time. For the approach of Maestre et al. (2014); van Overloop et al. (2015), the waiting time is 0 since the method does not allow any waiting, and the travel time is 360. For the structure of Sadowska et al. (2015), the waiting time is 240 and the travel time is 120. Lastly, for the new methods, we have a waiting time of 271 and the travel time of 89. As evidenced by these measures, the new method can outperform the previous methods in terms of the operational objective Jxu and the travel time of the operator. Note that Sadowska et al. (2015) implements also TIO-MPC, so if other cost components were disregarded, the same value of Jxu could be achieved. We remark that with the new method, the price for improved operational performance and shorter travel time is an extended time of the operator waiting and less frequent visits to the gates. Notice in Figure 3 that for the new method, the operator only makes a handful of trips in the second half of the simulation, whereas for the other methods, and particularly for Maestre et al. (2014); van Overloop et al. (2015), the operator continues to travel between the gates frequently. If the system was subjected to uncertainties, it would be beneficial to continue taking measurements, in which case different weighting parameters would have to be selected. We also plot in Figure 4 the results obtained with the new method. It is shown that the new method ensures that the errors in the water levels with respect to their setpoints obtained in a closed-loop simulation converge to zero faster. 5. CONCLUSIONS A human-in-the-loop control problem for an irrigation network system has been considered. The human operators act as moving sensors that obtain measurements from the current visited locations to send those to a central controller. They also perform as actuators based on the actions the controller requests. Since the human operator can only provide the controller with limited sensing and actuating actions, the actual timings of the actuations done by the human operator have been used as optimisation variables in a time instant optimisation MPC (TIO-MPC) framework. In this way, the performance of the proposed method is improved compared to the previous ones in the literature. Future work includes engaging more human-related features possibly through experiments to obtain more precise models of the human behaviour to be used with the modelpredictive controller. In addition, controller tests will be performed using a high-fidelity simulator of a networked system. Moreover, the problem of observer design for the special settings considered in the paper will be explored. 736 R. Ranjbar et al. / IFAC PapersOnLine 56-2 (2023) 731–736 sample step 0 50 100 150 200 250 300 350 operator position 2 3 4 5 6 7 8 method of [16, 17] method of [20] new method Figure 3. Comparison of the operator position for the approaches considered. sample step 0 50 100 150 200 250 300 350 errors -1 0 1 e1 e2 e3 e4 e5 e6 e7 sample step 0 50 100 150 200 250 300 350 flows -4 -2 0 2u1 u2 u3 u4 u5 u6 u7 Figure 4. Simulation results obtained with the new TIO- MoMPC algorithm. REFERENCES Chahal, J., Belbachir, A., and Seghrouchni, A.E.F. (2021). I-cmommt: a multiagent approach for patrolling and observation of mobile targets with a continuous environment representation. In Proceedings of the International Conference on Software Engineering and Knowledge Engineering, SEKE. Farahmand, B. and Boroujerdian, A.M. (2018). Effect of road geometry on driver fatigue in monotonous environments: A simulator study. Transportation Research Part F: Traffic Psychology and Behaviour, 58, 640–651. Fontes, F.A. and Paiva, L.T. (2018). Guaranteed constraint satisfaction in continuous-time control problems. IEEE Control Systems Letters, 3(1), 13–18. Jiang, F., Zhang, Q., Yang, Z., and Yuan, P. (2019). A space–time graph based multipath routing in disruptiontolerant earth-observing satellite networks. IEEE Transactions on Aerospace and Electronic Systems, 55(5), 2592–2603. Kaupp, T., Makarenko, A., Kumar, S., Upcroft, B., and Williams, S. (2005). Operators as information sources in sensor networks. In Proceedings of the 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, 936–941. Alberta, Canada. Kim, M.H., Park, J.W., and Choi, Y.J. (2020). A study on the effects of waiting time for airport security screening service on passengers’ emotional responses and airport image. Sustainability, 12(24), 10634. Lewis, M., Wang, H., Velagapudi, P., Scerri, P., and Sycara, K. (2009). Using humans as sensors in robotic search. In Proceedings of the 12th International Conference on Information Fusion, 1249–1256. Seattle, WA. Maestre, J.M. (2021). Human in the loop model predictive control methods for water systems. Systems, Control and Information, 65(9), 352–357. Maestre, J., van Overloop, P.J., Hashemy, M., Sadowska, A., and Camacho, E. (2014). Mobile model predictive control for irrigation canals. In Proceedings of IEEE Conference on Decision and Control, 4881–4886. Los Angeles, CA. Negenborn, R.R., Leirens, S., De Schutter, B., and Hellendoorn, J. (2009a). Supervisory nonlinear MPC for emergency voltage control using pattern search. Control Engineering Practice, 17(7), 841–848. Negenborn, R.R., van Overloop, P.J., and De Schutter, B. (2009b). Coordinated distributed model predictive reach control of irrigation canals. In Proceedings of the European Control Conference 2009, 1420–1425. Budapest, Hungary. Pasqualetti, F., Franchi, A., and Bullo, F. (2012). On cooperative patrolling: Optimal trajectories, complexity analysis, and approximation algorithms. IEEE Transactions on Robotics, 28(3), 592–606. Rodríguez, F.L., Horváth, K., Martín, J.G., and Maestre, J. (2017). Mobile model predictive control for the évora irrigation test canal. IFAC-PapersOnLine, 50(1), 6570– 6575. Sadowska, A., van Overloop, P.J., Maestre, J., and De Schutter, B. (2015). Human-in-the-loop control of an irrigation canal using time instant optimization model predictive control. In Proceedings of 2015 European Control Conference, 3274–3279. van Overloop, P.J., Maestre, J., Sadowska, A., Camacho, E., and De Schutter, B. (2015). Human-in-the-loop model predictive control of an irrigation canal. IEEE Control Systems Magazine, 35(4), 19–29.