A method and system for optimal configuration of fluid parameters for fluid piping network applications

By sorting and calculating the difference between edge computing node data in the fluid pipeline network, the occupancy and adjustment amounts during the exit process are estimated, which solves the problem of smooth exit of parameter configuration actions in the fluid pipeline network and improves the accuracy and executability of the configuration results.

CN122331673APending Publication Date: 2026-07-03HUTZ ENG TECH (WUHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610444441.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-07
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Existing technologies, in industrial fluid pipeline networks with high-level liquid storage, long-distance transportation, intermittent terminal access, and branch switching, fail to effectively predict whether parameter configuration actions will have the conditions for smooth exit during subsequent operation, leading to problems such as back pressure push, delayed compensation of adjacent branches, and increased reciprocating adjustments of pumps and valves.

Method used

By sorting the operational data of each edge computing node in the fluid pipeline network by timestamp, a status record is formed. The difference in pressure, flow rate or differential pressure is calculated to determine the direction and amount of adjustment. The occupancy and adjustment amount at the time of exit are calculated segment by segment and verified to select the parameter configuration results that can exit smoothly.

Benefits of technology

It reduces misjudgments of configuration results that are currently attainable but difficult to reverse later, improves the continuity of the parameter configuration process and the accuracy of filtering effective action records, and enhances the executability of parameter configuration results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122331673A_ABST
    Figure CN122331673A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for optimizing fluid parameters in fluid pipeline network applications, specifically relating to the field of fluid pipeline network operation control. The method includes reading operational data uploaded by each edge computing node in the fluid pipeline network, sorting it by timestamp, writing operational data within the same acquisition cycle into the corresponding transport section to form a status record for each transport section, reading the target operating condition corresponding to each transport section, subtracting the current pressure value, current flow rate value, or current differential pressure value in the status record from the corresponding target value item by item, determining the adjustment direction based on the sign of the difference, and determining the adjustment amount based on the difference and the current adjustment margin. This invention addresses the problem of how to pre-determine whether a candidate parameter configuration action has the conditions for a smooth exit under edge computing conditions by expanding the execution section, calculating the occupancy and adjustment amount, and performing exit verification for the exit process corresponding to the candidate parameter configuration action.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of fluid pipeline network operation control technology, and more specifically, to a method and system for optimizing fluid parameters in fluid pipeline network applications. Background Technology

[0002] In the operation and control of fluid pipeline networks, the existing technology mainly focuses on enabling the current delivery section to reach the set pressure, flow rate or differential pressure requirements as soon as possible. The common approach is to use edge computing units deployed at each pipe section and node to collect local pressure data, flow data, valve position data and pump operation data, process the local working conditions first, and then combine the upper control results to adjust the parameters of the main pipe, branch and end liquid point.

[0003] In industrial fluid pipeline networks with high-level liquid storage, long-distance transportation, intermittent terminal access, and branch switching, if the site is also constrained by subsequent tasks that may temporarily rewrite the transportation relationship, some terminals are not allowed to be tested for a long time, and the current configuration must be exited within a limited time after completion, the existing practice can enable a branch to reach the set target at the current moment. However, since the judgment is based on whether the current parameters can be adjusted to the target working condition, it does not make a prior judgment on whether the configuration action can be smoothly exited during subsequent switching, transfer, or recovery. In actual operation, the following verifiable phenomenon will continue to occur: after a branch reaches the target for a short time, back pressure push occurs when exiting the current configuration, the compensation of adjacent branches is delayed, the local pump valve reciprocating adjustment increases, and even the subsequent priority branches cannot be connected in the predetermined sequence. This indicates that although such configuration results are currently executable, they have already occupied the adjustment space required for subsequent recovery and switching in advance.

[0004] Therefore, the technical problem to be solved by this application is: how to determine in advance whether the configuration action has the conditions for a smooth exit in the subsequent operation before the candidate parameter configuration action enters the target working condition under edge computing conditions, so as to avoid misjudging the parameter configuration that is currently achievable but difficult to withdraw later as a valid optimization result. Summary of the Invention

[0005] To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide a method and system for optimizing fluid parameters in fluid pipeline network applications. By performing segment expansion, occupancy and adjustment calculations, and exit verification for the exit process corresponding to the candidate parameter configuration action, the problems mentioned in the background art are solved.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for optimizing fluid parameters in fluid pipeline network applications, comprising:

[0007] S1. Read the running data uploaded by each edge computing node in the fluid pipeline network, sort it according to the timestamp, and write the running data within the same acquisition cycle into the corresponding transport section to form the status record of each transport section.

[0008] S2. Read the target operating conditions corresponding to each conveying section, and calculate the difference between the current pressure value, current flow value, or current differential pressure value in the status record and the corresponding target value. Determine the adjustment direction based on the sign of the difference, and determine the adjustment amount based on the difference and the current adjustment margin to form a candidate action record for each conveying section.

[0009] S3. For each candidate action record, calculate the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state, according to the connection sequence of the corresponding transport section to the main section, adjacent branch section and return section, and form the exit record of the corresponding candidate action record.

[0010] S4. According to the segment order in the exit record, compare the occupied amount with the release amount, and the adjustment amount with the recoverable amount segment by segment. Determine the candidate action record that satisfies that the occupied amount is not greater than the release amount and the adjustment amount is not greater than the recoverable amount in each segment as a valid action record, and form a set of valid actions.

[0011] S5. Read the difference value corresponding to each valid action record in the valid action set and the number of segments in the exit segment sequence. Sort the valid action records in ascending order of difference value and exit segment number. Select the valid action record at the top of the sorted list and output the corresponding parameter configuration result.

[0012] In a preferred embodiment, S1 includes:

[0013] S1-1. Read the running data uploaded by each edge computing node, extract the timestamp and transmission segment corresponding to each running data, and arrange them in ascending order of timestamp to form a running data sequence;

[0014] S1-2. For each running data sequence, compare the timestamp difference of adjacent running data in turn, divide the running data with timestamp differences within the same collection period into the same data group, and assign the running data in the same data group to the corresponding transport section according to the transport section.

[0015] S1-3. According to the time sequence of each data group in each transport section, write the running data in each data group into the corresponding transport section, and combine the written running data into the status record of the corresponding transport section.

[0016] In a preferred embodiment, S2 includes:

[0017] S2-1. Read the status records and corresponding target operating conditions of each conveying section, extract the current pressure value, current flow value or current differential pressure value and the corresponding target value, and form the comparison value of each conveying section.

[0018] S2-2. For the comparison values ​​of each conveying section, the difference between the current pressure value and the corresponding target value, the difference between the current flow rate value and the corresponding target value, or the difference between the current differential pressure value and the corresponding target value is calculated to form the difference value of each conveying section.

[0019] In a preferred embodiment, S2 further includes:

[0020] S2-3. For the difference between each conveying section, determine the direction of reduction when the difference is greater than zero, determine the direction of increase when the difference is less than zero, and determine the direction of maintenance when the difference is equal to zero, thus forming the adjustment direction of each conveying section.

[0021] S2-4. Read the current adjustment margin of each conveying section in the adjustment direction, compare the absolute value of the difference with the current adjustment margin, determine the absolute value of the difference as the adjustment amount when the absolute value of the difference is not greater than the current adjustment margin, and determine the current adjustment margin as the adjustment amount when the absolute value of the difference is greater than the current adjustment margin. Write the adjustment direction and adjustment amount into the corresponding conveying section to form a candidate action record.

[0022] In a preferred embodiment, S3 includes:

[0023] S3-1. Read the transport section and the connectivity in the status record corresponding to each candidate action record, and number them sequentially along the connectivity order from the transport section to the main section, adjacent branch section and return section to form the exit section sequence of the corresponding candidate action record.

[0024] S3-2. For each exit segment sequence, calculate the occupancy amount segment by segment number in order of segment number starting from the transport segment, and calculate the adjustment amount segment by segment in reverse order of segment number starting from the return segment. Write the segment number, occupancy amount and adjustment amount corresponding to each segment into the corresponding candidate action record to form the initial exit record.

[0025] S3-3. Read the status records corresponding to each segment and the feedback values ​​of adjacent segments in the initial exit record. Calculate the difference between the occupied amount and the releaseable amount, as well as the difference between the adjustment amount and the recoverable amount for each segment. Write a pass mark when both differences are not greater than zero. Write a block mark when the difference between the occupied amount and the releaseable amount is greater than zero or the difference between the adjustment amount and the recoverable amount is greater than zero. Write the segment number for which the block mark is first written into the blocking position to form the exit determination record.

[0026] In a preferred embodiment, S3 further includes:

[0027] S3-4. For the exit record determination, if there is no obstruction mark, the initial exit record is determined as the exit record. If there is an obstruction mark, the occupancy amount corresponding to the blocking position is subtracted from the release amount to obtain the remaining occupancy amount. The adjustment amount corresponding to the blocking position is subtracted from the recoverable amount to obtain the remaining adjustment amount. Then, the remaining occupancy amount and the remaining adjustment amount are sequentially allocated to the releaseable amount and recoverable amount corresponding to each segment after the blocking position according to the segment number order. When both the remaining occupancy amount and the remaining adjustment amount are zero, a continuation mark is written. When the remaining occupancy amount or the remaining adjustment amount is not zero, a check mark is written to form a recalculated exit record.

[0028] S3-5. When the initial exit record is determined to be an exit record, the initial exit record is written into the exit record of the corresponding candidate action record. When a recalculated exit record is formed, the recalculated exit record with the continuation mark is written into the exit record of the corresponding candidate action record, and the recalculated exit record with the inspection mark, together with the blocking position, is written into the exit record of the corresponding candidate action record.

[0029] In a preferred embodiment, S4 includes:

[0030] S4-1. Read the exit record corresponding to each candidate action record, extract the occupied amount, release amount, adjustment amount and recoverable amount of each segment in segment order, and form the verification sequence of each candidate action record;

[0031] S4-2. For each verification sequence, subtract the releaseable amount from the occupied amount to obtain the occupied difference in the order of the segments, subtract the recoverable amount from the adjustment amount to obtain the adjustment difference, and add the occupied difference of the current segment to the occupied difference of each preceding segment to obtain the cumulative occupied difference, and add the adjustment difference of the current segment to the adjustment difference of each subsequent segment to obtain the cumulative adjustment difference, thus forming the difference record corresponding to each segment.

[0032] In a preferred embodiment, S4 further includes:

[0033] S4-3. For each difference record, read the cumulative occupied difference in the order of the segments. When the cumulative occupied difference is greater than zero, write the corresponding segment to the forward obstruction position. Read the cumulative adjustment difference in the reverse order of the segments. When the cumulative adjustment difference is greater than zero, write the corresponding segment to the backward obstruction position. When there is no forward obstruction position and no backward obstruction position, write the corresponding candidate action record to the pass mark. When there is a forward obstruction position or a backward obstruction position, write the corresponding candidate action record to the obstruction mark to form the verification result of each candidate action record.

[0034] S4-4. Read the verification results of each candidate action record. When writing the pass mark, determine the corresponding candidate action record as a valid action record. When writing the block mark, do not write the corresponding candidate action record into the valid action set. Summarize the valid action records to form a valid action set.

[0035] In a preferred embodiment, S5 includes:

[0036] S5-1. Read the difference value corresponding to each valid action record in the valid action set and the number of segments in the exit segment sequence. Generate the difference value order in ascending order of difference value and generate the segment order in ascending order of segment number, forming the sorted record corresponding to each valid action record.

[0037] S5-2. Read each sorted record, and compare the difference order and segment order of the current sorted record with the difference order and segment order of the other sorted records one by one. If the difference order is less than the difference order of the comparison object, retain the current sorted record. If the difference order is equal to the difference order of the comparison object and the segment order is less than the segment order of the comparison object, retain the current sorted record. If the difference order is greater than the difference order of the comparison object or equal to the difference order of the comparison object and the segment order is greater than the segment order of the comparison object, delete the current sorted record to form a retained record.

[0038] S5-3. Count the number of sorted records in the retained records. When the number of sorted records is one, determine the corresponding valid action record as the target action record, and read the adjustment direction and adjustment amount corresponding to the target action record to generate the parameter configuration result of the corresponding conveying section.

[0039] In a preferred embodiment, a fluid parameter optimization configuration system for a fluid pipeline network application includes:

[0040] The status collection module is used to read the running data uploaded by each edge computing node in the fluid pipeline network, sort it according to the timestamp, and write the running data within the same acquisition cycle into the corresponding transport section to form the status record of each transport section.

[0041] The action generation module is used to read the target working conditions corresponding to each conveying section, calculate the difference between the current pressure value, current flow value or current differential pressure value in the status record and the corresponding target value, determine the adjustment direction based on the sign of the difference, determine the adjustment amount based on the difference and the current adjustment margin, and form the candidate action record for each conveying section.

[0042] The exit calculation module calculates the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state for each candidate action record, according to the connection sequence from the corresponding transport section to the main section, adjacent branch section and return section, and forms the exit record for the corresponding candidate action record.

[0043] Exit the verification module. By comparing the occupied amount with the release amount and the adjustment amount with the recoverable amount in the segment order in the exit record, the candidate action records that meet the condition that the occupied amount is not greater than the release amount and the adjustment amount is not greater than the recoverable amount in each segment are determined as valid action records, forming a set of valid actions.

[0044] The result selection module is used to read the difference and exit segment number corresponding to each valid action record in the valid action set, sort the valid action records in ascending order of difference and exit segment number, select the valid action record at the top of the sort, and output the corresponding parameter configuration result.

[0045] The technical effects and advantages of this invention are as follows:

[0046] 1. By pre-calculating exit records along the conveying section, main section, adjacent branch section and return section before the candidate action enters the target working condition, and filtering out candidate actions that are difficult to exit smoothly in the future, the situation of misjudging the configuration result that is currently achievable but difficult to withdraw later can be relatively reduced.

[0047] 2. By organizing the running data uploaded by edge computing nodes into status records according to timestamps and transmission segments, and then extracting comparison values ​​and generating candidate action records based on the status records, subsequent difference calculations, direction determinations, and adjustment amount determinations can be established on the same data chain, thereby improving the continuity of the parameter configuration process.

[0048] 3. By calculating the occupied and adjusted amounts segment by segment around the exit segment sequence, and combining the release and recoverable amounts to form an exit record, the impact of parameter configuration actions on subsequent switching, transfer and recovery can be carried out in advance, which can alleviate the limitation of making configuration judgments based solely on the current compliance results.

[0049] 4. By continuing to verify the occupancy difference, adjustment difference, cumulative occupancy difference, and cumulative adjustment difference of the exit record, and using this to identify the forward and backward obstruction positions, the ability to identify obstructed sections in the exit process can be relatively improved, thereby improving the accuracy of screening valid action records.

[0050] 5. By combining the difference and the number of segments in the exit segment sequence in the effective action set to form a sorting record, and after determining the target action record, the adjustment direction and adjustment amount of the corresponding delivery segment are output, so that the parameter configuration result can directly correspond to the specific execution object, thereby improving the executability of the configuration result. Attached Figure Description

[0051] Figure 1 This is a flowchart of the method steps of the present invention.

[0052] Figure 2 This is a schematic diagram of the system modules of the present invention. Detailed Implementation

[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0054] Refer to the instruction manual appendix Figure 1-2 The present invention provides a method for optimizing fluid parameters in a fluid pipeline network application, comprising:

[0055] S1. Read the running data uploaded by each edge computing node in the fluid pipeline network, sort it according to the timestamp, and write the running data within the same acquisition cycle into the corresponding transport section to form the status record of each transport section.

[0056] In this specific implementation, the processing in S1 involves organizing the operational data uploaded by each edge computing node into a status record that can be directly used for comparison and calculation in the future. This ensures that the pressure, flow, valve position, and pump frequency values ​​corresponding to the same transport segment within the same acquisition cycle fall into the same record. To this end, a unified record structure is first established for the operational data uploaded by each edge computing node. The unified record structure includes at least the edge computing node identifier, timestamp, transport segment identifier, and the corresponding pressure, flow, valve position, and pump frequency values ​​at the same time. When the operational data directly carries the transport segment identifier, that identifier is used directly. When the operational data does not directly carry the transport segment identifier, the corresponding transport segment is determined based on the mapping relationship between the edge computing node identifier and the pre-stored segment. At the same time, the acquisition cycle uses the platform cycle value written during system initialization, and all subsequent time groupings use this cycle value as the comparison benchmark, ensuring that the data uploaded by each edge computing node is grouped according to the same time length.

[0057] Based on the above processing, a sequence of operational data with a chronological relationship is first formed, then data groups within each segment are formed, and finally, status records for each transport segment are generated. This implementation process includes the following steps:

[0058] First, after reading the runtime data uploaded by each edge computing node, the timestamp and transmission segment are extracted for each runtime data, and runtime data uploaded by the same edge computing node are grouped into the same initial set. If multiple runtime data exist within the same upload batch for the same edge computing node, the runtime data in the initial set are rearranged according to their timestamps from earliest to latest. If different runtime data have the same timestamp, they are arranged according to their receiving order. After the arrangement is completed, each initial set is output as a runtime data sequence. After this processing, each runtime data sequence corresponds to a clear time sequence, and each runtime data in the sequence corresponds to a clear transmission segment, which can then be used for further grouping.

[0059] Furthermore, for each running data sequence, starting from the first running data in the sequence, the timestamp difference between the current running data and the next running data is compared sequentially. When the timestamp difference is less than the acquisition cycle length, the current running data and the next running data are grouped into the same data group. When the timestamp difference is equal to or greater than the acquisition cycle length, the next running data is used as the starting data for the next data group and the comparison starts again. The first running data is directly used as the starting data for the first data group, and the last running data forms a separate last data group if it is not merged into the previous data group. After each data group is formed, the corresponding transport segment for each running data in each data group is read. Running data belonging to the same transport segment within the same data group is assigned to that transport segment name, and running data belonging to different transport segments within the same data group are split and assigned to their respective corresponding transport segments. After this processing, a data group sequence divided according to the acquisition cycle is formed under each transport segment.

[0060] Subsequently, according to the time sequence of each data group within each transport section, the operating data in each data group is written to the corresponding transport section. During writing, a status record is formed for each data group, and the pressure value, flow value, valve position value, and pump frequency value in that data group are written into the same status record. If there are multiple pressure values, multiple flow values, multiple valve position values, or multiple pump frequency values ​​in the same transport section within the same data group, the latest value of the same type of field is taken by timestamp and written into the status record. If a certain type of field is missing in the same data group, the remaining written fields are retained in the status record, and the missing field is marked as an empty field, so that the corresponding comparison object can be selected according to the existing field type when reading the target working condition later. After the status record is written, it is stored separately according to the transport section, so that each transport section corresponds to one status record in each acquisition cycle. After this processing, when reading the status record in subsequent steps, the data basis corresponding to the current pressure value, current flow value, or current differential pressure value can be directly obtained, without the need to repeatedly sort and split the original operating data.

[0061] Through the above processing, the running data uploaded by each edge computing node is organized into status records corresponding to the delivery section and collection cycle. When reading later, the current record can be directly obtained from the corresponding delivery section, and the target working condition comparison, difference calculation and candidate action generation can continue to be performed. In this way, the data group formed earlier, the status record used later and the current value read in subsequent steps can correspond one by one, and the entire processing process is more directly connected.

[0062] In practical applications: edge computing nodes in the fluid pipeline network are deployed at the main inlet, branch distribution points, and end-point liquid consumption points. Each edge computing node uploads operational data containing timestamps, transport section identifiers, pressure values, flow rates, valve position values, and pump frequency values ​​according to a unified acquisition cycle. The platform first forms an operational data sequence according to the edge computing nodes, then completes the data group division according to the difference between adjacent timestamps, and assigns the data within the same data group to the corresponding transport section. When a transport section receives three pressure value records and two valve position value records in a certain acquisition cycle, the latest timestamp pressure value record and the latest timestamp valve position value record are written into the status record of the transport section in that acquisition cycle. At the same time, the flow rate value and pump frequency value in the data group are also written, thus forming a status record that can be directly used for S2 comparison calculations in the future.

[0063] S2. Read the target operating conditions corresponding to each conveying section, and calculate the difference between the current pressure value, current flow value, or current differential pressure value in the status record and the corresponding target value. Determine the adjustment direction based on the sign of the difference, and determine the adjustment amount based on the difference and the current adjustment margin to form a candidate action record for each conveying section.

[0064] In this specific embodiment, the processing content of S2 is to extract the comparison object corresponding to the current control task of the conveying section based on the status record already formed in each conveying section, and then sequentially complete the difference calculation, adjustment direction determination and adjustment amount determination, and finally form a candidate action record that can directly enter the subsequent exit calculation.

[0065] It should be noted that the target operating condition includes the target operating condition type and the target value. The target operating condition type indicates whether the current conveying section is adjusted using pressure control, flow control, or differential pressure control. When the target operating condition type is pressure control, the current pressure value is extracted and compared with the corresponding target value. When the target operating condition type is flow control, the current flow value is extracted and compared with the corresponding target value. When the target operating condition type is differential pressure control, the current differential pressure value is extracted and compared with the corresponding target value. Then, the difference is calculated based on the comparison value, and the adjustment direction is determined according to the sign of the difference. The current adjustment margin of the conveying section is then read according to the adjustment direction.

[0066] The current adjustment margin is obtained by subtracting the current execution amount from the boundary execution amount in the corresponding direction. If the adjustment direction is an increasing direction, the difference between the current execution amount and the upper limit execution amount is used as the current adjustment margin. If the adjustment direction is a decreasing direction, the difference between the current execution amount and the lower limit execution amount is used as the current adjustment margin. If the adjustment direction is a maintaining direction, the current adjustment margin is recorded as zero.

[0067] Based on the above processing, candidate action records with clear sources and calculation order can be generated in each transport segment. This implementation process includes the following steps:

[0068] First, read the status records and corresponding target operating conditions of each conveying section, and extract the corresponding current value and target value according to the target operating condition type. When the target operating condition type of a certain conveying section is pressure control, read the current pressure value from the status record and the target value from the corresponding target operating condition, and combine the current pressure value and the target value to form the comparison value of the conveying section. When the target operating condition type is flow control, read the current flow value from the status record and the target value from the corresponding target operating condition, and combine the current flow value and the target value to form the comparison value of the conveying section. When the target operating condition type is differential pressure control, the current differential pressure value is read from the status record, and the target value is read from the corresponding target operating condition. The current differential pressure value and the target value are combined to form the comparison value for this conveying section. If the status record lacks a current value corresponding to the target operating condition type, the comparison is not switched to other types. Instead, the target operating condition type and target value are retained for this conveying section, and the current value is recorded as null. Subsequent processing based on null values ​​will not generate candidate action records. After this processing, each conveying section obtains a comparison value that corresponds one-to-one with the current control task.

[0069] Next, differential calculations are performed on the comparison values ​​already formed for each conveying section. When the comparison value consists of the current pressure value and the target value, the target value is subtracted from the current pressure value to obtain the difference for that conveying section. When the comparison value consists of the current flow rate value and the target value, the target value is subtracted from the current flow rate to obtain the difference for that conveying section. When the comparison value consists of the current differential pressure value and the target value, the target value is subtracted from the current differential pressure value to obtain the difference for that conveying section. All the above differential calculations use the same order of subtracting the target value from the current value, without changing the differential calculation direction between different conveying sections, so that the determination of the subsequent adjustment direction remains consistent. If the current value of a certain conveying section is empty, the differential calculation is not performed on that conveying section, and a mark indicating that no differential value has been generated is directly written under that conveying section so that it will not enter the subsequent process of generating the adjustment direction and adjustment amount. After this processing is completed, each conveying section participating in the calculation will have a corresponding differential value.

[0070] Subsequently, the adjustment direction is determined based on the difference between each transport segment. When the difference is greater than zero, it indicates that the current value is higher than the target value, and a decreasing adjustment direction is written for that transport segment. When the difference is less than zero, it indicates that the current value is lower than the target value, and an increasing adjustment direction is written for that transport segment. When the difference is equal to zero, it indicates that the current value is the same as the target value, and a holding direction is written for that transport segment. Here, no further grading processing is performed on the difference, nor are additional judgment conditions introduced. The three results of the difference—positive, negative, and zero—are directly used to correspond to the three results of decreasing, increasing, and holding directions. For transport segments with a holding direction written, the difference of that transport segment is retained, and when the current adjustment margin is read later, the current adjustment margin is recorded as zero, so that the transport segment still forms a candidate action record along the same recording chain. After this processing, each transport segment with a formed difference obtains a unique adjustment direction.

[0071] Finally, the current adjustment margin of each conveying section in the adjustment direction is read, and the adjustment amount is determined. When the adjustment direction of a certain conveying section is an increasing direction, the current execution amount and the upper limit execution amount of the conveying section are read, and the difference between the two is used as the current adjustment margin. When the adjustment direction is a decreasing direction, the current execution amount and the lower limit execution amount of the conveying section are read, and the difference between the two is used as the current adjustment margin. When the adjustment direction is a holding direction, the current adjustment margin is recorded as zero. Then, the absolute value of the difference is compared with the current adjustment margin: if the absolute value of the difference is not greater than the current adjustment margin, The absolute value of the difference is written as the adjustment amount; when the absolute value of the difference is greater than the current adjustment margin, the current adjustment margin is written as the adjustment amount; after the adjustment direction and adjustment amount are determined, they are written together with the difference of the corresponding conveying section under that conveying section to form a candidate action record; if the adjustment direction is the hold direction, the adjustment amount is written as zero and a corresponding candidate action record is formed; if a difference has not been formed in the previous sequence of a conveying section, the conveying section is not written into the candidate action record; after this process, each conveying section entering the subsequent steps forms a candidate action record containing the difference, adjustment direction and adjustment amount.

[0072] Through the above processing, each transport section starts from the status record and target working condition, and sequentially completes the comparison value extraction, difference calculation, adjustment direction determination and adjustment amount determination, and finally obtains the candidate action record. In this way, when subsequent steps read the candidate action record, they can directly obtain the difference, adjustment direction and adjustment amount of the corresponding transport section, and continue to execute the exit section sequence generation, occupancy calculation and adjustment amount calculation. The value retrieval relationship and writing relationship of the preceding and following steps can also be connected item by item.

[0073] In practical applications: The target operating condition for a certain conveying section is pressure control. The current pressure value recorded in the status record is 0.62 MPa, while the target value in the target operating condition is 0.70 MPa. First, subtract 0.70 from 0.62 to obtain a difference of -0.08. Since the difference is less than zero, this conveying section is determined as the direction of adjustment. Then, the current execution quantity and the upper limit execution quantity of this conveying section are read. For example, if the current pump frequency is 38 Hz and the upper limit execution quantity is 50 Hz, the current adjustment margin is 12 Hz. Next, the absolute value of the difference is compared with the current adjustment margin. If the difference unit in the system has been converted to 8 Hz according to the execution quantity, then 8 Hz is determined as the adjustment quantity, and the difference, the direction of adjustment, and 8 Hz are written into this conveying section to form a candidate action record. Similarly, if the current flow rate of another conveying section is equal to the target value, then this conveying section forms a candidate action record with a difference of zero, an adjustment direction of maintaining the position, and an adjustment quantity of zero. This record is then processed in subsequent steps with zero occupancy and zero adjustment.

[0074] S3. For each candidate action record, calculate the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state, according to the connection sequence of the corresponding transport section to the main section, adjacent branch section and return section, and form the exit record of the corresponding candidate action record.

[0075] In this specific embodiment, the processing of S3 involves forming an exit segment sequence based on the transport segment and connectivity relationship corresponding to the candidate action record, along the transmission path exiting the current supply state. Then, the occupancy and adjustment amounts are calculated segment by segment in the exit segment sequence. The release and recovery amounts of each segment in subsequent time periods are considered to determine whether the candidate action record can complete the exit along the predetermined path. When each segment can accommodate the exit process, an exit record is directly formed. If a segment cannot accommodate the exit process, the first point of obstruction is used as the blocking point. The remaining occupancy and adjustment amounts are redistributed to the segments after the blocking point, and then... The calculation results form the exit record of the corresponding candidate action record. It should be noted that: exiting the current supply state means the process of eliminating the adjustment amount corresponding to the candidate action record from the current execution state to zero. In this process, the transport section, main section, adjacent branch section and return section all participate in the path expansion according to the connectivity relationship in the state record. Among them, the transport section is the section directly corresponding to the candidate action record, the main section is the upstream section directly connected to the transport section, the adjacent branch section is the branch section that has a fluid distribution relationship with the transport section at the same distribution node, and the return section is the return path section corresponding to the transport section.

[0076] Based on the above processing, the exit segment sequence is first formed according to the connectivity order, and then the occupancy, adjustment, difference, and recalculation results are calculated according to a unified standard, so that S4 can directly read the segment data in the exit record to perform verification. This implementation process includes the following steps:

[0077] First, each candidate action record is processed one by one. The corresponding transport segment is read, and the connectivity relationship corresponding to the transport segment is extracted from the status record. In the connectivity relationship, the transport segment is used as the starting segment. The upstream segment directly connected to the transport segment is determined as the main supply segment. Other branch segments connected to the transport segment or the main supply segment at the same distribution node are determined as adjacent branch segments. Then, the segments on the return path corresponding to the transport segment are determined as return segments. After the segments are determined, the transport segment is first numbered as 1, and then the transport segments are numbered according to their distance from the main supply segment to the transport segment. The connectivity sequence of adjacent branch sections and return sections is numbered sequentially. If there are multiple candidate sections at the same level, they are first arranged in ascending order of the number of connectivity hops with the transport section. If the number of connectivity hops is the same, they are arranged in the order of node connection in the status record, and numbering is completed accordingly. After numbering, each section is written into the candidate action record according to its section number, forming the exit section sequence of the corresponding candidate action record. Through this process, each candidate action record obtains an exit section sequence with a clear sequence of section relationships, and subsequent segment-by-segment calculations can be performed on this sequence.

[0078] Next, the occupancy and adjustment amounts are calculated for each exit segment sequence. Here, the adjustment amounts in the candidate action records are used as the starting value for calculation. For the occupancy calculation, starting from the transport segment, the calculation proceeds sequentially along the segment numbers: the occupancy corresponding to the transport segment is recorded as the adjustment amount, and then the occupancy of the previous segment number is used as the occupancy of the next segment number, continuing until the occupancy of the main section and adjacent branch sections is completed. For the adjustment calculation, starting from the return segment, the calculation proceeds sequentially in reverse order along the segment numbers: the adjustment amount corresponding to the return segment is recorded as the adjustment amount, and then the occupancy of the next segment number is used as the adjustment amount, continuing until the occupancy of the main section and adjacent branch sections is completed. The adjustment amount of segment number is written as the adjustment amount of the previous segment number, and so on, until the preceding segment connected to the transport segment is completed. If a certain type of segment does not exist in the exit segment sequence, the calculation in the corresponding direction ends within the existing segment range, and no empty segment is added. After the calculation is completed, the segment number, occupancy amount and adjustment amount corresponding to each segment are written into the candidate action record to form the initial exit record. With this writing method, the occupancy amount and adjustment amount have clear starting values ​​and clear transmission directions. When comparing differences later, the corresponding fields in the initial exit record can be directly referenced.

[0079] Subsequently, the status records corresponding to each segment in the initial exit record and the feedback values ​​of adjacent segments are read, and each segment is judged to determine whether it can take over the exit process. Here, the source of the releaseable and recoverable quantities is unified as the releaseable and recoverable capabilities recorded in the status records for the subsequent time period. The feedback values ​​of adjacent segments are used to confirm the actual capacity of the segment in the subsequent time period. When the releaseable and recoverable quantities are directly written in the status record of a certain segment, they are read directly. When these two items are not directly written in the status record, the release confirmation value corresponding to the feedback value of the adjacent segment is used as the releaseable quantity, and the recovery confirmation value is used as the recoverable quantity. After reading, the occupancy difference is calculated by subtracting the releaseable quantity from the occupancy amount for each segment, and the adjustment amount is calculated by subtracting the releaseable quantity from the recovery amount. The recoverable quantity is adjusted by the difference. When the occupancy difference of a segment is not greater than zero and the adjustment difference is not greater than zero, a pass mark is written under that segment. When the occupancy difference of a segment is greater than zero or the adjustment difference is greater than zero, a block mark is written under that segment. Starting from the segment with the smallest segment number, each segment is checked sequentially. When a block mark is written for the first time, the segment number of that segment is written to the block position. Even if a block mark is written to subsequent segments, the block position will not be rewritten. After all segments are processed, the pass mark or block mark of each segment, along with the block position, is written to the candidate action record to form a decision exit record. After this processing, subsequent recalculation can be directly based on the block position without having to backtrack all segments again.

[0080] Furthermore, subsequent processing is performed on the exit record determination. When there is no obstruction mark in the exit record determination, it means that each segment can complete the exit according to the occupancy and adjustment amount corresponding to the initial exit record, so the initial exit record is directly determined as the exit record. When there is an obstruction mark in the exit record determination, the segment corresponding to the blocking position is used as the recalculation starting point. First, the occupancy of the segment is reduced by the releaseable amount to obtain the remaining occupancy amount, and then the adjustment amount of the segment is reduced by the recoverable amount to obtain the remaining adjustment amount. Then, according to the segment numbering order, starting from the next numbered segment after the blocking position, the releaseable amount of each segment is used to offset the remaining occupancy amount, and the recoverable amount of each segment is used to offset the remaining adjustment amount. In specific processing, if the releaseable amount of the current segment is greater than or equal to the remaining occupancy amount, the remaining occupancy amount is offset by the remaining occupancy amount. Record it as zero; if the releaseable amount of the current segment is less than the remaining amount occupied, the releaseable amount of the current segment is used to offset it first, and then the unoffset part is passed on as the remaining amount occupied to the next numbered segment; the remaining amount is adjusted and offset by the recoverable amount of each segment in the same way; after all segments after the blocking position are processed, if both the remaining amount occupied and the remaining amount adjusted are zero, a continuation mark is written in the candidate action record, and the recalculated results of each segment are written as the recalculation exit record; if the remaining amount occupied or the remaining amount adjusted is still not zero, a check mark is written in the candidate action record, and the current recalculation result is written as the recalculation exit record; through this process, the remaining part after the first block is no longer suspended, but continues to be allocated in the predetermined segment order, so that the recalculation exit record can directly reflect the actual acceptance result after the blocking position;

[0081] Finally, the initial exit record or recalculated exit record is written into the exit record of the corresponding candidate action record, forming the input content that S4 can directly read. When the initial exit record is determined to be an exit record, it is directly written into the exit record of the candidate action record, and the segment number, occupancy, adjustment amount, and the releaseable and recoverable amounts referenced in the aforementioned comparison are retained in the exit record. If a recalculated exit record is formed, when the recalculated exit record has a continuation mark, it is written into the exit record of the candidate action record. When the recalculated exit record has a check mark, it is written into the exit record of the candidate action record along with the blocking position. Only one final exit record is retained for each candidate action record, and two parallel records, the initial exit record and the recalculated exit record, are not retained at the same time. After the recalculated exit record is written, the initial exit record is only used as an intermediate result of the calculation and is no longer used as a separate object for subsequent reading. After this processing, each candidate action record forms a unique exit record, and when S4 reads, it can directly extract the occupancy, releaseable amount, adjustment amount, and recoverable amount in segment order to continue the verification.

[0082] Through the above processing, the exit process corresponding to each candidate action record is uniformly expanded into an exit segment sequence, an initial exit record, a judgment exit record, and a final written exit record. The output of the previous stage can be directly used as the input of the next stage. Among them, the segment number gives the segment sequence relationship, the occupancy and adjustment amount give the transmission result in the exit process, the blocking position gives the position where it cannot continue to be accepted for the first time, and the recalculated exit record gives the result of continued allocation after blocking. Therefore, when S4 performs segment-by-segment verification on the exit record, it can directly expand based on the formed fields without reorganizing the path or recalculating the intermediate data.

[0083] In practical applications: A candidate action record corresponds to a transport segment A with an adjustment amount of 8. The status record shows that branch A connects upstream to the main control segment B and is parallel to the adjacent branch segment C at the same allocation node. The return path of branch A is the return segment D. Therefore, the exit segment sequence A, B, C, and D is first formed, numbered 1, 2, 3, and 4 respectively. Then, using the adjustment amount of 8 for branch A as the starting value, the occupancy amounts are written to A, B, and C in numerical order. Next, using the adjustment amount of 8 for the return segment D as the starting value, the adjustment amounts are written to D and its preceding connected segments in reverse numerical order. If, during the comparison process, it is found that the occupancy amount of segment B is 8... If the releasable amount is 5, then segment B is marked with an obstruction flag and number 2 is written to the obstruction position. Then, the remaining amount of occupancy is calculated as 3. If the releasable amount of segment C is 3 and the recoverable amount can completely offset the corresponding adjustment remaining amount, then in the subsequent recalculation, both the remaining amount of occupancy and the adjustment remaining amount will be offset to zero and a continuation flag will be written. This recalculation exit record will be used as the exit record of the candidate action record corresponding to branch A. If there is still an unoffset remaining amount of occupancy or adjustment remaining amount after segment C is processed, then a check flag will be written to the recalculation exit record and written to the candidate action record along with the obstruction position for subsequent S4 to continue reading and further verification.

[0084] S4. According to the segment order in the exit record, compare the occupied amount with the release amount, and the adjustment amount with the recoverable amount segment by segment. Determine the candidate action record that satisfies that the occupied amount is not greater than the release amount and the adjustment amount is not greater than the recoverable amount in each segment as a valid action record, and form a set of valid actions.

[0085] In this specific implementation, the processing content of S4 is to uniformly verify the exit records corresponding to each candidate action record, and determine whether the candidate action record always has sufficient release and recovery capabilities along the sequence of each segment in the exit record when exiting the current supply state. If both the forward occupancy release chain and the backward adjustment recovery chain can be closed, the candidate action record is determined as a valid action record. If there is a segment that cannot be closed in either direction of the forward occupancy release chain or the backward adjustment recovery chain, the candidate action record is not written into the valid action set. Here, the exit record output by S3 is used as the only input object. The exit record includes at least the segment sequence, occupancy amount, release amount, adjustment amount, and recovery amount. S4 does not reorganize the exit path, nor does it recalculate the occupancy amount and adjustment amount. Instead, it performs difference calculation, cumulative calculation, and obstruction identification in a uniform order based on the existing exit record.

[0086] Based on this processing, the exit records already formed in the previous step can be further compressed into verification results, and a set of valid actions can be directly generated from the verification results. This implementation process includes the following steps:

[0087] First, each candidate action record is processed individually. The corresponding exit record is read, and the occupancy, release, adjustment, and recoverable amounts of each segment are extracted according to the segment order in the exit record. During extraction, the segment number order in the exit record is used as the unique order, and the segment order is not changed again in S4. For each candidate action record, all segments in the same exit record are arranged in ascending order of segment number, and the occupancy, release, adjustment, and recoverable amounts corresponding to each segment are written into the candidate action record to form the verification sequence corresponding to the candidate action record. If the exit record corresponding to a candidate action record contains only one segment, the verification sequence only retains the data corresponding to that segment. If the exit record contains multiple segments, all segments are retained according to the existing segment order, and intermediate segments are not deleted. After this processing, each candidate action record forms a verification sequence with a fixed order, and subsequent calculations are directly input using this verification sequence.

[0088] Subsequently, the difference records are calculated segment by segment for each verification sequence. First, the occupied amount is subtracted from the releasable amount segment by segment in sequence to obtain the occupied difference for each segment. Then, for each segment in the same verification sequence, the adjustment amount is subtracted from the recoverable amount to obtain the adjustment difference for each segment. After the occupied difference and adjustment difference are formed, the cumulative occupied difference and cumulative adjustment difference are calculated. The cumulative occupied difference for the first segment is equal to the occupied difference for that segment, and the cumulative occupied difference for each subsequent segment is equal to the sum of the occupied difference for the current segment and the cumulative occupied difference for the previous segment. Therefore, the cumulative occupied difference is obtained by recursively calculating from front to back according to the segment order. The cumulative adjustment difference for the last segment is... The value is equal to the adjustment difference of the segment. The cumulative adjustment difference of each preceding segment is equal to the sum of the adjustment difference of the current segment and the cumulative adjustment difference of the next numbered segment. Therefore, the cumulative adjustment difference is obtained by recursively calculating from back to front in reverse order of segments. After the calculation of the occupancy difference, adjustment difference, cumulative occupancy difference and cumulative adjustment difference for each segment is completed, the above results are written into the corresponding candidate action record segment by segment to form the difference record corresponding to the candidate action record. After this processing, each segment not only retains the direct difference of the segment, but also retains the cumulative result after accumulation along the forward and backward directions. Subsequently, the obstruction status of the candidate action record in the forward and backward directions can be determined based on this.

[0089] Next, obstruction identification is performed for each difference record, and a verification result for the corresponding candidate action record is generated. First, the cumulative occupancy difference of each segment is read sequentially according to the segment order. When the cumulative occupancy difference of a certain segment is greater than zero, the segment is written into the forward obstruction position. According to the processing method of this specific implementation, the forward obstruction position is the segment that first satisfies the cumulative occupancy difference being greater than zero in the segment order. Therefore, after the forward obstruction position is written for the first time, even if the cumulative occupancy difference of subsequent segments is also greater than zero, the forward obstruction position will not be rewritten. Then, the cumulative adjustment difference of each segment is read sequentially in reverse order. When the cumulative adjustment difference of a certain segment is greater than zero, the segment is written into the backward obstruction position. Similarly, the backward obstruction position is taken from the reverse order of the segments. For the first time a segment satisfies the cumulative adjustment difference being greater than zero, after the first write of the backward obstruction position, that position will not be rewritten by subsequent segments. After completing the obstruction identification in both directions, if there is no forward obstruction position and no backward obstruction position, a pass mark will be written under the candidate action record; if there is a forward obstruction position or a backward obstruction position, an obstruction mark will be written under the candidate action record. After the forward obstruction position, backward obstruction position, and pass mark or obstruction mark are written, the verification result corresponding to the candidate action record is formed. After the above processing, each candidate action record generates a unique verification result through the same set of identification rules, and a pass mark and an obstruction mark will not be written under the same candidate action record at the same time.

[0090] Finally, the verification results of each candidate action record are read, and a valid action set is formed accordingly. When a candidate action record has a pass mark written in its verification result, the candidate action record is determined as a valid action record and written into the valid action set. When a candidate action record has a block mark written in its verification result, the candidate action record is not written into the valid action set. After all candidate action records have been processed, the valid action records that have been written into the valid action set are summarized to form a valid action set, which is then used as the input for S5. Each candidate action record is processed only once in S4. Candidate action records that have been marked as block are not rewritten, and candidate action records that have been marked as pass are directly entered into the valid action set without additional filtering steps. After this processing, each valid action record in the valid action set has completed the unified verification of the exit record. S5 can then directly select based on the difference in the valid action set and the number of segments in the exit segment sequence.

[0091] Through the above processing, the segment data in the exit record is uniformly converted into a verification sequence, difference record, and verification result. The forward occupancy release chain and the backward adjustment recovery chain are judged by the cumulative occupancy difference and the cumulative adjustment difference, respectively. Finally, the candidate action records that pass the verification are retained and form a set of valid actions for subsequent selection of parameter configuration results. After this processing, the exit record output by S3 and the set of valid actions read by S5 are directly connected. The value relationship, calculation relationship, and writing relationship of occupancy, release, adjustment and recovery are consistent throughout the process, and there is no need to backtrack the exit process in subsequent steps.

[0092] In practical applications: The exit record corresponding to a candidate action record includes segments 1, 2, and 3 in sequence. Their occupancy amounts are 6, 6, and 6 respectively; their release amounts are 8, 1, and 5 respectively; their adjustment amounts are 4, 4, and 4 respectively; and their recoverable amounts are 5, 2, and 3 respectively. First, calculate the occupancy differences as -2, 5, and 1 respectively, and the adjustment differences as -1, 2, and 1 respectively. Then, calculate the cumulative occupancy differences according to the segment order, obtaining -2 for segment 1, 3 for segment 2, and 4 for segment 3. Therefore, segment 2 is written to the forward obstruction position. Then... Calculate the cumulative adjustment difference in reverse order of segments, and we get segment 3 as 1, segment 2 as 3, and segment 1 as 2. Therefore, the backward obstruction position is written to segment 3. Since there are forward obstruction positions and backward obstruction positions, this candidate action record is written to the obstruction mark and does not enter the valid action set. If the cumulative occupancy difference of each segment corresponding to another candidate action record is not greater than zero and the cumulative adjustment difference is not greater than zero, then this candidate action record is written to the pass mark and written to the valid action set as a valid action record for subsequent S5 to continue reading.

[0093] S5. Read the difference value corresponding to each valid action record in the valid action set and the number of segments in the exit segment sequence. Sort the valid action records in ascending order of difference value and exit segment number. Select the valid action record at the top of the sort and output the corresponding parameter configuration result.

[0094] In this specific embodiment, the processing content of S5 is to determine the unique target action record in the set of valid actions and output the parameter configuration result of the corresponding delivery segment accordingly. The previous process has completed the exit verification of candidate action records, so the objects entering S5 are all valid action records. On this basis, the difference is not recalculated, nor is the exit segment sequence reorganized. Instead, the existing difference of each valid action record and the number of segments in the corresponding exit segment sequence are read directly. The difference order and segment order are formed first, and then a comparison is performed one by one according to the two orders. The sorted record with the superior comparison result is retained, and finally the unique target action record is determined.

[0095] It should be noted that: the number of segments in the exit segment sequence is the number of segments contained in the exit segment sequence, which is obtained by counting each segment entry actually written in the exit segment sequence; when the difference is the same or the number of segments is the same, the valid action records are continued to be numbered according to the order in which they are written into the valid action set, so that each valid action record corresponds to a unique difference order and a unique segment order.

[0096] Based on the above processing, the effective action set can be converged into a unique target action record, and the parameter configuration results required for subsequent execution can be output. This implementation process includes the following steps:

[0097] First, read the difference value corresponding to each valid action record in the valid action set and the number of segments in the exit segment sequence, and generate the difference value order and segment order respectively. Specifically, first arrange the valid action records in ascending order of difference value, and then generate the difference value order according to the order of arrangement. If two or more valid action records have the same difference value, then generate the difference value order according to the order in which these valid action records were written into the valid action set. Next, count the number of segments in the exit segment sequence corresponding to each valid action record, and then arrange the valid action records in ascending order of segment count. The segment order is generated according to the order of arrangement. If two or more valid action records have the same number of segments, the segment order is generated sequentially according to the order in which these valid action records are written into the valid action set. After the difference order and segment order are generated, the difference, the number of segments exiting the segment sequence, the difference order, and the segment order corresponding to each valid action record are written into the same sorting record, thus forming the sorting record corresponding to each valid action record. Through this process, each valid action record corresponds to a unique set of order values ​​in subsequent comparisons, and there will be no parallel gaps that cannot be compared.

[0098] Next, each sorted record is read, and the current sorted record is compared with the remaining sorted records in two steps, forming a retained record. Specifically, the difference order and segment order of the current sorted record are read first, followed by the difference order and segment order of the remaining sorted records. If the difference order of the current sorted record is less than the difference order of the compared object, the current sorted record is retained. If the difference order of the current sorted record is equal to the difference order of the compared object and the segment order is less than the segment order of the compared object, the current sorted record is retained. If the difference order of the current sorted record is greater than the difference order of the compared object, the current sorted record is deleted. If the difference order of the current sorted record is equal to the difference order of the comparison object and the segment order is greater than the segment order of the comparison object, the current sorted record is deleted. If the current sorted record has been deleted after being compared with a comparison object, the comparison between the current sorted record and subsequent sorted records is stopped. If the current sorted record has not been deleted after being compared with all other sorted records, the current sorted record is written into the reserved record. After processing all sorted records in the above manner, a reserved record corresponding to the current valid action set is formed. Since the difference order and segment order are generated by consecutive numbering, only one sorted record is retained in the reserved record after all sorted records are processed.

[0099] Subsequently, the number of sorted records in the retained records is counted, and when the number of sorted records is one, the target action record is determined and a parameter configuration result is generated. In specific processing, the unique sorted record in the retained records is read, and the effective action record corresponding to the sorted record is determined as the target action record. Then, the conveying section, adjustment direction, and adjustment amount corresponding to the target action record are read, and the conveying section, adjustment direction, and adjustment amount are written into the same output result to form the parameter configuration result corresponding to the conveying section. Here, the parameter configuration result includes at least three items: conveying section, adjustment direction, and adjustment amount, which are used to indicate which conveying section performs adjustment, along which direction, and to what execution amount. After the parameter configuration result is formed, it can be used as the output content of this fluid parameter optimization configuration to continue to be issued or stored. Through this process, S5 no longer stays at the sorting level, but directly converts the sorting result into an executable parameter configuration result, thus forming a complete connection with the previous status record, candidate action record, exit record, and effective action set.

[0100] Through the above processing, each valid action record in the valid action set is further converted into sorted records, retained records and the final target action record. The difference and the number of segments in the exit segment sequence are used as two comparison bases for selection. The final output parameter configuration result directly corresponds to the adjustment direction and adjustment amount of the specific delivery segment. The valid action set formed in the previous process is thus concluded into a unique execution result.

[0101] In practical applications: After a certain processing, the set of valid actions contains three valid action records. The first valid action record has a difference of 2 and 4 segments in the exit segment sequence; the second valid action record has a difference of 2 and 3 segments in the exit segment sequence; and the third valid action record has a difference of 5 and 2 segments in the exit segment sequence. First, the difference is generated in ascending order. Since the first and second records have the same difference, their difference orders are generated according to the order in which they were written into the valid action set. The third record is then generated according to its subsequent difference order. Next, the segments are ordered in ascending order of the number of segments. The first segment order is generated, the second generates the subsequent segment order, and the first generates the next segment order. Then, when comparing the sorted records one by one, the second valid action record has a smaller segment order than the first valid action record with the same difference, so the sorted record corresponding to the second record is retained. The third valid action record, although having fewer segments, has a lower difference order than the second record, so it is deleted. Finally, only the second sorted record remains in the retained records. Therefore, the second valid action record is determined as the target action record, and its corresponding conveying segment, adjustment direction, and adjustment amount are read to generate the parameter configuration result corresponding to that conveying segment.

[0102] Furthermore, a fluid parameter optimization configuration system for fluid pipeline network applications includes:

[0103] The status collection module is used to read the running data uploaded by each edge computing node in the fluid pipeline network, sort it according to the timestamp, and write the running data within the same acquisition cycle into the corresponding transport section to form the status record of each transport section.

[0104] The action generation module is used to read the target working conditions corresponding to each conveying section, calculate the difference between the current pressure value, current flow value or current differential pressure value in the status record and the corresponding target value, determine the adjustment direction based on the sign of the difference, determine the adjustment amount based on the difference and the current adjustment margin, and form the candidate action record for each conveying section.

[0105] The exit calculation module calculates the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state for each candidate action record, according to the connection sequence from the corresponding transport section to the main section, adjacent branch section and return section, and forms the exit record for the corresponding candidate action record.

[0106] Exit the verification module. By comparing the occupied amount with the release amount and the adjustment amount with the recoverable amount in the segment order in the exit record, the candidate action records that meet the condition that the occupied amount is not greater than the release amount and the adjustment amount is not greater than the recoverable amount in each segment are determined as valid action records, forming a set of valid actions.

[0107] The result selection module is used to read the difference and exit segment number corresponding to each valid action record in the valid action set, sort the valid action records in ascending order of difference and exit segment number, select the valid action record at the top of the sort, and output the corresponding parameter configuration result.

[0108] Working Principle: This scheme first collects operational data from each transport section using edge computing nodes in the fluid pipeline network, and organizes it into status records according to time sequence and section affiliation. Then, the status records are compared segment by segment with the corresponding target operating conditions to calculate the current deviation of each transport section from the target, and based on this, the adjustment direction and adjustment amount are determined, forming candidate action records. Subsequently, instead of directly adopting the candidate action, the scheme further calculates the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state, along the connecting paths of the transport section, main pipe section, adjacent branch section, and return section, forming exit records. Then, based on the release and restoreable amounts of each section, the exit records are checked segment by segment to screen out the truly effective action records that can complete the exit process. Finally, the target action record is determined by combining the difference and the number of sections in the exit section sequence from the effective action records, and the corresponding parameter configuration results are output. In other words, this scheme does not only consider whether the current adjustment can be achieved, but also includes the ability to successfully exit after adjustment in the judgment, before deciding which action is truly usable.

[0109] In practical applications, such as in a circulating liquid supply network in an industrial park, the main pipe supplies liquid to multiple branches, and the terminal equipment starts and stops at different times. Each edge computing node uploads pressure, flow, valve position, and pump frequency values ​​in real time. At a certain moment, the current pressure of branch A is lower than the target value. The system first calculates that the branch needs to be adjusted based on the status record and the target operating condition, and forms a corresponding candidate action record. However, the system does not immediately issue the action, but continues to check: if branch A is raised first, whether the main pipe section, adjacent branch sections, and return flow section still have sufficient release capacity when switching tasks later. The system has the capability to smoothly revert this adjustment. If the inspection finds that although branch A can currently meet the target, it will get stuck in a certain section when exiting, causing other branches to be unable to connect or the return flow to fail to recover, then this action will not be included in the set of valid actions. Only those actions that can adjust the current section to the target operating condition and can exit smoothly afterward will be identified as target action records and output as parameter configuration results. In this way, in the edge computing environment, the system can make quick judgments using field data and avoid mistaking actions that seem feasible at the moment but are difficult to revert later as the final configuration result.

[0110] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for optimizing fluid parameters in fluid pipeline network applications, characterized in that, include: S1. Read the running data uploaded by each edge computing node in the fluid pipeline network, sort it according to the timestamp, and write the running data within the same acquisition cycle into the corresponding transport section to form the status record of each transport section. S2. Read the target operating conditions corresponding to each conveying section, and calculate the difference between the current pressure value, current flow value, or current differential pressure value in the status record and the corresponding target value. Determine the adjustment direction based on the sign of the difference, and determine the adjustment amount based on the difference and the current adjustment margin to form a candidate action record for each conveying section. S3. For each candidate action record, calculate the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state, according to the connection sequence of the corresponding transport section to the main section, adjacent branch section and return section, and form the exit record of the corresponding candidate action record. S4. According to the segment order in the exit record, compare the occupied amount with the release amount, and the adjustment amount with the recoverable amount segment by segment. Determine the candidate action record that satisfies that the occupied amount is not greater than the release amount and the adjustment amount is not greater than the recoverable amount in each segment as a valid action record, and form a set of valid actions. S5. Read the difference value corresponding to each valid action record in the valid action set and the number of segments in the exit segment sequence. Sort the valid action records in ascending order of difference value and exit segment number. Select the valid action record at the top of the sorted list and output the corresponding parameter configuration result.

2. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 1, characterized in that: S1 includes: S1-1. Read the running data uploaded by each edge computing node, extract the timestamp and transmission segment corresponding to each running data, and arrange them in ascending order of timestamp to form a running data sequence; S1-2. For each running data sequence, compare the timestamp difference of adjacent running data in turn, divide the running data with timestamp differences within the same collection period into the same data group, and assign the running data in the same data group to the corresponding transport section according to the transport section. S1-3. According to the time sequence of each data group in each transport section, write the running data in each data group into the corresponding transport section, and combine the written running data into the status record of the corresponding transport section.

3. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 2, characterized in that: S2 includes: S2-1. Read the status records and corresponding target operating conditions of each conveying section, extract the current pressure value, current flow value or current differential pressure value and the corresponding target value, and form the comparison value of each conveying section. S2-2. For the comparison values ​​of each conveying section, the difference between the current pressure value and the corresponding target value, the difference between the current flow rate value and the corresponding target value, or the difference between the current differential pressure value and the corresponding target value is calculated to form the difference value of each conveying section.

4. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 3, characterized in that: S2 further includes: S2-3. For the difference between each conveying section, determine the direction of reduction when the difference is greater than zero, determine the direction of increase when the difference is less than zero, and determine the direction of maintenance when the difference is equal to zero, thus forming the adjustment direction of each conveying section. S2-4. Read the current adjustment margin of each conveying section in the adjustment direction, compare the absolute value of the difference with the current adjustment margin, determine the absolute value of the difference as the adjustment amount when the absolute value of the difference is not greater than the current adjustment margin, and determine the current adjustment margin as the adjustment amount when the absolute value of the difference is greater than the current adjustment margin. Write the adjustment direction and adjustment amount into the corresponding conveying section to form a candidate action record.

5. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 4, characterized in that: S3 includes: S3-1. Read the transport section and the connectivity in the status record corresponding to each candidate action record, and number them sequentially along the connectivity order from the transport section to the main section, adjacent branch section and return section to form the exit section sequence of the corresponding candidate action record. S3-2. For each exit segment sequence, calculate the occupancy amount segment by segment number in order of segment number starting from the transport segment, and calculate the adjustment amount segment by segment in reverse order of segment number starting from the return segment. Write the segment number, occupancy amount and adjustment amount corresponding to each segment into the corresponding candidate action record to form the initial exit record. S3-3. Read the status records corresponding to each segment and the feedback values ​​of adjacent segments in the initial exit record. Calculate the difference between the occupied amount and the releaseable amount, as well as the difference between the adjustment amount and the recoverable amount for each segment. Write a pass mark when both differences are not greater than zero. Write a block mark when the difference between the occupied amount and the releaseable amount is greater than zero or the difference between the adjustment amount and the recoverable amount is greater than zero. Write the segment number for which the block mark is first written into the blocking position to form the exit determination record.

6. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 5, characterized in that: S3 further includes: S3-4. For the exit record determination, if there is no obstruction mark, the initial exit record is determined as the exit record. If there is an obstruction mark, the occupancy amount corresponding to the blocking position is subtracted from the release amount to obtain the remaining occupancy amount. The adjustment amount corresponding to the blocking position is subtracted from the recoverable amount to obtain the remaining adjustment amount. Then, the remaining occupancy amount and the remaining adjustment amount are sequentially allocated to the releaseable amount and recoverable amount corresponding to each segment after the blocking position according to the segment number order. When both the remaining occupancy amount and the remaining adjustment amount are zero, a continuation mark is written. When the remaining occupancy amount or the remaining adjustment amount is not zero, a check mark is written to form a recalculated exit record. S3-5. When the initial exit record is determined to be an exit record, the initial exit record is written into the exit record of the corresponding candidate action record. When a recalculated exit record is formed, the recalculated exit record with the continuation mark is written into the exit record of the corresponding candidate action record, and the recalculated exit record with the inspection mark, together with the blocking position, is written into the exit record of the corresponding candidate action record.

7. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 6, characterized in that: S4 includes: S4-1. Read the exit record corresponding to each candidate action record, extract the occupied amount, release amount, adjustment amount and recoverable amount of each segment in segment order, and form the verification sequence of each candidate action record; S4-2. For each verification sequence, subtract the releaseable amount from the occupied amount to obtain the occupied difference in the order of the segments, subtract the recoverable amount from the adjustment amount to obtain the adjustment difference, and add the occupied difference of the current segment to the occupied difference of each preceding segment to obtain the cumulative occupied difference, and add the adjustment difference of the current segment to the adjustment difference of each subsequent segment to obtain the cumulative adjustment difference, thus forming the difference record corresponding to each segment.

8. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 7, characterized in that: S4 further includes: S4-3. For each difference record, read the cumulative occupied difference in the order of the segments. When the cumulative occupied difference is greater than zero, write the corresponding segment to the forward obstruction position. Read the cumulative adjustment difference in the reverse order of the segments. When the cumulative adjustment difference is greater than zero, write the corresponding segment to the backward obstruction position. When there is no forward obstruction position and no backward obstruction position, write the corresponding candidate action record to the pass mark. When there is a forward obstruction position or a backward obstruction position, write the corresponding candidate action record to the obstruction mark to form the verification result of each candidate action record. S4-4. Read the verification results of each candidate action record. When writing the pass mark, determine the corresponding candidate action record as a valid action record. When writing the block mark, do not write the corresponding candidate action record into the valid action set. Summarize the valid action records to form a valid action set.

9. The fluid parameter optimization configuration method for fluid pipeline network applications according to claim 8, characterized in that: S5 includes: S5-1. Read the difference value corresponding to each valid action record in the valid action set and the number of segments in the exit segment sequence. Generate the difference value order in ascending order of difference value and generate the segment order in ascending order of segment number, forming the sorted record corresponding to each valid action record. S5-2. Read each sorted record, and compare the difference order and segment order of the current sorted record with the difference order and segment order of the other sorted records one by one. If the difference order is less than the difference order of the comparison object, retain the current sorted record. If the difference order is equal to the difference order of the comparison object and the segment order is less than the segment order of the comparison object, retain the current sorted record. If the difference order is greater than the difference order of the comparison object or equal to the difference order of the comparison object and the segment order is greater than the segment order of the comparison object, delete the current sorted record to form a retained record. S5-3. Count the number of sorted records in the retained records. When the number of sorted records is one, determine the corresponding valid action record as the target action record, and read the adjustment direction and adjustment amount corresponding to the target action record to generate the parameter configuration result of the corresponding conveying section.

10. A fluid parameter optimization configuration system for fluid pipeline network applications, characterized in that, include: The status collection module is used to read the running data uploaded by each edge computing node in the fluid pipeline network, sort it according to the timestamp, and write the running data within the same acquisition cycle into the corresponding transport section to form the status record of each transport section. The action generation module is used to read the target working conditions corresponding to each conveying section, calculate the difference between the current pressure value, current flow value or current differential pressure value in the status record and the corresponding target value, determine the adjustment direction based on the sign of the difference, determine the adjustment amount based on the difference and the current adjustment margin, and form the candidate action record for each conveying section. The exit calculation module calculates the amount of occupancy to be released and the amount of adjustment to be restored when exiting the current supply state for each candidate action record, according to the connection sequence from the corresponding transport section to the main section, adjacent branch section and return section, and forms the exit record for the corresponding candidate action record. Exit the verification module. By comparing the occupied amount with the release amount and the adjustment amount with the recoverable amount in the segment order in the exit record, the candidate action records that meet the condition that the occupied amount is not greater than the release amount and the adjustment amount is not greater than the recoverable amount in each segment are determined as valid action records, forming a set of valid actions. The result selection module is used to read the difference and exit segment number corresponding to each valid action record in the valid action set, sort the valid action records in ascending order of difference and exit segment number, select the valid action record at the top of the sort, and output the corresponding parameter configuration result.