Airport operation resource rule conflict detection method, device, equipment and storage medium
By providing a rule conflict detection method in airport operations, identifying and correcting rule conflicts, the problem of rule complexity and large number is solved, and the efficiency and safety of airport operations are improved.
Patent Information
- Application Number
- CN202110812458.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-07-19
AI Technical Summary
Due to the complexity and large number of rules in airport operations, logical conflicts occur between rules. Manual detection and correction costs are high, making it difficult to ensure the application efficiency and operational safety of the rule base.
Provides a conflict detection method for airport operation resource rules. By determining the rule detection type (batch detection or real-time detection), business rules are obtained, and the corresponding detection method is used to identify conflict rules, providing conflict information to users, reducing the difficulty and difficulty of manual correction. cost.
It realizes efficient conflict detection of airport operation resource rules, maintains the logical correctness of the rule base, improves the efficiency of rule base management, and ensures the correct implementation of business rules.
Smart Images

Figure CN113688993B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of airport resource management, and in particular to an airport operation resource rule conflict detection method, device, equipment and storage medium. Background Art
[0002] With the rapid growth of my country's civil aviation transport volume, the interaction between airports and airlines has become increasingly close, the scope of business cooperation between the two sides has become wider, and the depth of interaction in various fields has become more in-depth and refined. These business interactions are concluded in the form of various business contracts, and finally reflected in the various production systems used by the airport in the form of business rules. These business contracts involve all aspects of airport operation resource management, covering various resource types such as ground service personnel, special vehicles, parking spaces, boarding gates, baggage carousels, and involve multiple scenarios. The needs, such as the airline's needs for flight parking spaces, the requirements of different aircraft types for ground support time limits, and the staff scheduling requirements for check-in counters at different time periods. In view of the complexity and diversity of needs, the airport's production system stores a huge number of rule records. For example, in the resource management system of trunk airports, more than 100,000 rule records need to be maintained just to realize the needs of parking space allocation. At the same time, due to the logical complexity of the rule conditions, affected by the understanding of different operators and the frequent changes in business contracts, the addition, subtraction and modification of rules may lead to logical conflicts between rules. At the same time, as airport operations become more and more sophisticated, the rules have also become more complex. For example, in the context of meeting flight demand and ensuring operational safety, dynamic restriction rules for parking spaces related to the timing of use have been proposed. Such rules have put forward more detailed requirements for factors such as time, sequence, and aircraft type, which has further increased the complexity of the rules. If mistakes are made when modifying the rules, it may even seriously affect the safety of airport operations.
[0003] At present, facing the huge number of rule data sets in the airport system, it takes a lot of labor costs to manually find conflicting rules and make corrections. In some cases, due to the complexity and large number of rules, it is almost impossible to manually find conflicting rules and make corrections. These problems seriously affect the accuracy of business demand execution and reduce the application efficiency of the rule base. Therefore, seeking an efficient and fast business rule conflict detection method is an urgent problem to be solved, and it also has a strong practical application significance. Summary of the invention
[0004] In view of this, the present invention provides an airport operation resource rule conflict detection method, device, equipment and storage medium.
[0005] In a first aspect, the present application provides a method for detecting conflicts in airport operation resource rules, the method comprising:
[0006] Determine the rule detection type according to the scenario where the conflict needs to be detected, and the detection type includes batch detection type and real-time detection type;
[0007] Based on the detection type, obtaining airport business rules;
[0008] If the detection type is batch detection, a batch detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules;
[0009] If the detection type is real-time detection, a real-time detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules;
[0010] According to the conflicting rules, conflicting rule information is provided to the user.
[0011] In a second aspect, an embodiment of the present application provides an airport operation resource rule conflict detection device, the device comprising:
[0012] A first determination module is used to determine a rule detection type according to a demand scenario where a conflict needs to be detected, where the detection type includes a batch detection type and a real-time detection type;
[0013] An acquisition module, used for acquiring airport business rules based on the detection type;
[0014] A second determination module is used to perform conflict detection on the acquired business rules using a batch detection method to determine conflicting rules if the detection type is batch detection;
[0015] A third determination module is used to, if the detection type is real-time detection, use a real-time detection method to perform conflict detection on the acquired business rules to determine conflicting rules;
[0016] The presentation module is used to provide conflicting rule information to the user according to the conflicting rules.
[0017] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned airport operation resource rule conflict detection method when executing the computer program.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned airport operation resource rule conflict detection method is implemented.
[0019] The airport operation resource rule conflict detection method, device, equipment and storage medium provided in the embodiment of the present invention determine the rule detection type according to the demand scenario where the conflict needs to be detected, and based on the detection type, obtain the airport business rules. If the detection type is batch detection, a batch detection method is used to perform conflict detection on the obtained business rules to determine the conflicting rules. If the detection type is real-time monitoring, a real-time detection method is used to perform conflict detection on the obtained business rules to determine the conflicting rules, and conflicting rule information is provided to the user based on the conflicting rules. The invention can perform conflict detection on the airport operation resource rules and obtain conflicting rules, thereby reducing the difficulty of staff to check and correct conflicting rules, maintaining the logical correctness of the airport business rule library, reducing labor costs, improving the efficiency of rule library management, and ensuring that various business rules can be correctly implemented in the actual production and operation of the airport. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flow chart of a method for detecting conflicts in airport operation resource rules provided by an embodiment of the present invention;
[0022] Figure 2 A flow chart of a method for detecting conflicts in airport operation resource rules provided by an embodiment of the present invention;
[0023] Figure 3 A schematic flow chart of a method for detecting conflicts in airport operation resource rules provided by another embodiment of the present invention;
[0024] Figure 4 A schematic flow chart of a method for detecting conflicts in airport operation resource rules provided by another embodiment of the present invention;
[0025] Figure 5 A schematic diagram of an interface for recording rules in a distribution system provided by an embodiment of the present invention;
[0026] Figure 6 A schematic diagram of an interface of a dialog prompt provided by an embodiment of the present invention;
[0027] Figure 7 A schematic diagram of an interface for adding a rule in a dialog box provided by an embodiment of the present invention;
[0028] Figure 8 A schematic diagram of an interface of a dialog prompt provided by another embodiment of the present invention;
[0029] Fig. 9 A schematic diagram of a rule interface for reducing the capacity of multiple cameras provided in an embodiment of the present invention;
[0030] Fig.10 A schematic diagram of an interface for compiling a timing restriction rule using another embodiment of the present invention;
[0031] Fig.11 A schematic diagram of an interface with conflicting rule records provided by another embodiment of the present invention;
[0032] Fig.12 A schematic diagram of an interface of a dialog prompt provided by another embodiment of the present invention;
[0033] Fig.13 A schematic diagram of an interface with conflicting rule records provided by another embodiment of the present invention;
[0034] Fig.14 A schematic diagram of an interface of a dialog prompt provided by another embodiment of the present invention;
[0035] Fig.15 A schematic diagram of a flow chart of a method for dynamically allocating parking spaces provided in an embodiment of the present invention;
[0036] Fig.16 A schematic diagram of the structure of a dynamic allocation device for parking spaces provided by an embodiment of the present invention;
[0037] Fig.17 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0039] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.
[0040] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0041] As mentioned in the background technology, with the rapid growth of my country's civil aviation transport volume, the interaction between airports and airlines has become increasingly close. These business interactions are concluded in the form of various business contracts, and finally reflected in the various production systems used by airports in the form of business rules. These business contracts involve various aspects of airport operations, such as the airline's demand for flight parking spaces, the requirements of different aircraft types for ground support time limits, and the staff scheduling requirements of check-in counters at different time periods. In view of the complexity and diversity of requirements, the system stores a large number of rule records. For example, trunk airports need to maintain more than 100,000 rule records in terms of parking space allocation alone. At the same time, due to the logical complexity of the rule conditions, affected by the understanding of different operators and frequent changes in business contracts, the addition, subtraction and modification of rules may cause conflicts between rules. At the same time, as airport operations become more and more refined, the rules have become more complex. For example, in the context of meeting flight needs and ensuring operational safety, dynamic parking space restriction rules related to the use of timing have been proposed. Such rules have put forward more detailed requirements for time, sequence, aircraft type and other factors, resulting in further aggravation of the complexity of the rules. If mistakes are made when modifying the rules, it may even seriously affect the safety of airport operations. Currently, faced with the huge number of rule data sets in the airport system, manually finding conflicting rules and making corrections requires a lot of labor costs; in some cases, due to the complexity and large number of rules, it is almost impossible to manually find conflicting rules and make corrections.
[0042] Based on the above defects, an embodiment of the present invention provides a method for detecting conflicts in airport operation resource rules. According to the demand scenario where conflicts need to be detected, the rule detection type is determined, and based on the detection type, the airport business rules are obtained. If the detection type is batch detection, a batch detection method is used to perform conflict detection on the obtained business rules to determine the conflicting rules. If the detection type is real-time monitoring, a real-time detection method is used to perform conflict detection on the obtained business rules to determine the conflicting rules, and based on the conflicting rules, conflict rule information is provided to the user. The invention can perform conflict detection on the airport operation resource rules according to the rule detection type and obtain conflicting rules, thereby reducing the difficulty of staff to check and correct conflicting rules, maintaining the logical correctness of the airport business rule library, reducing labor costs, improving the efficiency of rule library management, and ensuring that various business rules can be correctly implemented in the actual production and operation of the airport.
[0043] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments.
[0044] The following is a basic explanation of some terms in this embodiment of the present invention:
[0045] Attributes: The various dimensional characteristics of a business object are called attributes. For example, the characteristics of a flight object include airline, flight number, aircraft type, flight mission, regional attributes, take-off time, landing time, etc. Each attribute has a specified restriction range, and when editing, only selections within this range can be made. For example, the restriction range of the regional attribute is {domestic, international, regional, mixed}.
[0046] Rules: Operational regulations set to achieve a specific purpose. Rules consist of two parts: premise and operation, which can be formatted as "IF (condition) THEN (operation)". For example, "IF (airline = Air China and aircraft type = Airbus A320) THEN (parking position 101)".
[0047] Prerequisite: The part of the rule that restricts the business object. The business object data must meet the requirements of the premise to perform the corresponding operation. The premise consists of one or more conditions. For example, the premise (airline = Air China and aircraft type = {A320, A319, A321, B737}) contains two conditions: airline and aircraft type.
[0048] Condition: An attribute and its selected value range constitute a condition, for example: "Airline = {Air China, China Southern Airlines}".
[0049] Default condition: If a rule does not impose a specific restriction on a certain attribute of the corresponding business object, the attribute is used as a default condition. During the conflict detection process, all values within the restricted range of the attribute are considered to meet the requirements. The default condition is automatically supplemented during conflict detection.
[0050] Operation: The part of the rule that processes the business object. For example, assign parking stand 101 to the flight object, and assign check-in counters J01 to J03 to the flight object. It should be noted that depending on the complexity of the business scenario, the operation part will also be restricted by one or more conditions. For example: Assign (check-in counter = {J01, J02, J03}), cannot arrange (time = {10 minutes before the host flight leaves the stand, 10 minutes after the host flight leaves the stand} and parking stand = {201,202,203} and flight = {China Southern Airlines, Air China}).
[0051] Rule hit: When a piece of business data meets the premise of a rule, it is called "hitting" the rule. For example, the existing rule is "IF (airline = Air China and aircraft type = Airbus A320) THEN (parking position 101)". Then the flight data: Air China flights operated by the A320 aircraft type meet the premise of the rule, so they hit the rule; while Air China flights operated by the B737 aircraft type do not meet the premise and do not hit the rule.
[0052] Rule base: The collection of all rules is called the rule base. In practical scenarios, it can be divided into the aircraft stand allocation rule base, boarding gate allocation rule base, shuttle bus driver scheduling rule base, maintenance scheduling rule base, etc. according to different business objects.
[0053] Conflict: When a piece of business data "hits" multiple rules and points to different operations (including inconsistent or totally inconsistent operations), these rules are said to conflict. For example, if there is an existing rule A "IF (airline = Air China) THEN (assign check-in counters A01 to A03)" and rule B "IF (airline = China Southern Airlines, Air China and region attribute = international) THEN (assign check-in counters A03 to A06)", then an international flight of Air China will meet the premise of both rules A and B, and it is impossible to determine which check-in counters should be assigned to the flight. Therefore, these two rules are in conflict, which will cause problems when the production system is running.
[0054] Based on the above terminology agreement, the present invention proposes the following assertion: "The two rules will cause a conflict if and only if there is an intersection within the restriction range of each condition of the premise part of the two rules, and the conditions of the operation part are not completely consistent."
[0055] Based on this, the present invention first designs the following data structure to assist in completing conflict detection, which is explained in advance:
[0056] Cross Matrix C
[0057] This is a Boolean matrix. This matrix indicates whether the premise of the rule to be tested has intersections with other rules to be tested on a certain attribute. Each attribute used by the rule to be tested has such a corresponding intersection matrix. The intersection matrix C_j of the jth attribute is:
[0058]
[0059] The element c in this matrix kt Characterizes whether the premise of rules k and t overlaps in the value of this attribute. kt =1 means crossover, c kt = 0 means no crossover. Since the matrix diagonal elements c 11 to c nn are the same rule, so it is 0. In the batch detection method, the matrix dimension is n×n, where n is the total number of rules to be tested; in the real-time detection method, the matrix dimension is 1×n, that is, a row vector, where n is the total number of rules to be tested.
[0060] Total cross matrix CF
[0061] This is a Boolean matrix. This matrix is used to generally indicate whether the premises of each rule to be tested intersect. If the premises of two rules intersect, it is possible that a piece of business data "hits" both rules at the same time.
[0062]
[0063] The element f in this matrix kt Indicates whether the premises of rules k and t intersect. k =1 means crossover, f k = 0 means no crossover. In the batch detection method, the matrix dimension is n×n, where n is the total number of rules to be tested; in the real-time detection method, the matrix dimension is 1×n, i.e., a row vector, where n is the total number of rules to be tested.
[0064] Coincidence Matrix O
[0065] This is a Boolean matrix. This matrix indicates whether the operation part of the rule to be tested coincides with other rules to be tested on a certain attribute. Each attribute used in the operation part of the rule to be tested has a corresponding coincidence matrix. The coincidence matrix O_j of the jth attribute is:
[0066]
[0067] The element o in this matrix kt Characterizes whether the operation part of rules k and t overlaps in the value of this attribute. kt =1 means overlap, o kt = 0 means no overlap. Since the matrix diagonal elements o 11to nn For the same rule, it is preset to 1. In the batch detection method, the matrix dimension is n×n, where n is the total number of rules to be tested; in the real-time detection method, the matrix dimension is 1×n, that is, a row vector, where n is the total number of rules to be tested.
[0068] Total coincidence matrix OF
[0069] This is a Boolean matrix. The matrix generally indicates whether the operations of the rules to be tested overlap or not. If the operations of the two rules are consistent, it will have no effect on the subsequent processing results; if they are inconsistent, and a piece of business data "hits" both rules at the same time, a conflict will occur, affecting the subsequent processing results.
[0070]
[0071] The element f in this matrix kt Indicates whether the operations of rules k and t are consistent. kt =1 means coincidence, f kt = 0 indicates inconsistency. In the batch detection method, the matrix dimension is n×n, where n is the total number of rules to be tested; in the real-time detection method, the matrix dimension is 1×n, i.e., a row vector, where n is the total number of rules to be tested.
[0072] Furthermore, the OF elements are negated to obtain the matrix OF', which also indicates whether the operations of the rules to be tested are consistent, but the meaning of the elements is adjusted to f kt =1 indicates inconsistency, f kt = 0 means consistent. OF' will be used in the final determination of whether the rules conflict.
[0073] Rule conflict matrix F
[0074] This matrix is used to indicate whether the rules to be tested are in conflict.
[0075]
[0076] Among the off-diagonal elements of F, F ik Indicates the conflict information between the i-th rule and the k-th rule, F ik =1 indicates conflict, F ik = 0 means no conflict. Therefore, based on the elements in F that have a value of 1 except for the diagonal, we can determine which rules have conflicts. 11 to f nn For the same rule, no detection is performed. In the batch detection method, the matrix dimension is n×n, where n is the total number of rules to be tested; in the real-time detection method, the matrix dimension is 1×n, that is, a row vector, where n is the total number of rules to be tested.
[0077] It should be noted that the execution subject of the following method embodiment may be an airport operation resource rule conflict detection device, which may be implemented as part or all of the terminal device through software, hardware, or a combination of software and hardware. The execution subject of the following method embodiment is described by taking a server as an example.
[0078] Figure 1 A flow chart of a method for detecting a conflict in airport operation resource rules provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0079] Step S101: determine a rule detection type according to a scenario where conflicts need to be detected. The detection type includes a batch detection type and a real-time detection type.
[0080] Step S102: Based on the detection type, obtain airport business rules.
[0081] Step S103: If the detection type is batch detection, a batch detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules.
[0082] Step S104: If the detection type is real-time detection, a real-time detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules.
[0083] Step S105: providing conflicting rule information to the user according to the conflicting rules.
[0084] Optional, such as Figure 2 As shown, when the rule detection type is a batch detection type, the above step S103 may include the following method steps:
[0085] Step S201: determine all attribute types of the premise part of the to-be-detected rule from the acquired airport business rules to obtain a first attribute set.
[0086] Specifically, the above airport business rules can be stored in a rule library, and the airport business rules can be obtained from the rule library, and all attribute types in the premise part of the to-be-detected rule can be determined from the obtained airport business rules. The attribute set is the first attribute set A.
[0087] It should be noted that the steps to determine the attribute set A used in the premise part of the rule to be tested are as follows:
[0088] Initially, A is an empty set;
[0089] For i=1...n, check the i-th rule (n is the total number of rules to be tested);
[0090] For j=1...t, attribute j is checked, (t=the total number of attributes used in the preconditions of rule i)
[0091] If there is no attribute j in A, add the attribute to A. Go to step 3;
[0092] Output set A;
[0093] Step S202: for each attribute in the first attribute set, a crossover determination algorithm is used to generate a crossover matrix of the attribute, so as to obtain a crossover matrix corresponding to each attribute in the first attribute set.
[0094] In this step, for each attribute j in the first attribute set A, a crossover determination algorithm may be used to generate a crossover matrix C_j of the attribute, thereby obtaining a crossover matrix C of each attribute in the first attribute set A.
[0095] like Figure 3 As shown, when the crossover determination algorithm is used to generate the crossover matrix C_j of the attribute, the steps are as follows:
[0096] Initialize the cross matrix C_j of attribute j. The matrix dimension is n×s. Since batch detection is performed, n and s are the total number of rules to be tested. The value of each element in the matrix is preset to 0;
[0097] For i=1...n, process the i-th rule (n is the total number of rules to be tested);
[0098] For k=1...n, and k≠i. Process rule i and the kth rule as follows;
[0099] If the value ranges of rules i and k on condition attribute j overlap (have the same value), set element Cik = 1. Go to step 3;
[0100] Output C_j.
[0101] Step S203: Use a matrix synthesis algorithm to process each cross matrix to obtain a total cross matrix.
[0102] Specifically, after performing the second step operation on each attribute j in the first attribute set A, a cross matrix C_j of all attributes is obtained, j=1...m, m is the total number of attributes in A, and a matrix synthesis algorithm is used to perform intersection processing on the cross matrices of each attribute to obtain a conflict matrix.
[0103] It should be noted that the process of the matrix synthesis algorithm is as follows:
[0104] Initialize the matrix R. The matrix dimension is n×s, where n and s are the total number of rules to be tested. The value of each element in the matrix is preset to 1;
[0105] For j=1...p, the j-th matrix M_j in M is processed as follows.
[0106] For i=1...n,k=1...s, perform the following processing.
[0107] Let the element R of R ik =R ik ×M_j ik ;
[0108] Output the processed matrix R.
[0109] It should be noted that due to the different input matrix types, the matrix output by the algorithm has different meanings. If the input submatrix set {M} = the cross matrix set, the output R is the total cross matrix CF. If the input submatrix set {M} = the coincidence matrix set, the output R is the total coincidence matrix OF. If the input submatrix set {M} = CF and OF', the output R is the conflict matrix F.
[0110] Step S204: determine all attribute types of the operation part of the to-be-detected rule from the acquired airport business rules to obtain a second attribute set.
[0111] Specifically, all attribute types in the rules to be detected and the operation part of the rules to be detected can be determined from the acquired airport business rules, and this attribute set is the second attribute set B.
[0112] The process of determining the second attribute set B is as follows:
[0113] Initially, B is an empty set;
[0114] For i=1...n, check the i-th rule (n is the total number of rules to be tested);
[0115] For j = 1...t, check attribute j, (t = the total number of attributes used in the condition of rule i)
[0116] If there is no attribute j in B, add the attribute to B. Go to step 3;
[0117] Output set B;
[0118] Step S205: For each attribute in the second attribute set, a coincidence determination algorithm is used to generate a coincidence matrix of the attribute, so as to obtain a coincidence matrix corresponding to each attribute in the second attribute set.
[0119] In this step, for each attribute j in the second attribute set B, a coincidence determination algorithm may be used to generate a coincidence matrix O_j of the attribute, thereby obtaining a coincidence matrix O of each attribute in the second attribute set B.
[0120] When the coincidence determination algorithm is used to generate the coincidence matrix O_j of the attribute, the steps are as follows:
[0121] Initialize the coincidence matrix O_j of the attribute j. The matrix dimension is n×s. n and s are the total number of rules to be tested. The value of each element in the matrix is preset to 1;
[0122] For i=1...n, process the i-th rule (n is the total number of rules to be tested);
[0123] For k=1...n, and k≠i. Process rule i and the kth rule as follows;
[0124] If the operation parts of rules i and k have different value ranges on attribute j, let element O ik =0. Go to step 3; output O_j.
[0125] Step S206: Use a matrix synthesis algorithm to process each coincidence matrix to obtain a total coincidence matrix.
[0126] The matrix synthesis algorithm is used to process each coincidence matrix O to obtain the total coincidence matrix OF; the matrix synthesis algorithm has been described in step S203, in which the input submatrix set {M} = coincidence matrix O set, and the output is the total coincidence matrix OF.
[0127] Step S207, invert each element in the total coincidence matrix to obtain an inverted total coincidence matrix.
[0128] In this step, each element in the overlap OF matrix is inverted to obtain the inverted total overlap matrix OF'. OF' also indicates whether the operations of the rules to be tested are consistent, but the meaning of the elements in the matrix is adjusted to f kt =1 indicates inconsistency and is used as input data in the next step.
[0129] Step S208: Using a matrix synthesis algorithm to determine the conflict matrix for the total cross matrix and the inverted total overlap matrix, and obtain conflicting rules.
[0130] In this step, a matrix synthesis algorithm is used to process CF and OF' to obtain a conflict matrix F. The matrix synthesis algorithm has been described in step S203. Its input submatrix set {M} == CF and OF', and the output R is the conflict matrix F. According to the above definition, among the non-diagonal elements in F, F ik Indicates the conflict information between the i-th rule and the k-th rule, F ik =1 indicates conflict, F ik = 0 means no conflict. Therefore, based on the elements in F with a value of 1 except the diagonal, we can determine which rules have conflicts.
[0131] Optionally, see Figure 4 When the rule detection type is a real-time detection type, the above step S104 may further include the following method steps:
[0132] Step S301: The obtained original airport business rules and the new rules after addition and modification are used as the rules to be tested, and all attribute types of the premise part of the rules to be tested are determined to obtain an attribute set A.
[0133] Specifically, when personnel add or modify a rule to the original airport business rules in the existing rule library (since deleting a rule does not cause a conflict, no inspection is required), the original airport business rules and the new rules after the addition or modification can be read to form a rule set to be tested, and all attribute types of the premise part of the rule set to be tested can be determined to form an attribute set A. This process is similar to the process of step S201 above and will not be repeated here.
[0134] Step S302: For each attribute j in the attribute set A, a crossover determination algorithm is used to generate a row vector of the attribute, and a crossover matrix or row vector C of each attribute in the attribute set A is obtained.
[0135] Step S303: Use a matrix synthesis algorithm to process each row vector C to obtain a total conflict matrix or a total row vector CF.
[0136] Step S304: Determine that the operation part of the rule to be tested uses all attribute types to form an attribute set B.
[0137] Step S305: For each attribute j of the attribute set B, use the coincidence determination algorithm to generate the coincidence matrix or row vector O_j of the attribute, and obtain the row vector O of each attribute of the operation part.
[0138] Step S306: Use a matrix synthesis algorithm to process each row vector O to obtain a total conflict matrix or a total row vector OF.
[0139] Step S307, invert each element in OF to obtain the inverted total row vector OF'.
[0140] Step S308: Use a matrix synthesis algorithm to process CF and OF' to obtain a row vector F and conflicting rules.
[0141] The above specific process may include the following steps:
[0142] In the first step, when a person adds or modifies a rule of a certain type in the existing rule base (no check is required because deleting a rule does not cause a conflict), the new rule and other original rules are read in sequence to form a test rule set. Determine all attribute types of the premise part of the rule to be tested to form attribute set A.
[0143] The second step is to use the crossover determination algorithm to generate the crossover matrix (row vector) C_j of each attribute j in the attribute set A; and then obtain the crossover matrix (row vector) C of each attribute in A.
[0144] The third step is to use the matrix synthesis algorithm to process each matrix (row vector) C to obtain the total cross matrix (row vector) CF;
[0145] Step 4: Read the set of rules to be tested. Determine that the operation part of the rule to be tested uses all attribute types to form attribute set B.
[0146] The fifth step is to use the coincidence determination algorithm to generate the coincidence matrix (row vector) O_j of each attribute j of B; and then obtain the coincidence matrix (row vector) O of each attribute of the operation part.
[0147] Step 6: Use the matrix synthesis algorithm to process each matrix (row vector) O to obtain the total coincidence matrix (row vector) OF;
[0148] Step 7. Invert each element in OF to get OF'.
[0149] Step 8: Use the matrix synthesis algorithm to process CF and OF', and use these two matrices as the input matrix of the matrix synthesis algorithm to obtain the conflict matrix (row vector) F. According to the elements in F with values = 1 except element 1, determine which original rules the new rule conflicts with.
[0150] It should be noted that the main feature of the above real-time monitoring method is that the processed data structure is a row vector, and the first element represents the new rule, and the 2nd to nth elements represent the existing rules. The remaining calculation methods and steps are similar to batch detection, so they will not be repeated here.
[0151] After obtaining the rule conflict matrix F through batch or real-time processing, a conflicting rule group can be generated according to a conflicting rule group retrieval method, and the conflicting rules can be prompted to the user through dialog boxes, lists and other visual methods. According to the prompt information, the user can modify the conflicting rules in a targeted manner to ensure that the correct rules are applied to various allocation and scheduling management scenarios including flight parking space allocation, pick-up carousel allocation, boarding gate allocation, special vehicle drivers, flight ground service personnel, etc.
[0152] The conflicting rule group retrieval method is as follows, where the input is the conflict matrix F and the output is the conflicting rule group:
[0153] Function_Conflict rule group retrieval (conflict matrix F) {
[0154] ① Initialize a blank conflict rule group G;
[0155] ②For i=1...n;
[0156] ③ Initialize the blank set T_i, T_i = {empty}; / / T_i is used to record the rules that conflict with rule i;
[0157] ④For k=1...m, and k=i+1;
[0158] ⑤If F ik =1, indicating that rules i and k conflict, add k to T, and get T = {k}
[0159] ⑥If the T_i set is not empty, add T_i to G.
[0160] ⑦Output G.
[0161] The system client reads the Ti in the conflicting rule group G in turn and gives the user corresponding information prompts. Note that in real-time detection, since F is a one-dimensional row vector of 1×m, the second step of this method will only execute one loop.
[0162] Example 1 Extraction of the dial allocation rule example
[0163] For example, the business scenario of baggage carousel allocation can be used as an example to explain in detail the conflict detection method for the acquired airport business rules.
[0164] In the arrival hall of an airport, there are usually dozens of baggage claim trays for incoming passengers to pick up their checked baggage. Every day, the airport needs to allocate claim carousels for hundreds or even thousands of incoming flights. When allocating, it is necessary to consider factors such as the airline, aircraft type, regional attributes, and mission of each flight. Correspondingly, airport personnel need to compile and maintain a large number of business rule records in the relevant management system. If the rule logic conflicts, it will directly interfere with the normal baggage claim work and have a significant adverse impact on passenger travel. Therefore, it is of great significance to maintain the logical correctness of the baggage carousel allocation rule base. Due to the large number of actual baggage claim carousel rules and complex considerations, the simplified schematic processing of the rules is explained as follows:
[0165] Assume that there are three rules as follows:
[0166]
[0167] For batch detection scenarios, the implementation steps for conflict batch detection are as follows:
[0168] The first step is to obtain the set of rules to be tested, determine all attribute types of the premise part of the rules to be tested, and form the first attribute set A. Initially, A = {empty set}; then check the attributes used in rule 1. Add "aircraft model", "airline" and "flight mission" to A in turn. A = {aircraft model, airline, flight mission}; and continue to check rule 2. Add "regional attribute" to A. A = {aircraft model, airline, flight mission, regional attribute}; then continue to check rule 3. The attributes used in rule 3 are already in A, and it is completed. So the output: A = {aircraft model, airline, regional attribute, flight mission};
[0169] In the second step, for each attribute j in the first attribute set A, the corresponding cross matrix C_j is generated using the cross decision algorithm; and then the cross matrix C of each attribute in A is obtained. Taking the cross matrix C_1 of the attribute "model" as an example, the matrix C_1 is initialized first, with a total of 3 rules and a matrix of 3×3.
[0170]
[0171] Then check rule 1. In terms of model conditions, the values of rule 1 and rule 2 intersect, but not rule 3. After updating the first row of C_1
[0172]
[0173] After checking rules 2 and 3, the cross matrix C_1 of "machine model" is obtained as
[0174]
[0175] Similarly, the "airline" cross matrix C_2 is
[0176] Similarly, the “regional attribute” cross matrix C_3 is. Among them, Rule 1 does not restrict the "region attribute", and the "region attribute" is a default sub-condition of the rule.
[0177] Similarly, the cross matrix C_4 of “flight mission” is
[0178] The third step is to use the matrix generation algorithm: perform intersection processing on C_1, C_2, C_3, and C_4 to obtain the total cross matrix CF: Matrix initialization, the value of each element in the matrix is preset to 1, there are 3 rules in total, and the matrix is 3×3.
[0179]
[0180] Then substitute C_1 and multiply it with each element in the same position of this matrix, and update the result to F, that is, R ik =Rik ×M_j ik The CF after processing is
[0181]
[0182] Continue to substitute C_2, C_3 and C_4 in turn to perform the same synthesis process, and finally obtain the completed CF.
[0183]
[0184] The fourth step is to read the set of rules to be detected, determine that the operation part of the rule to be detected uses all attribute types, and form an attribute set B. In this example, there is only one condition group for the operation, that is, B={turntable number}.
[0185] Step 5: For each attribute j of B, use the coincidence determination algorithm to generate the coincidence matrix O of each attribute. In this example, there is only the attribute "turntable number", and O_1 generated by the coincidence determination algorithm is
[0186] Initialize the matrix O_1 with 3 rules and a 3×3 matrix.
[0187]
[0188] Check rule 1, the assigned turntable number 1 does not overlap with rules 2 and 3, and the last two elements of the first row are still 0.
[0189]
[0190] Similarly, after checking rules 2 and 3 in turn, the "turntable number" matrix O_1 is obtained as
[0191]
[0192] Step 6: Use the matrix synthesis algorithm to process each matrix O and obtain the total overlap matrix OF. In this example, there is only one condition in the rule to be tested, so OF = O_1.
[0193]
[0194] The operational parts of the three rules are inconsistent.
[0195] Step 7: Invert each element in the OF matrix to get OF'.
[0196]
[0197] Step 8: Use the matrix synthesis algorithm to process CF and OF' to obtain the conflict matrix F. Determine the conflicting rules based on the elements with values 1 except the diagonal in F. Press R ik =Rik ×M_j ik After processing the elements in the same position of CF and OF', we finally get:
[0198]
[0199] Finally, the conflict matrix F is detected and processed according to the above processing method to obtain the conflict rule group, G = {{1,2}}. That is, rules 1 and 2 are in conflict. If the flight business data is processed according to the existing rules 1 and 2 in the application scenario, conflicts will occur. For example, domestic flights performed by Air China CA using the A350 will "hit" rules 1 and 2 at the same time, prompting airport personnel to modify the rules.
[0200] This embodiment can perform batch conflict detection on a rule set, especially after batch importing existing rules into the rule base, it can immediately remind airport personnel of the risk of conflict and clearly indicate the need to revise the rules, thereby ensuring the normal operation of actual business.
[0201] Furthermore, in the real-time detection scenario, based on the above baggage carousel allocation rule set, when the user adds another rule, 4: IF (aircraft model = Airbus A330 and regional attribute = international and flight mission = regular) THEN (allocate baggage carousel No. 1).
[0202]
[0203] The first step is consistent with the first step of batch detection and will not be repeated here. The attribute type set A = {aircraft model, airline, regional attribute, flight mission} is determined.
[0204] In the second step, for each attribute, a cross-determination algorithm is used to generate four 1×n overlapping matrices for the new rules, corresponding to the attributes "aircraft model", "airline", "regional attribute" and "flight mission". The operation of the cross-determination algorithm is the same as the aforementioned batch detection scenario, so it will not be repeated here.
[0205] c_1=(0 0 1 1), indicating that rule 4 overlaps with rules 2 and 3 in terms of the model sub-condition. Note that, according to the previous description, the first element of C_1 represents rule 4, and the same applies below.
[0206] c_2=(0 1 1 1), Rule 4 is a default condition on the attribute "airline", so Rule 4 overlaps with Rules 1, 2, and 3 on the airline condition.
[0207] c_3=(0 1 0 1), indicating that rule 4 overlaps with rules 1 and 3 in terms of regional attribute conditions.
[0208] c_4=(0 1 1 1), indicating that rule 4 intersects with rules 1, 2, and 3 in terms of flight mission conditions.
[0209] The third step is to use matrix generation algorithms C_1, C_2, C_3, and C_4 to obtain the total cross matrix CF: the initial total cross matrix CF = (1 1 1 1),
[0210] Substitute C_1 and multiply it with each element in the same position of this matrix, and update the result to F, which is R ik =R ik ×M_j ik After the processing is completed, CF is CF = (0 0 0 1).
[0211] Continue to do the same process for C_2, C_3 and C_4 to get the final total cross matrix. CF = (0 0 0 1)
[0212] Step 4: Read the set of rules to be tested. Determine that the operation part of the rule to be tested uses all attribute types to form an attribute set B. In this example, there is only one conditional group for the operation, namely B = {turntable number}.
[0213] Step 5. For each attribute j of B, use the coincidence determination algorithm to generate the coincidence matrix O of each attribute. In this example, there is only the attribute "turntable number". The O_1 generated by the coincidence determination algorithm is: The initialization matrix O_1 is a one-dimensional row vector. As mentioned above, the first element represents the coincidence of rule 4 with itself.
[0214] o_1=(1 0 0 0)
[0215] Then check rule 1. Since both rules 1 and 4 use turntable No. 1, the second element should be 1.
[0216] o_1=(1 1 0 0)
[0217] Similarly, we check rules 2 and 3 in turn. Since the turntable used is different from that used in rule 4, the result is still 0. The “turntable number” matrix O_1 is obtained as
[0218] o_1=(1 1 0 0)
[0219] Step 6: Use the matrix synthesis algorithm to process each matrix O and obtain the total overlap matrix OF. In this example, the rule to be tested has only one condition, so O_1 is OF. That is,
[0220] OF=(1 1 0 0)
[0221] Step 7: Invert each element in the OF matrix to get OF'.
[0222] OF'=(0 0 1 1)
[0223] Step 8: Use matrix synthesis algorithm to process CF and OF' to obtain conflict matrix F.
[0224] F=(0 0 0 1)
[0225] Finally, according to the above processing method, F is retrieved and processed to obtain the conflicting rule group G of this example, G = {{4,3}}. That is, the new rule 1 conflicts with the original rule 3. Correspondingly, if a new rule 4 is added in the application scenario and flight data is introduced for plate allocation, an example of a conflict may occur: when China Southern Airlines CZ uses the A330 model to perform carousel allocation for international flights, it is impossible to determine whether to allocate baggage carousel No. 1 or baggage carousel No. 3.
[0226] This embodiment can perform real-time detection after a person adds or modifies a rule, thereby immediately notifying airport personnel of the risk of conflict, thereby ensuring that business requirements can be correctly executed.
[0227] Example 2: Configuring Check-in Counter Allocation Template Rules
[0228] Exemplarily, the check-in counter allocation template rules actually used in an airport are introduced as an object to illustrate the conflict detection method.
[0229] The check-in counter allocation template rule is used to control the check-in counter allocation of outbound flights. Based on "airline", "flight number", "aviation domestic and international attributes", "allocation mode" and "agent", each outbound flight is assigned a designated check-in counter and check-in island. According to the rule definition described in the present invention, the check-in counter allocation template rule structure is: premise (airline condition and flight number condition and aviation international and domestic attribute condition and allocation mode condition and agent condition) + operation allocation (check-in island, counter). Every day, the airport needs to allocate check-in counters for hundreds or even thousands of outbound flights. If there is a conflict in the rule logic, it will directly interfere with the normal baggage collection work, causing obvious adverse effects on passengers' travel.
[0230] The rule record in the allocation system can be as follows Figure 5 As shown, first, the current inspection scenario is assumed to be batch inspection. The user clicks the "batch rule inspection" button on the rule interface to start the system background program using the content of the present invention to perform batch inspection on the above rule records.
[0231] The specific steps of backend batch detection are as follows:
[0232] The first step is to read the above rule set. Determine all attribute types of the premise part of the rule to be tested to form an attribute set A. In this example, A = {airline, flight number, international and domestic attributes of aviation, allocation mode, agent}.
[0233] The second step is to use the cross decision algorithm to generate the cross matrix C_j of each attribute j in the attribute set A, and then obtain the cross matrix C of each attribute in A. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0234] The third step is to use the matrix synthesis algorithm to process each matrix C to obtain the total cross matrix CF. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0235] Step 4: Read the set of rules to be tested. Determine the operation part of the rule to be tested using all attribute types to form attribute set B. In this example, B = {check-in island, counter}
[0236] Step 5: For each attribute j of B, use the coincidence determination algorithm to generate the coincidence matrix O_j of the attribute; then obtain the coincidence matrix O of each attribute of the operation part. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0237] In the sixth step, each matrix O is processed using a matrix synthesis algorithm to obtain a total overlap matrix OF. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0238] Step 7: Invert each element in the OF matrix to get OF'. Since the result of this operation is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0239] Step 8: Use matrix synthesis algorithm to process CF and OF' to get conflict matrix F. According to the elements of F with value = 1 except the diagonal, determine the conflicting rules; since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here. However, through careful comparison, it can be found that the following two rules have intersections in the premise part (intersection in the flight number condition), and the conditions in the operation part are not completely consistent (the counters with consistent allocation are only J01, J02, J11, and J12).
[0240]
[0241] Therefore, the background batch check result is: the rules with IDs 17012792 and 17012793 conflict. Finally, according to the invention content, the data is fed back to the system front end and provided to the user in a dialog box for subsequent correction. The dialog box prompts the following content: Figure 6 shown.
[0242] Furthermore, the current inspection scenario is set to real-time detection. The user clicks the "Add Rule" button on the rule interface and enters a new rule in the pop-up add dialog box. The content rule is as follows: Figure 7 as shown.
[0243] Then click the "Save" button, the data is sent to the back end, and the system background program using the content of the present invention is started to perform real-time detection.
[0244] The specific steps of backend batch detection are as follows:
[0245] The first step is to read the new rules and the aforementioned existing rule records in order to form a test rule set. Determine all attribute types of the premise part of the rule to be tested to form an attribute set A. In this example, A = {airline, flight number, international and domestic attributes of aviation, allocation mode, agent}.
[0246] The second step is to use the crossover determination algorithm to generate the crossover matrix (row vector) C_j of each attribute j in the attribute set A, and then obtain the crossover matrix (row vector) (row vector) C of each attribute in A. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0247] The third step is to use the matrix synthesis algorithm to process each matrix (row vector) C to obtain the total cross matrix (row vector) CF; since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0248] Step 4: Read the set of rules to be tested. Determine the operation part of the rule to be tested using all attribute types to form attribute set B. In this example, B = {check-in island, counter}
[0249] Step 5: For each attribute j of B, use the coincidence determination algorithm to generate the coincidence matrix (row vector) O_j of the attribute; then obtain the coincidence matrix (row vector) O of each attribute of the operation part. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0250] In the sixth step, each matrix (row vector) O is processed using a matrix synthesis algorithm to obtain a total overlap matrix (row vector) OF. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0251] Step 7: Invert each element in OF to get OF'. Since the result of this operation is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here.
[0252] In the eighth step, the matrix synthesis algorithm is used to process CF and OF' to obtain the conflict matrix (row vector) F. Since the operation result is stored in the system memory and is large in scale, as an intermediate step, the processing result is not shown here. However, through careful comparison, it can be found that the new rule and the following existing rules have intersections in the premise part (the flight number condition has an intersection), and the conditions in the operation part are not completely consistent (the only counter with the same allocation is M30).
[0253] 15077241 GA 899,098 internationality Open Airport M30-M33
[0254] Therefore, the background batch check result is: the rule with ID 15077241 conflicts with the current new rule. Finally, according to the invention content, the data is fed back to the system front end and provided to the user through a dialog box for subsequent correction. The dialog box prompt method is as follows Figure 8 shown.
[0255] Example 3: Detection and application of dynamic usage restriction rules based on aircraft seats
[0256] For example, taking the dynamic restriction rules for parking space usage as an example, the complete application process from business requirements and rule models, rule structure design, compilation, conflict detection to using rules to complete allocation illustrates the benefits that a system with conflict detection capabilities can bring.
[0257] First, let's explain the first point: business requirements and rule models. In conventional stand allocation, the constraints of a single stand on the flights that can be parked are considered. These constraints include the size of the parked aircraft, the airline cluster served, the flight missions and flight attributes performed by the parked flights, etc. Different stands generally have different restrictions. Since stands restricted by type will not be affected by the allocation and use of other stands, they are also called static restrictions, and in the corresponding stand allocation model they are also called static constraint rules.
[0258] With the increasing requirements for airport operation and the increasing demand for parking spaces by airlines, static constraint rules can no longer meet the operational requirements, and more rule models have been proposed and applied to airport production. Among them, the dynamic restriction rule for parking space use is the most important part. The demand scenario responded by this rule is that when allocating a space for a flight, due to the influence of the real-time allocation of adjacent spaces (including parking space design, aircraft safety spacing, ground support and other factors), specific limiting conditions must be met before allocation can be made. If these restrictions are not considered, unsafe incidents such as aircraft collisions may occur. Since this restriction needs to consider the real-time use of multiple spaces, it is called a dynamic constraint in the space allocation model. Furthermore, according to different scenarios of restricted business, dynamic constraints can be divided into: multi-space capacity reduction restriction constraints, multi-space use timing restriction constraints, entry and exit restriction constraints and multi-space special flight parking restriction constraints.
[0259] In view of the above dynamic constraints, the first step is to propose a model design, and the second step is to design a rule structure. The dynamic parking stand usage restriction model constructed in this embodiment includes: a multi-stand capacity reduction restriction model, a multi-stand usage timing restriction model, an entry and exit restriction model, and a multi-stand special flight parking restriction model according to business application scenarios.
[0260] First, each model is described:
[0261] It should be noted that the multi-aircraft stand capacity reduction restriction model is a subtype of the dynamic restriction model for parking stands. The demand scenario of this model is: when two or more stands are used to park flights at the same time, the types of aircraft that can be accommodated by each stand change due to mutual influence. For example, in the initial aircraft type constraint, stands 101, 102, 103, and 104 can all park large, medium, and small aircraft. Due to ground support requirements, when stands 101 and 103 are used to park large aircraft, stands 102 and 104 can only park medium and small aircraft.
[0262] The multi-seat capacity reduction constraint model includes the following constraints:
[0263] i∈sub type (F(k)) and j∈sub type (F(l)), if x ik ·xj l =1,
[0264] Among them, sub type (F(k)) represents the set of flights that can be parked after the capacity of the k-stand aircraft type changes dynamically, sub type (F(l)) represents the set of flights that can be parked after the capacity of aircraft type l changes dynamically, x ik ·x jl =1, It means that when flights i and j park at stands K and l, flights i and j should be in the set of flights allowed to park at the corresponding stands, S represents the set of stands participating in the allocation, and F represents the set of flights participating in the allocation.
[0265] It should be noted that the multi-aircraft stand usage timing restriction model is a subtype of the parking stand usage dynamic restriction model. The demand scenario of this model is: due to reasons such as the design of the aircraft stands or taxi paths, some aircraft stand groups need to park flights in a specific order. For example, in large and busy airports with tight parking stand resources, temporary parking stands will be opened to meet the flight parking needs. These stands must strictly arrange flight parking in the order of use. This type of restriction can generally be divided into three categories: sequential restrictions on parking start time, parking end time, and sequential restrictions on parking start-end time. Among them, the sequential restrictions based on the parking start-end time can be divided into the need to park flights on these stands in the order of first-in, first-out, and the need to arrange the stands in the order of first-in, last-out.
[0266] The multi-camera timing constraint model includes the following constraints:
[0267] a j >a i And (a j -a i )(d i -d j )·x ik ·x jl >1,
[0268] a j >a i And (a j -a i )(d j -d i )·x ik ·x jl >1,
[0269] Among them, (a j -a i )(d i -d j )·x ik ·x jl >1 means that when flight i is parked at stand k and flight j is parked at stand l, flight i needs to enter the stand earlier and leave later than flight j, (a j -a i )(d j -d i )·x ik ·x jl >1 means flight i needs to enter the gate earlier and leave earlier than flight j, a i represents the start time of flight i occupying the seat, a j represents the start time of flight j occupying the seat, d irepresents the end time of flight i occupying the aircraft slot, dj represents the end time of flight i occupying the aircraft slot, S represents the set of aircraft slots participating in the allocation, and F represents the set of flights participating in the allocation.
[0270] It should be noted that the entry and pushback restriction model is a subtype of the dynamic restriction model for parking stands. The demand scenario of this model is: when flights with the same or similar arrival and departure times are assigned to stands that need to use the same taxiway, in order to improve flight punctuality and stand operation efficiency, more and more airports have begun to pay attention to the problems of invalid flight waiting and stand occupancy caused by entry and pushback overlap. It often happens that incoming flights occupy taxiways waiting for outgoing flights to be pushed back, and outgoing flights occupy stands waiting for another outgoing flight that is being pushed back. Avoiding the assignment of flights with similar times to the same taxiway overlapping stand area is of great significance to improving the safety level of apron operations under adverse conditions such as rain, snow, and fog.
[0271] The entry and exit restriction model includes the following constraints:
[0272] |a i -a j |·x ik ·x jl >w ka,la ,
[0273] |a i -d j |·x ik ·x jl >w ka,ld ,
[0274] |d i -d j |·x ik ·x jl >w kd,ld ,
[0275] Among them, |a i -a j |·x ik ·x jl >w ka,la It means that when flight i is parked at stand k and flight j is parked at stand l, the difference in entry time between flights i and j is greater than interval w ka,la ;w ka,la represents the minimum interval time when two flights enter parking positions k and l respectively; |a i -d j |·x ik ·x jl >w ka,ldIt means that when flight i is parked at stand k and flight j is parked at stand l, the interpolated entry and exit times of flights i and j are greater than w ka,ld ;w ka,ld It represents the minimum time interval between two flights entering and leaving the parking positions k and l;
[0276] |d i -d j |·x ik ·x jl >w kd,ld It means that when flight i is parked at stand k and flight j is parked at stand l, the interpolated push-out time of flights i and j is greater than w kd,ld ;w kd,ld It represents the minimum interval time when two flights are pushed out of parking positions k and l respectively; It means that when flights i and j park at stands K and l, flights i and j should be in the set of flights allowed to park at the corresponding stands, S represents the set of stands participating in the allocation, and F represents the set of flights participating in the allocation.
[0277] It should be noted that the multi-stand special flight parking restriction model is a subtype of the dynamic restriction model for the use of parking stands. The demand scenario of this model is: due to special reasons such as security requirements, airline clusters, and flights in epidemic areas, a specific flight will affect the flights that can be parked at adjacent stands after it is parked at a certain stand. For example, although stands 101, 102, and 103 can both park domestic and international flights in the constraint conditions, when stand 102 is parked with an international flight, the adjacent stands 101 and 103 can only park international flights.
[0278] The multi-aircraft special flight parking restriction model includes the following constraints:
[0279] i∈sub flt (F(k)) and j∈sub flt (F(l)), if x ik ·x jl =1,
[0280] Among them, sub flt (F(k)) represents the set of flights that can be parked after the flight type of k-stand changes dynamically, sub flt (F(l)) represents the set of flights that can be parked after the flight type of the l-th stand changes dynamically, x ik ·x jl =1, It means that when flights i and j park at stands K and l, flights i and j should be in the set of flights allowed to park at the corresponding stands, S represents the set of stands participating in the allocation, and F represents the set of flights participating in the allocation.
[0281] Let's introduce the second point: rule structure design. Based on the above model, the structural design of the corresponding dynamic limitation rule is given in this embodiment. The dynamic limitation rule indicates the limitation conditions of each affected stand for the parkable flights when the main stand is used to park flights with specific conditions. The rule may include main stand limitation constraints, restricted stand limitation constraints and limitation type constraints, wherein the main stand limitation constraints include a main stand set and a main stand limitation condition, and the restricted stand limitation constraints include a restricted stand set, a restricted stand limitation condition and an affected time period, and the affected time period includes a restricted arrival section, a restricted arrival time interval, a restricted departure section and a restricted departure time interval.
[0282] Among them, the main stand set represents a specific stand that imposes dynamic restrictions on other stands. It consists of one or more stands, such as stands 101-110; the main stand restriction condition will have a limited impact on the flight type of other stands, which is composed of a series of conditions, such as the aircraft model B737; the restricted stand set represents the affected stands, which consists of one or more stands, such as stands 202-205; the restricted stand restriction condition indicates the type of flight that can only be parked at the restricted stand, which is composed of a series of conditions, such as the aircraft model A320; the arrival section restriction indicates whether it affects the outbound flights, such as Y / N; the arrival restricted time interval indicates the time range in which the restriction rule takes effect for the inbound flights parked at the restricted stand, and its effective range is after the left boundary and before the right boundary. The range takes the arrival time of the flight at the main stand as the reference point, and adds the time added before and after. When the time amount is a positive number, it indicates a delay after the base time point; when it is a negative number, it indicates an advance to the base time point. If the right boundary is empty, it indicates that it lasts until the time when the flight at the host position leaves the position; if the left boundary is empty, it indicates that it lasts until the flight before the host position leaves the position, for example, [10,5], where the time unit is minutes; the departure segment restriction indicates whether it affects the departure flight, for example, Y / N; the departure restricted time interval indicates the time range in which this restriction rule takes effect for the departure flight of the flight parked at the restricted position. Its effective range is after the left boundary and before the right boundary. The range takes the arrival time of the flight at the host position as the base point, and adds the time amount before and after. When the time amount is a positive number, it indicates a delay after the base time point; when it is a negative number, it indicates an advance to the base time point. If the left boundary is empty, it indicates that it lasts until the time when the flight at the host position arrives at the position; if the right boundary is empty, it indicates that it lasts until the next flight parked at the host position arrives, for example, [,5], where the time unit is minutes.
[0283] Furthermore, the dynamic limitation rule can be applied to any of the above-mentioned dynamic restriction models for parking stand use, such as: a multi-aircraft stand capacity reduction restriction model, a multi-aircraft stand use timing restriction model, an entry and exit restriction model, and a multi-aircraft stand special flight parking restriction model.
[0284] For example, when a dynamic definition rule is used for a multi-seat capacity reduction model, for example:
[0285]
[0286] Among them, this rule example indicates that when the B747 model is parked at stands 201 and 202, the restricted stand 203 can only park the B737 model aircraft, and the stand 204 can only park the A320 model aircraft. If the arrival segment is restricted to Y, it means that the arrival segment flight will be affected, and the arrival restricted time interval [0,] means that the affected time period is [after the arrival time of the host stand flight + 0, before the departure time of the host stand flight]; if the departure segment is restricted to Y, it means that the departure segment flight will be affected, and the departure restricted time interval [,0] means that the affected time period is [after the arrival time of the host stand flight, before the departure time of the host stand flight + 0]. The type field is C dyn_type Indicates that this rule is for multi-seat capacity reduction restrictions.
[0287] When using dynamic qualifier rules with a timing qualifier model for multiple cameras, for example:
[0288]
[0289]
[0290] This example is a first-in-first-out (FIFO) scenario, where C1 means that when flight A is parked at stand 201, the flights parked at stands 202 and 203 must enter the corresponding stand 5 minutes after flight A arrives, and can leave the stand 5 minutes after flight A leaves. In the rule, the main stand restriction condition and the restricted stand restriction condition are empty, indicating that restrictions are imposed on all flights that can park at the corresponding stands.
[0291] The arrival segment is restricted to Y, indicating that the arrival segment flight will be affected. The arrival restricted time interval [5,] indicates that the affected time period is [the arrival time of the host stand flight + 5 minutes later, before the departure time of the host stand flight]. The departure segment is restricted to Y, indicating that the departure segment flight will be affected. The departure restricted time interval [5,] indicates that the affected time period is [the departure time of the host stand flight + 5 minutes later, before the arrival of the next flight parking at the host stand]. The type field is C dyn_order Indicates that this rule is a rule for timing constraints for multiple cameras.
[0292] When using dynamic qualification rules for the entry and exit restriction model, for example:
[0293] ID Host bit set Hosting restrictions Restricted Seat Condition Group ID type C4 201 {S5, S6} <![CDATA[C dyn_taxi <!-- 19 -->]]> C5 202 {S4, S6} <![CDATA[C dyn_taxi ]]> C6 203 {S4, S5} <![CDATA[C dyn_taxi ]]>
[0294]
[0295] This example consists of three rules, C4, C5, and C6, which indicate that there are taxiway pushback restrictions for stands 201-203, and that flights on any stand must leave the stand 10 minutes apart. The main stand restriction and restricted stand restriction conditions of each rule are empty, indicating that restrictions are imposed on all flights that can park at the corresponding stands.
[0296] In the restricted stand condition group, the arrival segment restriction of each rule is N, which means that the arrival segment of the flight parked at the restricted stand is not affected. The departure segment restriction is Y, which means that the departure segment of the flight parked at the restricted stand will be affected. The departure restricted time interval [10, -10] means that the affected time period is [the departure time of the main stand flight + 10 minutes later, the departure time of the main stand flight - 10 minutes before]. The type field is C dyn_taxi Indicates that this rule is a rule for entry and exit restrictions.
[0297] When using dynamic restriction rules for multi-aircraft special flight parking restriction models, for example:
[0298]
[0299]
[0300] This example indicates that when international flights of ET and EY airlines are parked at stands 201 to 210, the restricted stands specified by rules S7 and S8 can only park specific flights of the specified airlines. The restricted time interval is similar to the aforementioned capacity rule, indicating that during the entire main stand flight parking time period, flights parked at the restricted stands will be affected by this rule. The type field is C dyn_flight Indicates that this rule is for parking restrictions on special flights with multiple aircraft stands.
[0301] In this embodiment, the dynamic restriction module for parking stands is optimized by using dynamic restriction rules, thereby meeting the refined allocation requirements of the airport. Among them, the flight influencing conditions are divided separately according to the arrival and departure sections, which can handle the parking stand allocation problems in different scenarios such as departures with special dynamic restrictions for arrival flights or departure flights.
[0302] When allocating seats for each flight, we will check whether the available seats meet the static constraints such as aircraft type, flight attributes, flight mission, etc. base , while avoiding time overlap conflicts time , thereby avoiding allocating seats that violate dynamic restrictions to flights and preventing dynamic overlap conflicts dyn Occurrence of conflict, where time overlap timeIt is an incorrect allocation result, which refers to the overlap caused by allocating two or more flights with overlapping entry and exit times to the same stand, that is, the same stand is allocated to multiple flights at the same time. The stand allocation result should avoid such overlap. dyn It is an incorrect allocation result, which refers to the allocation overlap caused when the seats allocated to a flight do not meet the dynamic restriction requirements of multiple seats. The seat allocation result should avoid such overlap.
[0303] Then we introduce the third point: rule compilation. In combination with the requirements of the stand management business, based on the above rule design, we develop the corresponding rule compilation system function. Due to the large number of rules, this section will display the rules for reducing the capacity of multiple stands and the rules for limiting the timing of stand use. Fig. 9 The interface picture shows an example of the rule interface for multi-camera capacity reduction. Fig.10 The interface diagram is a schematic diagram of the interface compiled using timing limitation rules.
[0304] Then, the fourth point is introduced: conflict detection. After completing the rule entry in the previous step, the compiled rules are subjected to conflict detection according to the content of the present invention. Now, the batch detection scenario is introduced. Continuing with the previous example, the rules for reducing the capacity of multiple cameras and the rules for limiting the timing of camera usage are detected respectively.
[0305] For the multi-camera capacity reduction rule, the user can click the "Batch Rule Detection" button in the rule interface to start the system background batch detection program to perform batch detection on this type of rule records. The specific steps of the background detection are the same as above and will not be repeated here. Fig.11 To mark conflicting rule records:
[0306] Rules 13 and 17012796 have the same premise, but the restricted positions and models in the operation section are inconsistent, so there is a conflict. Rules 1 and 17012797 have overlapping model conditions in the premise, so there is a conflict.
[0307] Finally, according to the invention, the data of the conflict rule group is fed back to the system front end and provided to the user in a dialog box for subsequent correction. Fig.12 A diagram of a dialog prompt.
[0308] Similarly, for the camera position timing restriction rule, the user clicks the "Batch Rule Detection" button in the rule interface to start the system background batch detection program to perform batch detection on this type of rule records. The specific steps of the background detection are the same as above and will not be repeated. For demonstration purposes, Fig.13 To mark conflicting rule records:
[0309] Rules 17012798 and 872334 have the same premise, but the restricted positions and models in the operation section are inconsistent, resulting in conflicts.
[0310] Finally, according to the invention, the data of the conflict rule group is fed back to the system front end and provided to the user in a dialog box for subsequent correction. Fig.14 A diagram of a dialog prompt.
[0311] Next, let’s talk about the fifth point: rule-based seat allocation. Fig.15 shown.
[0312] Further, it is determined whether each seat s can be allocated to flight i according to a certain type of dynamic restriction rule, wherein the rule is applicable to any of the following types: C dyn_type , C dyn_order , C dyn_taxi , C dyn_flight ,like Fig.15 As shown, the method comprises the following steps:
[0313] Step S501: Start checking the camera position s.
[0314] Step S502: Start checking the rth rule of this type until the last rule.
[0315] Step S503: determine whether there is s in the restricted seats of rule r.
[0316] Step S504: If not, execute the r+1th rule and return to step S301 to check the next rule.
[0317] Step S505: If yes, determine in the assigned flight record table_assigned whether there is a flight assigned to the host set of rule r and meets the host position condition.
[0318] Step S506: If it does not exist, execute the r+1th rule and return to step S301 to check the next rule.
[0319] Step S507: If yes, determine whether flight i meets the restricted conditions of rule r.
[0320] Step S508: If the restricted condition is met, the stand s can be allocated to the flight i.
[0321] Step S509: If the restricted condition is not met, the stand s cannot be allocated to the flight i.
[0322] In this embodiment, when performing dynamic limit check, the set of seats to be allocated F is first read, and the seat data S participating in the allocation is determined therefrom, and the C in the system rule base is determined.base Then for each flight i, check whether each parking space k allows it to park, so as to determine the maximum available parking space set S for the flight. max_i , and sort the flight set F according to specific rules, starting with allocating seats to the i-th flight until all flights are processed.
[0323] When allocating seats for the i-th flight, first determine the assigned flight record table_assigned, and combine the assigned flight record table_assigned to find the maximum available seat set S for flight i. max_i Remove the seats with overlapping time and confirm that all dynamic limiting rules in the rule base are used. dyn , execute the dynamic limit check algorithm, remove the seats with dynamic overlap, and obtain the dynamic available seat set S dyn_i , and select the dynamically available seats from the set S according to a certain strategy dyn_i Select a seat to be allocated to the flight i.
[0324] Furthermore, the allocation result may be updated to the flight record, and the same operation may be performed on each flight in sequence according to the order of the flights in the flight set F until all flights in the flight set F are allocated.
[0325] For example, 198 parking stands at a large and busy domestic airport are selected to calculate the parking stand allocation for 1,124 flights on a certain day. The flight data is shown in the following table. This attribute displays the attribute information of each flight, including the airline and aircraft type.
[0326]
[0327]
[0328] The dynamic restriction rules are shown in the following table:
[0329] ID Host bit set Hosting restrictions Restricted Seat Condition Group ID type C1 101 Model = {738,73H,73W} {S1} <![CDATA[C dyn_type ]]> C2 210 {S2} <![CDATA[C dyn_order ]]> C3 201 {S4, S5} <![CDATA[C dyn_taxi ]]> C4 202 {S3, S5} <![CDATA[C dyn_taxi ]]> C5 203 {S3, S4} <![CDATA[C dyn_taxi ]]> C6 108 Airline = {CA} {C6} <![CDATA[C dyn_flight ]]> C7 50,54,55 Flight = {ET703,ET705} {C7} <![CDATA[C dyn_flight ]]>
[0330]
[0331] Assume that during the seat allocation process, the seat allocation for flights 1 to 4 has been completed, and the allocation record table_assigned has the following information:
[0332]
[0333]
[0334] Now it is necessary to allocate seats for the 5th flight. The flight information of the 5th flight is:
[0335]
[0336] Assume that the maximum available slot set S for this flight max_5 ={102-107,109-110,202-209}, according to the rules in this embodiment, first reduce the capacity of multiple cameras C dyn_type Class, S max_5 Among them, stands 102-104 are restricted stands in rule 1, and stand 101, which has been allocated to flight 1719, belongs to the main stand set of the rule, and the aircraft type 738 of the flight is within the main stand restriction condition. Checking the restricted stand restriction condition, there is no 333 aircraft type allowed, so stands 102-104 cannot be allocated to flight 9307. Therefore, stands 102-104 are removed from the available stand set.
[0337] Furthermore, for multi-camera timing constraints C dyn_order Class, S max_5 Stand 209 is a restricted stand under Rule 2. Stand 210, which has been allocated to flight 9222, belongs to the main stand set of this rule. The restricted arrival and departure time of the flight parked at stand 209 should be 10 minutes later than that of flight 9222. However, the arrival time of flight 9307 is only 4 minutes later than that of flight 9222, which does not meet the requirement. Therefore, stand 209 cannot be allocated to flight 9307. Remove stand 209 from the available stands.
[0338] Furthermore, restrictions on entry C are introduced dyn_taxi Class, S max_5 The 202-203 stands are restricted stands in Rule 6. The parking stand 108 allocated to flight 2807 belongs to the main stand set of this rule. The restricted departure time of the flight parked at stands 202-203 should be 10 minutes later or 10 minutes earlier than the departure time of flight 2807. However, the departure time of flight 9307 is only 6 minutes later than that of flight 9222, which does not meet the requirement. Therefore, stands 202-203 cannot be allocated to flight 9307. Remove stands 202-203 from the available stands set.
[0339] Furthermore, for special flights with multiple stands, parking C dyn_flight Class, S max_5 The parking positions 109-110 are restricted positions in rule 6. The parking position 108 allocated to flight 3368 belongs to the host position set of this rule, and the airline CA of this flight is within the host position restriction condition. It is checked that there is no allowed airline FM in the restricted position restriction condition, which does not meet the requirements. Therefore, the parking positions 109-110 cannot be allocated to flight 9307. Remove 109-110 from the available position set.
[0340] After the above operations, we get the dynamic available slot set S of flight i for the 5th flight. dyn_5={105,106,107,204-208}. Then, a seat is selected from this set and allocated to the flight according to a certain strategy.
[0341] The actual distribution test results of the above methods are compared as follows:
[0342] In the Windows Server 2012 environment using Xeon E5-2620 and 16G memory, the automatic seat allocation calculation is performed according to steps 1-5 of this example, and the average value of the proportion of flights that violate the dynamic usage limit is calculated by the original algorithm, and the following statistical data is obtained:
[0343]
[0344]
[0345] The above data show that the allocation results effectively avoid violations of dynamic aircraft usage restrictions and do not cause incorrect overlaps due to logical conflicts in rules.
[0346] This embodiment effectively solves the problem of dynamic conflicts that exist when multiple stands are used by multiple flights in parking stand allocation by setting dynamic limitation rules, avoids the occurrence of unsafe accidents such as aircraft collisions caused by unreasonable allocation, and avoids allocating stands that violate dynamic restrictions to flights through dynamic limitation inspection rules, prevents the occurrence of dynamic conflicts, ensures the safe operation of the apron, and further improves the efficiency of parking stand utilization.
[0347] Fig.16 The schematic diagram of the structure of the airport operation resource rule conflict detection device provided by the embodiment of the present invention. Fig.16 As shown, the device can be implemented as Figure 1 The method shown, the apparatus may include:
[0348] A first determination module 10 is used to determine a rule detection type according to a demand scenario where a conflict needs to be detected, where the detection type includes a batch detection type and a real-time detection type;
[0349] An acquisition module 20, configured to acquire airport business rules based on the detection type;
[0350] A second determination module 30 is used to perform conflict detection on the acquired business rules using a batch detection method to determine conflicting rules if the detection type is batch detection;
[0351] A third determination module 40 is used to, if the detection type is real-time detection, use a real-time detection method to perform conflict detection on the acquired business rules to determine conflicting rules;
[0352] The presentation module 50 is used to provide conflicting rule information to the user according to the conflicting rules.
[0353] Optionally, the second determining module 30 is specifically configured to:
[0354] Determine all attribute types of the premise part of the to-be-detected rule from the acquired airport business rules to obtain a first attribute set;
[0355] For each attribute in the first attribute set, a crossover determination algorithm is used to generate a crossover matrix of the attribute, so as to obtain a crossover matrix corresponding to each attribute in the first attribute set;
[0356] Using a matrix synthesis algorithm to process each cross matrix to obtain a total cross matrix;
[0357] Determine all attribute types of the operation part of the to-be-detected rule from the acquired airport business rules to obtain a second attribute set;
[0358] For each attribute in the second attribute set, a coincidence determination algorithm is used to generate a coincidence matrix of the attribute, so as to obtain a coincidence matrix corresponding to each attribute in the second attribute set;
[0359] Using a matrix synthesis algorithm to process the coincidence matrices to obtain a total coincidence matrix;
[0360] Inverting each element in the total coincidence matrix to obtain an inverted total coincidence matrix;
[0361] The total cross matrix and the inverted total overlap matrix are processed by using a matrix synthesis algorithm to determine a conflict matrix and obtain conflicting rules.
[0362] Optionally, the third determining module 40 is specifically configured to:
[0363] The original airport business rules and the new rules after addition and modification are used as the rules to be tested, and all attribute types of the premise part of the rules to be tested are determined to obtain an attribute set A;
[0364] For each attribute j in the attribute set A, the row vector of the attribute is generated using the cross decision algorithm to obtain the row vector C of each attribute in the attribute set A;
[0365] The matrix synthesis algorithm is used to process each row vector C to obtain the total row vector CF;
[0366] Determine that the operation part of the rule to be tested uses all attribute types to form an attribute set B;
[0367] For each attribute j of the attribute set B, use the coincidence determination algorithm to generate the row vector O_j of the attribute, and obtain the row vector O of each attribute in the operation part;
[0368] The matrix synthesis algorithm is used to process each row vector O to obtain the total row vector OF;
[0369] Invert each element in the total row vector OF to obtain the inverted total row vector OF';
[0370] The matrix synthesis algorithm is used to process CF and OF' to obtain the row vector F and the conflicting rules.
[0371] Optionally, the second determining module 30 is specifically configured to:
[0372] Initialize the cross matrix of the attribute, set each element in the cross matrix to 0, the dimension of the cross matrix is n×s, and n and s are the total number of rules to be detected;
[0373] According to whether the value ranges of the i-th rule and the k-th rule on the conditional attribute intersect, the i-th rule and the k-th rule are processed to obtain the intersection matrix corresponding to each attribute.
[0374] Optionally, the second determining module 30 is specifically configured to:
[0375] Initialize the overlap matrix of the attribute, set each element in the cross matrix to 1, the dimension of the cross matrix is n×s, and n and s are the total number of rules to be detected;
[0376] According to whether the value ranges of the i-th rule and the k-th rule on the conditional attributes are the same, the i-th rule and the k-th rule are processed to obtain the coincidence matrix corresponding to each attribute.
[0377] Optionally, the second determining module 30 is specifically configured to:
[0378] Determine a submatrix set based on the total cross matrix and the negated total coincidence matrix;
[0379] Using a matrix synthesis algorithm to process the sub-matrix set to determine a conflict matrix;
[0380] According to the elements with a value of 1 except the diagonal in the conflict matrix, conflicting rules are obtained.
[0381] The airport operation resource rule conflict detection device provided in this embodiment can execute the embodiment of the above method. Its implementation principle and technical effect are similar and will not be repeated here.
[0382] Fig.17 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Fig.17As shown, it shows a schematic diagram of the structure of a computer system 600 of a terminal device or server suitable for implementing an embodiment of the present application.
[0383] like Fig.17 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 606 is also connected to the bus 604.
[0384] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 606 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0385] The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The units or modules described may also be provided in a processor. For example, they may be described as: a processor including a first determination module, an acquisition module, a second determination module, a third determination module, and a presentation module. Among them, the names of these units or modules do not constitute limitations on the units or modules themselves in certain circumstances. For example, the acquisition module may also be described as "used to determine a rule detection type according to a demand scenario where a conflict needs to be detected, wherein the detection type includes a batch detection type and a real-time detection type".
[0386] As another aspect, the present application further provides a computer-readable storage medium, which may be the computer-readable storage medium included in the aforementioned device in the above embodiment; or may be a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the aforementioned programs are used by one or more processors to execute the airport operation resource rule conflict detection method described in the present application.
[0387] In summary, the airport operation resource rule conflict detection method, device, equipment and storage medium provided in the embodiment of the present invention determines the rule detection type according to the demand scenario where the conflict needs to be detected, and obtains the airport business rules based on the detection type. If the detection type is batch detection, a batch detection method is used to perform conflict detection on the obtained business rules to determine the conflicting rules. If the detection type is real-time monitoring, a real-time detection method is used to perform conflict detection on the obtained business rules to determine the conflicting rules, and conflicting rule information is provided to the user based on the conflicting rules. This solution can perform conflict detection on the airport business rules and obtain conflicting rules, thereby reducing the difficulty of staff to check and correct conflicting rules, maintaining the logical correctness of the airport business rule library, and reducing labor costs, improving the efficiency of rule library management, and ensuring that various business rules can be correctly implemented in the actual production and operation of the airport.
[0388] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for detecting conflicts in airport operation resource rules, characterized in that: The method includes: Determine the rule detection type according to the scenario where the conflict needs to be detected, and the detection type includes batch detection type and real-time detection type; Based on the detection type, obtaining airport business rules, the airport business rules are stored in a rule base, and obtaining the airport business rules from the rule base; If the detection type is batch detection, a batch detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules, including: Determine all attribute types of the premise part of the to-be-detected rule from the acquired airport business rules to obtain a first attribute set; For each attribute in the first attribute set, a crossover determination algorithm is used to generate a crossover matrix of the attribute, so as to obtain a crossover matrix corresponding to each attribute in the first attribute set; Using a matrix synthesis algorithm to process the cross matrix corresponding to each attribute to obtain a total cross matrix; Determine all attribute types of the operation part of the to-be-detected rule from the acquired airport business rules to obtain a second attribute set; For each attribute in the second attribute set, a coincidence determination algorithm is used to generate a coincidence matrix of the attribute, so as to obtain a coincidence matrix corresponding to each attribute in the second attribute set; Using a matrix synthesis algorithm to process the coincidence matrix corresponding to each attribute to obtain a total coincidence matrix; Inverting each element in the total coincidence matrix to obtain an inverted total coincidence matrix; Using a matrix synthesis algorithm to process the total cross matrix and the inverted total coincidence matrix, determine a conflict matrix, and obtain conflicting rules; If the detection type is real-time detection, a real-time detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules; According to the conflicting rules, conflicting rule information is provided to the user.
2. The method according to claim 1, characterized in that If the detection type is real-time detection, a real-time detection method is used to perform conflict detection on the acquired business rules to determine conflicting rules, including: The original airport business rules and the new rules after addition and modification are used as the rules to be tested, and all attribute types of the premise part of the rules to be tested are determined to obtain an attribute set A; For each attribute j in the attribute set A, the row vector of the attribute is generated using the cross decision algorithm to obtain the row vector C of each attribute in the attribute set A; Using a matrix synthesis algorithm to process the row vector C of each attribute to obtain a row vector CF; Determine that the operation part of the rule to be tested uses all attribute types to form an attribute set B; For each attribute j of the attribute set B, a row vector O_j of the attribute is generated using a coincidence determination algorithm, thereby obtaining a row vector O of each attribute in the operation part; Using a matrix synthesis algorithm to process the row vector O of each attribute to obtain a row vector OF; Invert each element in the row vector OF to obtain an inverted total row vector OF'; The CF and the OF' are processed by a matrix synthesis algorithm to obtain a row vector F and conflicting rules.
3. The method according to claim 1, characterized in that For each attribute in the first attribute set, a crossover determination algorithm is used to generate a crossover matrix of the attribute, and a crossover matrix corresponding to each attribute in the first attribute set is obtained, including: Initialize the cross matrix of the attribute, set each element in the cross matrix to 0, the dimension of the cross matrix is n×s, and n and s are the total number of rules to be detected; According to whether the value ranges of the i-th rule and the k-th rule on the conditional attribute intersect, the i-th rule and the k-th rule are processed to obtain the intersection matrix corresponding to each attribute.
4. The method according to claim 1, characterized in that: For each attribute in the second attribute set, a coincidence determination algorithm is used to generate a coincidence matrix of the attribute, and a coincidence matrix corresponding to each attribute in the second attribute set is obtained, including: Initialize the overlap matrix of the attribute, set each element in the cross matrix to 1, the dimension of the cross matrix is n×s, and n and s are the total number of rules to be detected; According to whether the value ranges of the i-th rule and the k-th rule on the conditional attributes are the same, the i-th rule and the k-th rule are processed to obtain the coincidence matrix corresponding to each attribute.
5. The method according to claim 1, characterized in that The total cross matrix and the negated total overlap matrix are processed by a matrix synthesis algorithm to determine a conflict matrix and obtain conflicting rules, including: Based on the total cross matrix and the negated total coincidence matrix, the two matrices are used as input matrices of a matrix synthesis algorithm; The matrix synthesis algorithm is used to process and determine the conflict matrix; According to the elements with a value of 1 except the diagonal in the conflict matrix, conflicting rules are obtained.
6. An airport operation resource rule conflict detection device, characterized in that: The device comprises: A first determination module is used to determine a rule detection type according to a demand scenario where a conflict needs to be detected, where the detection type includes a batch detection type and a real-time detection type; An acquisition module, used to acquire airport business rules based on the detection type, the airport business rules being stored in a rule base, and to acquire the airport business rules from the rule base; The second determination module is used to perform conflict detection on the acquired business rules using a batch detection method if the detection type is batch detection, and determine conflicting rules, including: Determine all attribute types of the premise part of the to-be-detected rule from the acquired airport business rules to obtain a first attribute set; For each attribute in the first attribute set, a crossover determination algorithm is used to generate a crossover matrix of the attribute, so as to obtain a crossover matrix corresponding to each attribute in the first attribute set; Using a matrix synthesis algorithm to process the cross matrix corresponding to each attribute to obtain a total cross matrix; Determine all attribute types of the operation part of the to-be-detected rule from the acquired airport business rules to obtain a second attribute set; For each attribute in the second attribute set, a coincidence determination algorithm is used to generate a coincidence matrix of the attribute, so as to obtain a coincidence matrix corresponding to each attribute in the second attribute set; Using a matrix synthesis algorithm to process the coincidence matrix corresponding to each attribute to obtain a total coincidence matrix; Inverting each element in the total coincidence matrix to obtain an inverted total coincidence matrix; Using a matrix synthesis algorithm to process the total cross matrix and the inverted total coincidence matrix, determine a conflict matrix, and obtain conflicting rules; A third determination module is used to, if the detection type is real-time detection, use a real-time detection method to perform conflict detection on the acquired business rules to determine conflicting rules; The presentation module is used to provide conflicting rule information to the user according to the conflicting rules.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is configured to implement the method according to any one of claims 1 to 5 when executed by a processor.
