Method and product for crew scheduling based on uncertainty guidance and asymmetric search
By employing a crew scheduling method guided by uncertainty and using asymmetric search, the efficiency and quality bottlenecks in constructing integer solutions to large-scale crew scheduling problems are resolved. This enables the generation of fast and high-quality crew scheduling schemes, meeting the needs of industrial operations.
Patent Information
- Application Number
- CN202611362628.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-24
AI Technical Summary
In large-scale passenger service scheduling problems, existing technologies, such as integer programming and linear programming, are too time-consuming and cannot meet the timeliness requirements for solution generation in industrial operations. Furthermore, existing heuristic methods sacrifice the quality and stability of solutions. How to quickly and efficiently construct integer solutions based on fractional solutions generated by columns has become a key bottleneck.
A crew scheduling method based on uncertainty guidance and asymmetric search is adopted. By obtaining the crew relaxation solution, the uncertainty of decision variables is calculated. An asymmetric search strategy is used to adjust the branch search boundary, dynamically update the restricted master problem, and gradually construct integer solutions. Combined with business constraints and preset search depth thresholds, fast pruning and efficient search are achieved.
While ensuring solution quality, it significantly reduces computation time and improves solution efficiency. The generated integer solutions are industrially feasible and can be directly used for actual flight attendant scheduling.
Smart Images

Figure CN123159786A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and more specifically, to a passenger dispatching method and product based on uncertainty guidance and asymmetric search. Background Technology
[0002] In public transportation and transport operations, vehicle scheduling and personnel allocation are often modeled as complex combinatorial optimization problems (such as set partitioning / covering problems), which are NP-hard problems. For small-scale problems, integer programming can be used directly. However, as the problem size increases to the order of hundreds of thousands or more, integer programming becomes increasingly time-consuming, and may even fail to solve the problem, making it difficult to meet the timeliness requirements of actual operations for solution generation. While existing heuristic or metaheuristic methods offer fast solutions, they often sacrifice the quality and stability of the solutions. Therefore, integer programming problems are typically transformed into linear programming problems. First, fractional solutions to the linear programming problem are obtained, and then integer solutions can be derived using methods such as branch and bound. However, as the problem size increases to the millions or tens of millions, linear programming also becomes very time-consuming.
[0003] Column generation serves as an effective framework for solving such problems, rapidly constructing small-scale initial feasible solutions and iteratively and effectively expanding the problem size until convergence, efficiently obtaining linear relaxation lower bounds. However, it can only output fractional feasible solutions, not directly applicable integer feasible solutions. How to quickly and efficiently construct integer solutions based on the fractional solutions generated by column generation has become a key bottleneck connecting theoretical optimization with industrial application. Summary of the Invention
[0004] The purpose of this application is to provide a passenger scheduling method and product based on uncertainty-guided and asymmetric search, in order to solve the technical problem of how to quickly and with high quality construct integer solutions based on fractional solutions generated by columns.
[0005] Firstly, embodiments of this application provide a passenger service scheduling method based on uncertainty-guided and asymmetric search. This passenger service scheduling method based on uncertainty-guided and asymmetric search can be executed by an electronic device, or by a component (such as a circuit, chip, or chip system) configured in an electronic device, or by a logic module or software capable of implementing all or part of the functions of the electronic device. This application does not limit this; the following description uses the execution of the method by an electronic device as an example.
[0006] The cabin crew scheduling method based on uncertainty guidance and asymmetric search specifically includes: obtaining the cabin crew relaxation solution obtained by iteratively solving the restricted master problem through a column generation algorithm; if at least one decision variable in the cabin crew relaxation solution is a fraction, then the following branch iterative search steps are executed repeatedly until an integer solution is converged, and the integer solution is output as the cabin crew scheduling target scheme: calculating the uncertainty of each decision variable, selecting the decision variable with the largest uncertainty in the cabin crew relaxation solution as the branch object; adopting an asymmetric search strategy, adjusting the boundary value of the branch object along the first direction of branch search, or the boundary value of the branch object along the second direction of branch search, and updating the restricted master problem and solving it based on the boundary value to obtain candidate solutions; if the candidate solution is an integer solution, then the candidate solution is output as the cabin crew scheduling target scheme; if the candidate solution is a fractional solution, then the branch iterative search steps are continued based on the candidate solution; if there is no candidate solution, then the boundary value adjustment of the branch object is canceled and backtracking is performed until all searchable branch objects are traversed.
[0007] The passenger relaxation solution includes multiple decision variables corresponding to the driver's task, and the asymmetric search strategy includes a first directional branch that is not limited by search depth and a second directional branch that is limited by a preset search depth threshold.
[0008] In the above scheme, after the column generation algorithm converges to obtain a linearly relaxed solution, an uncertainty-guided strategy is adopted to prioritize the processing of the decision variables with the most uncertain values. This minimizes the uncertainty of the search space, quickly exposes constraint conflicts, and achieves effective pruning. Simultaneously, an asymmetric search strategy is employed, setting a search depth threshold for the second-direction branch, effectively controlling the exponential growth of the search space and avoiding the computational overhead of constructing a massive search tree required by traditional branch-and-bound methods. Therefore, compared to existing large neighborhood search algorithms and branch-and-price algorithms, the embodiments of this application can reduce computation time and improve solution efficiency while ensuring solution quality, thereby quickly and with high quality constructing integer solutions based on the fractional solutions generated by the column generation.
[0009] In an optional implementation, the decision variable with the greatest uncertainty in the flight crew relaxation solution is selected as the branch object, including: at each branch node, based on the scores of each decision variable in the current flight crew relaxation solution, recalculating the uncertainty of each decision variable, and selecting the decision variable with the greatest uncertainty as the current branch object.
[0010] In the above scheme, by recalculating the uncertainty of the values of each decision variable in the current flight relaxation solution and reselecting the branch object at each branch node, dynamic adaptive selection of the branch object is realized, avoiding the search bias caused by fixed order selection after sorting, and further improving search efficiency and solution quality.
[0011] In an optional implementation, obtaining the cabin crew relaxation solution obtained by iteratively solving the restricted master problem through a column generation algorithm includes: constructing a restricted master problem based on decision variables and business constraints; and obtaining the cabin crew relaxation solution by iteratively solving the restricted master problem through column generation.
[0012] In the above scheme, the restricted master problem is solved iteratively by column generation algorithm to obtain the relaxed solution of the passenger service. The column generation algorithm is used to quickly construct the initial feasible solution and gradually expand the problem size until convergence, efficiently obtaining the relaxed lower bound of the linear programming, providing a high-quality initial solution for the subsequent branch iterative search, and ensuring the numerical stability and convergence speed of the overall solution process.
[0013] In optional implementations, business constraints include one or more of the following: all work segments must be assigned to driver tasks, and each work segment is covered by one and only one driver task; the end point of adjacent work segments in a driver task is the same as the start point of the next work segment; the end time of adjacent work segments in a driver task is not later than the start time of the next work segment; the total working hours of a single driver task do not exceed the preset maximum working time; and the total driving mileage of a single driver task does not exceed the preset maximum driving mileage.
[0014] In the above scheme, by limiting business constraints including work segment coverage constraints, station connection constraints, time connection constraints, working hour constraints and mileage constraints, it is ensured that the generated crew scheduling scheme can fully meet the various business rules in actual operation, so that the output integer solution has industrial-grade feasibility and can be directly used for actual crew scheduling.
[0015] In an optional implementation, the preset search depth threshold is determined based on the distribution characteristics of the decision variables.
[0016] In the above scheme, the preset search depth threshold is determined based on the distribution characteristics of the decision variables, so that the limitation of the search depth can be adaptively adjusted according to the quality of the fractional solutions after the columns are generated and converged: when the quality of the fractional solutions is high, a smaller threshold can be set to reduce the search time; when the quality of the fractional solutions is low, a larger threshold can be set to ensure the quality of the solutions, thereby achieving a dynamic balance between solution efficiency and solution quality.
[0017] In an optional implementation, the preset search depth threshold is determined based on at least one of the following strategies: calculating the Shannon information entropy of all decision variables and determining the preset search depth threshold based on the Shannon information entropy; counting the number of variables whose median value falls within a preset interval and determining the preset search depth threshold based on the number of variables.
[0018] In the above scheme, the preset search depth threshold is determined by Shannon information entropy or the proportion of uncertain variables, providing multiple optional threshold determination methods. Among them, the Shannon information entropy method can accurately quantify the overall uncertainty of fractional solutions, while the threshold proportion method reduces computational overhead while ensuring effectiveness, and can be flexibly selected in practical applications.
[0019] In an optional implementation, the uncertainty of the values of each decision variable is calculated, including: calculating the degree of deviation between the decision variable and a preset intermediate value, wherein the smaller the degree of deviation, the greater the uncertainty of the value.
[0020] In the above scheme, the uncertainty of the value is measured by calculating the degree of deviation between the decision variable and the preset intermediate value. The smaller the deviation, the more ambiguous the value of the variable and the greater the uncertainty. Prioritizing the processing of such variables can obtain the greatest information gain, eliminate a large number of invalid search paths in the early stage, and reduce the amount of computation in subsequent searches.
[0021] In an optional implementation, the degree of deviation is the absolute value of the difference between the decision variable and the preset intermediate value, or the degree of deviation is calculated based on the Shannon entropy method.
[0022] The above scheme provides two uncertainty measurement methods: the absolute value method and the Shannon entropy method. The absolute value method is simple to calculate and has low overhead, while the Shannon entropy method can more accurately characterize the degree of disorder of variable values. It can be flexibly selected according to the computing resources and solution quality requirements of the actual scenario, taking into account both computing efficiency and guidance accuracy.
[0023] In an optional implementation, the first direction is the direction that forces the decision variable to be rounded to 1, and the boundary value is 1; the second direction is the direction that forces the decision variable to be rounded to 0, and the boundary value is 0.
[0024] In the above scheme, by setting the first direction to be forcibly rounded to 1 and the second direction to be forcibly rounded to 0, the branching rules of the asymmetric search are clarified, which enables the search process to fully explore the feasible region in the first direction, while avoiding exponential explosion by depth restriction in the second direction. The algorithm behavior is clear and controllable, which is convenient for practical engineering implementation.
[0025] Secondly, embodiments of this application provide a cabin crew scheduling device based on uncertainty-guided and asymmetric search. This device specifically includes: an acquisition module, used to acquire the cabin crew relaxation solution obtained by iteratively solving the restricted master problem using a column generation algorithm; and a search module, used to: if at least one decision variable in the cabin crew relaxation solution is a fraction, then repeatedly execute the following branch iterative search steps until convergence to an integer solution, and output the integer solution as the cabin crew scheduling target scheme: calculate the uncertainty of each decision variable's value, select the decision variable with the largest uncertainty in the cabin crew relaxation solution as the branch object; adopt an asymmetric search strategy, adjust the boundary value of the branch object along the first direction of branch search, or the boundary value along the second direction of branch search, and update the restricted master problem and solve candidate solutions based on the boundary values; if the candidate solution is an integer solution, output the candidate solution as the cabin crew scheduling target scheme; if the candidate solution is a fractional solution, continue executing the branch iterative search steps based on the candidate solution; if there is no candidate solution, cancel the boundary value adjustment of the branch object and backtrack until all searchable branch objects have been traversed.
[0026] The passenger relaxation solution includes multiple decision variables corresponding to the driver's task, and the asymmetric search strategy includes a first directional branch that is not limited by search depth and a second directional branch that is limited by a preset search depth threshold.
[0027] In the above scheme, after the column generation algorithm converges to obtain a linearly relaxed solution, an uncertainty-guided strategy is adopted to prioritize the processing of the decision variables with the most uncertain values. This minimizes the uncertainty of the search space, quickly exposes constraint conflicts, and achieves effective pruning. Simultaneously, an asymmetric search strategy is employed, setting a search depth threshold for the second-direction branch, effectively controlling the exponential growth of the search space and avoiding the computational overhead of constructing a massive search tree required by traditional branch-and-bound methods. Therefore, compared to existing large neighborhood search algorithms and branch-and-price algorithms, the embodiments of this application can reduce computation time and improve solution efficiency while ensuring solution quality, thereby quickly and with high quality constructing integer solutions based on the fractional solutions generated by the column generation.
[0028] In an optional implementation, the search module is specifically used to: at each branch node, based on the scores of each decision variable in the current flight relaxation solution, recalculate the uncertainty of each decision variable, and select the decision variable with the greatest uncertainty as the current branch object.
[0029] In the above scheme, by recalculating the uncertainty of the values of each decision variable in the current flight relaxation solution and reselecting the branch object at each branch node, dynamic adaptive selection of the branch object is realized, avoiding the search bias caused by fixed order selection after sorting, and further improving search efficiency and solution quality.
[0030] In an optional implementation, the acquisition module is specifically used to: construct a restricted master problem based on decision variables and business constraints; and solve the restricted master problem iteratively through column generation to obtain a relaxed solution for the passenger service.
[0031] In the above scheme, the restricted master problem is solved iteratively by column generation algorithm to obtain the relaxed solution of the passenger service. The column generation algorithm is used to quickly construct the initial feasible solution and gradually expand the problem size until convergence, efficiently obtaining the relaxed lower bound of the linear programming, providing a high-quality initial solution for the subsequent branch iterative search, and ensuring the numerical stability and convergence speed of the overall solution process.
[0032] In optional implementations, business constraints include one or more of the following: all work segments must be assigned to driver tasks, and each work segment is covered by one and only one driver task; the end point of adjacent work segments in a driver task is the same as the start point of the next work segment; the end time of adjacent work segments in a driver task is not later than the start time of the next work segment; the total working hours of a single driver task do not exceed the preset maximum working time; and the total driving mileage of a single driver task does not exceed the preset maximum driving mileage.
[0033] In the above scheme, by limiting business constraints including work segment coverage constraints, station connection constraints, time connection constraints, working hour constraints and mileage constraints, it is ensured that the generated crew scheduling scheme can fully meet the various business rules in actual operation, so that the output integer solution has industrial-grade feasibility and can be directly used for actual crew scheduling.
[0034] In an optional implementation, the preset search depth threshold is determined based on the distribution characteristics of the decision variables.
[0035] In the above scheme, the preset search depth threshold is determined based on the distribution characteristics of the decision variables, so that the limitation of the search depth can be adaptively adjusted according to the quality of the fractional solutions after the columns are generated and converged: when the quality of the fractional solutions is high, a smaller threshold can be set to reduce the search time; when the quality of the fractional solutions is low, a larger threshold can be set to ensure the quality of the solutions, thereby achieving a dynamic balance between solution efficiency and solution quality.
[0036] In an optional implementation, the preset search depth threshold is determined based on at least one of the following strategies: calculating the Shannon information entropy of all decision variables and determining the preset search depth threshold based on the Shannon information entropy; counting the number of variables whose median value falls within a preset interval and determining the preset search depth threshold based on the number of variables.
[0037] In the above scheme, the preset search depth threshold is determined by Shannon information entropy or the proportion of uncertain variables, providing multiple optional threshold determination methods. Among them, the Shannon information entropy method can accurately quantify the overall uncertainty of fractional solutions, while the threshold proportion method reduces computational overhead while ensuring effectiveness, and can be flexibly selected in practical applications.
[0038] In an optional implementation, the search module is specifically used to: calculate the degree of deviation between the decision variable and the preset intermediate value, wherein the smaller the degree of deviation, the greater the uncertainty of the value.
[0039] In the above scheme, the uncertainty of the value is measured by calculating the degree of deviation between the decision variable and the preset intermediate value. The smaller the deviation, the more ambiguous the value of the variable and the greater the uncertainty. Prioritizing the processing of such variables can obtain the greatest information gain, eliminate a large number of invalid search paths in the early stage, and reduce the amount of computation in subsequent searches.
[0040] In an optional implementation, the degree of deviation is the absolute value of the difference between the decision variable and the preset intermediate value, or the degree of deviation is calculated based on the Shannon entropy method.
[0041] The above scheme provides two uncertainty measurement methods: the absolute value method and the Shannon entropy method. The absolute value method is simple to calculate and has low overhead, while the Shannon entropy method can more accurately characterize the degree of disorder of variable values. It can be flexibly selected according to the computing resources and solution quality requirements of the actual scenario, taking into account both computing efficiency and guidance accuracy.
[0042] In an optional implementation, the first direction is the direction that forces the decision variable to be rounded to 1, and the boundary value is 1; the second direction is the direction that forces the decision variable to be rounded to 0, and the boundary value is 0.
[0043] In the above scheme, by setting the first direction to be forcibly rounded to 1 and the second direction to be forcibly rounded to 0, the branching rules of the asymmetric search are clarified, which enables the search process to fully explore the feasible region in the first direction, while avoiding exponential explosion by depth restriction in the second direction. The algorithm behavior is clear and controllable, which is convenient for practical engineering implementation.
[0044] Thirdly, embodiments of this application provide a computer program product, including computer program instructions, which are read and executed by a processor to perform the crew scheduling method based on uncertainty guidance and asymmetric search as described in the first aspect.
[0045] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, embodiments of this application are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 A flowchart of the column generation algorithm provided in the embodiments of this application; Figure 2 An example diagram of a pure shallow-deep algorithm provided in an embodiment of this application; Figure 3 A schematic diagram of an absolute value method provided in an embodiment of this application; Figure 4 A schematic diagram of a Shannon entropy method provided in an embodiment of this application; Figure 5 A schematic diagram illustrating a biased search provided in an embodiment of this application; Figure 6 A schematic diagram illustrating the retrieval process and state of an uncertain guided and asymmetric search algorithm provided in an embodiment of this application; Figure 7 A schematic diagram of a passenger dispatching method based on uncertainty guidance and asymmetric search provided in an embodiment of this application; Figure 8 A flowchart illustrating another column generation algorithm provided in this application embodiment; Figure 9 A schematic diagram illustrating a column generation algorithm based on the deep-diving algorithm provided in this application embodiment; Figure 10 A schematic diagram illustrating a UGASA algorithm process provided in an embodiment of this application; Figure 11 A schematic diagram showing the test results and calculation time of data LHL981 provided for embodiments of this application; Figure 12 A schematic diagram showing the test results and calculation time of data LHL716 provided for embodiments of this application; Figure 13 This application provides a structural block diagram of a passenger dispatching device based on uncertainty guidance and asymmetric search. Figure 14 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0048] Currently, there are many methods for finding integer solutions based on fractional solutions, the most representative of which are the Large Neighborhood Search (LNS) algorithm and branch pricing.
[0049] Large neighborhood search is a metaheuristic algorithm that escapes local optima by "strategically breaking the current solution and then heuristically reconstructing it." It combines the rapid improvement capability of local search with the diverse exploration capability of global search, and is currently one of the most mainstream and powerful algorithmic frameworks in industry for solving ultra-large-scale complex optimization problems (such as Meituan Waimai order dispatch and JD Logistics scheduling).
[0050] The main drawbacks of large neighborhood search algorithms lie in their high dependence on operator design and parameter tuning, as well as their high computational cost. Algorithm performance is extremely sensitive to parameters (such as weight updates and cooling rates), and improper design can easily lead to premature convergence or getting trapped in local optima. Furthermore, the initial operator selection is highly random, resulting in low search efficiency, and traditional weight update mechanisms are lagging, making it difficult to quickly respond to dynamic changes in the solution space. Simultaneously, the design of destruction and repair operators is highly dependent on human experience, and traditional mechanisms lack the ability to deeply learn from historical performance, making it difficult to achieve dynamic adaptive adjustment under complex conditions.
[0051] The branch-and-bound algorithm is a combination of the branch-and-bound method and the column generation algorithm, specifically designed to solve large-scale integer programming problems with exponentially growing variables. Its core principle is that at each node of the branch-and-bound tree, instead of directly solving the complete model, a controlled-size restricted master problem (RMP) is dynamically maintained through the column generation algorithm. Pricing subproblems are continuously solved to find new variables (columns) with negative reduction costs to add to the model, thus efficiently finding the optimal lower bound of the node. If the solution is a fraction, a branch is established and column generation is restarted.
[0052] The algorithm's advantages lie in its clever avoidance of the curse of dimensionality, significantly reducing computational complexity and memory requirements. As an exact algorithm, it guarantees finding the global optimum. Its disadvantages include extremely high implementation difficulty, requiring not only a rewritten model but also the design of efficient solution algorithms for subproblems (such as labeling algorithms). Furthermore, branching operations can easily disrupt the structure of subproblems, leading to decreased solution efficiency, and it may face bottlenecks due to excessively long computation times on extremely large-scale problems.
[0053] Therefore, there is an urgent need for a new heuristic integerization strategy that balances solution efficiency and solution quality to support the intelligent decision-making needs of high-frequency, large-scale scheduling scenarios such as subways, buses, and aviation.
[0054] Based on the above insights, this application proposes a passenger scheduling method based on uncertainty guidance and asymmetric search. This method is an efficient integer-based solution construction method specifically designed for solving large-scale combinatorial optimization problems based on a column generation framework. It deeply integrates the economic interpretation of linear programming relaxation, a depth-first search strategy, and a dynamic column generation mechanism, enabling the generation of high-quality, feasible integer scheduling schemes in a very short time.
[0055] The solution provided in this application will be described in detail below with reference to the corresponding flowcharts. It is understood that the illustrative flowcharts provided in this application primarily use an electronic device as the execution subject to illustrate the method, but this application does not limit the execution subject of the method. For example, the electronic device in the illustrative flowchart can also be a chip, chip system, or processor that supports the electronic device in implementing the method, or it can be a logic module or software that can implement all or part of the functions of the electronic device.
[0056] First, the theoretical basis involved in the embodiments of this application will be introduced.
[0057] 1. Duality problem For primal problems that are difficult to solve directly, operations research solves the primal problem by solving the dual problem, which is equivalent to the primal problem. In this case, the shadow price is the optimal solution for the dual variable.
[0058] In a linear programming problem, the shadow price refers to the change in the optimal value of the objective function when the constant (resource limit) on the right-hand side of a constraint increases by one unit. Each constraint in the primal problem corresponds to a resource, and each resource corresponds to a shadow price. The objective function value of the dual problem changes with the quantity of resources and their shadow prices. The change in the objective function when a resource increases by one unit is the shadow price of that resource.
[0059] Suppose a factory produces two products, A and B, which require three raw materials, I, II, and III. The specific quantities and total amounts of raw materials required for each product are shown in Table 1. Calculate the maximum profit from producing the products based on the limited raw materials.
[0060]
[0061] Table 1. Details of the raw material quantity and total amount required for each product. Assume the quantities of products A and B produced are respectively The linear programming model is as follows: Under resource constraints, the goal is to maximize profit (maximize the objective value). The objective function represents the total net profit of all products (net profit = product selling price × sales quantity). Each raw material has a usage limit, and the constraint for each raw material is that the total usage of that raw material in all products cannot exceed the raw material's upper limit.
[0062] ; ; in, Indicates maximum profit. This indicates the quantity of product A produced. This indicates the quantity of product B produced.
[0063] The above can be understood from the factory manager's perspective: when raw materials are limited, how to arrange production to maximize profits. The dual problem can be understood from the perspective of a resource buyer: to buy raw materials from another party, what price (shadow price) needs to be defined for each raw material to make the other party feel that selling raw materials directly is more cost-effective (earns more) than directly opening a factory to produce products, while minimizing the funds spent by our side to buy all the raw materials?
[0064] By defining the internal resource valuation (shadow price) for three types of raw materials: I, II, and III. The dual problem model is as follows: The objective function is to minimize the cost of purchasing raw materials while ensuring that the total cost of raw materials used in production is not less than the selling price of the product (constraint, the other party's expectation). The objective function represents the total price of all raw materials, and the constraint for each product is that the funds available for purchasing raw materials must not be less than the selling price of the product (the left side of the constraint represents the value of the raw materials, and the right side represents the selling price of the produced product).
[0065]
[0066]
[0067] in, To purchase raw materials at the lowest possible cost, This is the internal resource valuation for Raw Material I. This is the internal resource valuation for Raw Material II. This is the internal resource valuation for raw material III.
[0068] 2. Column generation In the example above, the number of products is small, with only two types, A and B. If the number of products grows to the millions, operations research methods require basis transformations on all variables. This not only involves a huge amount of computation but also increases the hardware resources required to store the variables. Column generation algorithms are classic and exact algorithms for solving large-scale linear programming problems, particularly suitable for scenarios where the number of variables far exceeds the number of constraints.
[0069] The column generation algorithm quickly constructs a small number of initial feasible solutions and iteratively solves the restricted master problem and the pricing subproblem to gradually generate potential candidate solutions (called "columns", such as a vehicle route or a driver shift). It continuously updates the column pool of the restricted master problem, reconstructs the RMP problem, and finally converges to the optimal solution of the linear programming (LP) relaxation.
[0070] Among them, the restricted master problem refers to a master problem that includes only a subset of variables, used to find the optimal solution under the current set of variables. Its characteristics are small size and fast solution. A subproblem refers to finding potential optimal variables that are not included in the master problem, used to generate new columns that improve the objective function. Its core is utilizing the dual information (shadow prices) of the master problem. A linear master problem refers to relaxing the master problem (integer programming, with values in the range of integers) into a linear programming problem (with values in the range of real numbers), used to provide dual variables for the subproblems.
[0071] Please refer to Figure 1 , Figure 1 This is a flowchart of the column generation algorithm provided in an embodiment of this application. The specific steps of the column generation algorithm are as follows: Step 1), Construct the initial RMP. Select initial solutions that satisfy the basic constraints and add them to the column pool to construct the initial RMP model.
[0072] Step 2), Solving the main problem. Call the solver to solve the RMP model (RMP is a linear programming (LP) problem), and you can obtain the model objective value and dual variables.
[0073] Step 3), Pricing Sub-problem. Find new variables (columns), and calculate the reduced cost (RC) of each new variable (column) based on the dual variables obtained in the previous step. Select columns with negative RC and add them to the RMP column pool. Return to the previous step and continue until no new columns with negative RC exist. The formula for calculating the reduced cost is as follows: ; in, This represents the RC value (reduced cost) of product j. This represents the selling price of product j. This represents the dual variable (shadow price). This represents the product coefficient j (the quantity of each raw material required).
[0074] (1) Solution of reduced cost The original problem model in the example above, as well as the solved dual variables (shadow prices) and objective values, are shown in Table 2.
[0075]
[0076] Table 2 shows the original problem model, along with the solved dual variables (shadow prices) and objective value. The constraints of the primal problem are the upper limits of each raw material, and the objective function is the total net profit of the product; the constraints of the dual problem are the price limits of each raw material, and the objective function is the total price of all raw materials; the shadow price corresponds to the price of each raw material; the primal problem is the maximum value within the constraints, and the dual problem is the minimum value within the infinite set, and the objective values of the two are equivalent.
[0077] Find new variables (columns), in this case, new products. Assume there are new products C, D, E, and F, and their selling prices and the quantities of raw materials I, II, and III required (matrix A, ...). This indicates the quantity of the i-th raw material required for the j-th product, such as... Table 3 shows the quantity of raw material III required for product C.
[0078]
[0079] Table 3. Prices of Products C, D, E, and F and Required Quantities of Raw Materials I, II, and III The RC calculation results for each product are shown in Table 4. Products C and E have non-negative RC values, indicating that the selling price of the product is not lower than the cost of purchasing the raw materials (i.e., the revenue from selling the raw materials is lower than the product's selling price, leading to a tendency to directly produce and sell the product, thus the transaction cannot be completed), therefore they are not added to the column pool (used for updating the RMP problem). Products D and F have negative RC values, indicating that the selling price of the product is lower than the cost of purchasing the raw materials (i.e., the revenue from selling the raw materials is higher than the product's selling price, leading to a tendency to sell the raw materials, which is profitable, and the transaction is completed), and can be added to the column pool. Furthermore, the RC value of product F is smaller than that of product D, meaning that the difference between the selling price and the raw material cost of product F is greater, resulting in more profit (the constraint threshold of the dual problem is smaller, and the objective function can decrease more).
[0080]
[0081] Table 4 Calculation Results for Products C, D, E, and FRC (2) Update RMP Because the RC value of product F is smaller than that of product D, it means that the price difference between product F and its raw material cost is larger, resulting in greater profit (the constraint threshold of the dual problem is smaller, and the objective function can decrease more). Therefore, product F (equivalent to a column, and also equivalent to a variable) is selected to update RMP as shown below. After the update, continue: ; .
[0082] 3. Integer property determination After the column is generated, it is necessary to determine whether the solution is an integer solution. If it is an integer solution, the result can be obtained directly. However, the solution usually contains a large number of decision variables with fractional values (equivalent to a certain path being "partially used"), which cannot be directly used for actual scheduling.
[0083] 4. Pure Diving Heuristic Algorithm The Pure Deep Dive algorithm is a heuristic search strategy in Mixed-Integer Linear Programming (MILP) specifically designed for quickly finding high-quality feasible solutions. The execution process of the Pure Deep Dive algorithm can be figuratively compared to a diver descending to their vantage point: Step 1), Solve the LP relaxation: First, ignore the integer constraints of the variables and solve the linear programming (LP) relaxation problem for the current node.
[0084] Step 2), Select a variable (branch): Based on a specific variable selection strategy (such as maximum value), select an integer variable from the current fractional solutions.
[0085] Step 3), Forced Fixing (Dive): Unlike standard branch and bound, which creates two child nodes (e.g., x=0 and x=1), the pure deep dive algorithm selects only one branch (e.g., directly fixes x=1) and adds this constraint to the current LP model.
[0086] Step 4), Resolve: With the newly added constraints, solve the LP relaxation again.
[0087] Step 5), Loop or Terminate: If the new LP solution is still a fractional solution and does not violate other constraints, then continue to select the next variable to fix (continue diving).
[0088] If the new LP solution is infeasible, or all integer variables have been rounded, the current dive ends. If rounding is successful, a feasible solution is obtained; otherwise, the dive ends.
[0089] Please refer to Figure 2 , Figure 2 This is an example diagram of a pure deep-shallow algorithm provided in an embodiment of this application. An initial fractional solution is (v1,v2,v3,v4) = (0.1,0.6,0.9,0.2). Each time, the largest variable is fixed at 1, and the LP is calculated again until an integer solution or no solution is obtained. This method greedily dives the left branch, eventually obtaining an integer solution or no solution (when the variable is fixed, if a constraint conflict occurs, the LP solution will be unsolvable).
[0090] 5. Uncertainty guides branching The pure deep-dive algorithm is a heuristic method that rapidly finds a feasible solution by continuously fixing variables and unidirectionally delving into LP relaxation. It sacrifices the certainty of finding the global optimum in exchange for extremely high solution-finding efficiency. Therefore, uncertainty-guided deep-dive branching is introduced. The theoretical basis for uncertainty-guided branching includes: 1) Maximum information gain: fixing the most uncertain variable yields the maximum information gain; 2) Similar to the information gain criterion in decision trees, prioritizing features that minimize uncertainty; 3) fixing the least feasible variable exposes constraint conflicts most quickly; 4) early detection of infeasibility allows for rapid pruning of invalid branches; 5) reducing the computational cost of subsequent searches.
[0091] Its core idea is to prioritize handling the variable with the greatest uncertainty, that is, the variable whose score is closest to 0.5. Uncertainty indicators include, but are not limited to, the following methods: (1) Absolute value method Please refer to Figure 3 , Figure 3 This application provides a schematic diagram of an absolute value method, the expression of which is: ,in, This indicates the value; when the value is close to 0.5, the uncertainty is the greatest, and the value of the expression is also smaller, approaching 0.
[0092] (2) Shannon entropy method Please refer to Figure 4 , Figure 4 This is a schematic diagram of the Shannon entropy method provided in an embodiment of this application, and its expression is as follows: ,in, This indicates the value; when the value is close to 0.5, the uncertainty is the greatest, and the value of the expression is also larger, approaching 0.7.
[0093] 6. Asymmetric search Based on the uncertainty-driven branching strategy described above, when an uncertain variable is selected, a node needs to be branched to the left or right. The number of nodes in the entire branch tree represents the search time complexity. It is easy to see that in a complete binary tree, the search time complexity is exponentially related to the number of variables. As shown in Table 5.
[0094]
[0095] Table 5. Uncertainty-Driven Branching Strategies When the number of job segments is in the tens, the number of nodes traversed already reaches the order of billions. However, when the number of job segments is usually in the hundreds, it will lead to a data explosion, making it impossible to compute within a limited time.
[0096] Consider an asymmetric search approach, limiting the search depth of the right branch to reduce computational complexity. Under this rule, the tree becomes a "left-leaning tree." We will now analyze this using an example where the right branch depth RD is limited to 1.
[0097] Please refer to Figure 5 , Figure 5 This is a schematic diagram of a biased search provided in an embodiment of this application, where the number of nodes in each layer k (1≤k≤D) is no longer... Instead, it became k.
[0098] Table 6 shows a comparison of the number of search nodes at the depths (D, D≥1) of each search tree.
[0099]
[0100] Table 6 Comparison of the number of search nodes at different depths of the search tree As tree depth increases, the node reduction resulting from this asymmetric constraint is exponential. When the depth reaches 10, the search space is directly compressed by 94.62%; when the depth reaches 20, the compression rate is as high as 99.97%. The right branch depth RD can be determined according to actual needs to control the pruning ratio.
[0101] The value of parameter RD varies depending on the timetable data. The determination strategy includes, but is not limited to, the following: (1) Relaxation-based adjustment strategy If, in the convergent fractional solutions generated by the column, most variable values are concentrated in the range of 0.8 to 1.0 or 0.0 to 0.2 (i.e., the solution quality is very high, close to integers), then the right branch depth can be set very small (even 0, i.e., purely greedy), because backtracking is almost unnecessary. If a large number of variable values are around 0.5, it indicates that the guidance of the LP relaxation solution is very weak, the solution space is very ambiguous, and there are many possibilities, so the right branch depth must be increased.
[0102] (2) Based on collision frequency If the left branch (fixed to 1) frequently results in infeasibility during the search process, it indicates that the greedy strategy has failed. In this case, the depth quota of the right branch should be temporarily increased to allow the algorithm to try to discard some tasks more often.
[0103] (3) Pseudo-cost branch When selecting variables, quickly estimate how many subsequent dependent work segments would be disconnected if a certain work segment were fixed at 0. Prioritize variables with low destructive potential or high repair potential.
[0104] For example, if a relaxation-based adjustment strategy is used to determine the RD value, the calculation method includes, but is not limited to, the following: (1) Formulaic mapping based on "information entropy" The most rigorous mathematical expression for how much a variable's value deviates from 0.5 is the Shannon information entropy, and the calculation steps are as follows: Step 1), extract the columns to generate the values of all variables after convergence. .
[0105] Step 2), calculate the information entropy H of the overall solution (Note: when When it approaches 0 or 1, the term approaches 0; when... When the value is 0.5, this term reaches its maximum value of 0.7). .
[0106] Step 3), mapping to RD values: Assuming the total number of variables is N, and the maximum allowed depth is... (For example, 10). We can define a linear or exponential mapping formula:
[0107] (2) Threshold method based on the proportion of variables near 0.5 Calculating information entropy is costly; a simpler proportional method can be used, with the following calculation steps: Step 1), count the number of variables in the fractional solutions whose values fall within the interval [0.3, 0.7], denoted as . .
[0108] Step 2), calculate the proportion of uncertain variables: .
[0109] Step 3), set the staircase mapping, with a maximum allowed depth of [value missing]. (For example, 10): If P < 10%, the solution is very clean, so set RD = 0 directly; if 10% ≤ P < 30%, there are a few conflicts, so set RD = 3; if 30% ≤ P < 60%, the solution space is somewhat ambiguous, so set RD = 6; if P ≥ 60%, the LP relaxation guidance is very weak, so set RD = 10 (upper limit).
[0110] 7. Uncertainty-guided and Asymmetric Search Algorithm (UGASA) Uncertainty-guided and asymmetric search algorithms, as variations of deep-diving algorithms, also consider linear relaxation solutions as high-quality guides for the solution space. Based on the aforementioned uncertainty-guided and asymmetric criteria, taking a fixed maximum right-branch depth of 1 as an example, the basic criteria are as follows: the branching process is traversed from top to bottom and from left to right; the maximum number of right-branch iterations is 1 (only one right-branch is allowed at most, and dashed lines and dashed node traversals are not permitted). Please refer to... Figure 6 , Figure 6 This is a schematic diagram of the retrieval process and state of an uncertain guided and asymmetric search algorithm provided in an embodiment of this application. In the diagram, green nodes represent the correct solution path, red nodes represent nodes with no solution, and yellow arrows represent the traversal process.
[0111] The solution process for UGASA is as follows: Step 1) Solve the LP of RMP to obtain the objective value, dual variables and solution.
[0112] (Step 2) If the solution is an integer solution, the solution process ends; if it is a fractional solution, proceed to step 3; if there is no solution (adjusting the upper and lower bounds of the variables causes a conflict in the constraints), backtrack to the previous node and proceed to step 4.
[0113] Step 3): Iterate through the variable values in the solution, fixing the variable with the largest value in the fractional solution to 1 (each variable originally has a lower bound of 0 and an upper bound of 1. Adjust the upper or lower bound of the variable to make the upper and lower bounds equal. When a variable is fixed at 1, adjust its lower bound to 1; when a variable is fixed at 0, adjust its upper bound to 0), then return to Step 1).
[0114] Step 4): Iterate through the variable values in the solution, fixing the variable with the largest value in the fractional solution to 0 (each variable originally has a lower bound of 0 and an upper bound of 1. Adjust the upper or lower bound of the variable to make the upper and lower bounds equal. When a variable is fixed at 1, adjust its lower bound to 1; when a variable is fixed at 0, adjust its upper bound to 0), then return to Step 1).
[0115] Secondly, the crew scheduling method based on uncertainty guidance and asymmetric search provided in the embodiments of this application will be introduced.
[0116] This crew scheduling method, based on uncertainty-guided and asymmetric search, uses timetables as the core input and combines business rules such as route / position operating hours, shift types (e.g., morning, evening, night shifts), working hour limits, and rest interval requirements to automatically generate a scheduling plan that meets the needs. Simultaneously, this method should support employee skill matching, availability preferences (e.g., unscheduled time periods), statutory working hours, and labor law constraints, while also considering fairness and optimizing labor costs.
[0117] Please refer to Figure 7 , Figure 7This diagram illustrates a passenger dispatching method based on uncertainty guidance and asymmetric search, provided as an embodiment of this application. This method can, but is not limited to, be executed by an electronic device. Figure 14 The possible structure of this electronic device is shown below; for details, please refer to the following section. Figure 14 The explanation is as follows. The specific methods for creating this system include: S101: Obtain the relaxed solution of the passenger service obtained by iteratively solving the restricted master problem through the column generation algorithm.
[0118] Crew dispatching refers to the process of arranging and allocating the work tasks of crew members (such as subway drivers and bus drivers) in public transportation operations. Crew dispatching uses timetables as the core input and combines business rules such as route / position operating hours, shift types (such as morning shift, evening shift, and night shift), working hour limits, and rest interval requirements to automatically generate a shift plan that meets the needs.
[0119] A work segment is the smallest unit of a driver's task. Typically, a complete train route in the timetable is divided into several work segments, using transfer stations as a reference. Each work segment contains the following information: train number, service number, arrival time, departure station, departure time, arrival station, arrival time, driving hours, and driving distance. Work segments are the basic building blocks for constructing driver tasks; any driver task is composed of one or more work segments pieced together according to specific rules.
[0120] A driver's task refers to the complete set of all the work performed by a driver from the start of their shift to the end. A driver's task consists of one or more work segments, which are pieced together in chronological order to form a complete shift plan that can be performed by a single driver.
[0121] Decision variables are mathematical variables used to represent whether a driver's task is selected. If a driver's task is selected, its corresponding decision variable takes the value 1; if it is not selected, it takes the value 0. In the relaxation phase of linear programming, the range of values for the decision variables is relaxed to a closed interval [0,1], that is, any real number (score) between 0 and 1 is allowed. The score represents the state where the corresponding driver's task is partially selected and cannot be directly used for actual shift assignment.
[0122] The restricted master problem (RMP) is a core concept in column generation algorithms. Since the number of decision variables can reach millions or even tens of millions, it's impossible to include them all in the initial model. Therefore, the algorithm first selects a subset of decision variables to construct a smaller linear programming problem, called the restricted master problem. RMP includes all constraints but only a subset of decision variables (columns).
[0123] The column generation algorithm is a classic and exact algorithm for solving large-scale linear programming problems, particularly suitable for scenarios where the number of variables far exceeds the number of constraints. This algorithm rapidly constructs small-scale initial feasible solutions and iteratively solves the restricted master problem and pricing subproblems, gradually generating potential candidate solutions (called columns, such as a vehicle route or a driver shift). It continuously updates the column pool of the RMP (Relaxed Programming Problem) and eventually converges to the optimal solution for the linear programming relaxation.
[0124] The crew relaxation solution refers to the solution obtained by iteratively solving the restricted master problem using a column generation algorithm after relaxing the linear programming. This solution includes multiple decision variables (taking values of fractions or integers within the interval [0,1]) corresponding to the driver's tasks, as well as dual variables corresponding to each work segment. Since the decision variables may take numerical values, the crew relaxation solution cannot be directly used for actual crew scheduling and needs to be transformed into an integer solution using the UGASA algorithm proposed in this application.
[0125] Taking subway crew dispatching as an example, the first step is to obtain the departure timetable data. The departure timetable includes the train number, train number, station, arrival time, and departure time. For example, train number 01 includes train number 560101 (Longhua -> Qinghu) and train number 180102 (Qinghu -> Futian Port), where the train number includes the station and the arrival time and trigger time of each station.
[0126] A work segment is the smallest unit of a driver's task. Typically, the timetable is broken down into sets of work segments, using transfer stations as a reference. Each work segment includes information such as train number, service number, pick-up time, departure station, departure time, arrival station, arrival time, driving hours, and driving mileage, as shown in Table 7 below.
[0127]
[0128] Table 7 Examples of work sections In one optional implementation, S101 may specifically include: Step 1) Construct a constrained master problem based on decision variables and business constraints.
[0129] When assembling driver tasks based on constraints across job segments, all possible driver tasks were enumerated, resulting in a driver task set on the order of millions, making the linear programming problem extremely difficult. Therefore, an initial restricted principal problem is constructed. To ensure that all job segments are covered, each driver task can be assigned to one job segment, meaning all driver tasks are single tasks.
[0130] Typically, a driver task consists of several work segments. All work segments need to be pieced together into driver tasks without omission. These tasks need to meet certain constraints, including but not limited to the following: (1) All work segments must be assigned to driver tasks, and each work segment is covered by only one driver task; (2) The end point of adjacent work segments in a driver task is the same as the start point of the next work segment, i.e., the end point of the previous work segment is the start point of the next work segment; (3) The end time of adjacent work segments in a driver task is not later than the start time of the next work segment, i.e., the end time of the previous work segment should be less than or equal to the start time of the next work segment; (4) The total working hours of a single driver task do not exceed the preset maximum working hours. The total working hours of a single driver task refer to the difference between the end time of the last work segment and the start time of the first work segment in the task, plus the driver's attendance allowance; (5) The total driving mileage of a single driver task does not exceed the preset maximum driving mileage (e.g., 240 kilometers). The total driving mileage of a single driver task refers to the sum of the mileage of all work segments in the task.
[0131] In addition to these, there are many other complex business constraints. Using these constraints, we can find all composable sets of driver tasks.
[0132] The variables in the restricted master problem are the selection state of the driver task (i.e., the decision variable), taking values on the closed interval [0,1]. If the driver task is selected, a variable can be used to label it. For example... ,like If selected, then If it is 1; If not selected, then It is 0.
[0133] Take a simplified example with three work segments A, B, and C: each of the three work segments A, B, and C constitutes a single work segment driver task, and the corresponding decision variables are as follows: The mathematical model of the initial restricted master problem is as follows: (1) Objective function (minimize the number of drivers): (2) Constraints (each work segment must be covered by someone): Work segment A: Work Section B: Work Section C: , Other constraints. Calculation results (decision variables, dual variables): .
[0134] The original problem aims to minimize the number of drivers. Let's assume the set of all tasks is... The corresponding set of selected states is The objective function can then be expressed as follows: .
[0135] The original problem requires that each task be performed by exactly one driver. If it includes work segments... The task is a set Then the kth work segment The constraints can be expressed as follows: St (k); .
[0136] Furthermore, since solvers compute linear programming problems faster, integer programming (IP) problems are transformed into linear programming (LP) problems, that is, the range of variable values is changed from a set to a linear programming problem. Convert to closed interval .
[0137] Step 2) Solve the constrained master problem iteratively by generating columns to obtain the relaxed solution for the passenger service.
[0138] The column generation algorithm iteratively expands the scale of RMP through solving the main problem and pricing subproblems until it converges. Please refer to [link / reference]. Figure 8 , Figure 8 A flowchart of another column generation algorithm provided in this application embodiment is shown. The specific iterative process of this column generation algorithm is as follows: Step 1) Take the work segments as vertices of the graph, and determine the work segments that can be spliced as edges of the graph based on constraints (working hours, mileage, etc., to determine whether driver tasks can be spliced), thus constructing a graph relationship.
[0139] Step 2), Solve the linear programming relaxation of the current RMP: Call the solver to solve the RMP model and obtain the objective value and dual variable (shadow price). In the original problem, each task segment corresponds to a constraint, and each constraint corresponds to a dual variable.
[0140] Step 3), Pricing Subproblem: Retrieve feasible columns (driver task, route) from the graph, and reconstruct the RMP problem by selecting columns with negative RC. Return to Step 3) until no columns with negative RC remain.
[0141] Following the examples of the three task segments above: Find the new task AB in the pricing subproblem, and calculate... Where 1 represents the decision variable for the new task AB. The coefficients in the objective function, which calculates the number of people. This indicates whether the new task AB should be selected. Since RC is negative, the decision variables corresponding to the new task AB are... Join RMP.
[0142] The updated RMP is: (1) Objective function: (2) Constraints (each work segment must be covered by someone): Work segment A: Work Section B: Work Section C: , Other constraints. After resolving, we get: .
[0143] Continue iterating until it no longer exists. The new column generation converges, and the output is the passenger service relaxation solution. The passenger service relaxation solution includes multiple decision variables, each corresponding to a driver's task.
[0144] For example, please refer to Figure 9 , Figure 9 The diagram illustrates a column generation algorithm based on the DeepDive algorithm, as provided in this embodiment of the application. The column generation algorithm based on the DeepDive algorithm is as follows: Step 1), the input data consists of work segments (timetables are divided according to transfer stations) and parameters (work duration, mileage and other constraints).
[0145] Step 2) When constructing the initial constrained master problem, each job segment can be treated as a driver task, i.e., a single task (satisfying the basic constraint: each job segment must have task coverage).
[0146] Step 3) Column generation involves iterating through the main problem and pricing subproblems until convergence, thereby finding the lower bound of the target value.
[0147] Step 4) Determine if the solution is an integer solution. If it is an integer solution, calculate the target result and end the process; if it is a fractional solution, you still need to calculate an integer solution based on the lower bound of the target value.
[0148] Step 5), based on the fractional solution, use the deep dive algorithm to find the integer solution.
[0149] S102: If at least one decision variable in the flight attendant relaxation solution is a fraction, then the branch iterative search step is executed repeatedly until an integer solution is obtained, and the integer solution is output as the flight attendant scheduling target scheme.
[0150] The relaxed flight schedule solution typically contains a large number of decision variables with fractional values, which cannot be directly used for actual scheduling. In this case, a branch-and-iterate search step is executed to force the fractional solutions to be rounded to integers. For example, the branch-and-iterate search step can employ an uncertainty-guided and asymmetric search algorithm.
[0151] Specifically, the branch iteration search steps can include the following steps: Step 1), calculate the uncertainty of each decision variable, and select the decision variable with the greatest uncertainty in the flight relaxation solution as the branch object.
[0152] Uncertainty is a quantitative measure of the degree of ambiguity in the numerical values of decision variables in this application embodiment. Its core idea is that the closer a decision variable's numerical value is to 0.5, the less clear its rounding direction, i.e., the greater the uncertainty. Prioritizing the processing of variables with the greatest uncertainty can obtain the greatest information gain, quickly expose constraint conflicts, and achieve effective pruning.
[0153] For example, the step of selecting the decision variable with the greatest uncertainty in the relaxed solution of the passenger service as the branching object may specifically include: At each branch node, based on the scores of each decision variable in the current flight relaxation solution, the uncertainty of each decision variable is recalculated, and the decision variable with the greatest uncertainty is selected as the current branch object.
[0154] In one optional implementation, the uncertainty of each decision variable's value can be calculated by measuring the degree of deviation between the decision variable and a preset intermediate value, where a smaller degree of deviation indicates greater uncertainty. For example, the degree of deviation can be the absolute value of the difference between the decision variable and the preset intermediate value, or it can be calculated based on the Shannon entropy method.
[0155] Step 2) Using an asymmetric search strategy, adjust the boundary values of the branch objects along the first direction or along the second direction, and based on the boundary values, update the restricted master problem and solve to obtain candidate solutions.
[0156] The asymmetric search strategy is an improvement on the depth-first search strategy in the embodiments of this application. In traditional complete binary search, each branch node generates two branches, left and right, causing the search tree to grow exponentially. Asymmetric search, by limiting the search depth of the right branch, transforms the shape of the search tree from a complete binary tree to a left-biased tree, thereby compressing the search space from exponential to polynomial.
[0157] The asymmetric search strategy includes a first-direction branch that is not limited by search depth and a second-direction branch that is limited by a preset search depth threshold. The preset search depth threshold is a parameter used in asymmetric search to limit the search depth of the second direction (right branch), indicating the maximum number of times the search can proceed along the second direction on any given search path. For example, the first direction forces the decision variable to be rounded to 1, with a boundary value of 1; the second direction forces the decision variable to be rounded to 0, with a boundary value of 0.
[0158] For example, the value of the preset search depth threshold can be dynamically determined based on the distribution characteristics of the decision variables in the flight relaxation solution. For instance, the preset search depth threshold can be determined based on at least one of the following strategies: calculating the Shannon information entropy of all decision variables and determining the preset search depth threshold based on the Shannon information entropy; counting the number of variables whose median value falls within a preset interval and determining the preset search depth threshold based on the number of variables.
[0159] Step 3): If the candidate solution is an integer solution, then output the candidate solution as the target scheme for crew scheduling.
[0160] Step 4): If the candidate solution is a fractional solution, then continue the branch iterative search step based on the candidate solution.
[0161] Step 5): If there is no solution among the candidate solutions, then cancel the boundary value adjustment of the branch object and backtrack until all searchable branch objects have been traversed.
[0162] After performing forced rounding on the branch object and solving the restricted master problem, candidate solutions are obtained. Different branching processes are executed based on the type of the candidate solution: Case 1: The candidate solution is an integer solution, meaning all decision variables have been rounded to 0 or 1. In this case, the candidate solution is a feasible crew scheduling scheme. Output the candidate solution as the target crew scheduling scheme, and the algorithm ends (i.e., execute step 3).
[0163] Scenario 2: The candidate solution is a fractional solution, meaning that at least one decision variable in the candidate solution still has a fractional value. In this case, the branch iteration search step continues based on the candidate solution. In the next iteration, the algorithm recalculates the uncertainty of each decision variable based on the updated fractional values and selects a new branch object (i.e., execute step 4).
[0164] Scenario 3: No candidate solution exists, meaning that the forced rounding results in no feasible solution for the linear programming relaxation of the restricted master problem. In this case, the boundary value adjustment for the current branch object is undone, and the process backtracks to the previous branch node. If a usable second direction exists, the decision variable corresponding to the previous branch node is forcibly rounded along the second direction; if no usable second direction exists (for example, the cumulative search depth of the second direction on the current path has reached the preset search depth threshold), the process continues to backtrack upwards (i.e., step 5 is executed).
[0165] The second direction is available only if two conditions are met simultaneously: (1) the cumulative search depth of the second direction on the current search path has not reached the preset search depth threshold; (2) the current branch node has not yet tried the second direction branch. If both conditions are met, the second direction is available: the algorithm forces the branch object along the second direction to be rounded to 0 and solves the problem again; if either condition is not met, the second direction is unavailable and the algorithm continues to backtrack to the next higher level branch node.
[0166] Repeat steps 1) to 5) above until any of the following conditions are met: (1) Find an integer solution: After a branch search, an integer solution is obtained, and the integer solution is output as the target scheme for the crew scheduling; (2) Traverse all searchable branch objects: Backtrack to the root node and there are no other directions to try, confirming that there is no feasible integer solution in the current search range.
[0167] The complete solution process of the embodiments of this application will be described below with reference to a specific example.
[0168] 1. Problem Modeling Suppose a subway line is divided into three work segments A, B, and C. Construct a restricted master problem based on the work segments and business constraints. The searchable driver tasks include: A, B, C, AB, BC, AC, and ABC. Each driver task corresponds to a decision variable. .
[0169] 2. Column generation and solution Construct the initial RMP and select three single-operation segment driver tasks: (1) Objective function: (2) Constraints: Work Section A: Work Section B: Work Section C: , The solution yields: .
[0170] The pricing subproblem search yields a new task AB, which is then calculated. The decision variables corresponding to the new task A and B Join RMP.
[0171] The updated RMP is: (1) Objective function: (2) Constraints: Work Section A: Work Section B: Work Section C: , After resolving, we get: .
[0172] Continue iterating until it no longer exists. The new column is generated, the column converges, and the relaxed solution is output.
[0173] 3. Solving UGASA in integer form like Figure 6 As shown, Figure 6The middle node displays the current LP result of the RMP; each selected variable close to 0.5 branches the node; the left branch has no depth limit, while the right branch has a maximum depth limit of 1 (the dashed part is the pruned part of the right branch with a depth exceeding 1, which cannot be traversed); the red part is the part that has been traversed but is not the correct solution; the green part is the part that has been traversed and is the correct solution; the yellow arrows show the traversal path. The left branch is greedily traversed; if no solution is found, it backtracks to the parent node (the previous node) and traverses the right branch.
[0174] Please refer to Figure 10 , Figure 10 This is a schematic diagram illustrating a UGASA algorithm process provided in an embodiment of this application. Its solution logic is as follows: Step 1), after the column generation converges, continue the calculation based on the converged data, and proceed to Step 2) for judgment.
[0175] Step 2) If the solution is an integer, the solution process ends; if the solution is a fractional solution, proceed to Step 3) to continue the solution process (the solution needs to be calculated based on the converged fractional solution generated from the column and the dual variable).
[0176] Step 3), the variable's value range is a closed interval [0,1]. Select the variable whose value is close to 0.5 (the most uncertain variable) to branch, and go to Step 4 (the left branch fixes the variable to 1, and the right branch fixes the variable to 0. Fixing the variable to 1 does not directly assign a value to the variable, but changes the lower bound of the variable to 1, that is, sets the variable's value range to [1,1]; fixing the variable to 0 does not directly assign a value to the variable, but changes the upper bound of the variable to 0, that is, sets the variable's value range to [0,0]).
[0177] Step 4), select the left branch for deep dive, fix the variable to 1, and then solve the LP (linear programming) of RMP, then proceed to step 5).
[0178] Step 5): If there is a solution, jump to Step 2) to continue checking for integer properties (greedily choosing the left branch, fixed at 1, as shown here); if there is no solution (meaning that fixing the variable in Step 4 leads to a contradiction in the constraint conditions), then first check if it is at the end of the queue (traversal ends). If the end of the queue is reached (all possibilities end), then end; if the end of the queue is not reached, then the variable constraint range needs to be restored to [0,1], jump to Step 6) to continue (no solution on the left branch, try the right branch).
[0179] Step 6) Check if the number of times the right branch is exceeded. If it is, backtrack to the previous branch node (backtrack to the parent node one level up. Greedy traversal to the left branch, so backtracking is all to the right branch), and execute Step 6) again to continue the judgment; if the number of times the right branch is not exceeded, jump to Step 7) to enter the right branch.
[0180] Step 7), select the right branch for deep dive, fix the variable to 0, and then solve the LP (linear programming) of RMP, then go to step 8).
[0181] Step 8): If there is a solution, jump to Step 2) to continue checking for integer properties (greedily choosing the left branch, fixed at 1, as shown here); if there is no solution (meaning that fixing the variable in Step 5 leads to a contradiction in the constraint conditions), then first check if it is at the end of the queue (the traversal ends). If the end of the queue is reached (all possibilities end), then end; if the end of the queue is not reached, then the variable constraint range needs to be restored to [0,1], and backtrack to the previous branch node (backtracking to the parent node one level up. Greedy traversal to the left branch, so backtracking is always traversing to the right branch), and execute Step 6 again).
[0182] The experimental setup for this algorithm is as follows: Iterative convergence using column generation is employed, followed by branch pricing, large-domain search, and the UGASA algorithm (with a right branch depth limit of 10) to solve the integer programming problem. Two experimental datasets and datasets with different intervals are used. The experimental results for the LHL981 dataset (number of drivers (unit: person) and computation time (unit: seconds)) are shown in Table 8.
[0183] Table 8. Test results and calculation time for data LHL981 For example, the data image above Figure 11 As shown, branch pricing calculates a better number of drivers at each interval, but its calculation time is longer; the UGASA algorithm calculates a comparable number of drivers to the large domain and branch pricing algorithms, but its calculation time is consistently far superior.
[0184] The test results for data LHL716 (number of drivers (unit: person) and calculation time (unit: seconds)) are shown in Table 9:
[0185] Table 9. Test results and calculation time for data LHL716 For example, the data image above Figure 12 As shown, branch pricing calculates a better number of drivers at each interval, but its calculation time is longer; the UGASA algorithm calculates a comparable number of drivers to the large domain and branch pricing algorithms, but its calculation time is consistently far superior.
[0186] In summary, the crew scheduling method based on uncertainty guidance and asymmetric search provided in this application has the following advantages: (1) The algorithm runs quickly, which can effectively avoid users waiting too long for calculation time; (2) The calculation results are relatively better, and a feasible solution can be obtained in the shortest time, which is convenient for users to refer to; (3) The algorithm can run normally without a high configuration environment (such as the number of CPU cores, memory, etc.).
[0187] Specifically, the crew scheduling method based on uncertainty guidance and asymmetric search provided in this application dynamically maintains the feasibility of the problem and the quality of the solution by immediately triggering a new round of column generation after each variable is fixed. This mechanism effectively avoids the computational overhead of building a huge search tree required by the traditional branch and bound method, and significantly improves the solution efficiency while ensuring the quality of the solution. It is particularly suitable for the real-time solution requirements of large-scale combinatorial optimization problems.
[0188] Secondly, this study innovatively employs the principle of maximizing information entropy to guide the fixed order of variables, prioritizing the handling of variables with the greatest uncertainty in the linear relaxation solution (i.e., variables whose values are closest to 0.5). This strategy can minimize the uncertainty of the search space, quickly expose constraint conflicts, and achieve effective pruning, thereby eliminating a large number of invalid search paths in the early stages.
[0189] Furthermore, a restricted depth search strategy is introduced, setting a maximum depth limit for the right branch (the branch with a fixed variable of 0), while also incorporating a dynamic backtracking mechanism. This design ensures the completeness of the algorithm while effectively controlling the exponential growth of the search space, achieving the optimal balance between solution efficiency and solution quality.
[0190] Finally, the deep-diving heuristic strategy provided in this application has excellent modularity and can be seamlessly integrated as an independent integerization engine into any column-generation-based optimization solver. It is particularly suitable for set covering / segmentation models, covering multiple practical application scenarios such as public transportation scheduling, airline crew scheduling, and logistics route planning.
[0191] Please refer to Figure 13 , Figure 13This application provides a structural block diagram of a cabin crew scheduling device based on uncertainty-guided and asymmetric search. The cabin crew scheduling device 200 specifically includes: an acquisition module 201, used to acquire the cabin crew relaxation solution obtained by iteratively solving the restricted master problem using a column generation algorithm; and a search module 202, used to iteratively execute the following branch search steps if at least one decision variable in the cabin crew relaxation solution is a fraction, until convergence to an integer solution, and output the integer solution as the cabin crew scheduling target scheme: calculating the uncertainty of the values of each decision variable. The decision variable with the greatest uncertainty in the relaxed flight attendant solution is selected as the branch object. An asymmetric search strategy is adopted to adjust the boundary values of the branch object along the first direction or the second direction. Based on the boundary values, the restricted master problem is updated and candidate solutions are obtained. If the candidate solution is an integer solution, the candidate solution is output as the flight attendant scheduling target scheme. If the candidate solution is a fractional solution, the branch iterative search steps are continued based on the candidate solution. If there is no candidate solution, the boundary value adjustment of the branch object is canceled and backtracking is performed until all searchable branch objects are traversed.
[0192] The passenger relaxation solution includes multiple decision variables corresponding to the driver's task, and the asymmetric search strategy includes a first directional branch that is not limited by search depth and a second directional branch that is limited by a preset search depth threshold.
[0193] In the above scheme, after the column generation algorithm converges to obtain a linearly relaxed solution, an uncertainty-guided strategy is adopted to prioritize the processing of the decision variables with the most uncertain values. This minimizes the uncertainty of the search space, quickly exposes constraint conflicts, and achieves effective pruning. Simultaneously, an asymmetric search strategy is employed, setting a search depth threshold for the second-direction branch, effectively controlling the exponential growth of the search space and avoiding the computational overhead of constructing a massive search tree required by traditional branch-and-bound methods. Therefore, compared to existing large neighborhood search algorithms and branch-and-price algorithms, the embodiments of this application can reduce computation time and improve solution efficiency while ensuring solution quality, thereby quickly and with high quality constructing integer solutions based on the fractional solutions generated by the column generation.
[0194] In an optional implementation, the search module 202 is specifically used to: at each branch node, based on the scores of each decision variable in the current flight relaxation solution, recalculate the uncertainty of the value of each decision variable, and select the decision variable with the largest uncertainty as the current branch object.
[0195] In the above scheme, by recalculating the uncertainty of the values of each decision variable in the current flight relaxation solution and reselecting the branch object at each branch node, dynamic adaptive selection of the branch object is realized, avoiding the search bias caused by fixed order selection after sorting, and further improving search efficiency and solution quality.
[0196] In an optional implementation, the acquisition module 201 is specifically used to: construct a restricted master problem based on decision variables and business constraints; and solve the restricted master problem iteratively through column generation to obtain a relaxed solution for the passenger service.
[0197] In the above scheme, the restricted master problem is solved iteratively by column generation algorithm to obtain the relaxed solution of the passenger service. The column generation algorithm is used to quickly construct the initial feasible solution and gradually expand the problem size until convergence, efficiently obtaining the relaxed lower bound of the linear programming, providing a high-quality initial solution for the subsequent branch iterative search, and ensuring the numerical stability and convergence speed of the overall solution process.
[0198] In optional implementations, business constraints include one or more of the following: all work segments must be assigned to driver tasks, and each work segment is covered by one and only one driver task; the end point of adjacent work segments in a driver task is the same as the start point of the next work segment; the end time of adjacent work segments in a driver task is not later than the start time of the next work segment; the total working hours of a single driver task do not exceed the preset maximum working time; and the total driving mileage of a single driver task does not exceed the preset maximum driving mileage.
[0199] In the above scheme, by limiting business constraints including work segment coverage constraints, station connection constraints, time connection constraints, working hour constraints and mileage constraints, it is ensured that the generated crew scheduling scheme can fully meet the various business rules in actual operation, so that the output integer solution has industrial-grade feasibility and can be directly used for actual crew scheduling.
[0200] In an optional implementation, the preset search depth threshold is determined based on the distribution characteristics of the decision variables.
[0201] In the above scheme, the preset search depth threshold is determined based on the distribution characteristics of the decision variables, so that the limitation of the search depth can be adaptively adjusted according to the quality of the fractional solutions after the columns are generated and converged: when the quality of the fractional solutions is high, a smaller threshold can be set to reduce the search time; when the quality of the fractional solutions is low, a larger threshold can be set to ensure the quality of the solutions, thereby achieving a dynamic balance between solution efficiency and solution quality.
[0202] In an optional implementation, the preset search depth threshold is determined based on at least one of the following strategies: calculating the Shannon information entropy of all decision variables and determining the preset search depth threshold based on the Shannon information entropy; counting the number of variables whose median value falls within a preset interval and determining the preset search depth threshold based on the number of variables.
[0203] In the above scheme, the preset search depth threshold is determined by Shannon information entropy or the proportion of uncertain variables, providing multiple optional threshold determination methods. Among them, the Shannon information entropy method can accurately quantify the overall uncertainty of fractional solutions, while the threshold proportion method reduces computational overhead while ensuring effectiveness, and can be flexibly selected in practical applications.
[0204] In an optional implementation, the search module 202 is specifically used to: calculate the degree of deviation between the decision variable and the preset intermediate value, wherein the smaller the degree of deviation, the greater the uncertainty of the value.
[0205] In the above scheme, the uncertainty of the value is measured by calculating the degree of deviation between the decision variable and the preset intermediate value. The smaller the deviation, the more ambiguous the value of the variable and the greater the uncertainty. Prioritizing the processing of such variables can obtain the greatest information gain, eliminate a large number of invalid search paths in the early stage, and reduce the amount of computation in subsequent searches.
[0206] In an optional implementation, the degree of deviation is the absolute value of the difference between the decision variable and the preset intermediate value, or the degree of deviation is calculated based on the Shannon entropy method.
[0207] The above scheme provides two uncertainty measurement methods: the absolute value method and the Shannon entropy method. The absolute value method is simple to calculate and has low overhead, while the Shannon entropy method can more accurately characterize the degree of disorder of variable values. It can be flexibly selected according to the computing resources and solution quality requirements of the actual scenario, taking into account both computing efficiency and guidance accuracy.
[0208] In an optional implementation, the first direction is the direction that forces the decision variable to be rounded to 1, and the boundary value is 1; the second direction is the direction that forces the decision variable to be rounded to 0, and the boundary value is 0.
[0209] In the above scheme, by setting the first direction to be forcibly rounded to 1 and the second direction to be forcibly rounded to 0, the branching rules of the asymmetric search are clarified, which enables the search process to fully explore the feasible region in the first direction, while avoiding exponential explosion by depth restriction in the second direction. The algorithm behavior is clear and controllable, which is convenient for practical engineering implementation.
[0210] Please refer to Figure 14 , Figure 14This application provides a structural block diagram of an electronic device 300, which includes at least one processor 301, at least one communication interface 302, at least one memory 303, and at least one communication bus 304. The communication bus 304 enables direct communication between these components, the communication interface 302 facilitates signaling or data communication with other node devices, and the memory 303 stores machine-readable instructions executable by the processor 301. When the electronic device 300 is running, the processor 301 communicates with the memory 303 via the communication bus 304. When the machine-readable instructions are invoked by the processor 301, the aforementioned crew scheduling method based on uncertainty-guided and asymmetric search is executed.
[0211] For example, the processor 301 in this embodiment of the application can read and execute a computer program from the memory 303 via the communication bus 304 to implement the following method: obtaining the flight attendant relaxation solution obtained by iteratively solving the restricted master problem using a column generation algorithm; if at least one decision variable in the flight attendant relaxation solution is a fraction, then the following branch iterative search steps are executed repeatedly until an integer solution is obtained, and the integer solution is output as the flight attendant scheduling target scheme: calculating the uncertainty of each decision variable, selecting the decision variable with the greatest uncertainty in the flight attendant relaxation solution as the branch object; adopting an asymmetric search strategy, adjusting the boundary value of the branch object along the first direction of branch search, or the boundary value of the branch object along the second direction of branch search, and updating the restricted master problem and solving the candidate solution based on the boundary value; if the candidate solution is an integer solution, then the candidate solution is output as the flight attendant scheduling target scheme; if the candidate solution is a fractional solution, then the branch iterative search steps are continued based on the candidate solution; if there is no candidate solution, then the boundary value adjustment of the branch object is cancelled and backtracking is performed until all searchable branch objects are traversed.
[0212] The processor 301 may include one or more, and may be an integrated circuit chip with signal processing capabilities. The processor 301 may be a general-purpose processor, including a Central Processing Unit (CPU), a Microcontroller Unit (MCU), a Network Processor (NP), or other conventional processors; it may also be a special-purpose processor, including a Neural-network Processing Unit (NPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Furthermore, when there are multiple processors 301, some may be general-purpose processors, and others may be special-purpose processors.
[0213] The memory 303 includes one or more, which may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0214] Understandable. Figure 14 The structure shown is for illustrative purposes only; the electronic device 300 may also include components that are more advanced than those shown. Figure 14 The more or fewer components shown, or having the same Figure 14 The different configurations shown. Figure 14The components shown can be implemented using hardware, software, or a combination thereof. In the embodiments of this application, electronic device 300 can be, but is not limited to, physical devices such as desktop computers, laptops, smartphones, smart wearable devices, and in-vehicle devices, or virtual devices such as virtual machines. Furthermore, electronic device 300 is not necessarily a single device; it can be a combination of multiple devices, such as a server cluster, etc.
[0215] This application also provides a computer program product, including a computer program stored on a computer-readable storage medium. The computer program includes computer program instructions. When the computer program instructions are executed by a computer, the computer is able to perform the steps of the crew scheduling method based on uncertainty guidance and asymmetric search in the above embodiments.
[0216] This application also provides a computer-readable storage medium that stores computer program instructions. When the computer program instructions are executed by a computer, the computer performs the crew scheduling method based on uncertainty guidance and asymmetric search as described in the foregoing method embodiments.
[0217] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0218] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0219] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0220] It should be noted that if the function is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0221] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0222] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A passenger dispatching method based on uncertainty-guided and asymmetric search, characterized in that, include: Obtain the passenger service relaxation solution obtained by iteratively solving the restricted master problem using a column generation algorithm, wherein the passenger service relaxation solution includes multiple decision variables corresponding to the driver's task; If at least one of the decision variables in the relaxed flight crew solution is a fraction, then the following branch iterative search steps are executed repeatedly until an integer solution is obtained, and the integer solution is output as the flight crew scheduling target scheme: Calculate the uncertainty of each decision variable, and select the decision variable with the greatest uncertainty in the relaxation solution as the branch object; An asymmetric search strategy is adopted to adjust the boundary value of the branch object along the first direction branch search or the boundary value along the second direction branch search, and based on the boundary value, the restricted master problem is updated and candidate solutions are obtained. The asymmetric search strategy includes a first direction branch that is not limited by the search depth and a second direction branch that is limited by a preset search depth threshold. If the candidate solution is an integer solution, then the candidate solution is output as the target scheme for passenger dispatch; if the candidate solution is a fractional solution, then the branch iterative search step is continued based on the candidate solution; if the candidate solution has no solution, then the boundary value adjustment of the branch object is canceled and backtracking is performed until all searchable branch objects are traversed.
2. The method according to claim 1, characterized in that, The step of selecting the decision variable with the greatest uncertainty in the relaxed solution of the passenger service as the branch object includes: At each branch node, based on the scores of each decision variable in the current flight relaxation solution, the uncertainty of each decision variable is recalculated, and the decision variable with the greatest uncertainty is selected as the current branch object.
3. The method according to claim 1, characterized in that, The process of obtaining the relaxed solution for the passenger transport problem obtained by iteratively solving the restricted master problem using a column generation algorithm includes: Construct a constrained master problem based on the aforementioned decision variables and business constraints; The restricted master problem is solved iteratively by generating the columns to obtain the relaxed solution for the passenger service.
4. The method according to claim 3, characterized in that, The business constraints include one or more of the following: All work segments must be assigned to the driver tasks, and each work segment must be covered by one and only one driver task. In the driver's task, the end point of adjacent work segments is the same as the start point of the next work segment; The end time of adjacent work segments in the driver's task shall not be later than the start time of the next work segment; The total working hours for a single driver's task shall not exceed the preset maximum working time. The total driving mileage for a single driver's task shall not exceed the preset maximum driving mileage.
5. The method according to any one of claims 1-4, characterized in that, The preset search depth threshold is determined based on the distribution characteristics of the decision variables.
6. The method according to claim 5, characterized in that, The preset search depth threshold is determined based on at least one of the following strategies: Calculate the Shannon information entropy of all decision variables, and determine the preset search depth threshold based on the Shannon information entropy; The number of all decision variables whose values fall within a preset interval is counted, and the preset search depth threshold is determined based on the number of variables.
7. The method according to any one of claims 1-4, characterized in that, The calculation of the uncertainty of the values of each decision variable includes: Calculate the degree of deviation between the decision variable and the preset intermediate value, wherein the smaller the degree of deviation, the greater the uncertainty of the value.
8. The method according to claim 7, characterized in that, The degree of deviation is the absolute value of the difference between the decision variable and the preset intermediate value, or the degree of deviation is calculated based on the Shannon entropy method.
9. The method according to any one of claims 1-4, characterized in that, The first direction is the direction that forces the decision variable to be rounded to 1, and the boundary value is 1; the second direction is the direction that forces the decision variable to be rounded to 0, and the boundary value is 0.
10. A computer program product, characterized in that, It includes computer program instructions, which, when read and executed by a processor, perform the crew scheduling method based on uncertainty guidance and asymmetric search as described in any one of claims 1-9.
