1. Introduction
Monthly outage schedule optimization for transmission grids is an important part of grid operation and maintenance management. A reasonable outage schedule can reduce the impact of equipment outages on power flow distribution, voltage security, and operational economy while ensuring the smooth implementation of equipment maintenance tasks. As the construction of new power systems continues to advance, the operation modes of transmission grids become more complex, the proportion of renewable energy integration increases, and the topological couplings and operational correlations among equipment grow stronger. Outage scheduling has gradually evolved from a traditional time-arrangement problem into a complex combinatorial optimization problem with multiple objectives and multiple constraints [
1,
2,
3,
4].
In actual power grid companies, monthly outage schedules usually go through several phases: multi-department application submission, planner aggregation, preliminary scheduling, balance meeting discussions, plan revision, and final confirmation. Balance meetings are an important process for coordinating the maintenance needs of various departments and grid operation constraints. However, the requirements raised in these meetings are often dynamic and unstructured, such as adjusting the maintenance duration of a certain device, restricting the maintenance date of a certain device, or prohibiting maintenance during a specific time period. Traditional manual scheduling relies heavily on the planner’s experience. When facing a large number of outage maintenance schedules, complex equipment correlations, and dynamic demands from multiple departments, problems such as low scheduling efficiency, omission of constraints, and delayed plan adjustments often occur [
5,
6,
7,
8].
Regarding the optimization of outage schedules in power systems, existing research has mainly focused on mathematical programming, stochastic optimization, robust optimization, and heuristic search. Fu et al. [
1] studied the security-constrained coordination optimization of generation and transmission outages, integrating unit maintenance, transmission line outages, unit commitment, and network security constraints into a unified optimization model. Basciftci et al. [
3] investigated the joint scheduling of maintenance and operation in power systems, considering the impact of decision-dependent uncertainty on outage maintenance schedules and operational arrangements. Sadeghian et al. [
4] developed a risk-averse generation outage maintenance scheduling model for combined heat and power systems, taking into account demand response and market uncertainty. Okumuşoğlu et al. [
5] studied the joint scheduling of predictive maintenance and operation under fault uncertainty, co-modeling equipment failure risks and system operation decisions. Fan et al. [
6] proposed a two-stage stochastic programming model for generation and transmission maintenance considering risk management, coordinating outage maintenance scheduling, operation costs, and system risk. Meanwhile, data-driven or heuristic optimization methods such as genetic algorithms, particle swarm optimization, simulated annealing, and multi-objective evolutionary algorithms have also been widely used for complex combinatorial optimization problems [
9,
10,
11,
12]. These methods have strong global search capabilities and can find feasible solutions in non-convex, non-linear, and multi-constrained problems. The above studies have improved the solution capability of outage schedule optimization from the perspectives of security constraints, uncertainty modeling, risk management, and intelligent searching. However, most of these methods still rely on pre-constructed mathematical models, encoding schemes, fitness functions, and fixed constraint handling strategies. When new business requirements such as fixed maintenance dates, forbidden maintenance periods, or adjustments to maintenance durations are raised in balance meetings, the model structure, constraint representation, or algorithm parameters usually need to be re-modified, imposing high demands on the optimization modeling and program adjustment capabilities of dispatchers. Therefore, traditional single optimization methods still suffer from insufficient field application flexibility and limited dynamic adaptability in dynamic outage scheduling scenarios driven by multiple rounds of balance meetings.
Reinforcement learning provides a new solution for sequential decision-making problems such as outage scheduling and has been applied to sequential decision-making tasks in power system operation and maintenance, as well as outage schedule optimization. Rocchetta et al. [
13] constructed a reinforcement learning framework for grid operation and maintenance, incorporating a grid component health status, maintenance delays, controllable generators, and renewable energy uncertainty into the decision process to optimize grid operation and maintenance strategies. Rokhforoz et al. [
14] studied the joint optimization of generator bidding and outage maintenance scheduling in competitive electricity markets, using safe multi-agent deep reinforcement learning to make outage maintenance scheduling decisions while satisfying security constraints. Lin et al. [
15] addressed the uncertainty of maintenance durations in distribution networks by formulating the outage schedule adjustment process as a Markov decision process and using deep reinforcement learning to train a scheduling agent, enabling adaptive adjustments to changes in maintenance durations. Tang et al. [
8] proposed an interpretable reinforcement learning method for monthly outage schedule optimization in power grids. Lee et al. [
16] developed a deep reinforcement learning-based outage maintenance scheduling framework for offshore wind farm maintenance, tackling combinatorial optimization challenges arising from maintenance task allocation, weather fluctuations, and wake effects. These studies demonstrate that reinforcement learning can transform power system maintenance and outage scheduling problems into sequential decision-making processes driven by states, actions, and rewards, and is well-suited for handling continuous state changes and constraint feedback caused by adjustments to maintenance dates.
However, although existing outage scheduling algorithms can automatically complete schedule optimization under given objective functions and constraints, their optimization processes usually rely on pre-set environment parameters and structured constraints. When multiple departments raise new scheduling requirements in balance meetings, these requirements are often expressed in natural language, exhibiting characteristics of being unstructured, dynamic, and rich in business semantics. Traditional optimization algorithms and reinforcement learning environments struggle to directly understand such natural language scheduling instructions, nor can they automatically convert them into executable model parameters and scheduling constraints. Consequently, outage scheduling algorithms lack adaptive optimization capabilities when faced with dynamic requirements from multiple departments. Thus, how to enable the outage schedule optimization model to promptly understand the natural language requirements raised in balance meetings and automatically adjust the optimization environment accordingly is a key issue for improving the intelligent scheduling capability of monthly outage schedules.
In recent years, large language models (LLMs) have demonstrated strong capabilities in natural language understanding, instruction following, and structured text generation. The Transformer architecture provides important technical support for the development of modern large language models [
17]. Large language models exhibit good generalization ability in few-shot learning and complex semantic understanding tasks [
18]. Instruction fine-tuning based on human feedback improves the model’s ability to respond to user intentions [
19]. The emergence of new reasoning models such as DeepSeek-R1 also offers greater application potential for LLMs in complex requirement parsing, rule understanding, and structured output tasks [
20]. Therefore, using LLMs to parse natural language scheduling requirements from balance meetings and convert them into structured constraint parameters recognizable by outage schedule optimization models is a feasible approach to address the difficulty of adapting outage scheduling algorithms to dynamic business requirements. In the power system domain, the integration of LLMs with grid operation optimization has also begun to attract attention. Yan and Xu [
21] combined a GPT-agent with deep reinforcement learning to handle real-time optimal power flow problems with linguistic stipulations. Cheng et al. [
22] proposed a large language model for advanced power dispatching, exploring the application potential of LLMs in power dispatching tasks. Xiang et al. [
23] studied the application of large language models in the secure operation of power systems, showing that LLMs can be used for tasks such as dispatching rule understanding, operation state analysis, and security assessment. However, LLMs themselves are not suitable as standalone solvers for strictly mathematical optimization problems, especially in transmission grid scenarios where physical constraints such as power flow convergence, voltage limits, and operational economy must be satisfied. Therefore, combining the requirement understanding capability of large language models with the numerical optimization capability of reinforcement learning models provides a new approach for solving dynamic outage schedule optimization problems.
Based on the above analysis, this paper proposes a collaborative optimization method for monthly outage schedules of transmission grids based on a large language model and reinforcement learning. The method uses the large language model to parse natural language requirements raised in balance meetings and convert them into structured constraints recognizable by the reinforcement learning environment. Subsequently, an outage schedule optimization model is constructed based on the Dueling Deep Q-Network (Dueling DQN) to generate monthly outage schedules under multiple objectives and constraints. This paper uses the IEEE 39-bus system [
24] and the PYPOWER power flow calculation tool [
25] for case validation, and compares the proposed method with the conventional Deep Q-Network (DQN), particle swarm optimization, and other methods to verify its effectiveness.
Although this study focuses on monthly outage scheduling, the proposed large–small model collaborative framework also has potential applications in power system security assessment, optimal power flow, and operational dispatch. By combining the requirement-understanding capability of large language models with the physically constrained optimization capability of small models, the framework can reduce the repetitive workload of dispatchers while retaining human supervision. More efficient scheduling may also reduce unnecessary power-flow redistribution and network losses, thereby supporting more sustainable power system operation.
The main contributions of this paper are as follows:
- (1)
The outage scheduling problem of the transmission system is formulated as a Markov decision process and solved by Dueling DQN.
- (2)
A natural language requirement parsing module is constructed and interfaced with the reinforcement learning agent for interactive optimization.
- (3)
An LLM-RL collaborative model is proposed to solve the multi-objective transmission grid outage schedule optimization problem and is validated on the IEEE 39-bus system.
The remainder of this paper is organized as follows.
Section 2 introduces the traditional outage schedule optimization process and establishes the outage schedule optimization model.
Section 3 presents the collaborative optimization framework of the large language model and the small reinforcement learning model, including requirement parsing, JSON parameter conversion, and Markov decision process modeling.
Section 4 carries out simulation validation on the IEEE 39-bus system and compares the performance of different optimization methods.
Section 5 concludes the paper and discusses future research directions.
4. Experimental Simulation
To verify the effectiveness of the proposed method, a case study with different phases is conducted on the IEEE 39-bus system. The first phase is the basic optimization phase, where outage scheduling is optimized solely using a small reinforcement learning model. The second phase simulates schedule adjustments after the first round of balancing meetings: a large language model interprets the newly added requirements and updates the environmental parameters of the reinforcement learning model. The third phase further introduces dynamic constraints after a second round of balancing meetings to validate the method’s adaptability to multi-round changes in requirements. The IEEE 39-bus system is a standard test system commonly used in power system research, consisting of 39 buses, 10 generators, and 46 branches. In this study, AC power flow calculations are performed using PYPOWER. Equipment 2, 10, 28, 31, and 44 are selected as the units to be maintained, and the scheduling horizon is set to 30 days, i.e.,
. The outage maintenance topology of the IEEE 39-bus system is shown in
Figure 5, where the branches marked are the equipment to be maintained in this paper. In the IEEE 39-bus system, the numbering of maintenance devices follows the corresponding transmission branch indices. It should be noted that a transmission branch may contain multiple physical devices, and the outage of any critical device within the branch may require the branch to be removed from service during maintenance.
4.1. Outage Scheduling Optimization Experiment with the Small Model
The large model plays the role of adjusting the reinforcement learning environment parameters of the small model. When optimizing the initial outage schedule submitted at the beginning of the month without holding a balance meeting, the small model can complete the task independently; this phase is defined as Phase 1. In Phase 1, when scheduling outages for the five devices (2, 10, 28, 31, and 44), the outage maintenance duration is uniformly set to three consecutive days. The initial state is configured such that all five devices undergo maintenance in the first three days. The training process involves 700 episodes, with an initial exploration rate of 1.0, an initial learning rate of 0.0005, and 100 steps per episode.
Figure 6 shows the total reward curve during the training process for the initial outage schedule in Phase 1. Overall, the reward starts from a negative value below −80,000 at the beginning of training and exhibits a sustained and significant upward trend as episodes increase. The increase is rapid in the early phases, gradually slows down, and eventually stabilizes, converging to a range near zero. This trend indicates that the agent transitions from an ineffective strategy to gradually learning effective decision-making in the task of initial outage schedule optimization, demonstrating that the algorithm achieves good learning efficiency and convergence in this scenario. The small model is the core component of outage schedule optimization and is capable of completing the entire training process on its own.
Figure 7 shows the Gantt chart comparison before and after outage schedule optimization in Phase 1. The horizontal axis represents the date, and the vertical axis represents the equipment number. In the initial state, the outage maintenance of the five devices is all concentrated in the first three days. Multiple devices being out of service simultaneously can easily cause significant changes in power flow distribution and increase the risk of voltage violations. After optimization by the small model, the maintenance times of the devices are distributed throughout the month, and the outage times of different devices are staggered. This reduces the impact of concentrated maintenance on system operation and facilitates the rational allocation of maintenance resources and personnel. This result shows that, in Phase 1 where only the small model participates in optimization, Dueling DQN can initially adjust the time distribution of the outage schedule and improve the rationality of outage arrangements.
Figure 8 compares the per-unit voltage variations in each bus in the IEEE 39-bus system under the initial outage maintenance schedule of Phase 1 and the final optimized outage maintenance schedule.
Figure 8a shows the bus voltage distribution under the initial schedule, and
Figure 8b shows the bus voltage distribution under the final optimized schedule. It can be observed that, under the initial schedule, voltage fluctuations on some days and at some buses are relatively obvious, and certain local areas exhibit voltages close to or exceeding the safety limits, indicating that concentrated outage maintenance has a significant impact on system voltage stability. After optimization, the overall bus voltage distribution becomes more stable, abnormal voltage fluctuations are reduced, and the system voltage operation status is improved. Statistical results show that the total number of voltage violations after optimization decreases by 33, demonstrating that the proposed method can mitigate the impact of outage maintenance on voltage security by adjusting device maintenance periods, thereby improving the safety and rationality of the monthly outage schedule.
Figure 9 compares the changes in branch active power network loss under the initial outage maintenance schedule of Phase 1 and the final optimized outage maintenance schedule.
Figure 9a shows the branch active power network loss distribution under the initial schedule, and
Figure 9b shows the distribution under the final optimized schedule. In the figure, the horizontal axis represents the date, the vertical axis represents the branch number, and the (z)-axis represents the instantaneous average active power network loss of the branch on the corresponding date. It can be observed that, under the initial schedule, the active power network loss on some dates and branches is relatively high, indicating that concentrated equipment outages cause power flow redistribution and lead to increased local branch losses. After optimization, the distribution of high-loss areas becomes more dispersed, and the overall level of active power network loss is reduced. This shows that the optimized maintenance schedule can more reasonably arrange equipment outage periods, mitigating the impact of concentrated maintenance on system operational economy. Statistical results show that the total monthly active power network loss of the final optimized schedule is reduced by 41.23 MWh compared with the initial schedule, demonstrating that the proposed method can effectively improve system operational economy while satisfying maintenance constraints.
4.2. Outage Scheduling Optimization Experiment with Large-Small Model Collaboration
The IEEE 39-bus system was again selected for the experiment. After Phase 1 concluded, the departments held their first balance meeting, during which the following new requirements were identified: Device 2 can only undergo maintenance starting on Day 5; the outage time windows for Devices 31 and 44 are extended to four days. The large model converted the new natural language requirements summarized by the planners into a JSON file and transmitted it to the small model. The small model parsed the JSON file using a parsing code to obtain Python code for the reinforcement learning environment parameters. Following these steps, Phase 2 training was conducted for 700 episodes, with an initial exploration rate of 1.0, an initial learning rate of 0.0005, and 100 steps per episode. After Phase 2 training, the departments held a second balance meeting, adding a new requirement to the previous ones: no device maintenance is permitted on days 15, 16, and 17. The process was repeated, and Phase 3 reinforcement learning training was performed.
All experiments were conducted on a workstation equipped with an NVIDIA GeForce GTX 1650 GPU. The training times for Phases 1, 2, and 3 were approximately 2.30, 2.50, and 2.75 h, respectively, resulting in a total training time of approximately 7.55 h. After training, the average neural network inference time required to select a single scheduling action was approximately 1.8 ms. The generation and validation of a complete monthly outage schedule, including the associated AC power-flow calculations, required approximately 18.5 s. Since monthly outage scheduling is an offline or near-offline planning task conducted after balance meetings, the above computational time is acceptable for the IEEE 39-bus system considered in this study.
Figure 10 illustrates the cumulative training reward trends during the outage schedule optimization process across the different phases. It can be observed that the cumulative rewards in all different phases gradually increase with the number of training episodes and eventually stabilize, indicating that the small model can progressively learn effective scheduling strategies under different constraint conditions. Compared with Phase 1, Phases 2 and 3 have lower initial rewards and more pronounced fluctuations due to the introduction of additional constraints such as fixed maintenance times, extended equipment maintenance durations, and forbidden maintenance dates. However, after training, they still converge to a relatively high level. This result demonstrates that the proposed method has good learning ability and adaptability in multi-phase dynamic constraint scenarios.
Figure 11 presents the final outage scheduling results obtained after optimization across the different phases.
Figure 11a presents the outage schedule obtained in Phase 1, where only the small reinforcement learning model performs optimization independently. At this phase, no new constraints from balance meetings are introduced, and the model primarily completes the optimization of equipment outage periods based on the initial maintenance parameters.
Figure 11b shows the optimization result after the first balance meeting. The large language model parses the requirements raised in the meeting, such as fixed maintenance dates and adjustments to maintenance durations, and converts them into structured constraint parameters, which are then used to update the small model environment. As a result, the optimized outage schedule can satisfy new requirements such as the fixed maintenance of Device 2.
Figure 11c shows the final optimization result after the second balance meeting. On the basis of the previous phase, forbidden maintenance period constraints are further introduced. In the figure, the light red areas indicate forbidden maintenance dates, and the red dashed boxes indicate mandatory maintenance arrangements. It can be seen that as the balance meeting requirements are gradually introduced, the large language model can convert unstructured meeting requirements into constraints recognizable by the small model. The small model then re-optimizes the schedule in the updated environment, ultimately generating a monthly outage schedule that simultaneously satisfies the requirements of fixed maintenance, forbidden maintenance, and maintenance durations.
Figure 12 compares the branch active power loss and bus voltage profiles under different outage maintenance optimization phases. The left subfigures correspond to the initial or previous-phase schedules, and the right subfigures show the results after the LLM interprets updated balance meeting requirements and the Dueling DQN re-optimizes the outage schedule.
In the initial schedules, several maintenance tasks are concentrated within the same period, causing multiple transmission branches to be simultaneously unavailable. This increases power transfer stress on the remaining branches and leads to higher active power losses and voltage deviations in the IEEE 39-bus system. After optimization, the proposed framework redistributes outage periods, alleviating the impact of concentrated maintenance on power flow distribution and voltage profiles. The optimized schedules reduce voltage violations by 31 times and decrease the monthly active power loss by 35.88 MWh while satisfying the updated maintenance constraints, demonstrating improved operational safety and economic performance.
4.3. Comparative Analysis of Optimization Algorithms
Table 1 compares the optimization performance of three methods, namely LLM + PSO, LLM + DQN, and LLM + Dueling DQN, across the different phases. To ensure a fair comparison, all three methods use the same IEEE 39-bus system, maintenance equipment, dynamic requirements, reward function, and constraint settings; the only difference lies in the optimization algorithm. The values in the table represent the average reward over the last 30 episodes of each phase. It should be noted that PSO is not a reinforcement learning algorithm; therefore, its reward value is the evaluation result obtained by substituting the candidate schedules generated during the search process into the same reward function used for the reinforcement learning methods. The number of invalid decisions indicates how many times the schedule adjustment actions generated or executed by each method violated outage schedule constraints within the same statistical window.
It should be noted that the cumulative reward is an internal learning signal rather than the final optimization metric. Since the reward includes both performance improvement rewards and penalties for infeasible actions, negative cumulative rewards may occur when the agent explores constraint-violating actions during dynamic optimization. Therefore, the final scheduling performance is evaluated based on operational indicators rather than reward values alone.
From
Table 1, it can be seen that LLM + Dueling DQN achieves the highest average reward values in all different phases, which are 1137, 793, and −651, respectively, and the number of invalid decisions is zero in all different phases. This indicates that the proposed method has good optimization effectiveness and constraint adaptability under different dynamic constraints. In contrast, LLM + PSO obtains lower average reward values, and as the constraint complexity increases, the number of invalid decisions gradually increases, indicating insufficient search stability in complex dynamic constraint scenarios. LLM + DQN performs better than LLM + PSO but is still inferior to LLM + Dueling DQN in terms of average reward value and constraint satisfaction capability. Overall, as constraints such as fixed maintenance and forbidden maintenance are gradually introduced, the optimization difficulty for all methods increases. Nevertheless, the proposed LLM + Dueling DQN method maintains a relatively high average reward level while avoiding invalid decisions, verifying its effectiveness in multi-phase outage schedule optimization.
5. Conclusions
This paper addresses the challenges in monthly outage schedule optimization for transmission grids, including difficulty in multi-department coordination, strong reliance on manual experience, and poor adaptability to dynamic requirements in a timely manner. A collaborative outage schedule optimization method based on a large language model and a small reinforcement learning model is proposed. The large language model is used to parse unstructured maintenance requirements raised in balance meetings and convert them into structured constraint parameters recognizable by the reinforcement learning environment. Subsequently, an outage schedule optimization model is constructed based on Dueling DQN, where the monthly outage scheduling process is formulated as a Markov decision process. Taking power flow convergence, number of voltage violations, and active power network loss as optimization objectives, the method optimizes the outage schedule under multiple constraints.
The IEEE 39-bus case study demonstrates that the proposed framework can effectively handle multi-phase dynamic constraint updates. Compared with the initial outage schedule, first-stage optimization reduces the monthly total voltage violations by 33 times and decreases active power loss by 41.23 MWh. After further constraint updates, the second and third optimization phases achieve reductions of 31 voltage violations and 35.88 MWh active power loss, respectively.
Case study results on the IEEE 39-bus system show that the proposed method can effectively adapt to dynamic requirements arising from multiple rounds of balance meetings and re-optimize the outage schedule under different constraint conditions. Compared with the initial schedule, the optimized outage schedule reduces the number of voltage violations and lowers the monthly active power network loss, demonstrating that the method is effective in improving the safety and economy of transmission grid operation. Furthermore, comparative experimental results show that Dueling DQN achieves higher reward values and fewer invalid decisions than PSO and traditional DQN during the optimization process across the different phases, verifying the effectiveness and feasibility of the proposed collaborative optimization framework.
Future research may focus on locally deploying the large language model, pre-training it, and constructing a dedicated knowledge base and rule base for transmission grid outage schedule optimization. In addition, the proposed framework will be further validated on very large-scale power grids, with emphasis on improving scalability through parallel power-flow computation and hierarchical or regional decomposition. Future research will also investigate more efficient constraint-handling mechanisms, such as adaptive action masking and constrained reinforcement learning, to reduce infeasible exploration and improve training efficiency. Furthermore, the integration of the proposed framework with existing utility IT infrastructure will be investigated. This will require standardized data interfaces with operational and maintenance management systems, secure data exchange, access control, and traceable decision records.