Abstract
With the increasing integration of photovoltaic (PV) generation, short-term scheduling of hydro–PV–battery energy storage systems (HPBS) faces growing challenges due to the stochastic variability of PV output, the temporal coupling of hydropower operation, and the accumulation of deviations during the real-time execution of day-ahead schedules. This paper proposes a bi-level coordinated scheduling framework that integrates day-ahead mixed-integer quadratic programming (MIQP) with intraday Soft Actor–Critic (SAC)-based correction. In the upper layer, MIQP generates a 24 h baseline schedule subject to unit output limits, mutually exclusive charging/discharging logic, and operational constraints. In the lower layer, SAC performs bounded real-time residual correction for hydropower and battery storage around the MIQP baseline, while a deviation-triggered replanning mechanism forms a closed-loop process of planning, execution, correction, and replanning. Comparative experiments under the tested setting show that SAC achieves better overall performance than Deep Deterministic Policy Gradient (DDPG), Twin Delayed Deep Deterministic Policy Gradient (TD3), and Proximal Policy Optimization (PPO). Typical-day evaluations under dry-, normal-, and wet-season conditions show that, in the selected case studies, the proposed MIQP + SAC framework achieves better performance than standalone MIQP and MIQP-Replan, which refers to a deviation-triggered MIQP re-optimization strategy, in load tracking, PV curtailment reduction, and hydro-storage coordination. These results indicate the effectiveness of the proposed framework for short-term HPBS scheduling under representative operating conditions.
1. Introduction
The increasing penetration of renewable energy has posed significant challenges to short-term power system operation. Among renewable resources, photovoltaic (PV) generation is highly intermittent and difficult to dispatch, which may lead to frequent power fluctuations and reduced scheduling reliability. In this context, hydropower and battery energy storage systems (BESS) can provide flexible balancing capacity because of their fast response and adjustable output. Therefore, the coordinated operation of hydropower, PV, and BESS has become an effective approach to improving renewable-energy accommodation, reducing operational deviations, and enhancing system flexibility [1,2].
Existing studies on hydro–PV–storage coordinated operation have mainly focused on complementary characteristics, capacity planning, and multi-timescale scheduling. Early studies investigated the temporal complementarity between hydropower and PV resources and examined its role in improving system operation [1]. Subsequent research further considered installed-capacity allocation and hierarchical scheduling for integrated renewable-energy systems [3,4,5,6,7]. These studies have confirmed that strong coupling exists between planning and operation across different timescales. However, most of them emphasize long-term planning or sequential scheduling, whereas the short-term closed-loop coordination between day-ahead planning and intraday execution remains insufficiently studied for hydro–PV–battery energy storage systems (HPBS).
To address renewable uncertainty and engineering constraints, optimization-based dispatch methods have been widely applied in short-term scheduling. Representative approaches include scenario-based stochastic scheduling, probabilistic dispatch models, and coordinated optimization methods under multiple uncertainties [8,9,10,11]. These methods are effective in handling physical constraints and improving scheduling feasibility. Nevertheless, their performance depends heavily on forecast accuracy. Once real-time disturbances or forecast deviations occur, conventional optimization models usually lack sufficient online adaptability and cannot efficiently correct cumulative tracking errors during operation.
Deep reinforcement learning (DRL) provides a promising solution for real-time correction under uncertainty because it can learn adaptive control policies through continuous interaction with the environment. Recent studies have applied DRL algorithms such as Deep Q-Network (DQN), DDPG, and SAC to renewable-energy dispatch, reservoir operation, and hybrid energy management problems [12,13,14,15,16,17,18]. DRL has also been extended to long-term cascade reservoir scheduling [19], hydro–wind–PV coordinated operation [20], and bi-level frameworks that combine reinforcement learning with mixed-integer programming for hybrid storage systems [21]. In addition, recent SAC-based microgrid studies have shown that entropy regularization can improve multi-objective coordination performance and control robustness [17,22,23]. However, most existing DRL-based scheduling studies still treat the learning agent as a standalone controller. Without a physics-based optimization anchor, the agent may drift into infeasible operating regions under complex engineering constraints [24].
In summary, three limitations remain in the existing literature. First, optimization-based methods can provide globally feasible schedules, but their real-time adaptability is limited. Second, DRL-based methods offer strong online responsiveness, but they often lack a physics-based scheduling reference and explicit cross-layer constraint consistency. Third, for HPBS, the coordinated integration of day-ahead optimization, real-time correction, and deviation-triggered replanning has not yet been fully developed within a unified short-term scheduling framework [21,24].
To address these gaps, this paper proposes a bi-level coordinated scheduling framework that integrates day-ahead mixed-integer quadratic programming (MIQP) with intraday Soft Actor–Critic (SAC) control for HPBS. In the upper layer, the MIQP model generates a 24 h day-ahead reference schedule under hydropower operating limits, reservoir dynamics, BESS charging/discharging constraints, and power balance requirements, thereby providing a physics-based baseline for intraday operation. In the lower layer, the SAC agent performs bounded residual correction around the MIQP baseline rather than replacing the day-ahead schedule directly. The corrected actions are further processed through a stepwise constraint correction mechanism before execution, which helps maintain consistency with device-level operating constraints. In addition, when the post-correction power deviation remains above the predefined threshold, the upper-layer MIQP model is re-solved over the remaining horizon, thereby forming a closed-loop coordination process among planning, execution, correction, and replanning.
The main contributions of this study are summarized as follows:
- A bi-level coordinated scheduling framework with bidirectional feedback is proposed for the hydro–PV–battery energy storage system (HPBS). In this framework, day-ahead MIQP planning and intraday SAC correction are coordinated within a unified short-term scheduling process.
- An MIQP + SAC baseline-injection and residual-correction strategy is established. The upper-layer MIQP model generates a 24 h reference schedule, while the lower-layer SAC controller performs bounded residual correction around this baseline instead of replacing the day-ahead schedule directly.
- A threshold-triggered rolling replanning mechanism and a stepwise constraint correction layer are incorporated. The replanning mechanism updates the remaining MIQP baseline when the power deviation after MIQP + SAC correction exceeds the predefined threshold, while the constraint correction layer ensures that SAC-generated actions satisfy practical operating requirements and remain within unit-level operating limits.
- Comparative simulations under dry-, normal-, and wet-season hydrological scenarios are conducted to evaluate the proposed framework from the perspectives of power balance control, renewable-energy utilization, and hydropower storage coordination.
The remainder of this paper is organized as follows. Section 2 presents the mathematical models of the HPBS and the day-ahead MIQP formulation. Section 3 describes the SAC-based intraday correction strategy and the bi-level coordination mechanism. Section 4 provides the case studies and comparative analysis under different hydrological scenarios. Section 5 concludes the paper.
2. System Modeling
The hydro–PV–battery energy storage system (HPBS) considered in this study consists of four components: a reservoir-based hydropower station, a grid-connected photovoltaic (PV) plant, a battery energy storage system (BESS), and the external power grid. To support the proposed bi-level coordinated scheduling framework, mathematical models are developed to characterize the physical and operational behaviors of these components, including hydropower generation, PV output, BESS operation, and power exchange with the grid. These models provide the basis for the upper-layer day-ahead MIQP formulation and the lower-layer intraday SAC-based corrective control. The corresponding formulations are presented in Section 2.1, Section 2.2 and Section 2.3.
2.1. Hydropower Station Model
In short-term head-dependent hydropower scheduling, linear or simplified representations of the storage–head relationship have been commonly adopted to maintain computational tractability. For example, Catalão et al. represented the reservoir water level as a linear function of storage and incorporated the resulting head-dependent hydropower relation into a mixed-integer quadratic programming framework [25]. This study adopts a scheduling-level approximation for the hydropower station model.
Reservoir storage dynamics are governed by the water balance equation, which enforces mass conservation at each time step:
where and are the reservoir volumes at time steps and , respectively; and denote the inflow and outflow rates at time step , respectively; and is the scheduling interval.
The net hydraulic head represents the effective head available for power conversion. To reduce computational complexity, the volume–head relationship is approximated by a linear function:
where is the net hydraulic head at time step , and the coefficients of the linear storage–head approximation. Specifically, is calculated as , and is calculated as and are the minimum and maximum reservoir volumes, and and are the corresponding minimum and maximum hydraulic heads.
In this study, the hydropower model is used as a scheduling-level approximation to represent the main relationship among reservoir storage, hydraulic head, and hydropower output. Specifically, reservoir storage is updated through the water balance equation, hydraulic head is approximated as a linear function of storage, and hydropower output is calculated based on the head–discharge conversion relationship. The linear storage–head relationship is adopted to reduce model complexity rather than to fully reproduce the detailed reservoir characteristic curve. This approximation retains the main influence of reservoir storage on the head while keeping the upper-layer optimization model computationally tractable for short-term scheduling.
The hydropower output is jointly determined by the net head and the discharge rate:
where is the hydropower output at time step , is the turbine efficiency, is the water density, and is the gravitational acceleration, in this study, is obtained from historical measured hydrological data and is used as an exogenous input rather than an optimization decision variable in the upper-layer MIQP model.
2.2. PV and BESS Models
PV generation is treated as an exogenous, non-dispatchable input; hence, no explicit physical model of the PV plant is constructed. Instead, historical or forecast PV power data are used directly as scheduling inputs. In the day-ahead stage, the forecast PV output defines the upper bound of available PV power; in the intraday stage, the forecast is replaced by the corresponding measured value to reflect actual operating conditions. PV output is forecast using a monthly–hourly averaging method: historical PV outputs are grouped by month and hour, and the mean value of each group is used as the forecast:
where is the forecast PV output for month and hour ; is the set of historical samples corresponding to the same month and hour; is the number of such samples; and is the measured PV output of sample i.
The monthly–hourly averaging method provides a consistent day-ahead PV forecast input for the upper-layer MIQP model. This statistical baseline preserves the typical diurnal and seasonal characteristics of PV generation and helps maintain a clear evaluation boundary between forecasting accuracy and scheduling performance. Therefore, the comparison among different scheduling strategies mainly reflects their ability to correct forecast-induced deviations during intraday operation.
At each time step, the available PV power, the utilized PV power, and the curtailed PV power satisfy:
where is the available PV power, is the utilized PV power, and is the curtailed PV power.
The BESS is a dispatchable resource capable of shifting energy across time periods, thereby enhancing system flexibility. Its state of charge (SOC) evolves according to the following energy balance:
where is the state of charge at time step ; and are the charging and discharging powers, respectively; is the rated energy capacity; and and are the charging and discharging efficiencies, respectively.
2.3. Objective Function and Constraints
2.3.1. Objective Function
The objective is to minimize the total operating cost over the scheduling horizon. This cost comprises four terms: the electricity purchase cost, the electricity sales revenue, the hydropower opportunity cost, and the load-tracking deviation penalty. The objective function is formulated as:
where is the electricity purchase cost, is the electricity sales revenue, is the hydropower opportunity cost, and is the deviation penalty.
The electricity purchase cost is given by:
where is the electricity purchase price at time step , and is the power purchased from the grid.
When power export to the grid is permitted, the electricity sales revenue is:
where is the electricity selling price, and is the power exported to the grid.
To capture the economic value of stored water in system dispatch, a hydropower opportunity cost term is introduced:
where is the opportunity cost coefficient per unit of hydropower generation.
The supply–demand mismatch at time step t is quantified by the power imbalance:
where is the load demand, is the hydropower output, is the utilized PV output, and is the net BESS output It is defined as . A positive value indicates discharging, while a negative value indicates charging.
The total load-tracking deviation penalty is then formulated as:
where is the imbalance penalty coefficient, and is the signed power balance deviation at time step t The coefficient controls the relative importance of power balance tracking in the upper-layer objective. A larger gives stronger punishment to large supply–demand deviations, while a smaller value allows the model to retain more economic scheduling flexibility under small-deviation conditions. A sensitivity analysis of is further provided in Section 4.5 to examine its influence on scheduling performance.
2.3.2. Constraints
The power balance constraint is equivalently expressed as:
The variable is introduced as a signed power balance deviation variable rather than a non-negative slack variable. A positive indicates insufficient supply, whereas a negative indicates surplus supply. Therefore, is not constrained to be non-negative. Instead, its magnitude is explicitly penalized by the quadratic imbalance penalty in the objective function.
The hydropower output is bounded by:
where and are the minimum and maximum allowable hydropower outputs, respectively.
The BESS charging and discharging powers are constrained by the following power limits and mutually exclusive operating-state constraints:
where and are the maximum charging and discharging powers, and are binary variables indicating the charging and discharging states of the BESS, respectively. These constraints prevent the BESS from charging and discharging simultaneously within the same scheduling interval.
The BESS state of charge is bounded by:
where and are the lower and upper SOC limits, respectively.
All relevant decision variables are constrained to be non-negative:
2.4. Performance Evaluation Metrics
To quantitatively evaluate and compare the performance of different scheduling strategies, the following metrics are adopted. Here, denotes the system power imbalance at time step and is the duration of each scheduling interval.
The cumulative absolute imbalance is defined as:
which measures the total energy imbalance over the evaluation horizon and reflects the overall load-tracking performance.
The threshold violation count is defined as:
where = 1 when > , and = 0 otherwise. This metric records the number of time steps at which the absolute power imbalance exceeds the permissible threshold.
To reduce arbitrariness in threshold selection, is derived from the frequency security requirement. Under small-disturbance and quasi-steady-state conditions, the relationship between power imbalance and frequency deviation can be approximated by a linear equivalent model:
where is the equivalent power–frequency coefficient, representing the combined effect of system inertia, primary frequency regulation, and frequency-sensitive loads. This expression is used as an engineering approximation for determining the scheduling safety threshold rather than as a detailed dynamic frequency response model. Therefore, at the maximum allowable frequency deviation, the corresponding power imbalance threshold can be expressed as:
The excess imbalance energy is defined as:
which quantifies the cumulative energy associated with imbalance events exceeding the prescribed threshold.
The curtailed energy is defined as:
which represents the total curtailed PV energy over the evaluation horizon and serves as an indicator of renewable-energy utilization.
3. Algorithm Design
This section presents the proposed bi-level coordinated scheduling framework, which consists of an upper-layer day-ahead MIQP optimizer and a lower-layer intraday SAC-based corrector coupled through a bidirectional feedback mechanism. In the lower layer, Soft Actor–Critic (SAC) is employed as the primary deep reinforcement learning (DRL) method, while TD3, DDPG, and PPO are introduced as benchmark algorithms for comparative evaluation. In the upper layer, mixed-integer quadratic programming (MIQP) is adopted to generate the day-ahead reference schedule. The interaction between the two layers is achieved through a baseline-injection mechanism, thereby forming the complete bi-level scheduling architecture shown in Figure 1.
Figure 1.
Overall architecture of the bi-level coordinated scheduling framework.
3.1. SAC Real-Time Control Strategy
To enable rapid response to stochastic disturbances during intraday operation of the hydro–PV–battery energy storage system (HPBS), SAC is adopted as the real-time controller in the proposed bi-level scheduling framework. SAC is an off-policy actor–critic DRL algorithm designed for continuous action spaces. Its main feature is the incorporation of an entropy regularization term into the cumulative-return objective, which preserves policy stochasticity and encourages exploration during training. Compared with deterministic methods, SAC generally exhibits better training stability and robustness, especially in continuous-control tasks with high-dimensional state spaces and disturbance-driven dynamics. These properties make SAC well suited to real-time HPBS scheduling, which requires simultaneous load tracking, curtailment mitigation, regulation coordination, and constraint satisfaction.
3.1.1. Principle of the SAC Algorithm
In conventional reinforcement learning, the objective is to learn a policy that maximizes the expected cumulative discounted return. Unlike standard formulations, SAC augments the objective with a policy entropy term, thereby encouraging sufficient exploration while pursuing high returns. The maximum-entropy objective can be expressed as:
where denotes the maximum-entropy objective value of policy ; is the discrete time step; denotes the state–action visitation distribution induced by policy ; is the instantaneous reward at time ; is the entropy–temperature coefficient that balances return maximization and policy stochasticity; and is the entropy of the policy distribution conditioned on state .
The maximum-entropy mechanism enables SAC to balance return optimization and exploration. The entropy term improves exploration in continuous action spaces and reduces the risk of premature convergence to suboptimal policies. Policy stochasticity also enhances adaptability to environmental uncertainty, thereby supporting stable training and robust control under stochastic disturbances and multi-objective trade-offs. In this study, the standard SAC architecture is adopted, in which the agent consists of one actor network and two critic networks, together with their corresponding target networks. The actor outputs continuous control actions; the twin critics estimate the state–action value function while alleviating overestimation bias; and the target networks are updated through soft updates to improve training stability.
3.1.2. Markov Decision Process Formulation
To apply SAC to intraday real-time scheduling of the HPBS, the lower-layer control problem is formulated as a discrete-time Markov decision process (MDP). In this formulation, the agent selects an action according to the current system state, after which the environment transitions to a new state and returns a corresponding reward. Through repeated interactions, the agent learns a control policy that maximizes the long-term cumulative return. The MDP is characterized by the state space, action space, and reward function, which are described in the following subsections.
- State Space Design
The DRL agent makes decisions based on normalized observations of the current system conditions. The selection of state variables follows two principles: (i) sufficiency, meaning that the selected variables contain the key information required for real-time scheduling; and (ii) observability, meaning that all variables are directly measurable or can be rapidly obtained. Accordingly, the observation vector at time step is defined as:
where is the observation vector at time ; is the normalized load power; is the normalized actual PV output; is the normalized electricity price signal; is the state of charge of the BESS; is the hour-of-day index used only to construct the sine–cosine time encoding. The hour index is not included as an additional independent state variable. The sine–cosine representation is adopted to describe the periodic daily pattern.
- 2.
- Action Space Design
The real-time controllable variables are the hydropower output and the BESS charging/discharging power. Accordingly, the agent action is defined as a two-dimensional continuous vector:
where and denote the normalized SAC correction actions for hydropower and the BESS at time , respectively.
Under the baseline-plus-residual control paradigm, the actual hydropower command and the BESS net output are expressed as:
where is the actual hydropower output at time ; is the hydropower baseline generated by the upper MIQP layer; is the hydropower correction gain; is the maximum hydropower output; is the net BESS output; and are the baseline discharging and charging powers, respectively; is the BESS correction gain; and is the maximum BESS discharging power.
- 3.
- Reward Function Design
The reward function steers the agent toward real-time control that is consistent with the scheduling objectives of power deviation suppression, curtailment reduction, and operational smoothness. It is defined as:
where is the reward at time ; is the weight of the supply–demand imbalance penalty; is the power deviation at time ; is the dead-zone threshold for imbalance penalization; is the weight of the curtailment penalty; is the curtailed power at time ; is the weight of the action-rate penalty; and denotes the Euclidean norm.
The reward comprises three weighted penalty terms: a supply–demand imbalance penalty with a dead-zone that activates only beyond a specified threshold; a curtailment penalty that encourages renewable-energy utilization; and an action-rate penalty that promotes smooth control trajectories.
The action variation between adjacent time steps is defined as:
where and are the action vectors at time steps and , respectively.
3.1.3. SAC Training and Model Updating
The SAC training and model selection procedure consists of three stages: training preparation, interactive learning, and model screening. This procedure enables the agent to learn an effective control policy for intraday HPBS scheduling under the “MIQP baseline + real-time residual correction” paradigm. The overall workflow is illustrated in Figure 2.
Figure 2.
Flowchart of SAC training and model selection.
In the training preparation stage, training samples are constructed from input data, including load demand, PV output, electricity price, and inflow, while day-ahead scheduling baselines are generated through MIQP optimization. The reinforcement learning environment is then established by defining the state and action spaces, specifying the reward function, and initializing the network parameters. By injecting the MIQP baseline into the environment, the SAC agent is trained to learn real-time corrective actions that remain consistent with the upper-layer schedule.
In the interactive learning stage, the agent outputs continuous actions according to the current observation, and the environment returns the next observation and instantaneous reward after executing the action. Transition samples are stored in a replay buffer and randomly sampled for iterative parameter updates, which improves data utilization efficiency and training stability. During this process, the standard SAC mechanism, including twin critics, target networks, and adaptive entropy tuning, is adopted to support stable off-policy learning.
In the model-screening stage, reward evolution, policy performance, and operational indicators are compared across training runs. The final model is selected based on its integrated performance in test scenarios, including deviation suppression, curtailment reduction, action smoothness, and operational feasibility. This procedure supports model selection for the tested scheduling scenarios and helps improve the reliability of the learned control policy under the case study conditions.
3.2. Design of the MIQP Optimizer
Building on the system model and objective function established in Section 2, the upper-layer day-ahead planning problem is formulated as a discrete-time mixed-integer quadratic programming (MIQP) model. MIQP accommodates both binary and continuous decision variables within a unified framework. In this study, the binary variables are mainly introduced to enforce the mutually exclusive charging and discharging states of the BESS, while the continuous variables describe hydropower output, BESS charging/discharging power, state of charge, reservoir storage, and grid purchase/sale power. Compared with mixed-integer linear programming (MILP), the MIQP formulation can incorporate quadratic penalty terms into the objective function.
It should be clarified that the hydropower conversion equation in Section 2.1 is not introduced into the upper-layer optimizer as a bilinear constraint. In the implemented model, is obtained from historical measured hydrological data and is treated as an exogenous input rather than an optimization decision variable. Therefore, does not represent the multiplication of two decision variables. After substituting the linear storage–head relationship , the hydropower conversion expression becomes affine with respect to . Under this treatment, the upper-layer model contains linear operational constraints, binary variables for the mutually exclusive charging and discharging states of the BESS, and a quadratic power imbalance penalty in the objective function. Therefore, the upper-layer scheduling problem is consistent with the MIQP formulation and can be solved by Gurobi.
In the present upper-layer model, the quadratic term is mainly used to penalize power balance deviation, thereby giving stronger punishment to large supply–demand mismatches. Therefore, MIQP is suitable for short-term HPBS scheduling problems that require strict constraint handling, model interpretability, and engineering implementability.
By combining the system model and operational constraints presented in Section 2 with the lower-layer control requirements defined in Section 3.1, the day-ahead planning layer is formulated as a single-objective optimization problem. The objective function of the upper-layer MIQP model includes grid electricity purchase cost, electricity sales revenue, hydropower opportunity cost, and power imbalance penalty, as formulated in Section 2.3. PV curtailment and control smoothness are mainly addressed in the lower-layer SAC design: curtailed PV power is penalized in the SAC reward function to encourage renewable-energy utilization, while the action-rate penalty promotes smoother real-time control. Therefore, this formulation distinguishes the upper-layer optimization objective from the lower-layer reward design and the performance indicators used in the case study analysis. The corresponding constraints include water balance, power balance consistency, hydropower output bounds, BESS power and state-of-charge limits, and mutually exclusive BESS charging/discharging constraints. Through this formulation, the upper-layer MIQP model generates a coordinated baseline trajectory over the planning horizon while accounting for economic performance and power balance tracking.
The day-ahead optimizer is implemented using the Pyomo algebraic modeling language, which programmatically encodes the objective function and constraints defined in Section 2. The optimizer takes the forecast series of load demand and PV output, together with electricity price signals and model parameters, as inputs. The hydrological series is obtained from historical measured data and is treated as an exogenous input when the hydropower conversion relationship is described. The optimizer then returns the optimal baseline trajectories over the planning horizon. Gurobi is adopted as the default solver for the formulated MIQP problem. After optimization, the upper-layer model outputs the day-ahead scheduling sequences, including the hydropower baseline output, the BESS charging/discharging baseline, and the grid purchase/sale plan. These trajectories are then injected into the lower-layer SAC environment as feedforward reference signals for the real-time corrective control described in Section 3.3.
3.3. Bi-Level Coordinated Scheduling Architecture and Bidirectional Feedback Mechanism
To combine the planning capability of the upper-layer optimization model with the real-time adaptability of the lower-layer reinforcement learning controller, a short-term HPBS scheduling framework with bi-level coordination and bidirectional feedback is proposed. Based on the system model presented in Section 2 and the SAC real-time control strategy described in Section 3.1, the scheduling task is decomposed into upper-layer MIQP day-ahead planning and lower-layer SAC real-time correction. These two layers are coordinated through baseline injection and deviation-triggered replanning.
3.3.1. Bi-Level Coordinated Architecture and Information Interaction Mechanism
The proposed framework consists of upper-layer MIQP day-ahead planning and lower-layer SAC real-time correction. The two layers have distinct functions but operate in a coordinated manner to accomplish the short-term scheduling task of the HPBS.
The upper layer operates in the day-ahead stage. It solves the MIQP model using 24 h input series, including load demand, PV forecast, inflow, and electricity price, subject to water balance, hydropower output limits, BESS operating constraints, and power balance requirements. As a result, it generates a baseline schedule over the full planning horizon.
The lower layer operates in the intraday real-time stage. Based on the Markov decision process formulation described in Section 3.1, the SAC agent generates corrective actions according to the current observations and real-time deviations, thereby adjusting the hydropower and BESS commands around the MIQP baseline trajectory.
The interaction between the two layers is realized through two mechanisms. The first is forward baseline injection, through which the upper layer transmits the planned baseline to the lower layer as a reference trajectory. The second is reverse deviation-triggered replanning, through which the upper-layer MIQP model is re-solved over the remaining horizon when the post-correction power deviation exceeds the predefined threshold. Together, these two mechanisms establish a closed-loop scheduling process that combines day-ahead planning, intraday correction, and triggered replanning.
In the forward direction, the upper-layer MIQP model generates the day-ahead baseline schedule and passes it to the lower-layer control environment as the reference trajectory. The baseline schedule over the planning horizon is defined as:
where each baseline scheduling vector can be written as:
where is the hydropower baseline output; and are the baseline BESS charging and discharging powers, respectively; and are the baseline grid purchase and grid sale powers, respectively; and is the length of the planning horizon.
At each time step, the lower-layer environment reads the corresponding baseline quantities and uses the hydropower and BESS net-power set-points as action references. The SAC agent then generates bounded residual corrections around the baseline rather than replacing the day-ahead plan directly. Embedding the upper-layer schedule into the lower-layer control loop reduces the policy search space and avoids the need for the agent to learn the entire scheduling policy from scratch.
In the reverse direction, the threshold-triggered rolling replanning mechanism updates the upper-layer baseline when the post-correction power deviation exceeds the predefined threshold. Specifically, when , the upper-layer MIQP model is re-solved over the remaining scheduling horizon using the latest available system information, including load demand, PV output, inflow, reservoir state, and BESS SOC. The newly obtained trajectory is then used as the updated baseline for subsequent time steps. Therefore, replanning updates the future reference trajectory after significant deviations occur, rather than replacing the real-time residual correction already executed at the current time step. In this way, forward baseline injection and threshold-triggered rolling replanning jointly form a closed loop of planning, execution, correction, and replanning, thereby improving consistency between planned and realized schedules.
3.3.2. Operating Procedure
Within the proposed coordinated architecture, the scheduling system operates in three online stages: day-ahead planning, real-time correction, and constraint projection with physical execution. These stages are sequentially connected and jointly form a closed-loop process of planning, correction, and execution, as illustrated in Figure 3.
Figure 3.
Flowchart of the bi-level coordinated scheduling framework.
In the first stage, namely day-ahead planning, the upper-layer MIQP optimizer solves the cost minimization problem defined in Section 2 using 24 h input series, including load demand, PV forecast, inflow, and electricity price. This produces a baseline scheduling trajectory that represents the planned operating decisions over the next 24 h. The lower-layer reinforcement learning environment then receives this baseline through forward information transfer and uses it as the reference for subsequent real-time correction. By jointly considering economic performance, physical feasibility, and power balance tracking over the planning horizon, this stage establishes the reference schedule for intraday operation.
In the second stage, namely real-time correction, at each time step the lower-layer SAC controller generates a continuous action based on the current observation and derives raw dispatch commands from the day-ahead baseline plan. Consistent with the action-space design in Section 3.1, the raw hydropower command and the raw BESS net-power command are expressed as:
where is the raw hydropower command at time ; is the raw BESS net-power command; and are the correction gains for hydropower and the BESS, respectively; and and denote the maximum hydropower output and maximum BESS discharging power, respectively.
In Equations (36) and (37), and act as action-scaling coefficients for the residual corrections generated by the SAC agent. Since the SAC actions and are normalized within , the terms and determine the maximum correction ranges of hydropower and the BESS around the MIQP baseline, respectively. These coefficients are introduced to prevent overly aggressive real-time adjustments and to keep the lower-layer control actions within a reasonable neighborhood of the day-ahead schedule.
If the correction range is too large, the real-time commands may deviate excessively from the MIQP baseline, which may weaken cross-layer consistency and reduce the stability of policy learning. Conversely, if the correction range is too small, the SAC agent may not have sufficient flexibility to compensate for forecast errors and load fluctuations. In this study, and were determined through training-stage parameter tuning. The final gain values were selected to balance real-time correction capability and consistency with the MIQP baseline. This setting ensures that SAC performs bounded residual correction rather than replacing the upper-layer MIQP schedule.
This bounded residual structure limits the real-time correction range around the day-ahead baseline. Even if the agent outputs an extreme action, the resulting raw command remains confined to a predefined neighborhood of the MIQP schedule, thereby reducing excessive deviation from the upper-layer plan. When the post-correction power deviation remains larger than the predefined threshold, i.e., , the reverse feedback mechanism is activated and upper-layer MIQP replanning is triggered. The replanning procedure updates the remaining baseline trajectory based on the latest available system information, while the SAC controller continues to provide stepwise residual correction around the updated baseline.
The third stage is constraint projection and physical execution. Since the raw actions generated by the policy network may not satisfy all device-level physical constraints, a stepwise constraint correction mechanism is applied before physical implementation. This mechanism maps the raw actions onto the feasible operating range, ensuring that the final executable commands satisfy output bounds, ramp-rate limits, and BESS SOC requirements. The projected feasible actions are then executed to update the environment state and advance the system to the next time step. In this way, the proposed framework completes an online closed loop of baseline reading, residual correction, constraint projection, and state update at each scheduling step.
3.3.3. Stepwise Constraint Correction Mechanism
In continuous-control settings, the raw actions generated by the agent may violate physical operating constraints. Directly applying such actions may lead to device-limit exceedance or inconsistency in energy-state evolution, thereby affecting the physical feasibility of the scheduling results. To address this issue, a stepwise constraint correction mechanism is applied before physical execution. The raw commands are corrected through three successive levels: device-bound clipping, ramp-rate limitation, and BESS energy consistency correction.
This three-level correction is used to keep dispatch commands within the predefined feasible operating range. The first level is device-bound clipping, which constrains hydropower output, BESS charging/discharging power, and utilized PV power within their respective physical limits. Let denote the clipping function that limits variable to the interval . Then,
where , , and denote the hydropower output, BESS net output, and utilized PV power after boundary clipping, respectively; and are the minimum and maximum allowable hydropower outputs; and and are the maximum BESS charging and discharging powers, respectively.
The second level is ramp-rate limitation. Since the hydropower unit has finite ramping capability, the hydropower command must be further corrected when the inter-step variation exceeds the allowable range. Let denote the maximum allowable change in hydropower output per time step. Then,
where denotes the executable hydropower command satisfying both the output bounds and the ramp-rate constraint, and is the actual hydropower output executed at the previous time step.
The third level is BESS energy consistency correction. In addition to satisfying instantaneous power limits, the BESS net power must also comply with the SOC constraint. Accordingly, given the current , the charging/discharging efficiencies, and the rated energy capacity, the SOC at the next time step is predicted and checked against the permissible bounds. If the predicted SOC does not satisfy:
then the current BESS charging/discharging power is back-corrected until returns to the permissible range, where and denote the minimum and maximum allowable SOC, respectively.
Within the proposed bi-level framework, the stepwise constraint correction mechanism serves as a feasibility-preserving layer between SAC-generated actions and physical execution. Through device-bound clipping, ramp-rate limitation, and BESS energy consistency correction, the raw actions of the lower-layer SAC controller are mapped onto the feasible operating range. In this way, the real-time control process maintains physical feasibility without introducing the computational overhead of solving an additional projection optimization problem at every time step. This mechanism is used to enforce predefined engineering constraints during execution, while the scheduling decisions are still generated by the MIQP baseline plan and the SAC residual correction policy. Since the same deterministic correction procedure is applied during both training and evaluation, the feasibility mapping is part of the environment dynamics. Therefore, the learned policy is optimized with respect to the executed feasible actions rather than being adjusted only during post-evaluation.
4. Case Study and Results
4.1. Experimental Setup
All experiments were conducted in a Python 3.12 environment on a workstation equipped with an Intel Core i9-13900 CPU and an NVIDIA GeForce RTX 4060 GPU. The lower-layer deep reinforcement learning (DRL) module was implemented in PyTorch (v2.5.1+cu118), and the interactive scheduling environment was developed using Gymnasium (v0.26.2). Data preprocessing, statistical analysis, and visualization were performed using NumPy (v1.26.4), Pandas (v2.2.2), Matplotlib (v3.10.1), SciPy (v1.15.2), and Scikit-learn (v1.5.1). The upper-layer day-ahead optimization model was formulated in Pyomo and solved with Gurobi as a mixed-integer quadratic programming (MIQP) problem.
The input data used in this case study include hourly load demand, measured PV output, historical inflow, and historical electricity price profiles for 2016. The scheduling interval is 1 h, and each typical-day simulation covers a 24 h horizon. PV generation is treated as an exogenous non-dispatchable input. The day-ahead PV forecast was generated from the measured PV series using the monthly–hourly averaging method described in Section 2.2, while the intraday stage uses the corresponding measured PV output to represent actual operating conditions. Therefore, the PV forecast error arises from the difference between the monthly–hourly statistical forecast and the measured PV output rather than from artificially injected random noise. The load, inflow, and electricity price series were taken directly from the historical dataset without additional artificial perturbation.
The main system parameters used in the case study are summarized in Table 1. Table 1 reports the key installed capacities and operating ranges of the hydro–PV–battery system. The same physical parameters and operational constraints were used for all compared scheduling strategies.
Table 1.
Main parameters of the hydro–PV–battery system.
For the DRL-based strategies, including SAC, TD3, DDPG, and PPO, the 2016 hourly dataset was randomly divided into a training set and a test set, with 90% of the samples used for training and 10% used for testing. During training, randomly sampled 168 h rolling windows from the training set were used as training episodes rather than fixed full-year trajectories. This random window sampling strategy was adopted because the DRL agents learn a state-to-action mapping policy rather than a temporal forecasting model; therefore, the policy mainly needs to learn scheduling actions under diverse operating states rather than depending on the strict chronological order of samples. The three evaluation days were selected from the test set to represent dry-season, normal-season, and wet-season operating conditions. The optimization-based strategies, including MIQP and MIQP-Replan, do not require training data because they solve mathematical programming problems directly using the given system state, input information, and physical constraints. All compared strategies were evaluated on the same selected typical test days.
The main training settings of the compared DRL algorithms are summarized in Table 2 SAC, TD3, DDPG, and PPO were trained and evaluated in the same scheduling environment using a common state–action interface, the same training set, identical physical constraints, and the same reward structure.
Table 2.
Main training settings of the compared DRL algorithms.
For the core SAC hyperparameters, including the learning rate, discount factor, batch size, and network structure, standard commonly used settings from Stable-Baselines3 were adopted. The framework-specific parameters, including the hydropower correction gain , the BESS correction gain , the imbalance penalty coefficient , and the imbalance threshold ,were selected according to the scheduling objectives and preliminary trial results. The parameter selection followed three principles: prioritizing power balance tracking, avoiding excessive PV curtailment, and preventing overly aggressive hydropower storage actions. The reward weights , , and were empirically tuned through preliminary trials on a subset of training samples and were then fixed for all typical-day evaluations. A sensitivity analysis of is provided in Section 4.5.
The PV forecast error and load fluctuation characteristics of the three selected typical days are summarized in Table 3. The PV forecast error is calculated as the difference between the measured PV output and the day-ahead PV forecast generated by the monthly–hourly averaging method. The load fluctuation is measured by the hourly load variation between adjacent time steps. These indicators describe the forecast error and load fluctuation levels corresponding to the dry-season, normal-season, and wet-season typical days.
Table 3.
PV forecast error and load fluctuation statistics of the selected typical days.
The PV forecast error and load fluctuation statistics of the three selected typical days are summarized in Table 3. The PV forecast error was calculated as the difference between the monthly–hourly statistical forecast and the measured PV output of each selected typical day. When calculating the forecast value for a selected typical day, the data of that day were excluded from the corresponding monthly–hourly average to avoid using the target-day information itself. Load fluctuation was characterized by the standard deviation of hourly load and the maximum load ramp between adjacent time steps.
To evaluate the effectiveness of the proposed framework under the tested case study conditions, three scheduling strategies were compared. The first is the standalone MIQP strategy, which solves the MIQP model once in the day-ahead stage and directly executes the resulting baseline trajectory without online correction. The second is the MIQP-Replan strategy, which is used as a deviation-triggered rolling re-optimization benchmark. It starts from the same day-ahead MIQP baseline as the standalone MIQP strategy. During intraday execution, MIQP-Replan does not apply SAC-based residual correction. Instead, the realized power balance deviation is monitored at each time step. When , the MIQP model is re-solved over the remaining scheduling horizon using the latest available system states, including the current BESS SOC, the latest hydropower operating state, and updated load and PV information. The newly optimized trajectory replaces the previous baseline from the next time step onward. Between two replanning events, MIQP-Replan follows the latest optimized baseline.
The third is the proposed MIQP + SAC bi-level coordinated strategy, in which the upper-layer MIQP generates a day-ahead baseline trajectory and the lower-layer SAC controller performs stepwise residual correction around this baseline. In this framework, replanning is activated only when the post-correction power balance deviation remains larger than the imbalance threshold after SAC residual correction and constraint projection. The upper-layer MIQP is then triggered to update the baseline trajectory for the remaining horizon. The updated baseline is used from the next time step onward and does not replace the SAC correction already executed at the current time step. Through this comparison, one-shot optimization, deviation-triggered rolling replanning, and bi-level coordinated control can be evaluated in terms of tracking accuracy and intraday adaptability under the selected case study conditions.
In implementation, the upper-layer MIQP optimizer and the lower-layer SAC environment use the same discrete-time scheduling interval and physical constraints. The day-ahead baseline trajectory generated by the upper-layer optimizer is passed to the lower-layer environment as the reference schedule. Based on real-time observations, the lower-layer controller then produces residual corrective actions around this baseline before the actions are applied through constraint projection. This setting represents the operating logic of the proposed bi-level framework under the selected typical operating scenarios.
A computational-time test was conducted for the current case study, including the upper-layer MIQP solver and the lower-layer SAC policy inference. Since SAC training is performed offline, this test focuses on the computational cost during scheduling execution rather than the offline training process. In the tested 24 h case study setting, the MIQP model required 29.4 ± 4.4 per scheduling horizon over 20 repeated runs, with a range of 15.0–35.5 . The trained SAC policy required 0.332 ± 0.168 per inference step on CPU, with a range of 0.227–0.869 .
The present experiment is mainly scenario-driven and case study-oriented, aiming to evaluate the short-term scheduling performance of the proposed MIQP + SAC framework under the case study conditions considered in this work.
4.2. Comparison of DRL Algorithms
Based on the experimental setup described in Section 4.1, the applicability of different DRL algorithms to the lower-layer real-time correction task was examined. Four representative DRL algorithms for continuous control were compared under the same state space, action space, reward function, training data, physical constraints, and training environment: Soft Actor–Critic (SAC), Twin Delayed Deep Deterministic Policy Gradient (TD3), Deep Deterministic Policy Gradient (DDPG), and Proximal Policy Optimization (PPO). Among them, SAC, TD3, and DDPG are off-policy algorithms, whereas PPO is an on-policy algorithm.
Four indicators were adopted for comparison. The first indicator is the mean episode reward, which represents the average return over a complete scheduling episode. A higher value indicates better integrated control performance under the tested reward design. The second indicator is the mean curtailed power, which quantifies the average unutilized PV power. A lower value indicates lower PV curtailment. The third indicator is the mean signed power deviation, which reflects the average supply–demand imbalance during operation. A value closer to zero indicates a smaller systematic mismatch. The fourth indicator is the mean threshold exceedance magnitude, which measures the average severity of power deviations exceeding the prescribed threshold. A lower value indicates smaller threshold violation severity.
Figure 4, Figure 5, Figure 6 and Figure 7 present the comparative results of the four DRL algorithms. Figure 4 shows the mean episode reward, Figure 5 compares the mean curtailed power, Figure 6 presents the mean signed power deviation, and Figure 7 reports the mean threshold exceedance magnitude. In all figures, the horizontal axis represents the training progress, and the vertical axis represents the corresponding indicator value.
Figure 4.
Training reward curves of the four DRL algorithms.
Figure 5.
Comparison of mean curtailed power among DRL algorithms.
Figure 6.
Comparison of signed power deviation among DRL algorithms.
Figure 7.
Comparison of threshold exceedance magnitude among DRL algorithms.
As shown in Figure 4, SAC achieves the highest final mean reward, approximately , together with faster convergence and smaller training fluctuations. PPO ranks second, with a final mean reward of approximately . DDPG and TD3 obtain lower reward levels, approximately and , respectively. These results indicate that SAC achieves a better integrated performance in the tested intraday HPBS scheduling environment.
In terms of curtailment, Figure 5 shows that DDPG achieves the lowest mean curtailed power, approximately 41 MW, followed by SAC at approximately 93 MW. TD3 and PPO show higher curtailment levels, approximately 162 MW and 276 MW, respectively. However, curtailment alone is not sufficient to evaluate the overall scheduling performance. Although DDPG performs well on this single metric, it does not achieve comparable results in mean reward, power deviation, or threshold exceedance magnitude. This suggests that its lower curtailment is accompanied by weaker overall scheduling performance. By comparison, SAC maintains a relatively low curtailment level while also achieving a higher integrated reward, indicating a more balanced control effect.
Figure 6 shows that PPO yields the mean signed deviation closest to zero, approximately +4.40 MW. The corresponding values for SAC, TD3, and DDPG are approximately −26.12 MW, −24.58 MW, and −30.12 MW, respectively. This indicates that PPO has the smallest average signed imbalance among the four algorithms. However, this result should be interpreted together with the curtailment performance shown in Figure 5. PPO attains a smaller signed deviation while showing substantially higher PV curtailment, which suggests a more conservative control tendency. Therefore, evaluating performance only from the perspective of mean signed deviation may overstate the practical advantage of PPO.
As shown in Figure 7, PPO achieves the lowest mean threshold exceedance magnitude, approximately 6.65 MW, followed by SAC at approximately 18.74 MW. DDPG and TD3 show higher values, approximately 44.07 MW and 47.83 MW, respectively. This indicates that PPO performs well in conservative threshold control. However, SAC maintains a comparatively low exceedance level while also achieving a much higher overall reward. By contrast, DDPG and TD3 do not show clear advantages in suppressing excessive deviations.
Considering the four indicators together, SAC is selected as the lower-layer real-time controller in the proposed bi-level coordinated scheduling framework. Although SAC does not rank first on every individual indicator, it achieves the highest cumulative reward and maintains a relatively balanced performance among curtailment control, power deviation suppression, and threshold exceedance reduction. This result is consistent with the characteristics of SAC: its maximum-entropy learning mechanism encourages exploration in the continuous action space, while its off-policy update structure improves sample utilization through the replay buffer. These features help the agent search for effective residual corrections around the MIQP baseline under forecast errors and operating disturbances.
4.3. Typical-Day Evaluation
To examine the performance of the proposed MIQP + SAC framework under varying hydrological conditions, three representative days are selected: 15 January 2016, 5 July 2016, and 2 October 2016, corresponding to the dry-season, normal-season, and wet-season scenarios, respectively. Using the actual load demand, PV output, and inflow data for these periods, 24 h scheduling simulations are performed for the HPBS. The standalone MIQP, MIQP-Replan, and proposed MIQP + SAC strategies are compared in terms of power balance control, PV curtailment reduction, and hydro-storage coordination, so as to evaluate their dynamic scheduling performance under typical operating conditions.
For quantitative comparison, the performance metrics defined in Section 2.4 are adopted, including cumulative absolute imbalance, threshold violation count, excess imbalance energy, and curtailment energy. In addition, Table 4, Table 5 and Table 6 report four supplementary indicators to provide a more detailed description of intraday deviation behavior. denotes the average absolute power imbalance over the 24 h scheduling horizon and reflects the overall deviation level. Exc. Rate denotes the proportion of time steps during which the absolute power imbalance exceeds the prescribed threshold , and it is calculated as . Mean Sev. denotes the average exceedance severity during threshold violation periods and is calculated as when . represents the maximum absolute power imbalance during the scheduling horizon and reflects the worst instantaneous deviation. These indicators jointly characterize the average deviation level, violation frequency, violation severity, and extreme imbalance risk of each scheduling strategy.
4.3.1. Dry-Season Typical Day
Under dry-season conditions, the regulating margin is relatively limited because of scarce inflow. In this setting, the ability of a scheduling strategy to suppress deviation accumulation becomes particularly important. Figure 8 compares the real-time power imbalance trajectories of the three strategies. The standalone MIQP strategy exhibits the largest bidirectional fluctuations, with several clear exceedances beyond the tolerance band, especially around 10:00, 16:00, and 21:00. This indicates that, when regulating resources are relatively tight, a one-shot day-ahead schedule has limited ability to accommodate real-time load changes and PV deviations. The large imbalance under standalone MIQP mainly reflects the open-loop execution of the day-ahead baseline under limited dry-season regulation margin and forecast-induced deviations. MIQP-Replan reduces part of the imbalance amplitude by updating the remaining baseline trajectory when ; however, several threshold violations still occur because its correction is triggered only after significant deviations have appeared. By contrast, the proposed MIQP + SAC strategy keeps the power imbalance closer to zero in most periods and shows fewer large-amplitude deviations than MIQP and MIQP-Replan. This result indicates that continuous residual correction around the MIQP baseline can improve intraday tracking performance under dry-season operating conditions.
Figure 8.
Power imbalance time series under dry-season conditions.
The scheduling decompositions in Figure 9, Figure 10 and Figure 11 provide further insight into the source of this difference. Under standalone MIQP, the system relies predominantly on hydropower for net-load regulation, while storage participation remains limited. As a result, when load demand and PV output fluctuate simultaneously, the lack of adequate fast-response support makes the system more vulnerable to large imbalances. MIQP-Replan increases storage participation in selected periods, but its corrective behavior remains event-triggered and stage-wise. In contrast, the dispatch trajectories indicate a more coordinated hydropower storage response under the proposed MIQP + SAC strategy: hydropower mainly undertakes large-amplitude load-balancing and energy support tasks, while battery storage provides rapid compensation during short-term deviation periods. This coordinated division of roles allows the total output to follow net-load variations more closely even under dry-season constraints. The quantitative results in Table 4 are consistent with these observations and further indicate the improved performance of the proposed MIQP + SAC strategy in balancing performance, violation control, and curtailment reduction under resource-constrained dry-season conditions.
Figure 9.
MIQP scheduling decomposition under dry-season conditions.
Figure 10.
MIQP-Replan scheduling decomposition under dry-season conditions.
Figure 11.
DRL-based bi-level scheduling decomposition under dry-season conditions.
Table 4.
Performance metrics under dry-season typical-day conditions. (15 January 2016, = 100 MW).
4.3.2. Normal-Season Typical Day
Compared with the dry-season case, the normal-season typical day represents a more balanced operating condition and provides a clearer view of the coordination performance of each strategy. Figure 12 shows that the performance differences among the three methods remain evident even when inflow conditions are less restrictive. The standalone MIQP strategy exhibits the largest deviation amplitude, with a pronounced positive peak near 11:00 and large negative deviations during 13:00–15:00, together with multiple threshold exceedances. This suggests that a static day-ahead schedule has limited adaptability when load variation and PV ramping jointly disturb the real-time power balance. MIQP-Replan reduces part of the fluctuation amplitude compared with MIQP, but noticeable deviations still occur, especially around 11:00 and 13:00. By comparison, the proposed MIQP + SAC strategy keeps the power imbalance closer to zero during most time steps and significantly reduces the large positive and negative deviations observed in the other two strategies. These results indicate improved real-time regulation under the normal-season typical-day condition.
Figure 12.
Power imbalance time series under normal-season conditions.
The decomposition results in Figure 13, Figure 14 and Figure 15 further show that the main difference in this scenario lies in how effectively storage is coordinated with hydropower during periods of rapid net-load variation. Under standalone MIQP, hydropower still bears most of the tracking burden, while storage contributes only marginally. MIQP-Replan improves storage participation in some periods, but the corrective pattern remains triggered and stage-wise. By contrast, the proposed MIQP + SAC strategy allows battery storage to respond more promptly to short-term fluctuations, while hydropower mainly undertakes large-amplitude load-balancing and energy support tasks. This coordinated response improves the responsiveness of the total output while maintaining complementary regulation between hydropower and battery storage. The detailed quantitative results are reported in Table 5, which further support the effectiveness of the proposed MIQP + SAC method under this representative day-to-day operating condition.
Figure 13.
MIQP scheduling decomposition under normal-season conditions.
Figure 14.
MIQP-Replan scheduling decomposition under normal-season conditions.
Figure 15.
DRL-based bi-level scheduling decomposition under normal-season conditions.
Table 5.
Performance metrics under normal-season typical-day conditions (5 July 2016, = 100 MW).
4.3.3. Wet-Season Typical Day
In the wet season, the scheduling problem shifts from resource limitation to coordination under relatively abundant water availability. Although this condition generally provides more operational flexibility, it also places greater emphasis on how effectively the system converts that flexibility into deviation suppression and renewable-energy utilization. Figure 16 shows that the overall fluctuation amplitude is smaller than in the dry- and normal-season cases, but the differences among the three strategies remain clear. The standalone MIQP strategy still exhibits noticeable deviations in several periods, especially a large positive deviation near the 13th hour and visible negative deviations during the early morning and evening. MIQP-Replan reduces part of the fluctuation amplitude, but deviations remain evident around the 13th and 21st hours because the strategy mainly relies on triggered re-optimization of the remaining baseline. By contrast, the proposed MIQP + SAC strategy keeps the power imbalance closer to zero in most periods and reduces the large positive and negative deviations observed in the other two strategies. These results indicate improved real-time tracking performance under the wet-season typical-day condition.
Figure 16.
Power imbalance time series under wet-season conditions.
Figure 17, Figure 18 and Figure 19 show that the advantage of the proposed method in this scenario lies less in overcoming scarcity and more in exploiting flexibility efficiently. Under standalone MIQP, hydropower still dominates system regulation, while storage participation remains relatively weak. MIQP-Replan improves the response in several critical periods, but its adjustments are still limited by the stage-wise nature of replanning. The dispatch trajectories show that the proposed MIQP + SAC strategy coordinates hydropower and storage more effectively during short-term fluctuation periods: hydropower mainly undertakes broad trend-level regulation, while storage provides rapid compensation when short-term fluctuations intensify. This division allows the system to transform abundant hydrological flexibility into more accurate tracking and lower curtailment, rather than merely relying on hydropower output alone. The quantitative comparison in Table 6 is consistent with the graphical results and indicates that the proposed framework achieves the lowest imbalance and curtailment among the compared strategies in this scenario.
Figure 17.
MIQP scheduling decomposition under wet-season conditions.
Figure 18.
MIQP-Replan scheduling decomposition under wet-season conditions.
Figure 19.
DRL-based bi-level scheduling decomposition under wet-season conditions.
Table 6.
Performance metrics under wet-season typical-day conditions (2 October 2016, = 100 MW).
4.4. Integrated Analysis
The comparison among the three strategies shows a progressive transition from open-loop day-ahead planning to triggered replanning and then to real-time residual correction. The standalone MIQP strategy generates only a day-ahead baseline schedule and does not update its dispatch trajectory during intraday execution. Therefore, when the actual PV output differs from the day-ahead forecast and real-time operating conditions deviate from the day-ahead baseline, tracking errors may accumulate over time. MIQP-Replan improves upon standalone MIQP by updating the remaining baseline trajectory once the replanning condition is triggered. However, this correction is still based on re-optimization after significant deviations have occurred and is therefore stage-wise rather than continuously adaptive. In contrast, the proposed MIQP + SAC framework performs SAC-based residual correction around the MIQP baseline at each scheduling step. When real-time correction is insufficient to fully suppress the deviation, the upper-layer MIQP baseline can be further updated through the feedback replanning mechanism.
Across the three typical-day scenarios, the overall deviation level of all scheduling strategies decreases as inflow conditions become more favorable. However, the performance differences among the three strategies remain evident. Although the day-ahead MIQP model provides a feasible baseline schedule under physical constraints, its ability to respond to real-time forecast errors and operating disturbances is limited because it operates in an open-loop manner during intraday execution. MIQP-Replan reduces part of the accumulated deviation by updating the remaining baseline trajectory after the replanning condition is satisfied, but its corrective effect is still constrained by the stage-wise nature of re-optimization. By comparison, the proposed MIQP + SAC framework combines day-ahead baseline planning with stepwise real-time correction, which enables more responsive adjustment to short-term deviations under the tested scenarios.
From a cross-scenario perspective, the improvement of the proposed strategy is mainly reflected in power balance control, PV curtailment reduction, and hydropower storage coordination. First, in terms of power balance control, the proposed MIQP + SAC strategy achieves the lowest cumulative absolute imbalance in all three typical-day scenarios. Compared with the standalone MIQP strategy, the cumulative absolute imbalance is reduced from 4102.72 MWh to 1739.76 MWh in the dry-season case, from 3746.31 MWh to 1256.54 MWh in the normal-season case, and from 2237.92 MWh to 876.87 MWh in the wet-season case. These correspond to reductions of 57.6%, 66.5%, and 60.8%, respectively. By comparison, MIQP-Replan reduces the same indicator by 24.7%, 37.4%, and 32.8%, respectively. This shows that triggered replanning can mitigate part of the deviation accumulation, while the proposed MIQP + SAC framework provides stronger deviation suppression in the selected typical-day cases because it performs continuous residual correction during intraday operation.
Second, according to the threshold violation results reported in Table 4, Table 5 and Table 6, MIQP-Replan reduces the violation count by 28.6%, 38.5%, and 28.6% compared with MIQP in the dry-, normal-, and wet-season cases, respectively. By contrast, the proposed MIQP + SAC strategy reduces the violation count by 78.6%, 84.6%, and 85.7% compared with MIQP, and by 70.0%, 75.0%, and 80.0% compared with MIQP-Replan, respectively. A similar improvement is observed in excess imbalance energy. MIQP-Replan reduces excess imbalance energy by 40.9%, 50.8%, and 54.9% relative to MIQP, whereas MIQP + SAC reduces it by 89.3%, 90.6%, and 93.4% relative to MIQP, and by 81.9%, 80.9%, and 85.3% relative to MIQP-Replan. These results indicate that the proposed strategy not only reduces the average deviation level, but also more effectively suppresses large deviation events that exceed the allowable threshold.
Third, in terms of renewable-energy utilization, the PV curtailment results in Table 4, Table 5 and Table 6 show that MIQP-Replan reduces curtailment energy by 36.5%, 35.0%, and 38.5% compared with MIQP in the dry-, normal-, and wet-season cases, respectively. The proposed MIQP + SAC strategy achieves larger reductions of 78.3%, 79.0%, and 84.3% relative to MIQP, and further reduces PV curtailment by 65.8%, 67.7%, and 74.4% relative to MIQP-Replan, respectively. These results show that the proposed framework improves power tracking while also reducing renewable curtailment, rather than achieving deviation suppression at the expense of PV utilization.
The complementary coordination effect between hydropower and battery storage can be further explained by the regulation participation indicators. In the normal-season case, the battery net output standard deviation increases from 30.1 MW under MIQP-only scheduling to 89.5 MW under MIQP+SAC. This indicates that the battery participates more actively in intraday fluctuation compensation under the proposed framework. At the same time, hydropower mainly undertakes large-amplitude load-balancing and energy support tasks, while the battery provides faster compensation when PV output changes rapidly or short-term power deviations occur. Compared with standalone MIQP and MIQP-Replan, the proposed MIQP + SAC framework enables more timely battery response to renewable-output fluctuations, thereby improving real-time tracking performance through enhanced hydropower storage coordination.
Overall, the typical-day results show that the proposed MIQP + SAC bi-level coordinated scheduling framework achieves lower imbalance, fewer threshold violations, lower excess imbalance energy, and reduced PV curtailment than the standalone MIQP and MIQP-Replan strategies under the selected representative scenarios. These results indicate that combining day-ahead baseline planning with intraday residual correction can improve short-term scheduling performance. Meanwhile, under the tested case study conditions, the quantitative comparison further indicates that the proposed framework can make relatively effective use of the complementary regulation roles of hydropower and battery storage. However, broader multi-year validation is still needed to further assess its generalization under more diverse operating conditions.
4.5. Sensitivity Analysis of the Imbalance Penalty Coefficient
The imbalance penalty coefficient determines the weight of the quadratic power balance deviation term in the upper-layer MIQP objective function. To assess the influence of this parameter on scheduling performance, the base value used in the main simulations was set as . Five scaling factors were applied to this base value, namely 0.25, 0.50, 1.00, 2.00, and 4.00. The corresponding values were calculated as 375, 750, 1500, 3000, and 6000, respectively. Other model parameters, input data, physical constraints, and evaluation metrics were kept unchanged.
As shown in Table 7, the main scheduling indicators remain stable as increases from 375 to 6000. The cumulative absolute imbalance varies only slightly from 3745.05 MWh to 3749.61 MWh, while the threshold violation count remains unchanged at 13. The exceedance rate is also constant at 54.2%. Similarly, the excess imbalance energy varies within a narrow range from 1480.38 MWh to 1482.53 MWh, and the mean absolute imbalance remains approximately 156 MW. These results indicate that the imbalance-related indicators are relatively insensitive to within the tested range.
Table 7.
Sensitivity analysis of the imbalance penalty coefficient .
The PV curtailment energy also shows limited variation. As increases from 375 to 6000, decreases slightly from 955.24 MWh to 954.23 MWh. This indicates that the tested variation of does not produce a significant trade-off between imbalance suppression and PV curtailment. Therefore, the scheduling results remain relatively stable under different imbalance penalty settings.
Overall, the sensitivity results show that the selected does not represent an extreme tuning choice. The quadratic imbalance penalty remains necessary because it incorporates load-tracking performance into the upper-layer MIQP objective. However, once this penalty term is included the final dispatch result is jointly constrained by the physical operating limits, power balance structure, and available regulation capacity. The unchanged threshold violation count further suggests that part of the exceedance events is associated with structural operating constraints rather than with the imbalance penalty coefficient alone. Therefore, increasing within the tested range does not substantially alter the final scheduling outcome under the considered case study condition. The base value is therefore adopted in the main simulations.
5. Conclusions
To address forecast-induced deviations, stochastic operating disturbances, and the limited real-time adaptability of conventional single-layer optimization methods in short-term hydro–PV–battery energy storage system (HPBS) scheduling, this paper proposes a bi-level coordinated scheduling framework integrating day-ahead mixed-integer quadratic programming (MIQP) with intraday Soft Actor–Critic (SAC)-based correction. Through baseline injection and deviation-triggered replanning, the framework combines the planning capability of the upper-layer optimization model with the real-time response capability of the lower-layer DRL controller. Based on algorithm comparison experiments and typical-day evaluations, the main conclusions are summarized as follows.
- In the comparison of lower-layer real-time control algorithms, SAC achieves better overall performance than DDPG, TD3, and PPO under the tested setting. Although SAC does not rank first on every individual metric, it obtains the highest cumulative reward while maintaining a balanced performance in curtailment reduction, deviation suppression, and threshold violation control. These results support the selection of SAC as the lower-layer real-time correction algorithm in the proposed framework.
- In the dry-, normal-, and wet-season typical-day evaluations, the proposed MIQP + SAC framework achieves better performance than standalone MIQP and MIQP-Replan in cumulative absolute imbalance, threshold violation count, excess imbalance energy, and curtailment energy. These results indicate that combining day-ahead baseline planning with intraday residual correction can improve short-term scheduling performance under the selected case study conditions.
- The proposed framework improves the system’s response to deviations between actual intraday renewable output and day-ahead scheduling expectations. The results show a more coordinated regulation pattern between hydropower and battery storage, where hydropower mainly undertakes large-amplitude load-balancing and energy support tasks, while battery storage provides rapid compensation for short-term fluctuations and renewable-output deviations.
- The stepwise constraint correction mechanism and deviation-triggered replanning strategy improve the engineering feasibility of the proposed scheduling process. The constraint correction mechanism serves as a feasibility-preserving layer for SAC-generated actions, while the replanning strategy updates the remaining MIQP baseline when the post-correction deviation exceeds the predefined threshold. Together, these mechanisms support closed-loop coordination between day-ahead planning and intraday execution.
Although the proposed framework shows scheduling improvements under the selected case study conditions, several limitations remain.
First, the present study focuses on a single-reservoir HPBS, while the coordinated operation of cascade reservoirs with stronger hydraulic coupling is not considered. Future work may extend the framework to cascade hydropower systems and integrated hydro–wind–solar–storage systems with more complex spatial and temporal coupling.
Second, the current model employs a power imbalance threshold as a surrogate indicator of frequency security. Although this indicator reflects the severity of supply–demand mismatch, it does not explicitly capture the dynamic frequency response behavior of practical power systems. In addition, practical deployment factors, such as communication delays, measurement errors, simplified physical modeling, and actuator response uncertainty, are not explicitly represented in the current simulation framework. Future studies may incorporate more detailed dynamic security constraints and real-time implementation factors to improve the applicability of the proposed method in practical scheduling environments.
Third, the evaluation is conducted under the case study conditions considered in this work, with representative typical days used to examine the scheduling performance of the proposed framework. Therefore, the reported results provide representative case study evidence rather than a complete statistical verification of robustness. Future work may further expand the evaluation scope by considering longer time periods, more diverse operating scenarios, and repeated training settings. In addition, more systematic parameter analysis and module-level comparison can be conducted to further examine the stability and applicability of the proposed framework.
Author Contributions
Conceptualization, H.Z.; methodology, H.Z.; software, H.Z.; formal analysis, H.Z.; investigation, H.Z.; writing—original draft preparation, H.Z.; writing—review and editing, J.Q.; resources, J.Q.; supervision, J.Q., D.T. and H.H.; funding acquisition, J.Q. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the National Natural Science Foundation of China (No. 52269020).
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Zhu, Y.M.; Zou, Z.J.; Huang, W.B.; Wang, L.; Ma, G. Research on Hydro–PV–Wind Complementary Operation of Typical Power Stations on the Upper Jinsha River. J. Hydroelectr. Eng. 2017, 36, 78–85. [Google Scholar]
- Yang, Z.K.; Liu, P.; Cheng, L.; Wang, H.; Ming, B.; Gong, W. Deriving Operating Rules for a Large-Scale Hydro-Photovoltaic Power System Using Implicit Stochastic Optimization. J. Clean. Prod. 2018, 195, 562–572. [Google Scholar] [CrossRef] [Scilit]
- Ding, Z.Y.; Wen, X.; Tan, Q.F.; Yang, T.; Fang, G.; Lei, X.; Zhang, Y.; Wang, H. A Forecast-Driven Decision-Making Model for Long-Term Operation of a Hydro-Wind-Photovoltaic Hybrid System. Appl. Energy 2021, 291, 116820. [Google Scholar] [CrossRef] [Scilit]
- Xu, B.; Zhu, F.L.; Zhong, P.A.; Chen, J.; Liu, W.; Ma, Y.; Guo, L.; Deng, X. Identifying Long-Term Effects of Using Hydropower to Complement Wind Power Uncertainty through Stochastic Programming. Appl. Energy 2019, 253, 113535. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Wang, Z.; Feng, B.; Yang, P.F. Optimal Configuration of Wind–PV–Storage Complementary Power Generation System Based on a Bi-Level Optimization Model. Acta Energiae Solaris Sin. 2022, 43, 98–104. [Google Scholar]
- An, Y.; Zheng, S.Y.; Su, R.; Yang, R.Z. Bi-Level Optimization of Wind–PV–Hydro–Storage Multi-Energy Complementary Power Generation System. Acta Energiae Solaris Sin. 2023, 44, 510–517. [Google Scholar]
- Jia, Y.G.; Xie, M.F.; Peng, Y.; Wu, D.; Li, L.; Zheng, S. Optimal Configuration and Empirical Analysis of a Wind-Solar-Hydro-Storage Multi-Energy Complementary System: A Case Study of a Typical Region in Yunnan. Water 2025, 17, 2262. [Google Scholar] [CrossRef] [Scilit]
- Qiu, Y.B.; Li, Q.; Ai, Y.X.; Wang, T.; Chen, W.; Bai, H.; Benbouzid, M.; Liu, S.; Gao, F. Optimal Scheduling for Microgrids Considering Long-Term and Short-Term Energy Storage. J. Energy Storage 2024, 93, 112137. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Liu, Y.L. Capacity Optimization Configuration of Hybrid Energy Storage System in Microgrid Based on QPSO. Foreign Electron. Meas. Technol. 2022, 41, 167–173. [Google Scholar]
- Cheng, Q.; Liu, P.; Ming, B.; Yang, Z.; Cheng, L.; Liu, Z.; Huang, K.; Xu, W.; Gong, L. Synchronizing Short-, Mid-, and Long-Term Operations of Hydro-Wind-Photovoltaic Complementary Systems. Energy 2024, 305, 132309. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.D.; Qin, H.; Li, J.; Liu, Y.; Yao, L.; Wang, Y.; Wang, C.; Pei, S.; Zhou, J. Short-Term Optimal Operation of Wind-Solar-Hydro Hybrid System Considering Uncertainties. Energy Convers. Manag. 2020, 205, 112405. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.X.; Lu, Z.X.; Hu, W.; Wang, Y.; Dong, L.; Zhang, J. Coordinated Optimal Operation of Hydro–Wind–Solar Integrated Systems. Appl. Energy 2019, 242, 883–896. [Google Scholar] [CrossRef] [Scilit]
- Liu, B.X.; Lund, J.R.; Liao, S.L.; Jin, X.; Liu, L.; Cheng, C. Optimal Power Peak Shaving Using Hydropower to Complement Wind and Solar Power Uncertainty. Energy Convers. Manag. 2020, 209, 112628. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.Y.; Zhang, H.; Guo, P.C.; Li, C.; Wu, S. Optimal Scheduling of a Cascade Hydropower Energy Storage System for Solar and Wind Energy Accommodation. Energies 2024, 17, 2734. [Google Scholar] [CrossRef] [Scilit]
- Jiang, W.Y.; Liu, Y.Q.; Fang, G.H.; Ding, Z. Research on Short-Term Optimal Scheduling of Hydro-Wind-Solar Multi-Energy Power System Based on Deep Reinforcement Learning. J. Clean. Prod. 2023, 385, 135704. [Google Scholar] [CrossRef] [Scilit]
- Ge, Y.Y.; Xie, J.; Fu, D.H.; Feng, S.; Chang, J.; Song, Y. Real-Time Scheduling of Wind-Solar-Hydro Complementary System Based on Deep Reinforcement Learning. In Proceedings of the 2024 IEEE PES 16th Asia-Pacific Power and Energy Engineering Conference (APPEEC), Nanjing, China, 25–27 October 2024; pp. 1–4. [Google Scholar]
- Dong, Y.C.; Zhang, H.L.; Wang, C.; Zhou, X. Soft Actor-Critic DRL Algorithm for Interval Optimal Dispatch of Integrated Energy Systems with Uncertainty in Demand Response and Renewable Energy. Eng. Appl. Artif. Intell. 2024, 127, 107230. [Google Scholar] [CrossRef] [Scilit]
- Jiang, X.J.; Zhang, L.; Li, F.W.; Li, Z.; Ling, Z.; Zhao, Z. Research on Dynamic Energy Management Optimization of Park Integrated Energy System Based on Deep Reinforcement Learning. Energies 2025, 18, 5172. [Google Scholar] [CrossRef] [Scilit]
- Li, W.W.; Zhou, J.N.; Pei, B.L.; Zhang, Y.F. Research on Long-Term Stochastic Optimal Dispatch of Cascaded Reservoirs Based on Deep Reinforcement Learning. J. Hydroelectr. Eng. 2023, 42, 21–32. [Google Scholar]
- Wan, Z.X.; Li, W.W.; He, M.; Zhang, T.; Chen, S.; Guan, W.; Hua, X.; Zheng, S. Research on Long-Term Scheduling Optimization of Water-Wind-Solar Multi-Energy Complementary System Based on DDPG. Energies 2025, 18, 3983. [Google Scholar] [CrossRef] [Scilit]
- Qian, T.T.; Zhang, K.F.; Shi, D.F.; Zhang, L. Co-Optimization of Capacity and Operation for Battery-Hydrogen Hybrid Energy Storage Systems Based on Deep Reinforcement Learning and Mixed Integer Programming. Energies 2025, 18, 5638. [Google Scholar] [CrossRef] [Scilit]
- Hu, C.C.; Cai, Z.X.; Zhang, Y.X.; Yan, R.D.; Cai, Y.; Cen, B.W. A Soft Actor-Critic Deep Reinforcement Learning Method for Multi-Timescale Coordinated Operation of Microgrids. Prot. Control Mod. Power Syst. 2022, 7, 29. [Google Scholar] [CrossRef] [Scilit]
- Yu, Z.; Zheng, W.; Zeng, K.; Zhao, R.; Zhang, Y.; Zeng, M. Energy Optimization Management of Microgrid Using Improved Soft Actor-Critic Algorithm. Int. J. Renew. Energy Dev. 2024, 13, 329–339. [Google Scholar] [CrossRef] [Scilit]
- Su, Y.; Teh, J.; Fang, S.; Dai, Z.; Wang, P. Two-Stage Optimal Dispatch Framework of Active Distribution Networks with Hybrid Energy Storage Systems via Deep Reinforcement Learning and Real-Time Feedback Dispatch. J. Energy Storage 2025, 106, 114855. [Google Scholar] [CrossRef] [Scilit]
- Catalão, J.P.S.; Pousinho, H.M.I.; Mendes, V.M.F. Scheduling of head-dependent cascaded hydro systems: Mixed-integer quadratic programming approach. Energy Convers. Manag. 2010, 51, 524–530. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.


















