1. Introduction
The global focus is shifting toward achieving fully sustainable energy and water management by 2050 [
1]. The concept of the water-energy nexus refers to the interdependent relationship between water usage in energy production and energy used for water production [
2]. Examples of this nexus include using sustainable energy for water desalination and harnessing seawater to generate electricity through tidal, wave, and wind converters [
3].
Wave energy technology, a promising source of renewable energy, is used to generate clean electricity from the movement of ocean waves. Several successful wave energy projects have been implemented, particularly in Europe, with increasing interest in exploring its potential in other regions [
4]. Wave energy presents a significant opportunity to contribute to the global transition to renewable energy and helps meet future energy demands sustainably [
5]. Hydrogen is emerging as a key player in the future of sustainable energy generation and storage, with the potential to reshape global energy dynamics [
6]. The green hydrogen is produced from green energy technology such as PV, wind, or wave applications. It is then stored in the form of gas or liquid to be converted during energy need to electricity or thermal energy. The United States has developed detailed plans to promote hydrogen energy as a crucial element of its clean energy transition. At the core of these efforts is the U.S. National Clean Hydrogen Strategy and Roadmap, which identifies pathways for integrating clean hydrogen into national decarbonization efforts across various economic sectors. This roadmap provides a comprehensive framework for scaling up the production and utilization of clean hydrogen, with detailed projections for 2030, 2040, and 2050 [
7]. Green hydrogen, produced from wave energy and seawater desalination, is seen as a promising solution [
8]. The hydrogen system typically consists of three components mainly an electrolyzer that converts water into hydrogen, a hydrogen storage tank to store the produced hydrogen, and a fuel cell that converts stored hydrogen back into electricity [
9,
10].
In recent years, researchers have been exploring the use of hydrogen in sustainable energy generation and storage. One study focused on optimizing the operation of a system involving photovoltaic (PV) cells, hydrogen, batteries, and the electrical grid [
11]. Another examined the operation of a combined wind, photovoltaic, battery, and hydrogen system [
12]. Many recent studies have aimed to reduce the operational costs of microgrids and power systems. For example, a study presented a method to optimize the operation of a region in Egypt while considering operation costs maximizing the share of renewable energy to reach 100% [
13,
14].
The application of Mixture of Experts (MoE) models in microgrids offers a promising approach for optimizing energy distribution and management in decentralized energy systems. Microgrids, which consist of interconnected local energy sources such as solar panels, wind turbines, and storage units, require sophisticated decision-making systems to efficiently manage energy flow and ensure reliability. MoE models, with their ability to combine the expertise of multiple specialized models, can be used to model complex and dynamic behavior in microgrid systems [
15]. In this context, different experts can be assigned to various tasks, such as forecasting energy demand, predicting renewable energy generation, managing storage units, and controlling energy exchange between grid and microgrid. A gating network determines which expert’s output to prioritize, based on current operating conditions, such as weather, load demand, or energy availability. This adaptability allows MoE models to handle uncertainties and variations in renewable energy generation, improving the overall efficiency and reliability of the microgrid [
16]. Furthermore, MoE-based systems can potentially offer better scalability and robustness, as they can adapt to new experts or update existing ones as the microgrid evolves. Research into MoE in microgrids could lead to more intelligent and resilient energy management systems, paving the way for the integration of renewable energy sources and the development of smart grid technologies [
17,
18].
Quantitative Structure-Activity Relationship (QSAR) modeling is a valuable tool used to analyze the relationships between the chemical structure of compounds and experimental observations. The method relies on numerical descriptors, quality of observed data, and statistical techniques to establish correlations [
19]. Despite its effectiveness, QSAR has limitations, such as overfitting, limited applicability to new chemical structures, and challenges in providing accurate error estimates [
20]. QSAR models are frequently used to optimize chemical compounds for potential clinical trials [
21]. In this research, QSAR is employed to optimally operate a wave hydrogen energy microgrid.
From the above studies, it was noticed that no previous research was implemented on how to employ wave and hydrogen energy technologies in the United States, especially in California. In this research, the main contributions covered the following topics:
- i.
Integration of hydrogen and wave energies to form a microgrid to produce electricity, water, and hydrogen for supplying a bay in the USA and trade.
- ii.
Employ the QSAR optimization technique to operate the microgrid optimally to achieve minimum cost and maximum revenue in daily operation.
- iii.
Employ MoE as an artificial intelligence tool for solving the multi-objective goals in the operation of the microgrid.
- iv.
Compare the performance of the daily wave energy generation, the microgrid cost of operation, and revenue in different seasons namely summer, winter, fall, and spring.
The paper is organized as follows;
Section 2 illustrates the modeling of the microgrid while in
Section 3, an illustration of the project location is presented.
Section 4 illustrates how optimization and artificial intelligence are employed towards optimal operation of the microgrid.
Section 5,
Section 6 and
Section 7 present results, discussions, and conclusions, respectively.
4. Optimization in Microgrid Operation
4.1. Optimization Problem Definition
The optimization is done to minimize the cost of operation and maintenance while also increasing the revenue from the sale of energy and water. Increasing revenue from the sale of electricity, hydrogen, and freshwater () and lowering operating costs for fuel cells, electrolyzers, and water desalination units () are the two main goals of the objective function (F). The weighting factor and normalization procedures are two ways that combine the two objective functions.
Objective functions:
where
is the price per unit of electricity sold, the electricity that was sold in KWhr is
,
is the cost per unit of hydrogen sold,
is how many liters of hydrogen are sold,
is the cost per unit of freshwater sold and
is the volume of water sold in cubic meters.
- (B)
Minimization of operation cost
The objective is to minimize the operation cost of water desalination unit, electrolyzer unit, and fuel cell.
where the unit costs for running the fuel cell, water desalination, and electrolyzer units are
,
and
respectively.
There are two ways to handle this multi-objective problem: the normalization approach, which uses the single best solution for each objective, as shown in (13) and the weighting factors, as shown in (14) assuming equal priority for the two objectives.
Constraints:
The system’s power generation (from wave and fuel cells) is equal to the power sold to the grid and the power required for system consumption (water desalination power, electrolyzer, and load). The fuel cell and electrolyzer cannot operate simultaneously.
- ii.
Inequality constraints (limits)
Wave energy conversion limits: Wave energy converter cannot exceed maximum power.
The output of a water desalination plant varies from minimum to maximum.
Fuel cell and electrolyzer units operating power limitations
To prevent any damage to the grid component, the power sold to the grid must be less than the maximum amount that the grid could receive from the system.
Hydrogen storage energy should follow (23), (24), and (25)
where the capacity of the storage is
,
is the coefficient of discharge and
is the state of charge.
4.2. QSAR Optimization
In quantitative structure-activity relationship (QSAR) studies in drug design, the process typically involves the use of two distinct datasets: the training set and the test set. These datasets are instrumental in the development and validation of predictive models. The training set consists of a diverse array of chemical compounds along with their corresponding biological activities or properties. The goal of the training set is to develop a QSAR model that can accurately predict the biological activity of novel compounds based on their molecular descriptors, which represent the structural features of the compounds [
19].
The test set, on the other hand, is utilized to evaluate the model’s predictive capability. Unlike the training set, the compounds in the test set are not used during the model training phase, allowing researchers to assess how well the model generalizes to previously unseen data. The performance of the model is typically evaluated by comparing its predictions against the actual observed values in the test set [
20,
21].
A widely used metric for assessing model performance in QSAR studies is the Q-squared (Q
2) statistic. Q
2 quantifies the proportion of variance in the observed data that the model is able to explain. It ranges from 0 to 1, with values closer to 1 indicating a better fit between the model and the data. In the context of QSAR, a model is considered reproducible if its
2 value exceeds 0.8 in the training set. A model is deemed predictive if its Q
2 value is greater than 0.6, while both reproducibility and predictive capability must be satisfied for the model to be regarded as valid [
31,
32,
33].
The Q
2 statistic is computed in (26):
where
represents the sum of squared residuals (the differences between predicted and observed values), and
is the total sum of squares (the overall variability in the observed data). The individual components
and
can be calculated as illustrated in (27) and (28)
where
is the observed activity value,
is the predicted activity value, and
is the mean of the observed activity values.
In QSAR studies, outliers and z-scores play crucial roles in data analysis and model development as shown in
Figure 4 which illustrates the flowchart of QSAR optimization. Outliers are data points that significantly deviate from the expected trend and can introduce noise or bias, thus negatively affecting model accuracy. Identifying and appropriately handling outliers is vital for ensuring the reliability of QSAR models. Outliers may arise due to factors such as measurement errors, experimental artifacts, or the presence of compounds with rare or unique characteristics.
The z-score is a statistical tool used to quantify how far a data point deviates from the mean of a distribution, measured in standard deviations. In QSAR analysis, z-scores are often employed for both outlier detection and data normalization. A commonly accepted threshold for identifying outliers based on z-scores is 2.5, where values beyond this threshold indicate potential outliers [
33].
The z-score for a data point
is calculated using the formula in (29):
where
is the observed value,
is the mean, and
is the standard deviation of the data distribution.
4.3. Quantum-Inspired Mixture of Experts Strategy
The Mixture of Experts (MoE) strategy represents a cutting-edge approach to addressing multi-objective optimization challenges across various domains. This framework combines the strengths of modularization, selective activation, and parallel processing to achieve superior performance in solving complex, multifaceted problems. By design, the MoE strategy decomposes a problem into smaller, specialized tasks, each handled by an “expert” model. These experts are dynamically activated based on contextual information, making the MoE approach a promising solution for balancing trade-offs between conflicting objectives [
34].
The MoE framework consists of two primary components: the expert models and a gating network. Each expert model is trained to specialize in a particular objective or subset of the problem space. For instance, in the context of microgrid energy optimization, individual experts might focus on distinct objectives, such as maximizing renewable energy utilization, minimizing operational costs, or enhancing system reliability. The gating network functions as a decision-making mechanism, dynamically assigning tasks to the most relevant expert(s) based on the input features or environmental context. This selective activation ensures computational efficiency by engaging only the required subset of experts, thereby reducing unnecessary processing overhead.
The MoE strategy is particularly well-suited for multi-objective optimization due to its ability to address trade-offs among competing objectives. Traditional optimization techniques often require combining objectives into a single composite function, which can obscure individual priorities and lead to suboptimal solutions. In contrast, MoE retains the granularity of each objective by assigning them to specialized experts, thereby enabling more effective optimization. Moreover, the modular nature of MoE facilitates scalability, as additional experts can be introduced to address emerging objectives or accommodate evolving problem requirements.
From a computational perspective, the MoE strategy offers significant advantages. The independent nature of expert models allows for parallel processing, which enhances scalability and reduces computation time in large-scale optimization problems. Furthermore, the specialization of experts ensures that each model achieves high performance within its designated domain, leading to improved overall optimization outcomes. This is particularly beneficial in applications where objectives are highly diverse and interdependent, such as energy systems, supply chain management, autonomous systems, and healthcare.
In energy systems, for example, the MoE approach can be utilized to optimize the distribution of energy resources, balance operational costs, and enhance sustainability. Each objective is managed by a specialized expert, while the gating network coordinates its interactions to provide an integrated solution. Similarly, in supply chain management, the MoE framework can address the trade-offs between cost efficiency, delivery speed, and inventory levels. The modularity and adaptability of the MoE strategy make it a versatile tool for addressing complex multi-objective challenges across industries.
The implementation of the MoE framework has demonstrated significant potential in various research studies. For instance, recent advancements in machine learning and artificial intelligence have highlighted the efficacy of MoE in optimizing resource allocation, reducing energy consumption, and improving decision-making processes in dynamic environments [
18,
35]. These findings underscore the transformative role of the MoE strategy in solving real-world optimization problems.
Figure 5 shows how MoE is employed to solve the multi-objective optimization process to optimally operate the wave hydrogen microgrid in this research. The optimal value of each single objective is calculated using QSAR optimization.
The gating network in the MoE framework is a crucial component responsible for dynamically selecting the appropriate experts for a given input. It operates as a mediator that decides which expert model should process the input data based on certain criteria, such as input features or environmental context. Here is a detailed breakdown of how the gating network is typically designed in this research:
- a.
Input layer: The gating network starts by receiving the same input as the entire MoE system. The inputs included in this research are wave height, water demand, and electricity demand. It is designed in this research to have one neuron.
- b.
Quantum-Inspired Processing [
36]: The inputs are processed to mix between the two objectives based on the normalization of probability amplitudes, to ensure that the sum of the weights is 1. The absolute square of each amplitude to get the selection weights is shown in (30). This ensures that the gating network still produces a valid probability distribution of weights, but the way these weights are formed introduces a quantum-like interference.
- c.
Output layer: consists of one neuron and the outputs are on/off decision of the water desalination unit, the electrolyzer, and the fuel cell.
6. Discussions
Wave-powered hydrogen, electricity, and water production offer significant environmental advantages, primarily by generating hydrogen with zero direct greenhouse gas emissions, unlike fossil fuel-based hydrogen methods. Additionally, wave energy has a minimal land footprint, reducing habitat disruption compared to large-scale solar or wind farms. The process also supports decarbonization efforts in hard-to-abate sectors, such as shipping and heavy industry, by providing a clean fuel alternative. However, regulatory barriers remain a challenge. The deployment of wave energy, water desalination, and hydrogen infrastructure requires complex permitting processes, environmental impact assessments, and compliance with evolving hydrogen safety standards. Furthermore, the lack of clear policies and incentives for marine renewable hydrogen production can delay project implementation and investment decisions. Addressing these challenges through streamlined regulations, government incentives, and international standardization will be crucial for accelerating the adoption of wave-powered hydrogen solutions.
The seasonal analysis of the microgrid system, optimized using the quantum-inspired Mixture of Experts (MoE) and other advanced algorithms, offers a comprehensive perspective on the performance and revenue potential of integrating wave energy with hydrogen production. The results for typical summer, winter, spring, and fall days highlight distinct variations in electricity demand, wave energy production, and revenue contributions from hydrogen sales and electricity generation.
On a typical summer day, the electricity demand peaks, while wave energy production is relatively lower compared to winter. The optimization results indicate that the MoE, followed by the normalized QSAR (NQSAR) and weighting factor QSAR (WQSAR), outperforms Particle Swarm Optimization (PSO) and Genetic Algorithm (GA) in enhancing revenue and reducing operational costs. Notably, hydrogen sales accounted for approximately two-thirds of the total income, underscoring the economic importance of hydrogen production in the microgrid’s operational model.
During a winter day, the electricity demand is approximately 29% lower than in summer, but wave energy production nearly doubles. This seasonal shift enhances the capacity for hydrogen production and storage. The optimization results reaffirm the superiority of the MoE approach, followed by NQSAR and WQSAR, in achieving higher revenue and lower costs. Hydrogen sales contributed an even higher share of the income at approximately 70%, highlighting the critical role of hydrogen as a revenue driver during periods of high wave energy production.
Spring and fall days exhibit intermediate characteristics between summer and winter. In spring, electricity demand is 12% lower than in summer, and wave energy production is about 10% lower than in winter. Similarly, in fall, electricity demand is 11% lower than in summer, and wave energy production is 14% lower than in winter. In both cases, the MoE optimization technique consistently delivered the best results in terms of revenue generation and cost reduction, followed by NQSAR and WQSAR. Hydrogen sales accounted for approximately 65% and 60% of the total income in spring and fall, respectively, with electricity sales contributing a smaller but significant portion (22% in spring and 24% in fall).
These findings emphasize the effectiveness of advanced optimization techniques like MoE in adapting to seasonal variations in demand and resource availability. The consistent superiority of the MoE approach across all seasons demonstrates its robustness and adaptability in optimizing microgrid operations under diverse conditions. Compared to prior studies that primarily focused on singular optimization techniques, this study highlights the advantages of integrating quantum-inspired algorithms in managing complex energy systems. For instance, while traditional methods like PSO and GA are widely used, their performance in this study was outpaced by the MoE and QSAR approaches, particularly in balancing cost efficiency and revenue generation.
The economic viability of the system is further supported by the high contribution of hydrogen sales to total income, which aligns with the growing global interest in hydrogen as a clean energy carrier. The integration of hydrogen production systems into the microgrid provides not only a means for addressing seasonal energy storage needs but also a pathway for monetizing excess wave energy during periods of low electricity demand. These results are consistent with findings in recent renewable energy studies, reinforcing the critical role of hydrogen in future energy systems.
Despite these strengths, some limitations should be noted. The study assumes fixed costs for hydrogen and electricity, which may not reflect real-time market fluctuations. Additionally, while the system’s capacity factor (26.2%) is promising, further research is needed to explore the long-term impacts of wave energy variability on operational stability. Future work should also investigate the potential of combining wave energy with other renewable resources, such as marine geothermal energy, to further enhance system resilience and scalability. Furthermore, policy support and economic incentives will play a pivotal role in scaling up such systems for broader adoption.
In this study, the MoE approach was selected over other optimization techniques, such as QSAR, GA, and PSO, due to its superior adaptability, performance, and interpretability in handling the specific challenges of our application. Unlike QSAR, which is primarily effective for linear relationships, MoE excels in capturing non-linear patterns by partitioning the problem space and assigning specialized models (experts) to distinct regions. While GA and PSO are powerful optimization tools, they often suffer from computational inefficiency and suboptimal convergence in high-dimensional spaces. In contrast, MoE leverages a gating network to dynamically allocate resources to the most relevant experts, resulting in faster and more accurate optimization. Additionally, MoE offers enhanced interpretability, as the contributions of individual experts and the gating network can be analyzed to understand their roles in the final solution—a critical advantage in our application. Furthermore, MoE demonstrates greater robustness to noisy data compared to QSAR, GA, and PSO, as the gating network can effectively filter out irrelevant or noisy inputs by assigning low weights to less reliable experts. These attributes collectively justify the selection of MoE as the preferred approach for this study.
To assess the impact of market fluctuations on the feasibility of wave-to-hydrogen production in Humboldt Bay, a sensitivity analysis was conducted on hydrogen, electricity, and water prices. Hydrogen prices varied within a range of USD2.5/kg (optimistic), USD5.0/kg (baseline), and USD10.0/kg (pessimistic), reflecting current market conditions and future projections. Similarly, electricity prices were analyzed at USD0.03/kWh (renewable-rich scenario), USD0.07/kWh (current average), and USD0.15/kWh (high-cost grid dependence). Additionally, variations in water prices were considered, given the importance of water supply in electrolysis. Water costs were assessed within USD0.5/m3 (low-cost access), USD1.5/m3 (moderate cost), and USD3.0/m3 (high-cost regions) to reflect different sourcing conditions, including desalination and municipal supply. The results indicate that lower hydrogen, electricity, and water costs significantly improve project feasibility, reducing the Levelized Cost of Hydrogen (LCOH) and enhancing economic viability. Conversely, high electricity and water prices increase operational costs, posing challenges to competitiveness, particularly in regions with limited freshwater availability. These findings highlight the importance of cost-efficient energy and water sourcing, as well as potential policy incentives, to enhance the feasibility of wave-powered hydrogen production.
Overall, the integration of advanced optimization techniques and hybrid renewable systems positions this study as a significant contribution to the ongoing transition toward sustainable energy solutions, particularly in coastal and resource-rich regions like Humboldt Bay. In future studies, research will be applied to power quality, stability, and control of the proposed microgrid.