Abstract
This paper introduces a framework aimed at analyzing the water-energy-food nexus (WEF) within the context of sustainable farming practices utilizing renewable energy sources, specifically Solar PV, to optimize water management efficiency. The focus lies on investigating the interplay between the water-energy-food nexus and both technical and institutional factors. The study particularly delves into the utilization of distributed energy systems and microgrids for electricity distribution. To achieve the objectives outlined, the framework is applied to a case study involving an off-grid farm in Morocco, aligned with the country's “Green Morocco Plan” of 2008. The study employs the AnyMOD open-source modeling framework in combination with the publicly available decision support tool CropWat (Version 8.0). Through this coupling, a linear optimization model is created to assess various irrigation practices, thus evaluating the energy and water supply variations across different crop growth stages. By employing scenario analysis, the study reveals that the integration of a smart microgrid alongside storage technologies proves beneficial in terms of reducing overall system costs. This integration presents cost-effective solutions and enables the establishment of a sustainable energy supply driven by renewable energy resources. Furthermore, the investigation highlights that constraining irrigation to specific hours of the day results in increased storage requirements and higher associated costs. In conclusion, the study underscores that enhancing the water-energy-food nexus through the integration of a renewable-based microgrid is a complex task. However, it significantly contributes to the development of sustainable farming solutions. This research sheds light on the challenges and opportunities associated with aligning renewable energy, water management, and agricultural practices, ultimately facilitating the pursuit of environmentally conscious and efficient farming methodologies.
1. Introduction
In the context of the Sustainable Development Goals (SDGs), defined by the United Nations (General, ), agriculture is linked directly to, i.e., zero hunger (SDG2), water (SDG 6) and energy (SDG 7). Both inputs, water, and energy, are scarce, and need to be used efficiently. This topic nowadays runs under the title of the “water-energy-food” nexus (WEF). The WEF is particularly important in arid regions, like North Africa, where some farms are completely isolated from the main grid, others are connected to the grid but still require additional energy to power their farm equipment. For both grid-connected and isolated farms, gas and diesel are the dominant alternative resources of energy. These fossil energies produce significant amounts of CO2, and affect the countries' ability to meet their climate targets, e.g., those agreed on in the Paris Agreement of the COP21 (General, ). Similarly, the region is threatened by water scarcity (Djaffar and Kettab, ). Governments and private actors often have to intervene and are trying to develop local solutions for decentralized sustainable water management systems such as water purification or desalination plants, water pumping and distribution systems, recycling units for gray water, smart agriculture projects etc., as alternative ways of coping with the situation.
While the water-energy-food nexus is a global topic, empirical evidence suggests that North Africa, i.e., the Maghreb region, is particularly affected by diminishing water resources and the need to migrate from fossil fuels to renewables. Agriculture plays an important role in these fast-growing countries. Thus, significant attention has to be paid to how the abundant renewable energy resources particularly Solar PV in the region can be sustainably developed for diverse farm production uses, with a direct impact on farm water management and opportunities for storage systems such as cooling chambers and water reservoirs. Algeria is an interesting case, that is starting to move from fossil fuels to renewables.1 Morocco is another case at hand, where despite recent technological progress, the agriculture sector is still using traditional technologies and approaches. The increasing number of small farms with complicated land title issues was one of the main limiting factors for policymakers to modernize this sector while taking into consideration the tradeoff between the economic scale and the social and rural structure of the Moroccan society (Faysse, ).
In this paper, we provide a framework for analyzing the microgrid approach and apply it to a concrete case study in Morocco using two models in the energy-water-food (WEF) nexus. Our hypothesis is that sustainable agriculture in the region requires both an efficient use of the scarce resource water and the conversion of the traditional, fossil-fuel based energy system to renewable resources. We combine the analysis of a real-world laboratory, a farm in Morocco, with a numerical modeling exercise to gain insights into potential development pathways for the WEF. The concept of local microgrids will be particularly useful in this context because they allow a flexible use of resources at modest cost. The next section of the paper provides elements of the techno-economic context of our paper, including distributed energy systems, the potential role of microgrids in the WEF; it also covers the setting of our case study, a farm in the Marrakesh-Safi region in Morocco. Section Methodology: models, scenarios, and data presents the modeling framework, combining an energy system model (“AnyMOD”) with a publicly available computer program of crop water requirements and irrigation (“CropWat 8.0”). We define four different scenarios that differ by assumptions on irrigation timing, and we explain the other variables. We include a scenario with an (exogenously developed) microgrid, to open the possibility of energy sector transformation. Section Results and discussion presents the results: We find a direct link between farming practices and the efficient use of water and (renewable) energy. In the longer term, the combination of a microgrid and some storage capacity, in addition so significant solar panels to generate electricity, yields the least-cost solution. We conclude in Section Conclusions and further research that the water-energy-food nexus in North Africa (and elsewhere, off course) has to be treated with care, but that sustainable development options do exist.2
2. Context: the water-energy-food nexus and application to a case study
This section presents some context that is needed to assess the case study of the WEF in Morocco. In particular, we review the potential role of distributed resources and microgrids, and we provide background information on the case study in Morocco.
2.1. Distributed energy systems and microgrids
2.1.1. Distributed resources
Decentralized energy systems have been defined by small-scale units that can generate energy for local clients. Therefore, Decentralized Energy System (DES) can be stand-alone or connected and shared to the network (Vezzoli et al., ). Figures 1, 2 illustrate how the DES can be implemented in the local grid. Of the numerous renewable energy development alternatives available, micro-grid systems have been described as one of the most self-sufficient and stable energy systems. They also have a significant potential of meeting the operational needs of such farms, as well as generating abundant energy for larger-grid integration, or storage using batteries and other technologies for local farm and broader community use (Lefore et al., ). The potential of such systems on and off the farms is further enhanced if such systems are digitalized (Blasch et al., ). However, the proper design and implementation of these systems to derive the maximum benefits depend on the availability of high-quality data and simulated models on the expected performances of these systems.
Figure 1
Figure 2
The microgrid concept is defined as a reliable solution to integrate distributed energy resources (DERs), load and energy storage systems. It can be seen as a box of connected units, distributing generation and the use of energy storage systems to one point that is called point of common coupling (PCC) (Olivares et al.,
The deployment of microgrids is expected to reduce overall energy consumption, therefore reducing system costs. Microgrids are considered one of the features of distributed energy that can facilitate and coordinate the realization of smart grids (Vezzoli et al.,
According to Bloomberg NeF, the digitalization of energy systems can ensure and maintain grid stability and reliability, where the frequency can be regulated in real-time, and accurate response to the system demand will be provided. It can also provide the opportunity to monitor the grid and identify the weak point using digital technologies, optimization, and energy production forecasting tools that can help to integrate RE easily with efficient equipment. Consumers will have more control over their system and easy access to the data (energy consumption, power generation) (Cozzi et al.,
2.1.2. Microgrids and the water-energy-food nexus
The interactions between water, food, and energy are diverse, and each of such interactions counts. A significant amount of water is utilized in the production of energy, from direct energy extraction as in hydroelectric power generation to indirect contributions such as in the production of either feedstock or relevant crops for synthesizing biofuels (Raza et al.,
Electricity is the most efficient form of energy to manage the water resources needed for farming (Jackson et al.,
El Youssfi et al. (
Figure 3

Illustration of the energy-water-food (EWF) nexus. Source: (Granit,
In the context of our case study in Morocco. The nexus highlights that water is crucial for irrigation and crop production, its availability and efficient management directly impact the food production in general. In addition, energy plays a vital role in agricultural activities, such as water pumping in our case, and machinery operation. Renewable energy technologies, such as solar photovoltaics, can provide clean and sustainable energy for the irrigation systems, reducing fossil fuels dependency and mitigating climate change. By integrating these key factors of the water-energy-food nexus, we strengthen the interconnection and enhance the management of water and energy resources for sustainable agriculture production.
2.2. Case study: a WEF-nexus in a farm in Morocco
2.2.1. Energy transformation in morocco
Morocco is relatively advanced in its energy transformation process, and it has already specified renewables targets, too (IEA,
The COVID-2019 pandemic has increased the need for an efficient use of resources across all sectors (Sridhar et al.,
As Morocco aims to make the agricultural sector one of its main pillars for economic development (Faysse,
2.2.2. Overview of the chosen farm
The Rismar Farm (called “Abd El Hafid”) is situated in the El Kelâa des Sraghna province, Marrakech-Safi region, known for its great agricultural reputation, especially for the cultivation of olive trees.4 It occupies the first class of olive production at the national level. Particularly in the agricultural sector, olive trees remain the predominant trees in the region. They extend over more than 43,000 hectares, or almost 91% of the total area reserved for fruit farming with an average production of over 100,000 tons in a normal year, or twenty-four quintals per hectare [The Chamber of Commerce, Industry and Services of the Marrakesh–Safi Region (CCISRMS),
Recently, the Moroccan government has planned strong national investments in the agriculture sector, especially in olives. For instance, El Kelâa des Sraghna hosts the national olive exhibition. Thus, the Rismar farm could be considered like a living laboratory (or open platform) for sharing best practices in all aspects (e.g., microgrid, water, and energy).
The farmer has its own water resource using a pumping system, which operates on power-generated photovoltaic systems (15.6 kWp polycrystalline technology with no battery storage) deployed in 2014. This energy is used to pump water from the well (100 m depth). In addition, 3–4 gas bottles are used per day for additional electricity generation as shown in Figure 4. More precisely, the electricity generated from the PV system is not sufficient to power all the energy needs of the farmer; it is used also at night or on cloudy days to provide the farm with the needed electricity.
Figure 4

Distribution channel of water and fertilizers. Source: authors.
Regarding the water, no storage tank is used so far. The groundwater is directly pumped and redirected to the irrigation system, which drips slowly to the roots of the plants, from above the soil surface. It should be mentioned that a water tank (basin) as captured in Figure 5 together with its supporting system (the irrigation system including the management part) were already deployed, but not used so far because of the lack of electricity. The farm does not have access to the public utility grid, neither is any electricity storage installed.
Figure 5

The deployed basin and irrigation management system. Source: authors.
3. Methodology: models, scenarios, and data
For this study, the open-source modeling framework AnyMOD (Göke,
3.1. Models
3.1.1. The anymod energy system framework
The AnyMOD Framework uses a graph-based linear modeling approach to allow for large scale energy system models (Göke,
Another advantage of the AnyMOD framework is its transparency and ease of transfer across different applications. AnyMOD is an open source package for the Julia coding language (Bezanson et al.,
3.1.2. Cropwat 8.0
In this paper, electricity generation and use were modeled on an hourly basis, while the granularity of water supply and demand varies across the different scenarios. CropWat 8.0 is a publicly available computer program by the Food and Agriculture Organization of the United Nations (FAO) for the calculation of crop water requirements and irrigation scheduling. The calculations are based on climate, soil and crop data that can be obtained using the CLIMWAT database (Smith,
where Peff is the effective power, Ptotal is the total power, and 250 mm is a threshold of rainfall. Peff is the amount of water from precipitation that is effectively used by the crop. Ptotal is the total precipitation for crop water requirements of non-rice crops, used as a reference. Evapotranspiration (ETo) is multiplied with the respective crop coefficient (Kc) this product represents the crop evapotranspiration under optimal conditions; this must be and can be subtracted by effective rain (Peff) to calculate the irrigation requirements (Irrreq).
Crop coefficients vary throughout four phases of crop cultivation, the initial stage, crop development stage, mid-season stage and the late season stage. In this study, CropWat 8.0 was used to calculate irrigation requirements for three-time steps in every month i.e., for 36 periods for a year. The data used was extracted from the CLIMWAT 2.0 (Smith,
In every scenario, a residual load was implemented to account for cooling and security systems. The yearly electricity usage for cooling activities per capita in El Paso (Waite et al.,
3.2. Scenario development
Four different scenarios were created to model different irrigation habits. This was made to depict and compare different behavioral strategies of the farmer that require varying degrees of infrastructure and labor. Across all scenarios, preexisting pumping systems and a water storage with the capacity of 10,000 m3 water are installed. In order to meet the irrigation demand water needs to be pumped out of a source (a small fountain for example), into the water storage and then needs to be pumped out of the storage and onto the fields which have a uniform surface area of two hectares. Figure 6 Energy water flow, and Table 1 summarizes the scenarios.
In the first scenario (scenario IrrFix), irrigation happens in a constant flow of water on an hourly basis, with no regard to the daytime. The sum of the water flow equals the irrigation requirements of every crop. In this scenario, all crops are irrigated at all times i.e., they are all irrigated simultaneously. This depicts a case where all fields are irrigated via water pipes that use drip irrigation.
The second scenario (scenario Irr9-5) depicts irrigation at working hours from 9 am to 5 pm. In this scenario, irrigation is labor intensive, and crops cannot be irrigated simultaneously.5 Therefore every 10-day interval was divided into 9 working days and each crop gets its water requirement fulfilled within 3 days of irrigating from 9 am to 5 pm.
As a third scenario (scenario IrrME), irrigation is conducted for 3 h in the early morning (5 to 8 am) and in the evening (5–8 pm) and follows the same principal as the scenario Irr9-5, i.e., irrigation occurs on three distinct working days for each crop in each 10-day interval. This scenario depicts a case where farmers avoid working in heat. The same assumption about the availability of manual labor as in scenario Irr9-5 was made.
The last scenario (scenario IrrOpt) represents the implementation of a smart micro grid, which optimizes around the availability of renewable energy resources (Solar PV energy) in alignment with the visual representation in Figure 7. The microgrid is 100% flexible when to irrigate on an hourly basis and how much, as long as the irrigation requirements of every crop is met in every ten-day interval.
Figure 6

Energy flow graph. Source: authors, based on the AnyMOD framework.
Table 1
| IrrFix | Irr9-5 | IrrME | IrrOpt | |
|---|---|---|---|---|
| Irrigation timing | Every hour | From 9 am to 5 pm | From 5 to 8 am and 5–8 pm | Variable |
| Simultaneous irrigation of crops | Yes | No | No | Yes |
Scenario overview.
Source: authors.
Figure 7

Supply and demand in scenario IrrOpt: electricity and water. Source: own calculations.
The model optimizes the energy investments and the use of storage under the assumption of full knowledge about the weather conditions (the year used for the study is 2019). The underlying assumption is that the farmer has knowledge about the weather conditions and is able to adapt the storage management accordingly. This assumption holds, when access to accurate weather forecasts is given and farmers are able to derive rational and precise decisions for their storage management based on this information. In this context, a smart microgrid that is able to take weather data as an input and then to calculate the optimal charging and discharging activities of the storages would be a significant progress and help to optimize the available renewable energy.
3.3. Data
For the development of the optimization model the authors collected different types of data, including from field trips and interviews, to assemble a representative snapshot for the farm in Morocco. For the availability of Solar PV, hourly generation potentials of the year 2019 were taken from a publicly available website (Pfenninger and Staffell,
Table 2
| Diesel generator | Solar PV | Battery | |
|---|---|---|---|
| Technical lifetime [years] | 20 | 20 | 18 years (own estimate) |
| Capital costs [$/kW] | 6,500 | 1,300 | 74 |
| Variable O and M [$/kWh] | 0.015 | 0 | 0 |
| Source | Stiftung, | Timilsina, | IEA, |
Diesel, solar PV, and battery cost.
The cultivated crops in this study (wheat, potatoes and small vegetables) were selected based on their share of agricultural production (FAO,
4. Results and discussion
Table 2 shows the Solar PV capacities and battery storage capacities, both in kilowatts (kW). In addition, the table includes a column showing the cost differential between the lowest costs (scenario IrrOpt), as 100%, and the cost uplift of the other scenarios. Figure 7 shows the flows of electricity and water over 500 h, both demand (upper part of each panel) and supply (lower part). Across all scenarios, small battery capacities were utilized to ensure that the residual power demand could be met in hours of zero electricity generation from Solar PV. Differences in pumping activities and water storage management will also be discussed in this section, together with more general implications of the reviewed scenarios.
4.1. Solar and battery storage investments
Investment in Solar PV capacities is quite similar throughout the scenarios. The results as shown in Table 3. However, those in battery storage capacity differ significantly. The results show that the smart microgrid (scenario IrrOpt) yielded the overall lowest system costs, around 39% below the second-best option. This is because investments in batteries are the lowest, thanks to the efficient distribution of the solar electricity generated.
Table 3
| Solar PV [kWp] | Battery storage capacity [kW] | Cost differential to optimum [Cost of IrrOpt = 100%] | |
|---|---|---|---|
| IrrFix | 34.2 | 78.1 | +38.8% |
| Irr9-5 | 34.5 | 80.8 | +39.6% |
| IrrME | 37.7 | 125.5 | +64.4% |
| IrrOpt | 32.9 | 1.25 | 0% (optimum) |
Results from the model for different equipment for the farm.
When irrigating at a constant rate regardless of the time of day (scenario IrrFix), additional investments into battery capacities have to be made in order to ensure that the power demand of the irrigation can be fulfilled during the night. In order to minimize costs, efforts should be made to ensure that water that is needed for irrigation is already available and does not have to be pumped from the source during the night. This can be achieved by filling a water storage in times of high electricity generation from the Solar PV.
In this paper, the water storage is represented as a basin at ground level. However, above ground level water storages might have the potential to reduce the electricity demand for direct irrigation, by capitalizing on the potential energy of the water. This could potentially reduce the necessary battery capacities in this scenario significantly; however, it would also lead to a higher electricity demand during the day. The payoffs of above ground level water storages should be explored in further research. The overall system costs of the scenario IrrFix were 38.8% higher compared to a scenario with a microgrid that optimizes irrigation timing.
Irrigating between the traditional working hours from nine to five (scenario Irr9-5) yields a similar storage requirement as in the IrrFix scenario (+39:6 % higher costs). By irrigating at hours that are similar to working hours of other industries (i.e., from 9 am to 5 pm), most of the electricity demand occurs during the day, which is efficient for the utilization of Solar PV. However, in the early working hours (9–10 am) the generation of the installed Solar PV system has to be supplemented by batteries, due to the relatively small generation potential of solar-based technologies in this period. The battery and the water storage can then be refilled at hours of high PV availability and in the evening hours, where no direct irrigation occurs. Delaying the irrigation by just 1 h decreases the need for additional battery capacities and reduces the overall system costs by around 2%. This would make it a slightly better option, compared to the previously discussed scenario (IrrFix), but it would still be 37.6% more expensive than a scenario with smart irrigation timing by a microgrid.6
Last but not least, model results indicate that irrigating only in the early morning and in the evening (scenario IrrME) is the least efficient and most costly irrigation habit across all four scenarios. It yields around 64.4% higher system costs then a farm that is equipped with a smart irrigation system. This is because batteries have to account for the low solar potential during irrigation hours. The generation from the PV system is used to charge the battery and fill the water storage, but cannot be utilized for irrigation, which leads to inefficient energy management and high system costs. The frequent charging and discharging of the battery would also likely shorten its lifespan and lead to a more error prone production system.
4.2. Energy and water cycles for the modeling assumptions
Figure 7 shows the demand and the supply, respectively, of electricity flows (upper panel) and the water flows (lower panel) for a representative period of the year, between hours 2,000 and 2,500. The smart microgrid optimizes the irrigation timing around the availability of solar energy and adapts to varying weather conditions. This leads to an irrigation schedule where the amount of irrigated water is proportional to the solar availability with a refill of water storage capacities at the peak generation potential. This irrigation method allows for smaller investments into batteries, which are almost exclusively used to satisfy the residual electricity demand in the night.
Looking at the lower panel, it can be deduced that it is not optimal to have days without any irrigation, as long as there is an infeed of electricity by the installed pv-system. Also, refilling the water basin and irrigating at the same time is avoided by the model and keeping those activities separate is preferred. However, the model does assume no setup time in between irrigation at crops and refilling the water basin.7 Another interesting observation are small battery discharging activities in the evening, on days where the water storage gets refilled. In those days it is optimal to prolong the pumping activities with the use of a battery for an additional hour in the night. However, the amount of water that is being pumped in these time steps is small; no generalization can be made, whether it is best to use this additional hour for irrigation or to use it for refilling the basin.
4.3. Integration renewable energy into this agriculture
Renewable energy, like solar panels, offers clean and reliable power for agriculture. It reduces reliance on fossil fuels, providing sustainable and cost-effective energy for farmers. This integration enhances productivity by powering irrigation systems, machinery, and other farm activities. Solar-powered pumps and drip irrigation optimize water usage, minimize costs, and improve water management, leading to more efficient agriculture. Farmers can install renewable energy systems on their land, meeting their energy needs and potentially selling surplus energy for additional income.
5. Conclusions and further research
The efficient use of renewable energies is an important element of a sustainable energy-water-food nexus, in the Maghreb region and elsewhere. In this paper, we have provided a framework to analyze the water-energy-food nexus, and to compare capacity choices for an individual farm. We have also explained the case study chosen, i.e., a farm in Morocco, which currently still uses significant amounts of fossil fuels.
The stylized model calculations provide a comparison between different investment options to increase the use of renewable energy. We combine a model of crop water requirements (CropWat) with an energy system model (AnyMOD) to obtain patterns of electricity and water supply and demand. The model shows that the use of a smart microgrid allows the least-cost investments in Solar PV and battery storage, because it optimizes the use of solar radiation when it occurs. Other scenarios lead to higher costs. Thus, the change from a fossil-based energy-water-food nexus to a renewable energy supply is facilitated.
As always, the model is a stylized representation of reality, and can be developed and refined in various directions. For example, the combination of the water model and the energy model includes no friction losses, evaporation, and other technical details. The optimization does not take into account the costs of installing the microgrid itself. Labor input is not explicitly modeled but relies on simplifying assumptions. Further research is planned to extend the models, and to provide an even more insightful analysis of the potential role of water management and of renewable energies in the energy-water-food nexus.
Statements
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Author contributions
RA and KS organized the data and prepared the case study in Morocco. RD and EW prepared the numerical models. CH coordinated and supervised the research. Development of scenarios was done collectively. RA and KS wrote the first draft of the manuscript. CH wrote the interpretation of results. All authors contributed to conception and design of the study, manuscript revision, read, and approved the submitted version.
Funding
This paper benefited from funding from the international research project MG Farm (Smart microgrids as an approach to electrification in agriculture), co-financed by the Federal Ministry of Education and Research (BMBF).
Acknowledgments
We thank participants of the Swarm research seminar on SDG7-economics, in particular Georg Heinemann, for comments and suggestions. The usual disclaimer applies.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Footnotes
1.^https://www.cerefe.gov.dz/wp-content/uploads/2022/02/Rapport_CEREFE_TE-2020-4.pdf (accessed October 14, 2022).
2.^This paper results from the international research project MG Farm (“Smart microgrids as an approach to electrification in agriculture”), co-financed by the Federal Ministry of Education and Research (BMBF). We thank participants of the Swarm research seminar on SDG7-economics, in particular Georg Heinemann, for comments and suggestions. The usual disclaimer applies.
3.^“When the lines between ‘supply’ and ‘demand’ blur, the energy operator does much more than sell final energy, it mainly provides services and optimizes the use of available energy resources” (Vezzoli et al.,
4.^La Région de Marrakech-Safi, Monographie Générale, Ministère de l'Intérieur, Direction Générale des Collectivités Locales, 63 pages, 2015.
5.^This assumption was implemented to represent the availability of manual labor on a farm, that does not have the necessary infrastructure to supply varying amounts of water to different fields and has to manually irrigate one field after another.
6.^Note that for the Irr9-5 scenario we have assumed that the farmer is not able to irrigate different crops at the same time, contrary to the scenario of the previously discussed irrigation method and the microgrid.
7.^This would lead to the need of binary variables, which would increase the computation time of the model drastically.
References
1
BellfieldH. (2015). Water, Energy and Food Security Nexus in Latin America and the Caribbean. Global Canopy Programme, Oxford, 61.
2
BezansonJ.EdelmanA.KarpinskiS.ShahV. F. (2017). Julia: a fresh approach to numerical computing. SIAM Rev.59, 65–98. 10.1137/141000671
3
BlaschJ.van der KroonB.van BeukeringP.MunsterR.FabianiS.NinoP.et al. (2020). Farmer preferences for adopting precision farming technologies: a case study from Italy. Eur. Rev. Agric. Econ.49, 33–81. 10.1093/erae/jbaa031
4
ChenG.MaraseniT. N.BanhaziT.BundschuhJ. (2015). Benchmarking Energy Use on Farm. 15/059.
5
CozziL.TurkD.AbergelT. (2017). Digitalization and Energy. Paris: International Energy Agency.
6
DjaffarS.KettabA. (2018). Water Management in Algeria: What Policies, What Strategies, What Future? Research Gate 4.
7
EermaM. H.ManningD.klandG. L.del AngelC.RodriguezP. E.SeifertJ.et al. (2022). The potential of behavioral changes to achieve a fully renewable energy system - a case study for Germany. Renew. Sustain. Energ. Transit. 2:100028. 10.1016/j.rset.2022.100028
8
El YoussfiL.DoorsamyW.AghzarA.CherkaouiS. I.ElouadiI.FaundezA. G.et al. (2020). Review of water energy food nexus in africa: morocco and south africa as case studies, in E3S Web of Conferences, eds El YoussfiL.CherkaouiS. I.AghzarA.FarissiM.Godoy FaundezA.Rivera SalazarD.et al. 02002. 10.1051/e3sconf/202018302002
9
FAO. (2022). Production of Agricultural Crops in Morocco in 2020, by Product (in Metric Tons). Available online at: https://www.statista.com/statistics/1302570/agricultural-production-in-morocco-by-product/
10
FaysseN. (2015). The rationale of the green morocco plan: missing links between goals and implementation. J. North Afr. Stud.20, 622–34. 10.1080/13629387.2015.1053112
11
GeneralA. (2015). Transforming Our World: The 2030 Agenda for Sustainable Development. General Assembly. Available online at: https://documents-dds-ny.un.org/doc/UNDOC/GEN/N15/291/89/PDF/N1529189.pdf?
12
GökeL. (2021a). A graph-based formulation for modeling macro-energy systems. Appl. Energy301:117377. 10.1016/j.apenergy.2021.117377
13
GökeL. (2021b). AnyMOD.Jl: a julia package for creating energy system models. SoftwareX16:100871. 10.1016/j.softx.2021.100871
14
GökeL.KendziorskiM.KemfertC.von HirschhausenC. (2022). Accounting for spatiality of renewables and storage in transmission planning. Energy Econ.113:106190. 10.1016/j.eneco.2022.106190
15
GranitI. (2022). Microgrids through the energy-water-food security nexus in la Guajira, Colombia: increasing water and food security or jeopardizing groundwater levels?Energy Res. Soc. Sci.93:102814. 10.1016/j.erss.2022.102814
16
IEA (2018). The Future of Cooling. Available online at: https://www.iea.org/reports/the-future-of-cooling
17
IEA (2019). Energy Policies beyond IEA Countries: Morocco 2019. Paris. Available online at: https://www.iea.org/reports/energy-policies-beyond-iea-countries-morocco-2019
18
IEA (2023). Technology Cost Trends and Key Material Prices for Lithium-Ion Batteries. Technology Cost Trends and Key Material Prices for Lithium-Ion Batteries, 2017-2022. Available online at: https://www.iea.org/data-and-statistics/charts/technology-cost-trends-and-key-material-prices-for-lithium-ion-batteries-2017-2022
19
IonV.AndreiH.DiaconuE.Constantin PuchianuD.Cosmin GheorgheA. (2021). Cost and energy consumption analysis of residential security systems, in 2021 7th International Symposium on Electrical and Electronics Engineering (ISEEE) (Galati, Romania: IEEE), 1–4. 10.1109/ISEEE53383.2021.9628613
20
JacksonT. M.KhanS.HafeezM. (2010). A comparative analysis of water application and energy consumption at the irrigated field level. Agric. Water Manag.97, 1477–85. 10.1016/j.agwat.2010.04.013
21
JacobsonM. (2020). 100% Clean, Renewble Energy and Storage for Everything. Cambridge: Cambridge University Press. 10.1017/9781108786713
22
JacobsonM. Z. (2023). No Miracles Needed: How Today's Technology Can Save Our Climate and Clean Our Air. Cambridge, New York, NY: Cambridge University Press. 10.1017/9781009249553
23
KaltschmittM.StreicherW.WieseA. (2010). Renewable Energy: Technology, Economics and Environment. Softcover version of original hardcover edition 2007. Berlin Heidelberg: Springer. 10.1007/3-540-70949-5
24
KendziorskiM.GökeL.von HirschhausenC.KemfertC.ZozmannE. (2022). Centralized and decentral approaches to succeed the 100% energiewende in germany in the european context–a model-based analysis of generation, network, and storage investments. Energy Policy167:113039. 10.1016/j.enpol.2022.113039
25
LabrousseM. (2006). L'énergie Répartie et La Production Décentralisée d'énergie. Les Cahiers de Global Chance21, 7–33.
26
LeforeN.ClosasA.SchmitterP. (2021). Solar for all: a framework to deliver inclusive and environmentally sustainable solar irrigation for smallholder agriculture. Energy Policy154:112313. 10.1016/j.enpol.2021.112313
27
NajibA. (2012). A New Strategy for Agriculture in Morocco: ≪The Green Morocco Plan≫, 12–23.
28
OlivaresD. E.Mehrizi-SaniA.EtemadiA. H.CañizaresA. A.IravaniR.KazeraniM.et al. (2014). Trends in microgrid control. IEEE Trans. Smart Grid5, 1905–1919. 10.1109/TSG.2013.2295514
29
PfenningerS.StaffellI. (2016). Long-term patterns of European PV output using 30 years of validated hourly reanalysis and satellite data. Energy114, 1251–1265. 10.1016/j.energy.2016.08.060
30
RazaA.RazzaqA.MehmoodS.ZouX.ZhangX.LvY.et al. (2019). Impact of climate change on crops adaptation and strategies to tackle its outcome: a review. Plants8:34. 10.3390/plants8020034
31
SmithA. M. (1993). CLIMWAT for CROPWAT. A Climatic Database for Irrigation Planning and Management.Rome: FAO. Available online at: http://books.google.com/books?id=SCEtAQAAMAAJ
32
SmithM. (1992). CROPWAT: A Computer Program for Irrigation Planning and Management. Electronic resource. Ver. 5.7. FAO Irrigation and Drainage Paper 46. Rome: Food and Agriculture Organization of the United Nations.
33
SridharA.BalakrishnanA.JacobM. M.SillanpääM.DayanandanN. (2022). Global impact of COVID-19 on agriculture: role of sustainable agriculture and digital farming. Environ. Sci. Pollut. Res. 30, 42509–42525. 10.1007/s11356-022-19358-w
34
StaffellI.PfenningerS. (2016). Using bias-corrected reanalysis to simulate current and future wind power output. Energy114, 1224–39. 10.1016/j.energy.2016.08.068
35
StephensE. C.MartinG.van WijkM.TimsinaJ.SnowV. (2020). Editorial: impacts of COVID-19 on agricultural and food systems worldwide and on progress to the sustainable development goals. Agric. Syst.183:102873. 10.1016/j.agsy.2020.102873
36
StiftungH. B. (2017). Comparison of Costs of Electricity Generation in Nigeria. Available online at: https://www.africanpowerplatform.org/resources/reports/west-africa/nigeria/412-comparison-of-costs-of-electricity-generation-in-nigeria.html
37
The Chamber of Commerce, Industry Services of the Marrakesh–Safi Region (CCISRMS). (2022). The Agriculture Sector. Available online at: https://www.ccisrms.ma/en/agriculture-2/
38
TimilsinaG. R. (2020). Demystifying the Costs of Electricity Generation Technologies. Working Paper. Washington, DC: World Bank. 10.1596/1813-9450-9303
39
VezzoliC.CeschinF.OsanjoL.M'RithaaM. K.MoalosiR.NakazibweV.et al. (2018). Distributed/decentralised renewable energy systems, in Designing Sustainable Energy for All, ed VezzoliC. (Springer), 23–39. 10.1007/978-3-319-70223-0_2
40
WaiteM.CohenE.TorbeyH.PiccirilliM.TianY.ModiV. (2017). Global trends in urban electricity demands for cooling and heating. Energy127, 786–802. 10.1016/j.energy.2017.03.095
41
ZozmannE.GökeL.KendziorskiM.del AngelC. R.von HirschhausenC.WinklerJ. (2021). 100% renewable energy scenarios for North America—spatial distribution and network constraints. Energies14:658. 10.3390/en14030658
Summary
Keywords
water-energy-food nexus, microgrids, renewable energy, agriculture, linear optimization, Maghreb region, Morocco
Citation
Agadi R, Sakhraoui K, Dupke RKM, Wiebrow E and von Hirschhausen C (2023) Integration of renewable energy resources into the water-energy-food nexus–Modeling a demand side management approach and application to a microgrid farm in Morocco. Front. Environ. Econ. 2:1200703. doi: 10.3389/frevc.2023.1200703
Received
05 April 2023
Accepted
31 July 2023
Published
24 August 2023
Volume
2 - 2023
Edited by
Paola D'Orazio, Chemnitz University of Technology, Germany
Reviewed by
Fabien Muhirwa, Chinese Academy of Sciences (CAS), China; Maruf Aminu A., Military Technological College, Oman
Updates

Check for updates
Copyright
© 2023 Agadi, Sakhraoui, Dupke, Wiebrow and von Hirschhausen.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Redha Agadi rea@wip.tu-berlin.de
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.