Evolution system-based coal mine scheduling optimization method and electronic device
By using a large language model-driven objective function evolution, the problems of manual dependence and difficulty in cross-mine migration in the coal mine shuttle bus scheduling system have been solved. This has enabled automated and adaptive shuttle bus scheduling optimization, improving the business effectiveness of the scheduling scheme and the system's scalability.
Patent Information
- Application Number
- CN202611644093.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing coal mine shuttle bus scheduling systems rely on manual experience and lack data-driven automatic optimization mechanisms. They cannot adapt to changes in business preferences, and traditional genetic algorithms cannot express complex preferences and cross-item interactions, resulting in deviations between the solutions and the actual business optimality. They also cannot migrate across mines and lack automated closed-loop optimization.
The objective function evolution driven by a large language model is constructed through code-level representation, controlled atomic DSL, multi-island parallel evolution, and business-side replay evaluation. This builds an end-to-end closed-loop optimization process, automatically generating objective functions that meet the mining party's preferences, and achieving adaptive and automated optimization of the objective function.
It significantly improved the operational effectiveness of the shuttle bus scheduling scheme, reduced operation and maintenance costs, achieved adaptive objective function and cross-mine deployment capabilities, and formed a complete automated closed-loop optimization process.
Smart Images

Figure CN123140889A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of coal mine related technologies, and in particular to a coal mine scheduling optimization method, electronic equipment, storage medium and computer program product based on an evolution system. Background Technology
[0002] For a long time, the scheduling of shuttle buses for underground personnel in coal mines has relied primarily on manual experience. Currently, shuttle bus planning in most domestic coal mines is still manually formulated by dispatchers based on experience. Station locations, departure times, and the number of buses dispatched per trip are all based on subjective judgments of the working face distribution and work schedules, lacking a data-driven automatic optimization mechanism. Coal mine auxiliary transportation projects can build upon this foundation by introducing a two-stage shuttle bus planning method based on genetic algorithms, representing a typical example of the evolution of underground personnel transportation towards automated scheduling.
[0003] Genetic algorithms are algorithms for evolutionary systems, with the objective function being the fitness function. In a two-stage genetic algorithm scheme, shuttle bus planning is decomposed into two sub-problems: station selection and departure time. In the station selection stage, a chromosome (an integer encoding of length 8) is used to select a predetermined number of shuttle bus stops from several candidate nodes. An initial random sampling forms a candidate population of a predetermined size. Crossover is performed using a uniform crossover method where genes are randomly selected from both parents. Mutation is performed by replacing a position on the chromosome with another candidate node within the same work area with approximately a 20% probability. Fitness is measured by the weighted sum of distances from workers to the nearest stop plus the total distance traveled by the shuttle bus; a smaller value indicates better performance. In the departure time stage, a chromosome is used to represent the decimal value of the departure time (ranging from 0 to 8). Crossover is performed by averaging the values from both parents, and mutation involves small adjustments up and down. Fitness is measured by the waiting / lateness time of workers after arriving at the destination station multiplied by the number of workers, where the penalty for lateness is twice that for early arrival.
[0004] In existing technologies, the typical workflow for shuttle bus planning is as follows: (1) The algorithm engineer manually writes out the site fitness formula and the time fitness formula based on the preferences verbally described by the business party; (2) Take the roadway topology map, the nearest station mapping of each work area, the actual work area on the day, the number of people in each work area, and the on-duty time requirements of each work area as inputs, and run the two-stage GA to the preset number of iterations; (3) Take the best individual from the last generation as the output of the shuttle bus plan; (4) The dispatcher modifies the formula weights based on on-site feedback (e.g., "the penalty for being late is too light, change it to 3 times next time") and returns to step one.
[0005] In this process, the first and fourth steps rely heavily on the experience of engineers and schedulers and lack automation mechanisms.
[0006] Disadvantages of existing technology: 1) The fitness function of existing genetic algorithms is a static, manually formulated formula, which cannot adapt to business preferences. The fitness function for the existing shuttle bus planning is manually set by algorithm engineers based on verbal preferences from business stakeholders. Station fitness is calculated as "weighted sum of distances + shuttle bus travel distance," and time fitness is "double for late arrivals + double for early arrivals." Once this formula is hardcoded, it remains unchanged throughout the entire GA evolution process, failing to automatically adjust the target form for different shifts, seasons, or work areas. When the mine's business preferences change (e.g., adding a requirement for "priority to emergency repair shifts"), engineers need to manually rewrite the formula and readjust the parameters, lacking adaptive capability.
[0007] 2) Manual formulas have limited expressive power and cannot characterize nonlinearity and cross-term interaction preferences. The existing fitness function consists of at most two or three linearly weighted terms, which cannot express the following complex preferences with practical business significance: (a) the nonlinear threshold effect of "exponential increase in penalty after being late for more than 10 minutes"; (b) the cross-term interaction of "reduced tolerance for detours when the occupancy rate exceeds 90%"; and (c) the scenario switching coupling of "distance weight drops to 0.2 while time weight rises to 5.0 during emergency trips". This directly leads to a systematic deviation between the solution converged by GA and the actual business optimum.
[0008] 3) Traditional genetic programming operators cannot utilize domain knowledge, converge slowly, and the solution space is filled with meaningless expressions. If traditional genetic programming is used to evolve the symbolic expression of the fitness function, its fixed subtree replacement, point mutation, and other operators only work at the syntactic level and cannot understand the reasonable combination of atoms such as "late arrival time," "occupancy rate," and "air exposure time" in terms of business semantics. The evolutionary process will generate a large number of syntactically valid but semantically absurd formulas (e.g., "occupancy rate"). The logarithm of the delay time significantly reduces search efficiency. In addition, traditional genetic programming (GP) lacks a cross-generational feedback mechanism, and each generation of mutation is a blind mutation, which cannot learn from the failure samples of the previous generation.
[0009] 4) Existing methods cannot form an end-to-end closed loop in terms of business-side result metrics. Traditional solutions aim for "optimal formula" during the training phase and use "business-side metrics" as observations during the deployment phase. There is no automatic feedback channel between the two: observations of "increasing average worker lateness rate" from the business side cannot be automatically fed back into the formula's evolution; instead, they must be verbally relayed to engineers by schedulers for manual parameter tuning. This "manual closed-loop" approach is inefficient and prone to distortion, leading to a long-term misalignment between the algorithm's objectives and business goals.
[0010] 5) Scene switching and cross-mine migration rely on manual retraining, resulting in high costs for large-scale deployment. In current implementations, engineers need to readjust the weights and number of terms in the fitness formula for each new mine or shift added. Taking a typical coal mine scenario as an example, the fitness of the morning, afternoon, and night shifts should ideally have different weights and even different term structures, but current implementations only maintain a fixed formula and cannot switch automatically. This reliance on manual intervention severely limits the scalable reuse of intelligent assisted transportation products across multiple mines and shifts.
[0011] Similar to shuttle bus planning, coal mine scheduling based on evolutionary systems includes vehicle scheduling (based on a linear programming solver, aiming to minimize the number of dispatched vehicles and the total travel distance), driver assignment (aiming to minimize the standard deviation of driving mileage / duration among all drivers), and traffic light control (based on the maximum pressure value pressure = number of vehicles entering the station). (Number of exported vehicles, etc.). The objective functions of these models are all designed manually, with fixed forms and weights. Summary of the Invention
[0012] Therefore, it is necessary to provide a coal mine scheduling optimization method, electronic equipment, storage medium, and computer program product based on evolutionary systems to address the technical problem that the objective function of existing coal mine scheduling based on evolutionary systems is manually designed.
[0013] This invention provides a coal mine scheduling optimization method based on an evolutionary system, comprising: Multiple candidate objective functions for the coal mine business scheduling evolution system are obtained. The candidate objective functions are code functions using a programming language. Each candidate objective function receives scheduling parameter input and outputs a target value. Perform multiple iterations of the candidate objective function evolution until the termination condition for the candidate objective function evolution iteration is met. In each iteration of the candidate objective function evolution iteration, perform the following candidate objective function evolution iteration operation: The candidate objective function is obtained by performing an objective function evolution operation on the candidate objective function using a large language model; Each of the candidate objective functions in this evolutionary iteration is injected into the coal mine business scheduling evolution system for business evolution operations to obtain the optimal business plan based on each candidate objective function. The business score of each optimal business plan is calculated and associated with the corresponding candidate objective function. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration operation is executed. If the candidate objective function evolution iteration termination condition is met, the candidate objective function with the best business score is taken as the optimal objective function. The optimal objective function is then injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained from the business evolution operation for coal mine business scheduling.
[0014] Further, the candidate objective function includes an evolvable region code and a fixed region code. The step of using a large language model to perform objective function evolution operations on the candidate objective function to obtain the candidate objective function for this evolutionary iteration includes: The candidate objective function is obtained by performing an objective function evolution operation on the evolvable region code of the candidate objective function using a large language model.
[0015] Furthermore, the step of using a large language model to perform objective function evolution operations on the evolvable region code of the candidate objective function to obtain the candidate objective function for this evolution iteration includes: The candidate objective function obtained from the previous evolutionary iteration is used as the parent candidate objective function, and all parent candidate objective functions are used as the parent population. One or more parental candidate objective functions are selected from the parent population as candidate objective functions to be mutated. Mutation operation prompt words are constructed based on the code of the candidate objective functions to be mutated and a preset code set. The mutation operation prompt words are input into a large language model. Based on the code generated by the large language model, the evolutionary region code of the candidate objective functions to be mutated is modified to obtain the mutated objective function. The preset code set includes one or more pre-defined atoms and a set of allowed operators. The atoms are pre-encapsulated code fragments. Multiple sets of target function groups to be cross-referenced are selected from the parent population. Each set of target function groups to be cross-referenced includes two parent candidate target functions as target functions to be cross-referenced. For each set of target function groups to be cross-referenced, cross-operation prompt words are constructed based on the codes of the two target functions to be cross-referenced and the business scores associated with the two target functions to be cross-referenced. The cross-operation prompt words are input into a large language model. Based on the code generated by the large language model, the evolutionary region code of one of the target functions to be cross-referenced is modified to obtain the target function after cross-reference. The mutated objective function and the crossover objective function are used as the candidate objective functions for this evolutionary iteration.
[0016] Furthermore, the step of selecting one or more parental candidate objective functions from the parent population as candidate objective functions to be mutated, constructing mutation operation prompts based on the code of the candidate objective functions to be mutated and a preset code set, inputting the mutation operation prompts into a large language model, and modifying the evolutionary region code of the candidate objective functions to be mutated based on the code generated by the large language model to obtain the mutated objective function, including: Based on the business scores associated with the parent candidate objective functions, an inspiration function is selected from the parent population. Select one or more parental candidate objective functions from the parent population as candidate objective functions to be mutated; The preset code set is used as the system prompt part, and the code of the inspiration function and the code of the candidate target function to be mutated are used as the user prompt part; The system prompt and the user prompt are concatenated to form a mutation operation prompt, which is then input into the large language model. The code generated by the large language model is used to replace the evolvable region code of the candidate objective function to be mutated, resulting in the mutated objective function.
[0017] Furthermore, for each group of target functions to be cross-referenced, cross-operation prompts are constructed based on the codes of the two target functions and the associated business scores. These prompts are then input into a large language model. Based on the code generated by the large language model, the evolvable region code of one of the target functions to be cross-referenced is modified to obtain the cross-referenced target function, including: Based on the associated business scores, select the objective function to be crossed with the better business score as the primary objective function to be crossed, and the other objective function to be crossed as the secondary objective function to be crossed. The code of the primary objective function to be crossed, the code of the secondary objective function to be crossed, and the cross operation requirements are concatenated into cross operation prompts. The cross operation requirements indicate that the model is based on the evolvable region code of the primary objective function to be crossed, and extracts code fragments from the evolvable region code of the secondary objective function to be crossed to generate new code. Input the cross-operation prompt words into the large language model; The code generated by the large language model is used to replace the evolvable region code of the main objective function to be crossed, resulting in the objective function after crossing.
[0018] Furthermore, the step of injecting each of the candidate objective functions in this evolutionary iteration into the coal mine business scheduling evolution system for business evolution operations includes: The validity of all candidate objective functions in this evolutionary iteration is verified, and each candidate objective function that passes the validity verification is injected into the coal mine business scheduling evolution system for business evolution operation.
[0019] Furthermore, it also includes: assigning multiple candidate objective functions to multiple island populations, with each island population corresponding to a business scenario, and dividing historical data into multiple evaluation subsets according to business scenarios; The evolutionary iteration operation of the candidate objective function includes: performing the following operation independently for each island population: A large language model is used to independently perform objective function evolution operations on the candidate objective function in each island population to obtain the candidate objective function for the current evolution iteration of the candidate objective function in each island population; Each of the candidate objective functions in this evolutionary iteration is injected into the coal mine business scheduling evolution system for business evolution operations, so as to obtain the optimal business solution based on each candidate objective function; Calculate the business score for each of the optimal business solutions in each evaluation subset, and perform a weighted calculation on multiple business scores based on scenario weights to obtain the business score for each optimal business solution and associate it with the corresponding candidate objective function, wherein the scenario weight of the scenario corresponding to the island population is greater than the scenario weight of other scenarios. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration is executed. If the candidate objective function evolution iteration termination condition is met, for each island population, the candidate objective function with the best business score in that island population is taken as the optimal objective function for the business scenario corresponding to that island population. Based on the current business scenario, the optimal objective function of the corresponding business scenario is injected into the coal mine business scheduling evolution system to perform business evolution operations to obtain the optimal business plan for coal mine business scheduling.
[0020] This invention provides an electronic device, comprising: At least one processor; and, A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that are executed by at least one of the processors, which enable the at least one processor to perform the coal mine scheduling optimization method based on the evolution system as described above.
[0021] The present invention provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all the steps of the coal mine scheduling optimization method based on the evolution system as described above.
[0022] This invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the coal mine scheduling optimization method based on an evolutionary system as described above.
[0023] This invention acquires multiple candidate objective functions, generates them into code functions using a programming language, iterates and evolves these functions using a large language model, and performs business evolution operations based on a coal mine business scheduling evolution system to optimize the objective functions. This invention avoids manually writing linear weighted formulas by automating the evolution of objective functions. The evolved objective functions can identify complex preferences with real business significance, significantly improving the business score of business solutions. Furthermore, because the objective functions are automatically generated and no manual parameter tuning by algorithm engineers is required, the daily operation and maintenance costs of the product are significantly reduced. This invention constructs a complete automated closed-loop optimization process. The entire optimization process requires no manual intervention, completely eliminating reliance on human experience. This transforms the formulation of objective functions from experience-dependent to data-driven, and the output results are fully reproducible and traceable, significantly improving the standardization and scalability of the product. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating the workflow of a coal mine scheduling optimization method based on an evolutionary system, according to an embodiment of the present invention. Figure 2 This is a flowchart illustrating a coal mine scheduling optimization method based on an evolutionary system, according to another embodiment of the present invention. Figure 3 The flowchart illustrates a preferred embodiment of the present invention: a coal mine shuttle bus planning and scheduling optimization method employing a two-stage genetic algorithm. Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to the present invention. Detailed Implementation
[0025] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings. Identical components are indicated by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "upper," and "lower" used in the following description refer to directions in the drawings, while the terms "inner" and "outer" refer to directions toward or away from the geometric center of a specific component. These terms are used only for the convenience of describing this application and simplifying the description, and are not intended to indicate or imply that the device or element referred to has a specific orientation, or is constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0026] Unless the context otherwise requires, throughout the specification and claims, the term "comprising" is interpreted as open-ended and encompassing, meaning "including, but not limited to." In the description of the specification, terms such as "one embodiment," "some embodiments," "exemplary embodiment," "exemplary," or "some examples," etc., are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this application. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics mentioned may be included in any suitable manner in any one or more embodiments or examples.
[0027] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, unless otherwise stated, "a plurality of" means two or more.
[0028] In describing some embodiments, the term "connection" and its derivative expressions may be used. For example, the term "connection" may be used in describing some embodiments to indicate that two or more components have direct physical or electrical contact with each other. The embodiments claimed herein are not necessarily limited to the content of this document.
[0029] In addition, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0030] This document describes exemplary embodiments in conjunction with the accompanying drawings, all of which are idealized schematic diagrams. For clarity, the thickness proportions of various structural layers and regions may be enlarged in the drawings. Those skilled in the art should understand that due to objective factors such as manufacturing processes and measurement tolerances, the shape of the actual product may reasonably differ from that shown in the drawings. Therefore, the understanding of the exemplary embodiments should not be limited to the schematic shapes shown in the drawings. Any reasonable variations caused by the manufacturing process that are not substantially different from the shape shown in these drawings should be considered to fall within the scope of the embodiments disclosed in this specification. The drawings themselves are not intended to limit the precise geometry of the actual product, nor do they constitute a limitation on the scope of patent protection.
[0031] In modern coal mine underground auxiliary transportation scenarios, personnel shuttle bus scheduling is a crucial link in ensuring timely start and shift handover in mining operations. Taking a typical coal mine scenario as an example, the underground roadway topology map contains several selectable nodes, with a maximum of 10 shuttle bus stops. Each shift needs to cover work areas with actual personnel on duty that day from several candidate work areas, and the arrival time for each work area must be distributed across different time scales between 7:00 and 9:00. Existing technology employs a two-stage shuttle bus planning method based on a Genetic Algorithm (GA). The first stage uses the combination of stops as chromosomes to solve the stop selection problem, and the second stage uses the departure time as chromosomes to solve the departure timing problem.
[0032] Whether the convergence direction, quality finding, and final shuttle bus solution of the two-stage GA align with the mine's actual business preferences depends entirely on the form and weights of the two "fitness functions." In the current implementation, the site fitness is represented as "1 × total distance workers travel to the nearest site + 1 × shuttle bus travel distance," and the time fitness is represented as "late arrival duration × number of workers × 2 + early arrival duration × number of workers × 1." The weighting coefficients, penalty directions, and function forms in these formulas are all manually set by algorithm engineers, lacking objective basis and unable to automatically adjust for the differentiated preferences of different mines, shifts, and seasons.
[0033] Furthermore, traditional genetic algorithms and their applications in shuttle bus / public transport scheduling (such as station location optimization, departure interval optimization, and bus route planning) typically express the objective function as a "weighted sum of several terms" or a "parallel optimization of several terms according to the Pareto front." The weight coefficients are generally set through grid search, Bayesian optimization, or expert experience. This "adjustable weights, fixed structure" approach faces the following difficulties in actual business: first, the weights cannot express non-linear preferences (e.g., the penalty increases sharply after a late arrival exceeds a threshold); second, the structure cannot express cross-term interactions (e.g., "high occupancy rates make late arrivals more sensitive"); and third, scenario switching requires manual rewriting of the formula rather than automatic adaptation.
[0034] Genetic Programming (GP) automatically evolves the form of the objective function by encoding the objective function as a symbolic expression tree and performing fixed operator operations such as random replacement of tree nodes and subtree swapping. GP has been widely used in scenarios such as symbolic regression. However, when GP is applied to engineering scheduling objective functions, the following problems are common: First, the search space is full of syntactically valid but semantically meaningless expressions (such as log(negative numbers), division by zero, etc.), resulting in slow convergence; second, the fixed tree operation operators cannot utilize domain knowledge (e.g., "occupancy rate should usually be used as an amplification factor rather than a linear addition term") to guide the search direction; third, there is a lack of cross-generational experience transfer mechanisms, and each generation's mutation is a "blind mutation," unable to learn from past failures.
[0035] Therefore, the core technical problem to be solved by this invention is how to automatically evolve a fitness function that conforms to the actual operational preferences of the current mine while maintaining or even improving the quality of the shuttle bus program (comprehensive indicators such as average worker waiting time, lateness rate, shuttle bus mileage, and passenger load factor), thereby getting rid of the experience dependence of manual parameter adjustment and significantly improving the actual business value of GA.
[0036] Specifically, the technical problems of existing technologies can be broken down into the following four sub-problems: (1) The bottleneck problem of the search space due to the limited form of the fitness function. In the existing implementation, the fitness of the two-stage GA is a fixed linear weighted formula, consisting of only two or three terms, which cannot express complex preferences with semantic structure such as "the penalty increases exponentially when lateness exceeds 10 minutes", "the penalty increases sharply when the passenger load exceeds 90%", and "the nonlinear effect of the duration of underground air exposure". This directly limits the upper limit of the solution quality that GA can achieve in the shuttle bus solution search space.
[0037] (2) The problem of solidification of multi-objective trade-offs and scenario switching. Mining companies have significantly different preferences for objectives such as worker walking distance, shuttle bus energy consumption, lateness risk, and passenger load balance in different scenarios such as early shift, middle shift, night shift, and routine / emergency / emergency transportation. The existing single fixed fitness function cannot adapt to the differentiated objective trade-off requirements of different shifts and different seasons without rewriting the code.
[0038] (3) Evaluation distortion problem due to misalignment between business results and algorithm objectives. GA converges to "optimality in the sense of the current fitness function", but this optimum is not equivalent to "optimality that the mine really wants". The business layer is really concerned with outcome-side indicators such as reduction in average worker waiting time, reduction in lateness rate, reduction in shuttle bus operating costs, and reduction in the number of dispatcher interventions. There is a significant modeling gap between these indicators and handwritten formulas.
[0039] (4) Difficulty in generalizing across mines / shifts. In the actual promotion of intelligent assisted transportation systems, every time a new mine is connected or a new type of shift is added, the weights and number of terms in the fitness formula need to be manually readjusted, lacking an automatic transfer mechanism. This severely limits the product's ability to be reused on a large scale.
[0040] However, in actual coal mine auxiliary transportation stress tests, the number of vehicles dispatched using the manual dispatcher mode was far higher than that of the scheduling scheme based on operations research solvers, indicating that the optimization quality of the scheduling algorithm has a significant impact on production and operating costs. As an important sub-problem of auxiliary transportation, personnel shuttle bus scheduling, if further optimized through automation, can significantly reduce vehicle operating energy consumption and dispatcher intervention frequency, and directly improve the efficiency and safety of personnel transportation during peak underground periods.
[0041] On the other hand, in recent years, various mainstream large language models have demonstrated powerful capabilities in code understanding, generation, and modification. Large language models have made breakthroughs in automatic code generation in recent years. Models based on the Transformer architecture can understand programming tasks described by natural language, generate functionally correct code snippets, and modify and optimize existing code based on feedback. Research in areas such as FunSearch has further demonstrated that using LLM directly as a mutation operator in evolutionary algorithms can automatically discover solutions not anticipated by humans in the function / program level search space. Applying this capability to the evolution of objective functions in operations research scheduling algorithms can overcome the dual bottlenecks of traditional manual scheduling and the limited expressive power of traditional genetic programming operators.
[0042] The FunSearch framework is the first to propose using LLM as the mutation operator for evolutionary algorithms, achieving program-level automatic search and optimization for mathematical problems (such as the capset problem). This work proves the effectiveness of LLM-driven evolutionary strategies in discrete search spaces, but its application is limited to purely mathematical problems. It does not involve multi-objective operations research optimization scenarios with practical engineering constraints (such as lateness penalties, passenger load constraints, underground roadway topology constraints, shift scene switching, etc.), nor does it involve the two-layer structure where "the object of evolution is the fitness function of another evolutionary algorithm (GA)".
[0043] Finally, existing methods cannot drive algorithm evolution in a closed loop based on business-side results. The objective function of traditional GA or operations research optimization methods remains unchanged once it is set. The operational effects observed on the business side (such as worker lateness rate and actual shuttle bus operating costs) cannot be back-propagated to the formal design of the algorithm objective function, resulting in a typical "algorithm objective - business objective" separation problem.
[0044] To address this, this invention proposes a coal mine scheduling optimization method based on an evolutionary system. This method establishes a two-layer closed-loop optimization process: "generating objective function code—inner-layer GA operation—outer-layer business-side evaluation—feedback improvement—population iteration," by introducing code-level objective function representation, controlled-atom DSL, multi-island parallel evolutionary engine, business-side replay / simulation evaluation, cost-performance-balance triple-weighted scoring, and a large language model-driven code mutation and crossover mechanism. Specifically, the code-level objective function representation encodes each candidate fitness formula into a complete executable Python function, expanding the search space from the traditional "weight vector of several weighted sums" to a program space with semantic structure; the controlled atom DSL encapsulates business-related quantities such as travel distance, lateness duration, passenger load rate, downhole air exposure duration, and shift type into named atoms and restricts their combination within an allowed set, ensuring that the code is interpretable and auditable; the multi-island parallel evolution engine divides the candidate formula population into multiple independent islands for parallel search, and uses migration and reset mechanisms to balance exploration and utilization; the business-side playback / simulation evaluation runs the shuttle bus schemes generated by the candidate formulas in a historical data playback device or a lightweight downhole simulator, outputting real business indicators; the cost-performance-balanced triple weighted scoring aggregates business indicators into a unified multi-objective Pareto front; the large language model, as an evolutionary operator, mutates and crosses the objective function logic at the semantic level, breaking through the bottleneck of fixed operators in traditional evolutionary algorithms being unable to express structured preferences. Ultimately, the process constructed by this invention can automatically generate objective functions that conform to the actual preferences of mine operators for coal mine scheduling without human intervention, and can automatically re-evolve as business preferences or scenarios change, significantly reducing the operation and maintenance costs of shuttle bus scheduling algorithms while improving the actual business effectiveness of shuttle bus solutions.
[0045] This invention uses "business-side replay / simulation evaluation" as an outer scorer to truly introduce the result-side indicators into the formal evolution of the objective function, forming an end-to-end closed loop.
[0046] This invention can be widely applied in the following fields and scenarios: Coal mine underground personnel shuttle bus scheduling. In the auxiliary transportation system of large coal mines, the adaptive fitness function produced by the outer evolution layer, combined with the existing two-stage GA, can automatically generate station combinations and departure timetables that conform to the actual preferences of the mine for each shift, replacing the shuttle bus plan formulated by manual experience.
[0047] The overall scheduling objective evolution of underground auxiliary transportation vehicles. This framework is not limited to shuttle bus planning, but can also be extended to the objective function evolution of other sub-models such as underground material transportation scheduling (linear programming solver), driver assignment, and route planning, forming a general objective function adaptive generation capability for underground auxiliary transportation systems.
[0048] Ground public transport / industrial park shuttle / factory commuter shuttle dispatching. The core mechanism of this invention does not rely on underground scenarios in principle, and can be transferred to all shuttle dispatching scenarios that "use station combinations and departure times as decision variables," such as ground public transport route planning, large industrial park commuting, and airport shuttles. Through outer layer evolution, it automatically adapts to the differentiated target preferences of different cities / industries / enterprises.
[0049] The general operations research optimization objective function is automatically generated. The technical framework of this invention (evolvable objective function defined by controlled DSL + LLM-driven code-level mutation and crossover + business-side replay / simulation evaluation + multi-objective Pareto evolution) is universal and can be extended to any operations research optimization scenario where "the objective function is difficult to define accurately by humans", such as the vehicle routing problem (VRP), production scheduling, and resource allocation.
[0050] like Figure 1 The diagram shown is a flowchart of a coal mine scheduling optimization method based on an evolutionary system according to an embodiment of the present invention, including: Step S110: Obtain multiple candidate objective functions for the coal mine business scheduling evolution system. The candidate objective functions are code functions using a programming language. Each candidate objective function receives scheduling parameter input and outputs a target value. Step S120: Perform multiple evolutionary iterations of the candidate objective function until the termination condition for the evolutionary iteration of the candidate objective function is met. In each evolutionary iteration of the candidate objective function, the following evolutionary iteration operation is performed: Step S121: Use a large language model to perform an objective function evolution operation on the candidate objective function to obtain the candidate objective function for this evolution iteration; Step S122: Inject each of the candidate objective functions in this evolution iteration into the coal mine business scheduling evolution system for business evolution operation, obtain the optimal business plan based on each candidate objective function, calculate the business score of each optimal business plan and associate it with the corresponding candidate objective function; Step S123: If the candidate objective function evolution iteration termination condition is not met, then the next candidate objective function evolution iteration operation is executed. If the candidate objective function evolution iteration termination condition is met, then the candidate objective function with the best business score is taken as the optimal objective function, and the optimal objective function is injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained by the business evolution operation for coal mine business scheduling.
[0051] Specifically, this invention can be applied to electronic devices with processing capabilities, such as host computers and other electronic devices.
[0052] First, step S110 is executed to obtain multiple candidate objective functions for the coal mine business scheduling evolution system. The candidate objective functions are code functions using a programming language. Each candidate objective function receives scheduling parameter input and outputs a target value.
[0053] Specifically, an evolutionary system is a system with evolutionary optimization capabilities. Evolutionary systems include, but are not limited to: a coal mine shuttle bus scheduling system using a genetic algorithm, a vehicle scheduling model system based on a linear programming solver, a driver assignment model system, a traffic signal control model system, a shuttle bus scheduling system, and a general operations research system with an inner layer of operations research scheduling algorithms and an outer layer requiring adaptive objective functions.
[0054] The objective function is the objective function used when performing evolutionary optimization on an evolutionary system. For an evolutionary system using a genetic algorithm, the objective function is specifically the fitness function of the genetic algorithm. For a linear programming solver, the objective function is the objective function of the linear programming solver. For other control optimization algorithms, the objective function is a function representing the goal that the control optimization needs to achieve.
[0055] Multiple candidate objective functions are pre-defined. Unlike existing technologies, the candidate objective functions in this embodiment are code-level objective functions. Each candidate objective function is encoded as a complete executable code function, rather than the weight vector or symbolic expression tree used in existing evolutionary algorithms. Preferably, the candidate objective functions are encoded as Python functions. The input to each candidate objective function is scheduling parameters, which include context parameters used for scheduling optimization in the coal mine business scheduling evolution system and candidate business schemes to be evaluated. The output is the target value, such as a floating-point number.
[0056] Taking shuttle bus planning in coal mine operations as an example, a two-stage genetic algorithm is used. Each candidate objective function defines two top-level functions named `site_fitness` and `time_fitness`, used for station selection (GA) and departure time (GA) respectively. The functions receive a unified context object `ctx` (which exposes specific scheduling parameters by named fields) and a candidate scheme object `scheme`. `scheme` is a candidate shuttle bus scheme generated by the inner two-stage genetic algorithm during the search process; it is an individual in the two-stage genetic algorithm population. For example, in the station selection GA, it could be a combination of 8 stops and its route `scheme.route`, or in the departure time GA, it could be the departure time. The output is a floating-point number as the fitness score of the scheme in the current context; a smaller score indicates better performance. Both `ctx` and `scheme` are input parameters for the candidate objective function during runtime, passed in by the coal mine operation scheduling evolution system when calculating fitness. When constructing prompt words, the large language model is provided with the structural descriptions of the fields contained in `ctx` and `scheme`, function signature constraints, and DSL atomic definitions, rather than the specific data of `ctx` and `scheme`. Based on this, the large language model writes candidate objective function code that calls atoms such as `worker_count(area)`, `bus_capacity(scheme)`, and `load_ratio(ctx, scheme)`. The context parameters in `ctx` include, but are not limited to, information such as: the worker distribution for the day, work area arrival time, shuttle bus capacity, shift type, shuttle bus origin and destination, roadway shortest distance matrix, and station-work area mapping table.
[0057] During initialization, the existing objective function of the coal mine business scheduling evolution system can be encoded into a corresponding executable code function as a candidate objective function.
[0058] Then, step S120 is executed to perform multiple evolutionary iterations of the candidate objective function until the termination condition for the evolutionary iteration of the candidate objective function is met. In each evolutionary iteration of the candidate objective function, the following evolutionary iteration operation is performed: Step S121: Use a large language model to perform an evolutionary operation on the candidate objective function to obtain the candidate objective function for this evolutionary iteration.
[0059] Specifically, the candidate objective function obtained in the previous iteration is used as the parent candidate objective function. Based on the parent candidate objective function, prompt words are constructed and input into the large language model. The large language model performs objective function evolution operation on the candidate objective function according to the requirements of the prompt words to obtain the candidate objective function in the current candidate objective function evolution iteration.
[0060] Then, step S122 is executed, in which each of the candidate objective functions in this evolution iteration is injected into the coal mine business scheduling evolution system for business evolution operation, to obtain the optimal business plan based on each candidate objective function, calculate the business score of each optimal business plan and associate it with the corresponding candidate objective function.
[0061] Specifically, the candidate objective functions obtained in each iteration are injected into the coal mine business scheduling evolution system for business evolution operations. Injecting candidate objective functions means compiling them into candidate objective programs, which then replace the original objective functions in the coal mine business scheduling evolution system. In the coal mine business scheduling evolution system, where the objective function was previously used for calculation, the candidate objective program is called instead. Scheduling parameters (i.e., the context object `ctx` and the candidate business scheme to be evaluated) are input to the candidate objective program, and the target value output by the candidate objective program is obtained. The rest of the logic in the coal mine business scheduling evolution system remains unchanged, still using the original process. For the two-stage genetic algorithm, `site_fitness` replaces the fitness calculation for the site selection GA, and `time_fitness` replaces the fitness calculation for the departure time GA. Taking the coal mine shuttle bus planning using a two-stage genetic algorithm as an example: the candidate objective function is the candidate fitness function, and the business plan is the shuttle bus plan. The candidate fitness function f_i is compiled to obtain the candidate fitness program, which is then injected into the inner two-stage genetic algorithm. The two-stage genetic algorithm adopts the original crossover / mutation / selection process, while the inner two-stage genetic algorithm is implemented using existing technology. The inner two-stage genetic algorithm also performs multiple iterations within the algorithm. During the iteration process, the context object ctx and each candidate shuttle bus plan scheme scheme are input to the candidate fitness program to obtain the fitness value of each shuttle bus plan output by the candidate fitness program. Based on the fitness value of each shuttle bus plan, the crossover / mutation / selection process is performed. After convergence, the optimal shuttle bus plan S_i under the candidate fitness function is obtained.
[0062] Then, the optimal business solution obtained based on the evolution of each candidate objective function is sent to the business-side evaluator to obtain one or more business indicators measured after executing the optimal business solution. The one or more business indicators are aggregated into a business score as the business score of the optimal business solution and associated with the corresponding candidate objective function.
[0063] Finally, step S123 is executed. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration operation is executed. If the candidate objective function evolution iteration termination condition is met, the candidate objective function with the best business score is taken as the optimal objective function. The optimal objective function is then injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained by the business evolution operation for coal mine business scheduling.
[0064] Specifically, the termination condition for the evolutionary iteration of the candidate objective function is preset. In some embodiments, the termination condition for the evolutionary iteration of the candidate objective function is that the number of iterations reaches a preset first threshold, or the number of consecutive iterations without improvement reaches a preset second threshold.
[0065] If the candidate objective function evolution iteration termination condition is not met, steps S121-S123 are executed again until the candidate objective function evolution iteration termination condition is met. Then, the candidate objective function with the best business score is taken as the optimal objective function. The optimal objective function is injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained by business evolution operation for coal mine business scheduling.
[0066] This invention acquires multiple candidate objective functions, generates them into code functions using a programming language, iterates and evolves these functions using a large language model, and performs business evolution operations based on a coal mine business scheduling evolution system to optimize the objective functions. This invention avoids manually writing linear weighted formulas by automating the evolution of objective functions. The evolved objective functions can identify complex preferences with real business significance, significantly improving the business score of business solutions. Furthermore, because the objective functions are automatically generated and no manual parameter tuning by algorithm engineers is required, the daily operation and maintenance costs of the product are significantly reduced. This invention constructs a complete automated closed-loop optimization process. The entire optimization process requires no manual intervention, completely eliminating reliance on human experience. This transforms the formulation of objective functions from experience-dependent to data-driven, and the output results are fully reproducible and traceable, significantly improving the standardization and scalability of the product.
[0067] like Figure 2 The diagram shown is a flowchart of a coal mine scheduling optimization method based on an evolutionary system according to another embodiment of the present invention, including: Step S210: Obtain multiple candidate objective functions for the coal mine business scheduling evolution system. The candidate objective functions are code functions using a programming language. Each candidate objective function receives scheduling parameter input and outputs a target value. The candidate objective functions include evolvable region codes and fixed region codes. Step S220: Perform multiple iterations of the candidate objective function evolution until the termination condition for the candidate objective function evolution iteration is met. In each iteration of the candidate objective function evolution iteration, the following candidate objective function evolution iteration operation is performed: Step S221: Use a large language model to perform objective function evolution operation on the evolvable region code of the candidate objective function to obtain the candidate objective function for this evolution iteration; Step S222: Perform a legality check on all the candidate objective functions in this evolution iteration, and inject each candidate objective function that passes the legality check into the coal mine business scheduling evolution system for business evolution operation to obtain the optimal business plan based on each candidate objective function. Calculate the business score of each optimal business plan and associate it with the corresponding candidate objective function. Step S223: If the candidate objective function evolution iteration termination condition is not met, then the next candidate objective function evolution iteration operation is executed. If the candidate objective function evolution iteration termination condition is met, then the candidate objective function with the best business score is taken as the optimal objective function, and the optimal objective function is injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained by the business evolution operation for coal mine business scheduling.
[0068] Specifically, step S210 is executed first to obtain multiple candidate objective functions for the coal mine business scheduling evolution system. The candidate objective functions are code functions using a programming language. Each candidate objective function receives scheduling parameter input and outputs a target value. The candidate objective functions include evolvable region codes and fixed region codes.
[0069] Specifically, the candidate objective function marks the evolvable region and the fixed region. The code within the evolvable region is the evolvable region code, and the code in the other regions is the fixed region code. In each iteration of the candidate objective function evolution, only the evolvable region code can be modified. The auxiliary code outside the evolvable region (input parsing, return format constraints) remains unchanged, ensuring that each round of evolution only modifies the core logic without breaking the function interface.
[0070] Because code functions (such as Python functions) can naturally express structured decision-making logic such as segmented penalties, non-linear amplification, cross-item interaction, and branching based on scene labels, which cannot be directly represented in traditional weight vectors or symbolic trees.
[0071] As an example, start and end marker lines (e.g., #===EVOLVESTART=== and #===EVOLVEEND===) are set in the source code of the candidate objective function. The area between the marker lines is the evolutionary region, and the auxiliary code outside the marker lines (input parsing, return format constraints) remains unchanged, ensuring that each round of evolution only modifies the core logic without breaking the function interface.
[0072] The initial seeds for candidate objective functions are derived from existing objective function implementations in the coal mine business scheduling evolution system. For example, for coal mine business shuttle planning using a two-stage genetic algorithm, the objective function is the fitness function. The initial seeds for candidate objective functions include a station fitness function encoded based on "1 × total walking distance + 1 × shuttle travel distance" and a time fitness function encoded based on "tardiness doubled + early arrival doubled". Using existing implementations as seeds ensures that the first generation of the population consists of feasible solutions usable by the business, and also allows each subsequent generation of new candidate functions to be improved from the existing implementation using a large language model, forming "code-level long-term memory".
[0073] Then, step S220 is executed to perform multiple evolutionary iterations of the candidate objective function until the termination condition for the evolutionary iteration of the candidate objective function is met. In each evolutionary iteration of the candidate objective function, the following evolutionary iteration operation is performed: Step S221: Use a large language model to perform objective function evolution operation on the evolvable region code of the candidate objective function to obtain the candidate objective function for this evolution iteration.
[0074] Specifically, the large language model performs mutation and evolution operations on the candidate objective function to obtain the candidate objective function in the current evolution iteration.
[0075] In one embodiment, the step of using a large language model to perform objective function evolution operations on the evolvable region code of the candidate objective function to obtain the candidate objective function for the current evolution iteration includes: The candidate objective function obtained from the previous evolutionary iteration is used as the parent candidate objective function, and all parent candidate objective functions are used as the parent population. One or more parental candidate objective functions are selected from the parent population as candidate objective functions to be mutated. Mutation operation prompt words are constructed based on the code of the candidate objective functions to be mutated and a preset code set. The mutation operation prompt words are input into a large language model. Based on the code generated by the large language model, the evolutionary region code of the candidate objective functions to be mutated is modified to obtain the mutated objective function. The preset code set includes one or more pre-defined atoms and a set of allowed operators. The atoms are pre-encapsulated code fragments. Multiple sets of target function groups to be cross-referenced are selected from the parent population. Each set of target function groups to be cross-referenced includes two parent candidate target functions as target functions to be cross-referenced. For each set of target function groups to be cross-referenced, cross-operation prompt words are constructed based on the codes of the two target functions to be cross-referenced and the business scores associated with the two target functions to be cross-referenced. The cross-operation prompt words are input into a large language model. Based on the code generated by the large language model, the evolutionary region code of one of the target functions to be cross-referenced is modified to obtain the target function after cross-reference. The mutated objective function and the crossover objective function are used as the candidate objective functions for this evolutionary iteration.
[0076] Specifically, this embodiment uses the large language model as the core operator of the outer evolutionary algorithm to implement the mutation and crossover operations of the candidate objective function code at the semantic level.
[0077] The candidate objective function obtained from the previous evolutionary iteration is used as the parent candidate objective function, and all parent candidate objective functions are used as the parent population.
[0078] Then, candidate objective functions to be mutated are selected from the parent population and the large language model performs the mutation operation; objective functions to be crossover are selected and the large language model performs the crossover operation.
[0079] In some embodiments, it also includes: The number of mutations is calculated by multiplying the parent population size by the mutation rate. The number of mutations is randomly selected from the parent population to perform the mutation operation on the candidate objective function. The crossover number is calculated by multiplying the parent population size by the crossover rate. The crossover objective function randomly selects candidates from the parent population to perform the crossover operation.
[0080] This embodiment designs a preset code set, which is a controlled set of Domain-Specific Languages (DSLs). The preset code set predefines one or more atoms and allowed operator sets. The candidate target function generated by the large language model can only call atoms and allowed operator sets within this preset code set. Here, an atom is a named atom, meaning a pre-encapsulated code fragment with a clearly defined name, such as an atomic function. Here, "atom" refers to atomicity, i.e., indivisibility.
[0081] Taking the coal mine shuttle bus planning using a two-stage genetic algorithm as an example, the preset code set includes the following categories: Walking distance atoms: walk_dist(worker,station), nearest_station(worker,scheme), bus_route_dist(scheme.route), shortest_path_len(a,b); Time atoms: arrival_time(worker, schememe), required_time(worker), time_diff(worker, schememe) (positive value represents early arrival, negative value represents late arrival), bus_travel_time(scheme.route); Number of passengers and passenger capacity: worker_count(area), total_workers(ctx), bus_capacity(scheme), load_ratio(ctx,scheme), overload_count(ctx,scheme); Scene tag atoms: shift_type(ctx) (early shift / afternoon shift / night shift / emergency), season(ctx), is_emergency(ctx), peak_hour_factor(ctx); Mining scenario-specific atoms: air_exposure_time(worker, scheme) (travel time, reflecting the impact of underground air quality on health), junction_pass_count(scheme.route) (number of underground junctions passed through); Allowed operators: +, -, ×, ÷, max, min, square, square root, absolute value, log, exp, sigmoid, piecewise function, and if / else branches based on scene labels.
[0082] During the evolutionary iteration of candidate objective functions, the large language model receives a pre-defined code set as part of the system prompts and is explicitly told that it is not allowed to call any functions or variables outside the pre-defined code set. Simultaneously, during legality verification, the framework uses static checks with Python AST to ensure that the code of the candidate objective function only uses names from within the pre-defined code set; otherwise, the candidate objective function is judged as an illegal entity and directly eliminated.
[0083] This embodiment leverages the semantic understanding capabilities of large language models to perform mutation and crossover operations, achieving semantic-level algorithm operators. By constructing a pre-defined code set, each generated code segment consists of named atoms. Schedulers and algorithm engineers can understand the code's principles based on the atoms and operators, avoiding the generation of black-box structures by LLM and ensuring the interpretability of code evolution. Furthermore, all possible atomic calls can be audited in advance, achieving auditability of code evolution. Finally, the search space of LLM is limited to business-reasonable combinations, avoiding semantically meaningless expressions and improving convergence efficiency.
[0084] In one embodiment, the step of selecting one or more parental candidate objective functions from the parent population as candidate objective functions to be mutated, constructing mutation operation prompts based on the code of the candidate objective functions to be mutated and a preset code set, inputting the mutation operation prompts into a large language model, and modifying the evolutionary region code of the candidate objective functions to be mutated based on the code generated by the large language model to obtain the mutated objective function includes: Based on the business scores associated with the parent candidate objective functions, an inspiration function is selected from the parent population. Select one or more parental candidate objective functions from the parent population as candidate objective functions to be mutated; The preset code set is used as the system prompt part, and the code of the inspiration function and the code of the candidate target function to be mutated are used as the user prompt part; The system prompt and the user prompt are concatenated to form a mutation operation prompt, which is then input into the large language model. The code generated by the large language model is used to replace the evolvable region code of the candidate objective function to be mutated, resulting in the mutated objective function.
[0085] Specifically, in the mutation operation, the parent candidate objective function with the highest business score ranking is selected as the inspiration function.
[0086] The business score is determined based on business needs. If the business score is smaller, the corresponding candidate objective function is better, and the business score is smaller and the business score ranks higher. Conversely, if the business score is larger, the corresponding candidate objective function is better, and the business score is larger and the business score ranks higher.
[0087] Then, the pre-set code set, the code of the inspiration function, and the code of the candidate target function to be mutated are assembled into a structured text prompt (i.e. prompt word) and sent to the large language model.
[0088] Preferably, the system assembles the complete source code, business score, various business indicators (T_wait, R_late, D_bus, B_load, A_expo), code validity verification error information, and feedback from previous reviews of the parent candidate objective function (hereinafter referred to as the parent function), along with the corresponding information of the inspiration function (other parent candidate objective functions ranked high in the population), into a structured text prompt and sends it to the large language model. The prompt consists of a system prompt and a user prompt: the system prompt includes a description of the task background, function signature constraints, DSL atomic definitions, scoring formulas, scene label rules, and a "robust formula priority" search strategy guide; the user prompt sequentially displays the code and score of the inspiration function as an evolutionary history reference, and then displays the code, score, error information, and review feedback of the parent function. Based on this, the large language model generates a new fitness function code. The system extracts code blocks from the text returned by the large language model and merges them with the parent function code, replacing the code within the evolvable region with the new code, while keeping the original content unchanged outside the region.
[0089] The mutation operation in this embodiment can automatically perform high-level semantic mutations such as weight adjustment, introduction of nonlinear terms, piecewise function design, and scene branch expansion. These operations cannot be directly implemented in traditional weight vector or symbolic tree representations. By introducing an inspiration function, directional mutation is achieved, guiding the LLM to improve by referencing the logical characteristics of individuals with high business score rankings, enhancing the directionality of evolution, and accelerating the convergence of the population towards regions with better score rankings.
[0090] In one embodiment, for each group of target functions to be cross-referenced, cross-operation prompts are constructed based on the codes of the two target functions and the associated business scores. These prompts are then input into a large language model. Based on the code generated by the large language model, the evolvable region code of one of the target functions to be cross-referenced is modified to obtain the cross-referenced target function, including: Based on the associated business scores, select the objective function to be crossed with the better business score as the primary objective function to be crossed, and the other objective function to be crossed as the secondary objective function to be crossed. The code of the primary objective function to be crossed, the code of the secondary objective function to be crossed, and the cross operation requirements are concatenated into cross operation prompts. The cross operation requirements indicate that the model is based on the evolvable region code of the primary objective function to be crossed, and extracts code fragments from the evolvable region code of the secondary objective function to be crossed to generate new code. Input the cross-operation prompt words into the large language model; The code generated by the large language model is used to replace the evolvable region code of the main objective function to be crossed, resulting in the objective function after crossing.
[0091] Specifically, in the cross-operation, the system takes two parent functions as a group as the target function group to be cross-operated. For each target function group to be cross-operated, the main target function to be cross-operated (i.e., the main parent function) and the secondary target function to be cross-operated (i.e., the secondary parent function) are selected according to the business score.
[0092] In some embodiments, the smaller the business score, the better the corresponding candidate objective function. In this case, the one with the lower business score is the primary cross-objective function, and the one with a larger difference from the primary cross-objective function index vector (e.g., one focuses on reducing the lateness rate and the other focuses on reducing the shuttle bus mileage) is the secondary cross-objective function.
[0093] In some embodiments, the higher the business score, the better the corresponding candidate objective function. In this case, the one with the higher business score is the primary objective function to be crossed, and the other parent function is the secondary objective function to be crossed.
[0094] Then, the codes and scores of both are simultaneously presented to the large language model. The model is required to identify and integrate valuable techniques (such as nonlinear terms, scene branches, and atomic combination methods) from the secondary cross-objective function, based on the primary cross-objective function, to generate a new function that combines the advantages of both. The secondary cross-objective function prefers individuals with large differences in indicator vectors to promote knowledge exchange between different regions in the search space.
[0095] This embodiment clarifies the baseline structure of code fusion through a primary-secondary crossover mode. It injects code fragments of the secondary crossover objective function into the primary crossover objective function, increasing the diversity of genes and preventing the population from converging to a single solution structure too early.
[0096] In some embodiments, the candidate objective function evolution iteration operation further includes, in each candidate objective function evolution iteration: The large language model is invoked to perform code review on the candidate objective functions in this evolutionary iteration, generate code feedback, and attach the code feedback to the metadata of the candidate objective functions; The step of constructing mutation operation prompt words based on the code of the candidate target function to be mutated and a preset code set includes: constructing mutation operation prompt words based on the code of the candidate target function to be mutated, metadata, and a preset code set; The construction of cross-operation prompt words based on the code of the two target functions to be crossed and the business scores associated with the two target functions to be crossed includes: constructing cross-operation prompt words based on the code, metadata, and business scores associated with the two target functions to be crossed.
[0097] Specifically, in each round of evolution, the system invokes the large language model to review the code of the newly generated candidate objective functions (referred to as sub-functions) in this evolutionary iteration, generating structured feedback (including change summaries, discovered legality risks, business explanations of key changes, and suggestions for further improvement). This feedback is appended to the metadata of the sub-function. When this function is selected as the parent function in subsequent iterations, the feedback information is passed to the large language model along with the code, forming a cross-generational experience transfer chain. This mechanism is equivalent to providing the large language model with an explicit evolutionary memory, enabling code generation to shift from blind mutation to knowledge-driven improvement based on historical feedback.
[0098] Then, step S222 is executed to perform a legality check on all the candidate objective functions in this evolution iteration. Each candidate objective function that passes the legality check is injected into the coal mine business scheduling evolution system for business evolution operation to obtain the optimal business plan based on each candidate objective function. The business score of each optimal business plan is calculated and associated with the corresponding candidate objective function.
[0099] Specifically, firstly, the validity of all candidate objective functions in this evolutionary iteration is verified: Each candidate objective function is actually executed during evaluation. The framework first performs a validity check on several synthetic extreme inputs (such as "zero person-days", "all people concentrated in one work area", "all people are late", "all people are early"), including the return value must be a finite floating-point number, monotonicity check (fit does not decrease when the number of people increases, fitness does not decrease when the lateness time increases), non-negativity check, etc. Only after passing the verification can it enter the real business evaluation.
[0100] Furthermore, each candidate objective function records its parent function identifier, generation number, iteration number, and island number, supporting backtracking analysis and breakpoint resumption of the entire outer evolution process.
[0101] This embodiment adds a lightweight validity check before the inner layer scheduling to eliminate invalid candidate functions in advance, avoiding resource waste and process crashes caused by the coal mine business scheduling evolution system executing abnormal candidate objective functions, thereby improving the robustness and operating efficiency of the system.
[0102] The candidate objective functions that have passed the legality verification are injected into the coal mine business scheduling evolution system for business evolution operations.
[0103] Taking the planning of coal mine shuttle bus using a two-stage genetic algorithm as an example: the candidate objective function is the candidate fitness function, and the business plan is the shuttle bus plan. The candidate fitness function f_i is injected into the inner two-stage genetic algorithm. The two-stage genetic algorithm adopts the original crossover / mutation / selection process, and the inner two-stage genetic algorithm is implemented using existing technology. The inner two-stage genetic algorithm also performs multiple iterations within the algorithm. After convergence, the optimal shuttle bus plan S_i under the candidate fitness function is obtained.
[0104] Then, S_i is fed into the business-side evaluator. The evaluator provides two modes: Mode A (historical replay) applies S_i to the mine's historical shift data (worker distribution, arrival time, actual clock-in records) for a certain period, calculating the equivalent business indicators of the scheme on each historical day; Mode B (lightweight simulation) simulates the complete process of worker walking, shuttle bus operation, and work arrival on the roadway topology map, and outputs simulation indicators. The outputs of the two modes are aligned to a unified set of indicators: average worker waiting time T_wait, worker lateness rate R_late, total shuttle bus mileage D_bus, passenger load balance B_load, and average underground air exposure time A_expo.
[0105] Then, the business metrics are aggregated into a business score. The scoring formula is: S = α·norm(T_wait) + β·norm(R_late) + γ·norm(D_bus) δ·B_load+ε·norm(A_expo), where α, β, γ, δ, and ε are weighting coefficients that can be explicitly adjusted according to the mine's preferences. In this embodiment, α=1.0, β=3.0, γ=0.5, δ=0.5, and ε=0.3; norm(·) is a function that normalizes each indicator to [0,1]. The smaller the business score, the better the corresponding candidate objective function.
[0106] Finally, the multi-dimensional business indicators corresponding to each candidate objective function are retained as Pareto front coordinates for the evolutionary iteration of the candidate objective function, used for multi-objective screening in the outer evolution. This mechanism supports both efficient screening using a single score for rapid sorting and the exploration needs of preserving diverse solutions using the Pareto front.
[0107] Finally, step S223 is executed. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration operation is executed. If the candidate objective function evolution iteration termination condition is met, the candidate objective function with the best business score is taken as the optimal objective function. The optimal objective function is then injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained by the business evolution operation for coal mine business scheduling.
[0108] Specifically, the termination condition for the evolutionary iteration of the candidate objective function is preset. In some embodiments, the termination condition for the evolutionary iteration of the candidate objective function is that the number of iterations reaches a preset first threshold, or the number of consecutive iterations without improvement reaches a preset second threshold.
[0109] If the candidate objective function evolution iteration termination condition is not met, steps S221-S223 are executed again until the candidate objective function evolution iteration termination condition is met. Then, the candidate objective function with the best business score is taken as the optimal objective function. The optimal objective function is injected into the coal mine business scheduling evolution system to perform business evolution operations to obtain the optimal business plan for coal mine business scheduling.
[0110] This embodiment realizes the automated generation and iterative evolution of the objective function in coal mine scheduling optimization based on an evolutionary system. By introducing a large language model as an evolutionary operator, fully automated closed-loop objective function optimization is achieved, eliminating reliance on the experience of algorithm engineers. Simultaneously, the code-level objective function is directly injected into the evolutionary system for solving, providing the optimal objective function for the coal mine scheduling evolutionary system. The evolved formula can express complex preferences with real business significance, significantly improving the business score of the evolutionary system. Furthermore, since the candidate objective function is automatically generated by the outer evolutionary layer, eliminating the need for manual parameter tuning by algorithm engineers, the daily operation and maintenance costs of the product are significantly reduced.
[0111] This embodiment constructs a complete automated closed-loop process of "generating objective function code—running the inner evolution system—business-side evaluation—feedback improvement—population iteration," requiring no manual intervention throughout the optimization process. From the initial input to the optimal objective function output, the system can automatically complete a preset number of outer evolution iterations within a reasonable timeframe. Compared to the manually driven objective function design pattern commonly used in existing products, this invention completely eliminates the reliance on human experience, transforming the formulation of the objective function from experience-dependent to data-driven. The output results are fully reproducible and traceable, significantly improving the product's standardization and scalable deployment capabilities.
[0112] This embodiment ensures the credibility of the output formula in real production through a business-side closed loop and robustness constraints. By using historical data playback / lightweight simulation on the business side as an outer evaluator, real business indicators (worker waiting time, lateness rate, shuttle bus mileage, passenger load balance, and air exposure duration) are directly introduced into the evolutionary objective, forming an end-to-end algorithm-business closed loop. Compared to existing methods that only optimize the optimality of the formula definition on the algorithm side, this embodiment can guarantee that the formula generated by the evolution is indeed superior to the original solution in terms of real business performance.
[0113] Finally, this embodiment possesses cross-domain portability, expanding the product's market boundaries and commercial value. The underlying framework of this embodiment consists of code-level objective function representation, controlled atomic DSL, business-side evaluation, and large language model-driven mutation and crossover. This underlying framework is universal; its evaluator module and DSL atomic set can be replaced with corresponding implementations in any operations research optimization domain without modifying the evolution engine and large language model interaction logic. This means the product can be directly migrated from the core scenario of coal mine shuttle scheduling to any application scenario where the "inner layer is an operations research scheduling algorithm, and the outer layer requires adaptive objective functions," such as coal and mineral transportation, driver assignment, traffic light control, ground public transportation scheduling, park commuting, logistics route planning, and production scheduling. Compared to customized scheduling algorithm tools developed for a single scenario, the architecture composed of this embodiment's universal framework, domain DSL, and domain evaluator enables the product to be developed once and deployed in multiple scenarios, significantly reducing the marginal cost of cross-industry expansion.
[0114] In one embodiment, the method further includes: assigning multiple candidate objective functions to multiple island populations, each island population corresponding to a business scenario, and dividing historical data into multiple evaluation subsets according to the business scenario; The evolutionary iteration operation of the candidate objective function includes: performing the following operation independently for each island population: A large language model is used to independently perform objective function evolution operations on the candidate objective function in each island population to obtain the candidate objective function for the current evolution iteration of the candidate objective function in each island population; Each of the candidate objective functions in this evolutionary iteration is injected into the coal mine business scheduling evolution system for business evolution operations, so as to obtain the optimal business solution based on each candidate objective function; Calculate the business score for each of the optimal business solutions in each evaluation subset, and perform a weighted calculation on multiple business scores based on scenario weights to obtain the business score for each optimal business solution and associate it with the corresponding candidate objective function, wherein the scenario weight of the scenario corresponding to the island population is greater than the scenario weight of other scenarios. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration is executed. If the candidate objective function evolution iteration termination condition is met, for each island population, the candidate objective function with the best business score in that island population is taken as the optimal objective function for the business scenario corresponding to that island population. Based on the current business scenario, the optimal objective function of the corresponding business scenario is injected into the coal mine business scheduling evolution system to perform business evolution operations to obtain the optimal business plan for coal mine business scheduling.
[0115] Specifically, this embodiment employs a multi-island parallel evolutionary architecture, dividing the outer population into multiple independent islands for parallel search. Taking shuttle bus planning in coal mining operations as an example, it is configured with four islands (corresponding to four shift scenarios: early shift, mid-shift, night shift, and emergency shift; each island has a higher weight in the evaluation subset of its corresponding scenario, but is still evaluated on the entire subset to ensure robustness). Each island maintains an independent population of candidate objective functions. This architecture possesses the following core mechanisms: (1) Streaming asynchronous scheduling: The system creates a thread pool and maintains a global iteration counter to allocate iteration tasks to each island in a round-robin manner. Unlike the traditional multi-island genetic algorithm where each island advances synchronously and waits for all islands to complete, this invention adopts a streaming asynchronous mode—when any thread completes a round of outer evolution, it immediately triggers population update and submits the next round of tasks without waiting for other threads, maximizing the concurrent utilization of LLM calls and inner GA evaluation.
[0116] (2) Circular topology migration: Inter-island migration is triggered once every iteration of the preset migration interval (every 5 generations in this embodiment). The migration direction follows a circular topology, that is, the Mth island sends excellent individuals to the (m+1) mod Mth island, where M is the preset migration interval. The sent individuals adopt Softmax weighted random sampling based on business scores. Compared with deterministically sending the best individuals, probabilistic sampling retains randomness while propagating the excellent function, which helps to maintain population diversity and promote the exchange of formula experience between different shift scenarios.
[0117] (3) Island Reset: A reset is triggered every iteration cycle with a large preset reset interval (every 15 generations in this embodiment). The reset process is based on the best individual score of each island. The islands in the lower half of the ranking are identified as weak islands, their populations are cleared, and the highest-scoring individuals are extracted from the strong islands in the upper half of the ranking and injected into the weak islands for reinitialization. This mechanism periodically eliminates islands that are trapped in local optima, preventing the overall search of the multi-island system from stalling.
[0118] (4) Scene weighted visibility: The system maintains a scene weight vector for each island and records the island’s weight preference for each evaluation subset (early shift / mid shift / night shift / emergency) in the business scoring, so that a family of differentiated fitness functions for different shifts can be evolved in parallel under the same evolutionary framework.
[0119] This embodiment implements a hierarchical evaluation set mechanism, which divides historical data into several evaluation subsets according to shift type (e.g., early shift set, mid-shift set, night shift set, emergency set). Each candidate objective function must be evaluated on all subsets, and then cross-subset variance is added as an additional penalty to the business score, thereby rewarding robust formulas that perform well on multiple shift types and avoiding solutions that overfit only on a certain shift type from winning.
[0120] Specifically, each candidate objective function is injected into the coal mine business scheduling evolution system for business evolution operations to obtain the optimal business solution based on each candidate objective function; Then, for each optimal business plan, in all evaluation subsets, the business indicators of the optimal business plan in each evaluation subset are determined by the business-side evaluator, and the business score of the optimal business plan in each evaluation subset is calculated. Finally, for each optimal business solution, the final business score is calculated as the weighted sum of all evaluation subsets plus a cross-subset variance penalty term. The final business score of each optimal business solution is then associated with the corresponding candidate objective function.
[0121] As an example, the final business score for the candidate objective function in the m-th island population is: ,in, For the first Candidate objective functions in island populations The final business score; The number of island populations is defined as follows: the evaluation subset corresponds one-to-one with the island populations according to the business scenario, and the number of evaluation subsets is also defined as follows. ; Candidate objective function The optimal business solution in the first Business scores obtained from a subset of assessments; This is a cross-subset variance penalty term; The penalty coefficient is... >0; For the first The island population for the first Scenario weights for each evaluation subset ≥0 and ,and That is, the first The scenario weight corresponding to a particular island population is greater than the scenario weight of other scenarios. The smaller the business score, the better the corresponding candidate objective function.
[0122] This invention, through a multi-island parallel evolutionary architecture and a scenario-weighted visibility mechanism, can output differentiated candidate objective function families for multiple scenarios (such as early shift, afternoon shift, night shift, emergency shift, etc.) in parallel during a single outer-layer evolution process. Compared to existing methods that use a single fixed formula to cover all scenarios, the formula family output in this embodiment automatically adapts to the preferences of different scenarios within the same algorithm framework, eliminating the need for algorithm engineers to rewrite code for each scenario. When the mining company adds a new scenario (such as adding a new shift type or adjusting business preferences), it only needs to expand the evaluation subset or adjust the scoring weighting coefficients to trigger outer-layer re-evolution, completing the entire process automatically.
[0123] Meanwhile, by evaluating set hierarchies and cross-subset variance penalty mechanisms, this embodiment rewards formulas that are robust across multiple scenarios, avoiding the overfitting of solutions that only win in a certain scenario, thus providing a reliable performance guarantee for the deployment of products on actual production lines.
[0124] Meanwhile, the multi-island parallel architecture and checkpoint breakpoint resume mechanism endow the system with industrial-grade stability and maintainability, supporting long-term unattended operation and meeting the stringent reliability requirements of the production environment.
[0125] like Figure 3 The diagram shown is a flowchart of a coal mine business shuttle planning and scheduling optimization method using a two-stage genetic algorithm according to the preferred embodiment of the present invention. The candidate objective function is the candidate fitness function, and the business plan is the shuttle plan.
[0126] Step S301, input the mine's original input: roadway topology map (including node connection relationships and the length of each roadway segment), mapping of each candidate work area and its nearest station, historical shift data for a certain period of time (daily actual work area, number of people in each work area, arrival time requirements for each work area, actual shuttle bus route and attendance records), shuttle bus physical parameters (capacity, speed), and shift type label.
[0127] Step S302: Divide the historical data into several evaluation subsets according to shift type, and construct a business-side evaluator (historical playback mode or lightweight simulation mode). Serialize and cache the input data and the evaluator together for direct loading in each subsequent evaluation round, ensuring that all iterations use a completely consistent data foundation.
[0128] Step S303: Construct an initial seed fitness function (one for site fitness and one for time fitness, based on the existing implementation of the mining company) and distribute it to the populations of multiple islands.
[0129] Step S304: Enter the outer evolutionary main loop. In each iteration, the elite selection module selects the parent function and inspiration function from the current island population; the large language model generates a new fitness function code based on the parent function code, scoring feedback, and inspiration function information; after static checking and extreme input validity verification by DSL, the new code is injected into the inner two-stage GA; the inner GA runs completely on the input of the day until convergence, obtaining the candidate bus scheme S; the business-side evaluator calculates five indicators T_wait, R_late, D_bus, B_load, and A_expo on the evaluation subset and aggregates them into a business score; the LLM review module generates structured feedback and attaches it to the new function.
[0130] Step S305: Add the new function to the island population and global archive, and update the best function tracking. Perform inter-island migration and island reset at preset intervals. Save checkpoints to disk at preset intervals.
[0131] Step S306: Repeat steps S304 and S305 until the number of outer iterations reaches the upper limit (iterate according to the preset number of generations, generate several candidates per island per generation, and the total number of evaluations depends on the population and island size) or the Pareto front shows no improvement for three consecutive generations.
[0132] Step S307: From the global archive, according to the island number recorded by each fitness function, retrieve the fitness function with the best business score for each island population. This fitness function is then used as the optimal fitness function for the corresponding shift scenario for that island population. The optimal fitness functions for each shift scenario constitute an adaptive optimal fitness function family for that mine. Each optimal fitness function includes site_fitness and time_fitness, which can be directly injected into the two-stage GA of the mine's online scheduling system for operation. The online scheduling system selects the corresponding optimal fitness function based on the current shift type. If the mine's business preferences change (e.g., a new emergency shift requirement is added), only the weighting coefficients or evaluation subsets of the scoring formula need to be modified to re-trigger the outer evolution; the entire process requires no manual code rewriting.
[0133] This embodiment involves two types of models. The first type is a large language model serving as the outer evolutionary operator, used to automatically generate new fitness function code based on existing fitness function code and its business evaluation feedback, undertaking mutation and crossover operations. This model is not the only implementation method; any large language model with code understanding and generation capabilities can be substituted, such as mainstream large language models and Wenxin Yiyan. The second type is a two-stage genetic algorithm serving as the inner scheduling algorithm, including station selection GA (chromosomes are integer sequences of length 8, representing 8 bus stops selected from multiple nodes) and departure time GA (chromosomes are floating-point numbers representing departure times). This GA is implemented using existing technology. This embodiment does not change the crossover / mutation operators and process of the inner GA, only replacing its original handwritten fitness function with the code produced by the outer evolution. In terms of internal computer performance, this embodiment avoids redundant evaluation by caching the evaluation results of each generation of candidate individuals in the inner GA, shortens the total iteration time through multi-island multi-threaded parallelism, and quickly filters candidate formulas without a simulator by replaying historical data for proxy evaluation, thus compressing the time required for outer evolution to a reasonable range. The model usage phase involved in this invention includes two phases: training and application. In the training phase, the large language model is repeatedly called in the outer evolutionary search phase, and the two-stage GA is rerun in each evaluation. In the application phase, the optimal fitness function code output by the outer evolution is directly deployed to the mine's online scheduling system for automatic use in daily shuttle bus planning, no longer relying on the large language model.
[0134] Through the above steps, this embodiment achieves efficient and traceable automated evolution of the fitness function for coal mine underground shift scheduling. This embodiment expands the search space from weight vectors to a semantically structured program space through code-level fitness function representation, enabling the large language model to perform mutation and crossover at the semantic level, automatically realizing nonlinear, piecewise, and scenario-coupled optimization operations that traditional fixed operators cannot express. Controlled atomic DSL ensures the business interpretability and security auditability of the generated code. A multi-island parallel evolution engine, combined with scenario-weighted visibility and migration / reset mechanisms, maintains population diversity while simultaneously evolving differentiated formula families for different shifts. Business-side replay / simulation evaluation and triple-weighted business scoring introduce real business indicators into the evolutionary objective function, forming an end-to-end closed loop of "algorithm-business". Evaluation set hierarchies and cross-subset variance penalties ensure the cross-scenario robustness of the solution. A cross-generational feedback mechanism establishes explicit evolutionary memory for the large language model, transforming code generation from blind exploration to knowledge-driven improvement. Compared with existing technologies, this method can automatically generate a fitness function that conforms to the actual preferences of the mine for each type of shift without human intervention, which significantly reduces the operation and maintenance cost of the bus scheduling algorithm and improves the actual business effect of the bus scheme.
[0135] This embodiment has the following five technical advantages: (i) Significantly improve the efficiency of shuttle bus scheduling while reducing the operation and maintenance costs of the algorithm side. This embodiment utilizes an automated evolutionary fitness function to generate a scenario-specific optimal objective function for each type of shift in a coal mine. Compared to the mine's original handwritten linear weighted formula, the evolved formula can express complex preferences with real business significance, such as "squared penalty for late arrival time," "nonlinear amplification of passenger load factor," "logarithmic term of underground air exposure time," and "emergency shift disabling equilibrium term." Under the same inner-layer GA iteration budget, the business score of the shuttle bus solution can be significantly improved, specifically manifested in a decrease in average worker waiting time, a decrease in late arrival rate, an approximate or decreased shuttle bus mileage, and an increase in passenger load factor equilibrium. Simultaneously, since the fitness function is automatically generated by the outer-layer evolution and requires no manual parameter tuning by algorithm engineers, the daily operation and maintenance costs of the product are significantly reduced.
[0136] (ii) Achieve fully automated closed-loop objective function optimization, eliminating reliance on the experience of algorithm engineers. This embodiment constructs a complete automated closed-loop process of "generating fitness function code—inner layer GA operation—business-side evaluation—feedback improvement—population iteration," requiring no manual intervention throughout the optimization process. From the original input to the optimal fitness function output, the system can automatically complete the preset number of outer layer evolution iterations within a reasonable time frame. Compared to the manual-driven objective function design mode commonly used in existing products (i.e., algorithm engineers manually write formulas based on verbal preferences from business stakeholders, and schedulers manually adjust weights again based on on-site feedback after deployment), this embodiment completely eliminates the reliance on human experience, transforming the formulation of the objective function from experience-dependent to data-driven. The output results are fully reproducible and traceable, significantly improving the product's standardization and scalable deployment capabilities.
[0137] (iii) Provide a family of differentiated objective functions across shifts / seasons to enhance the product's adaptability to different scenarios. This embodiment, through a multi-island parallel evolutionary architecture and a scenario-weighted visibility mechanism, can output a family of differentiated fitness functions for various shifts, such as morning, afternoon, night, and emergency shifts, in parallel during a single outer-layer evolution process. Compared to the existing technology that commonly uses a single fixed formula to cover all scenarios, the formula family output by this embodiment automatically adapts to the preference differences of different shifts within the same algorithm framework, eliminating the need for algorithm engineers to rewrite code for each scenario. When the mine adds a new shift type or adjusts business preferences, it only needs to expand the evaluation subset or adjust the scoring weighting coefficients to trigger outer-layer re-evolution, completing the entire process automatically.
[0138] (iv) Ensure the credibility of the output formula in real production through business-side closed-loop and robustness constraints. This embodiment uses historical data playback / lightweight simulation from the business side as an outer evaluator, directly incorporating real business metrics (worker waiting time, lateness rate, shuttle bus mileage, passenger load balance, and air exposure duration) into the evolutionary objective, forming an end-to-end closed loop from algorithm to business. Compared to existing methods that only optimize the optimal formula definition on the algorithm side, this embodiment ensures that the evolved formula truly outperforms the original solution in real business performance. Furthermore, through hierarchical evaluation sets and a cross-subset variance penalty mechanism, this embodiment rewards formulas that are robust across multiple shift types, preventing solutions that overfit only to a single shift type from winning, thus providing a reliable performance guarantee for product deployment on actual production lines.
[0139] (v) Possesses cross-domain transferability, expanding the market boundaries and commercial value of products. The underlying framework of this embodiment (code-level objective function representation, controlled atomic DSL, multi-island parallel evolution, business-side evaluation, and large language model-driven mutation and crossover) is universal. Its evaluator module and DSL atomic set can be replaced with corresponding implementations in any operations research optimization domain without modifying the evolution engine and large language model interaction logic. This means that the product can be directly migrated from the core scenario of coal mine shuttle scheduling to any application scenario where "the inner layer is an operations research scheduling algorithm and the outer layer requires adaptive objective function," such as coal and mineral transportation, driver assignment, traffic light control, ground public transportation scheduling, park commuting, logistics route planning, and production scheduling. Compared to existing technologies that develop customized scheduling algorithm tools for single scenarios, the architecture of this embodiment—a universal framework + domain DSL + domain evaluator—enables the product to be developed once and deployed in multiple scenarios, significantly reducing the marginal cost of cross-industry expansion.
[0140] The following describes the specific applications of this invention in various fields.
[0141] In the field of personnel shuttle bus scheduling in coal mines, the typical application process of this embodiment is as follows. In the initial stage, the system inputs the mine roadway topology map, historical shift data, and shuttle bus physical parameters, using the existing handwritten fitness function of the General Aspect Ratio (GA) as a seed. The outer evolutionary engine searches in parallel across multiple islands (divided by shift scenario). For each island and generation, several new candidate fitness functions are generated through a large language model. Each candidate is injected into a two-stage GA and evaluated on a historical data playback device, producing a comprehensive score and multi-objective Pareto coordinates. After a preset number of automatic iterations, the outer evolutionary engine outputs a family of optimal fitness functions for the mine—the morning shift formula introduces a "doubled penalty coefficient for detour distance when passenger load exceeds 85%"; the afternoon shift formula introduces a "square term of lateness duration" to strengthen the suppression of severe lateness; the night shift formula introduces a "logarithmic term of underground air exposure duration" to reflect the sensitivity of night shifts to health effects; and the emergency shift formula reduces the distance weight to 0.2, increases the time weight to 5.0, and disables the passenger load balancing term. After directly deploying the above formula family to the mine's online scheduling system, the two-stage GA automatically selects the corresponding formula to generate a shuttle bus plan each day based on the current shift, without manual intervention. Compared to the mine's existing handwritten formula plan, this embodiment can significantly reduce the average waiting time of workers and the lateness rate while maintaining a similar total shuttle bus mileage. At the same time, it enables the shuttle bus plan to automatically re-evolve with seasonal and business preference changes, eliminating the reliance on manual parameter tuning by algorithm engineers.
[0142] In the field of underground coal mine material transportation scheduling, this embodiment can be applied to the evolution of the objective function and hyperparameters of a vehicle scheduling model based on a linear programming solver. The existing linear programming solver's objective is a linear weighted sum of "minimum number of dispatched vehicles + shortest total vehicle travel distance," and hyperparameters such as batch size and time constraints are manually determined by engineers. When the outer evolution framework of this invention is applied to this model, the DSL atoms are replaced with linear programming solver semantic atoms such as "number of dispatched vehicles, total mileage, number of completed work orders, number of transported materials, computation time, and order type distribution," and the evaluator is replaced with "running the linear programming solver once on real stress test data such as actual stress test scenarios using candidate objectives and hyperparameter configurations." The outer evolution output is the optimal objective function and batch processing strategy that comprehensively considers transportation efficiency, solution time, and order granularity, thereby automatically improving the material transportation scheduling model without human intervention.
[0143] This embodiment is also applicable to the fields of driver assignment and traffic signal control in underground coal mines. The existing driver assignment model aims to minimize the standard deviation of "cumulative driving mileage balance + cumulative driving time balance." Through this embodiment, this objective can be evolved into a multi-dimensional composite formula that considers driver fatigue, shift matching, and mileage / time tradeoffs. The existing traffic signal control model uses maximum pressure control (pressure = number of vehicles entering). (Export vehicle count + emergency vehicle weighting) In this embodiment, the pressure function can be evolved into a higher-order formula that takes into account factors such as upstream and downstream congestion, task priority, and the directionality of underground roadways.
[0144] In the field of ground public transport / industrial park / factory commuter shuttle dispatching, this embodiment can be directly transferred. By replacing "underground air exposure duration" in the DSL with atoms such as "walking comfort", "number of transfers", and "road congestion index" on the ground, and replacing historical playback data with ground public transport card swiping data or industrial park commuter check-in data, the outer evolution can automatically generate shuttle fitness functions that conform to the actual commuting preferences of different cities / industries / enterprises.
[0145] In the field of automatic generation of general operations research optimization objective functions, this embodiment can be extended to any scenario where the inner layer is an operations research scheduling algorithm and the outer layer requires an adaptive objective function, such as the vehicle routing problem (VRP), production scheduling, and resource allocation. Users only need to define the DSL atomic set and business-side evaluator for the corresponding scenario to reuse the outer evolution engine and LLM interaction process without modifying the core framework code.
[0146] In summary, this embodiment is not only applicable to the core scenario of underground coal mine shuttle scheduling, but also represents a transferable and scalable general framework for "automatic evolution of the objective function of operations research algorithms." Its core advantages lie in the following: the evaluator module within the framework can be replaced with business indicator evaluation functions from any domain without modifying the outer evolution engine and the interaction logic of the large language model; the DSL atomic set can be flexibly expanded according to the business semantics of different domains; and the scenario-weighted visibility mechanism can be generalized to differentiated objective evolution strategies at any grouping level. This architecture of "general framework plus domain DSL plus domain evaluator" enables the present invention to automatically generate optimal scheduling objective functions that balance business effectiveness and operational preferences in diverse applications such as coal mines, surface transportation, logistics, and industrial scheduling, significantly improving the adaptive and scalable capabilities of scheduling algorithms.
[0147] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0148] like Figure 4 The diagram shown is a hardware structure schematic of an electronic device according to the present invention, comprising: At least one processor 401; and, A memory 402 is communicatively connected to at least one of the processors 401; wherein, The memory 402 stores instructions that are executed by at least one of the processors, such that the processors are able to perform the coal mine scheduling optimization method based on the evolution system as described above.
[0149] Figure 4 Take a processor 401 as an example.
[0150] The electronic device may also include an input device 403 and a display device 404.
[0151] The processor 401, memory 402, input device 403 and display device 404 can be connected by a bus or other means. The figure shows an example of connection by bus.
[0152] Memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the coal mine scheduling optimization method based on evolutionary systems in the embodiments of this application, for example, Figure 1 , Figure 2 The method flow is shown. The processor 401 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in the memory 402, thereby realizing the coal mine scheduling optimization method based on the evolution system in the above embodiments.
[0153] Memory 402 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required for at least one function. The data storage area may store data created based on the use of the evolutionary system-based coal mine scheduling optimization method. Furthermore, memory 402 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 402 may optionally include memory remotely located relative to processor 401, and these remote memories may be connected via a network to the apparatus implementing the evolutionary system-based coal mine scheduling optimization method. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0154] The input device 403 can receive user clicks and generate signal inputs related to user settings and function control of the coal mine scheduling optimization method based on the evolution system. The display device 404 may include a display screen or other display equipment.
[0155] When one or more modules are stored in the memory 402, and are run by one or more processors 401, the coal mine scheduling optimization method based on the evolution system described in any of the above method embodiments is executed.
[0156] This invention acquires multiple candidate objective functions, generates them into code functions using a programming language, iterates and evolves these functions using a large language model, and performs business evolution operations based on a coal mine business scheduling evolution system to optimize the objective functions. This invention avoids manually writing linear weighted formulas by automating the evolution of objective functions. The evolved objective functions can identify complex preferences with real business significance, significantly improving the business score of business solutions. Furthermore, because the objective functions are automatically generated and no manual parameter tuning by algorithm engineers is required, the daily operation and maintenance costs of the product are significantly reduced. This invention constructs a complete automated closed-loop optimization process. The entire optimization process requires no manual intervention, completely eliminating reliance on human experience. This transforms the formulation of objective functions from experience-dependent to data-driven, and the output results are fully reproducible and traceable, significantly improving the standardization and scalability of the product.
[0157] One embodiment of the present invention provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all the steps of the coal mine scheduling optimization method based on the evolution system as described above.
[0158] In the context of this disclosure, a storage medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The storage medium can be a machine-readable signal medium or a machine-readable storage medium. Optionally, the storage medium can be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc ROM (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0159] One embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the coal mine scheduling optimization method based on an evolutionary system as described above.
[0160] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A coal mine scheduling optimization method based on evolutionary systems, characterized in that, include: Multiple candidate objective functions for the coal mine business scheduling evolution system are obtained. The candidate objective functions are code functions using a programming language. Each candidate objective function receives scheduling parameter input and outputs a target value. Perform multiple iterations of the candidate objective function evolution until the termination condition for the candidate objective function evolution iteration is met. In each iteration of the candidate objective function evolution iteration, perform the following candidate objective function evolution iteration operation: The candidate objective function is obtained by performing an objective function evolution operation on the candidate objective function using a large language model; Each of the candidate objective functions in this evolutionary iteration is injected into the coal mine business scheduling evolution system for business evolution operations to obtain the optimal business plan based on each candidate objective function. The business score of each optimal business plan is calculated and associated with the corresponding candidate objective function. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration operation is executed. If the candidate objective function evolution iteration termination condition is met, the candidate objective function with the best business score is taken as the optimal objective function. The optimal objective function is then injected into the coal mine business scheduling evolution system to perform the optimal business scheme obtained from the business evolution operation for coal mine business scheduling.
2. The coal mine scheduling optimization method based on evolutionary systems according to claim 1, characterized in that, The candidate objective function includes evolvable region codes and fixed region codes. The step of using a large language model to perform objective function evolution operations on the candidate objective function to obtain the candidate objective function for this evolutionary iteration includes: The candidate objective function is obtained by performing an objective function evolution operation on the evolvable region code of the candidate objective function using a large language model.
3. The coal mine scheduling optimization method based on evolutionary systems according to claim 2, characterized in that, The process of using a large language model to perform objective function evolution operations on the evolvable region code of the candidate objective function to obtain the candidate objective function for this evolution iteration includes: The candidate objective function obtained from the previous evolutionary iteration is used as the parent candidate objective function, and all parent candidate objective functions are used as the parent population. One or more parental candidate objective functions are selected from the parent population as candidate objective functions to be mutated. Mutation operation prompt words are constructed based on the code of the candidate objective functions to be mutated and a preset code set. The mutation operation prompt words are input into a large language model. Based on the code generated by the large language model, the evolutionary region code of the candidate objective functions to be mutated is modified to obtain the mutated objective function. The preset code set includes one or more pre-defined atoms and a set of allowed operators. The atoms are pre-encapsulated code fragments. Multiple sets of target function groups to be cross-referenced are selected from the parent population. Each set of target function groups to be cross-referenced includes two parent candidate target functions as target functions to be cross-referenced. For each set of target function groups to be cross-referenced, cross-operation prompt words are constructed based on the codes of the two target functions to be cross-referenced and the business scores associated with the two target functions to be cross-referenced. The cross-operation prompt words are input into a large language model. Based on the code generated by the large language model, the evolutionary region code of one of the target functions to be cross-referenced is modified to obtain the target function after cross-reference. The mutated objective function and the crossover objective function are used as the candidate objective functions for this evolutionary iteration.
4. The coal mine scheduling optimization method based on evolutionary systems according to claim 3, characterized in that, The process involves selecting one or more parental candidate objective functions from the parent population as candidate objective functions to be mutated, constructing mutation operation prompts based on the codes of the candidate objective functions to be mutated and a preset code set, inputting the mutation operation prompts into a large language model, and modifying the evolutionary region codes of the candidate objective functions to be mutated based on the code generated by the large language model to obtain the mutated objective function, including: Based on the business scores associated with the parent candidate objective functions, an inspiration function is selected from the parent population. Select one or more parental candidate objective functions from the parent population as candidate objective functions to be mutated; The preset code set is used as the system prompt part, and the code of the inspiration function and the code of the candidate target function to be mutated are used as the user prompt part; The system prompt and the user prompt are concatenated to form a mutation operation prompt, which is then input into the large language model. The code generated by the large language model is used to replace the evolvable region code of the candidate objective function to be mutated, resulting in the mutated objective function.
5. The coal mine scheduling optimization method based on evolutionary systems according to claim 3, characterized in that, For each group of target functions to be cross-referenced, cross-operation prompts are constructed based on the codes of the two target functions and the associated business scores. These prompts are then input into a large language model. Based on the code generated by the large language model, the evolvable region code of one of the target functions to be cross-referenced is modified to obtain the cross-referenced target function, including: Based on the associated business scores, select the objective function to be crossed with the better business score as the primary objective function to be crossed, and the other objective function to be crossed as the secondary objective function to be crossed. The code of the primary objective function to be crossed, the code of the secondary objective function to be crossed, and the cross operation requirements are concatenated into cross operation prompts. The cross operation requirements indicate that the model is based on the evolvable region code of the primary objective function to be crossed, and extracts code fragments from the evolvable region code of the secondary objective function to be crossed to generate new code. Input the cross-operation prompt words into the large language model; The code generated by the large language model is used to replace the evolvable region code of the main objective function to be crossed, resulting in the objective function after crossing.
6. The coal mine scheduling optimization method based on evolutionary systems according to claim 1, characterized in that, The step of injecting each candidate objective function in this evolutionary iteration into the coal mine business scheduling evolution system for business evolution operations includes: The validity of all candidate objective functions in this evolutionary iteration is verified, and each candidate objective function that passes the validity verification is injected into the coal mine business scheduling evolution system for business evolution operation.
7. The coal mine scheduling optimization method based on evolutionary systems according to any one of claims 1 to 6, characterized in that, Also includes: Multiple candidate objective functions are assigned to multiple island populations, with each island population corresponding to a business scenario. Historical data is divided into multiple evaluation subsets according to the business scenario. The evolutionary iteration operation of the candidate objective function includes: performing the following operation independently for each island population: A large language model is used to independently perform objective function evolution operations on the candidate objective function in each island population to obtain the candidate objective function for the current evolution iteration of the candidate objective function in each island population; Each of the candidate objective functions in this evolutionary iteration is injected into the coal mine business scheduling evolution system for business evolution operations, so as to obtain the optimal business solution based on each candidate objective function; Calculate the business score for each of the optimal business solutions in each evaluation subset, and perform a weighted calculation on multiple business scores based on scenario weights to obtain the business score for each optimal business solution and associate it with the corresponding candidate objective function, wherein the scenario weight of the scenario corresponding to the island population is greater than the scenario weight of other scenarios. If the candidate objective function evolution iteration termination condition is not met, the next candidate objective function evolution iteration is executed. If the candidate objective function evolution iteration termination condition is met, for each island population, the candidate objective function with the best business score in that island population is taken as the optimal objective function for the business scenario corresponding to that island population. Based on the current business scenario, the optimal objective function of the corresponding business scenario is injected into the coal mine business scheduling evolution system to perform business evolution operations to obtain the optimal business plan for coal mine business scheduling.
8. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that are executed by at least one of the processors to enable the at least one of the processors to perform the coal mine scheduling optimization method based on an evolutionary system as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by the computer, are used to perform all the steps of the coal mine scheduling optimization method based on an evolutionary system as described in any one of claims 1 to 7.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the coal mine scheduling optimization method based on the evolution system as described in any one of claims 1 to 7.
