A method and system for optimizing outbound scheduling based on fresh milk industry big data analysis
By generating a batch-level outbound loading association table and loading sorting integer programming, the problem of uncontrolled waiting time for fresh milk batches in the platform waiting area was solved, realizing the reliability and freshness control of outbound scheduling, and improving the feasibility and freshness guarantee of fresh milk delivery.
Patent Information
- Application Number
- CN202611345029.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
Existing cold chain distribution optimization methods fail to effectively control the waiting time of fresh milk batches in the platform waiting area before loading, causing the optimal solution at the path layer to fail due to freshness constraints in the pre-outbound waiting stage, making it difficult to reflect the actual available freshness margin.
By acquiring finished product cold storage outbound barcode scanning records, order batch binding records, vehicle task records, and quality parameters, a batch-level outbound loading association table is generated. The predicted sealing confirmation time of the vehicle task number under each candidate loading sequence is predicted. An integer programming variable for loading sorting is established to solve the vehicle loading sequence and sealing and dispatching sequence instructions that satisfy the batch waiting upper limit.
This technology enables the identification and elimination of candidate positions exceeding the waiting limit before vehicle loading and sealing/departure instructions are generated. This ensures that the outbound scheduling results reflect the platform resource boundaries and the remaining waiting capacity of fresh milk batches, thereby improving the reliability of outbound scheduling and freshness control.
Smart Images

Figure CN123159775A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of low-temperature fresh milk outbound scheduling and industrial big data analysis technology, and in particular to an outbound scheduling optimization method and system based on fresh milk industrial big data analysis. Background Technology
[0002] Fresh milk is a temperature- and time-sensitive low-temperature dairy product. Its outbound delivery process includes a series of continuous steps such as temporary storage in cold storage, order picking, platform collection, vehicle loading, sealing and dispatching, and store delivery. After a batch of fresh milk is picked out of the cold storage, its status changes from stable cold storage to the outbound operation chain. The waiting time after leaving the warehouse, the loading connection, and the vehicle dispatch rhythm all affect the available freshness margin for subsequent delivery routes.
[0003] Existing cold chain distribution optimization methods mostly focus on establishing constraints around vehicle routes, time windows, vehicle capacity, transportation distance, and delivery timeliness. Platform vehicle scheduling methods, on the other hand, emphasize vehicle arrival, berth allocation, loading and unloading sequence, and utilization of operational resources. While these methods can improve transportation layer efficiency or platform layer throughput, their modeling boundaries often remain at the level of vehicle routes or loading and unloading resources. They fail to characterize the waiting process of fresh milk batches from leaving the finished product cold storage to vehicle sealing as an independent and controllable state, and they also lack constraint mechanisms that link batch freshness margins with platform waiting time, loading sequence, and departure sequence.
[0004] In scenarios involving multiple vehicles, multiple stores, and multiple batches of fresh milk leaving the warehouse simultaneously, the picking time for each batch of fresh milk carried by a vehicle is not always synchronized with vehicle arrival, order merging, and sealing and departure. Batches leaving the warehouse too early will create pre-waiting in the platform waiting area. If the system only verifies the arrival time window at the path layer, without predicting and limiting the batch waiting time at the outbound layer, the freshness input when the vehicle leaves the warehouse will no longer be reliable, and the subsequent path optimization results will be difficult to reflect the actual available freshness margin. Therefore, an outbound scheduling optimization method is needed that can use the platform waiting time as a dynamic perturbation and predict and limit the waiting time of each batch of fresh milk from leaving the cold storage to vehicle sealing when generating the vehicle loading and departure order. Summary of the Invention
[0005] The purpose of this invention is to provide an outbound scheduling optimization method and system based on big data analysis of the fresh milk industry, in order to solve the problem that the existing outbound scheduling does not explicitly control the waiting time of fresh milk batches in the platform waiting area before loading, which causes the optimal solution at the path layer to fail due to freshness constraints in the pre-outbound waiting stage.
[0006] To achieve the above objectives, this invention provides an outbound scheduling optimization method based on big data analysis of the fresh milk industry, comprising:
[0007] S1, obtain finished product cold storage outbound scanning records, order batch binding records, vehicle task records, vehicle check-in records and quality parameter configurations, and generate a batch-level outbound loading association table based on batch code, order number, vehicle check-in priority rules and the maximum number of minutes allowed to wait from departure to sealing;
[0008] S2, based on the platform loading operation record and the batch-level outbound loading association table, construct the platform continuous operation time-stamp sequence, predict the predicted sealing confirmation time of the vehicle task number under each candidate loading sequence, and convert it into a batch-level candidate loading sequence waiting prediction matrix.
[0009] S3 compares the predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix with the maximum allowed waiting time in minutes from departure to sealing in the batch-level departure loading association table, and generates a batch-level waiting balance constraint list that includes candidate loading sequence waiting balance, sequence status and vehicle sealing deadline.
[0010] S4. Based on the batch-level waiting margin constraint list, the batch-level candidate loading sequence waiting prediction matrix, and the platform resource configuration, establish the loading sorting integer programming variables and solve the vehicle loading sorting that satisfies the batch waiting upper limit, and generate an executable vehicle loading sequence and sealing and departure sequence instruction table.
[0011] Further, step S1 includes:
[0012] S11, perform equivalent matching between the finished product cold storage outbound scanning record and the order batch binding record according to the batch code, and generate batch order matching results containing batch code, outbound scanning time, pallet quantity, order number and store number;
[0013] S12, perform equivalent matching between the batch order matching results and the vehicle task records according to the order number, and generate batch vehicle platform matching results containing vehicle task number, license plate number, designated platform number, task arrival time and loading team number;
[0014] S13. Determine the vehicle arrival benchmark time according to the rule that vehicle check-in records take precedence over vehicle task records, and match the maximum number of minutes allowed to wait from leaving the warehouse to sealing the box according to the store number, and generate a batch allowable sealing deadline time and batch-level departure loading association table.
[0015] Further, step S2 includes:
[0016] S21. Group the loading operation records of the platform according to the designated platform number, and sort the valid operation records under the same designated platform number in ascending order according to the sealing confirmation time to generate a continuous operation time stamp sequence of the platform.
[0017] S22, construct the candidate loading sequence time series feature vector based on the platform continuous operation time-scale sequence and batch-level loading association table, and use a gated cyclic unit regression model with time interval weight correction to output the predicted sealing confirmation time;
[0018] S23. Map the predicted sealing confirmation time to each batch code in the batch-level departure loading association table according to the vehicle task number, and generate a batch-level candidate loading sequence waiting prediction matrix based on the departure scanning time.
[0019] Further, step S3 includes:
[0020] S31, according to the batch code and vehicle task number, align the fields of the batch-level candidate loading sequence waiting prediction matrix with the batch-level departure loading association table, and calculate the candidate loading sequence waiting margin between the maximum allowable waiting time from departure to sealing and the predicted waiting time at the platform.
[0021] S32, perform a zero-value boundary comparison on the waiting balance of the candidate loading sequence, mark the candidate loading sequence with a waiting balance less than zero as a prohibited sequence, and mark the candidate loading sequence with a waiting balance not less than zero as an available sequence.
[0022] S33. Group the batch codes in the batch-level loading and unloading association table according to the vehicle task number, and determine the earliest allowed sealing deadline of the batch under the same vehicle task number as the vehicle sealing deadline, and generate a batch-level waiting margin constraint list.
[0023] Further, step S4 includes:
[0024] S41, according to the available sequence number in the batch-level waiting margin constraint list and the vehicle sealing deadline, establish vehicle sequence selection integer programming variables, platform allocation integer programming variables, loading start time time decision variables and sealing confirmation time time decision variables.
[0025] S42 maps the predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix to the waiting cost of the vehicle sequence selection integer programming variable, and solves the vehicle loading order under platform capacity constraints, loading team time window constraints, sealing time limit constraints and sequence uniqueness constraints.
[0026] S43 generates the vehicle loading sequence and the sealing and departure sequence according to the loading start time and sealing confirmation time of the vehicle loading order, and outputs the executable vehicle loading sequence and sealing and departure sequence instruction table.
[0027] Further, step S13 includes:
[0028] S131, Match the vehicle check-in records to the batch vehicle platform matching results according to the vehicle task number and license plate number;
[0029] S132, when the vehicle check-in time exists, the vehicle check-in time is determined as the vehicle arrival reference time; when the vehicle check-in time is empty, the task arrival time is determined as the vehicle arrival reference time.
[0030] S133, match the quality parameter configuration to the batch vehicle platform matching result according to the store number, and add the departure scanning time to the maximum allowed waiting time in minutes from departure to sealing to obtain the batch's allowed sealing deadline time.
[0031] Further, step S22 includes:
[0032] S221, aggregate the number of pallets, designated platform number, vehicle arrival reference time, batch code and departure scanning time in the batch-level departure loading association table according to the vehicle task number;
[0033] S222, determine the set of candidate loading positions in the continuous operation time stamp sequence of the platform according to the platform number specified by the vehicle task, and extract the continuous operation window before each candidate loading position.
[0034] S223, based on the difference between the vehicle arrival time and the loading start time in the continuous operation window, the time interval between the sealing confirmation time of adjacent vehicles and the number of vehicle task pallets, a candidate loading sequence time sequence feature vector is formed, and the sealing confirmation time is predicted after time interval weight correction, gate control status update and sealing time regression output.
[0035] Further, step S32 includes:
[0036] S321 performs minute value format verification on the batch code, vehicle task number, designated platform number and candidate loading sequence waiting balance corresponding to the candidate loading sequence;
[0037] S322: Write the prohibited sequence status when the waiting margin of the candidate loading sequence is less than zero, and write the available sequence status when the waiting margin of the candidate loading sequence is greater than or equal to zero.
[0038] S323 retains the correspondence between the predicted platform waiting time, the maximum allowed waiting time in minutes from leaving the warehouse to sealing the wagon, the waiting margin of the candidate loading sequence, and the sequence status, and generates a feasibility judgment table for the candidate loading sequence with the sequence status.
[0039] Further, step S42 includes:
[0040] S421 aggregates the predicted platform waiting time corresponding to all batch codes under the same vehicle task number and generates waiting cost for vehicle task candidate order.
[0041] S422, construct the objective function that minimizes the total predicted platform waiting time using the vehicle task candidate order waiting cost and the vehicle order selection integer programming variables;
[0042] S423, write the number of vehicles that the platform can serve at the same time into the platform capacity constraint, write the start time and end time of the loading team into the loading team time window constraint, and write the vehicle sealing deadline into the sealing time limit constraint.
[0043] S424 solves the vehicle loading order under the condition that only one vehicle task number is bound to the same specified platform number and the same candidate loading sequence.
[0044] The present invention also provides an outbound scheduling optimization system for big data analysis in the fresh milk industry, including an association table generation unit, a waiting prediction unit, a surplus constraint generation unit, a sorting and solving unit, and an instruction generation unit.
[0045] Compared with existing technologies, this invention unifies batch outbound barcode scanning, vehicle tasks, platform operation time scales, quality parameters, and platform resource configuration into batch-level outbound scheduling constraints. It transforms the waiting limit from outbound to sealing into the feasibility of candidate loading sequences and the vehicle sealing deadline, and solves the loading order with the predicted total platform waiting time as the optimization objective. Thus, before the vehicle loading and sealing departure instructions are generated, candidate sequences exceeding the waiting limit are identified and eliminated, so that the outbound scheduling results can simultaneously reflect the platform resource boundary and the fresh milk batch waiting capacity. Attached Figure Description
[0046] The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0047] Figure 1 This is a flowchart of an outbound scheduling optimization method for big data analysis in the fresh milk industry according to an embodiment of this application;
[0048] Figure 2 This is a structural diagram of an outbound scheduling optimization system for big data analysis in the fresh milk industry, according to an embodiment of this application. Detailed Implementation
[0049] The present invention will be further described below with reference to specific embodiments. These specific embodiments are only for explaining the present invention and do not limit the scope of protection of the present invention.
[0050] In one specific embodiment, such as Figure 1As shown, this application provides an outbound scheduling optimization method for big data analysis in the fresh milk industry. The method includes:
[0051] S1 retrieves finished product cold storage outbound barcode scanning records, order batch binding records, vehicle task records, vehicle check-in records, and quality parameter configurations, and generates a batch-level outbound loading association table based on batch code, order number, vehicle check-in priority rules, and the maximum number of minutes allowed for waiting from departure to sealing.
[0052] Further, step S1 includes:
[0053] S11. Match the finished product cold storage outbound barcode scanning record with the order batch binding record according to the batch code, and generate a batch order matching result containing batch code, outbound barcode scanning time, pallet quantity, order number and store number.
[0054] In this specific embodiment, after obtaining the finished product cold storage outbound barcode scanning record and the order batch binding record, the batch code, departure barcode scanning time, and pallet quantity are determined from the finished product cold storage outbound barcode scanning record, and the batch code, order number, and store number are determined from the order batch binding record. Character format standardization and null value validation are performed on the batch code. Records with null batch codes are written to the batch order matching exception record. Records with duplicate batch codes are retained as unique records based on the latest business update time. Equivalence matching is then performed on the finished product cold storage outbound barcode scanning record and the order batch binding record according to the batch code. After the order number and store number are backfilled into the finished product cold storage outbound barcode scanning record corresponding to the batch code, a batch order matching result containing the batch code, departure barcode scanning time, pallet quantity, order number, and store number is generated, ensuring that subsequent vehicle task matching has a unique batch basis.
[0055] S12, perform equivalent matching between the batch order matching results and the vehicle task records according to the order number, and generate batch vehicle platform matching results containing vehicle task number, license plate number, designated platform number, task arrival time and loading team number.
[0056] In this specific embodiment, based on the batch code, departure scanning time, pallet quantity, order number, and store number in the batch order matching result, and combined with the order number, vehicle task number, license plate number, designated platform number, task arrival time, and loading team number in the vehicle task record, character format standardization and null value validation are performed on the order number. Records with null order numbers are written into the batch vehicle platform matching anomaly record; records with valid order numbers are matched for their order numbers, and the vehicle task number, license plate number, designated platform number, task arrival time, and loading team number are then backfilled into the batch order matching result of the corresponding batch code. This forms the batch vehicle platform matching result, enabling each valid batch to be traced back to the corresponding vehicle task, license plate number, and designated platform number.
[0057] S13. Determine the vehicle arrival benchmark time according to the rule that vehicle check-in records take precedence over vehicle task records, and match the maximum number of minutes allowed to wait from leaving the warehouse to sealing the box according to the store number, and generate a batch allowable sealing deadline time and batch-level departure loading association table.
[0058] In this specific embodiment, after obtaining the batch vehicle platform matching results, vehicle check-in records, and quality parameter configurations, the vehicle check-in records are matched to the batch vehicle platform matching results according to the vehicle task number and license plate number. When a vehicle check-in time exists, the vehicle check-in time is written to the vehicle arrival reference time; when the vehicle check-in time is empty, the task arrival time is written to the vehicle arrival reference time. The allowed waiting time in minutes from departure to sealing in the quality parameter configuration is matched to the batch vehicle platform matching results according to the store number, and the allowed waiting time in minutes from departure to sealing is added to the departure scanning time to obtain the batch's allowed sealing deadline. The vehicle arrival reference time is used to represent the time benchmark for vehicles to participate in loading sorting at the departure platform. Prioritizing the use of vehicle check-in times reflects the actual arrival status on-site; when vehicle check-in times are missing, the task arrival time is used to maintain the integrity of the batch-level departure loading association table while preserving the calculable scheduling boundary in scenarios where vehicle check-in is missing. The final batch-level departure loading association table includes batch code, departure scanning time, number of pallets, order number, store number, vehicle task number, license plate number, designated platform number, loading team number, vehicle arrival reference time, maximum allowed waiting time in minutes from departure to sealing, and batch allowable sealing deadline.
[0059] S2. Based on the platform loading operation record and the batch-level outbound loading association table, construct the platform continuous operation time-stamp sequence, predict the predicted sealing confirmation time of the vehicle task number under each candidate loading sequence, and convert it into a batch-level candidate loading sequence waiting prediction matrix.
[0060] Further, step S2 includes:
[0061] S21. Group the loading operation records of the platform according to the designated platform number, and sort the valid operation records under the same designated platform number in ascending order according to the sealing confirmation time to generate a continuous operation time stamp sequence of the platform.
[0062] In this specific embodiment, after obtaining the platform loading operation record, the designated platform number, vehicle task number, loading start time, sealing confirmation time, pallet quantity, and loading team number are determined. The designated platform number undergoes character format standardization processing, unifying leading and trailing spaces, full-width characters, and capitalization differences to the standard number format used in platform resource management. The vehicle task number undergoes null value validation and character format standardization processing. The loading start time and sealing confirmation time undergo time format validation, converting time fields from different sources to a timestamp format with the same time zone and time precision, and converting the pallet quantity to a non-negative integer format. Operation records with null loading start times, null sealing confirmation times, or sealing confirmation times earlier than the loading start time are removed. The vehicle task number, designated platform number, loading start time, sealing confirmation time, and reason for the error of the removed records are written into the platform operation time stamp error record, ensuring that all records participating in sequence generation have complete operation start and end boundaries.
[0063] The operation start boundary represents the time boundary at which a vehicle begins loading under a specified platform number, and the operation end boundary represents the time boundary at which the vehicle completes the sealing confirmation. These two boundaries together define the time interval occupied by a single loading operation on the platform timeline. Records lacking boundaries or with reversed boundaries are removed to prevent invalid time intervals from being included in the calculation of adjacent sealing confirmation time intervals. After being removed and added to the platform operation timescale anomaly record, the source of the anomaly and the basis for verification are preserved, preventing anomaly details from directly affecting the prediction of candidate loading sequence positions.
[0064] After verification, the platform loading operation records are grouped according to the designated platform number. All valid operation records under the same designated platform number are included in the same platform operation record set. When multiple duplicate records with the same vehicle task number and the same designated platform number have the same sealing confirmation time, the record with the newest business update time is retained as the unique operation record, and the overwritten record is written to the duplicate operation record cache. Each platform operation record set is sorted in ascending order of sealing confirmation time; when multiple vehicle task numbers have the same sealing confirmation time, the sorting is maintained by ascending order of loading start time and ascending order of vehicle task number character order. For the sorted ordered operation record set, except for the first valid operation record under each designated platform number, the sealing confirmation time interval of adjacent vehicles is obtained by subtracting the sealing confirmation time of the previous valid operation record from the sealing confirmation time of the current operation record. The adjacent vehicle sealing confirmation time interval of the first valid operation record under each designated platform number is written with a first interval null value flag, which indicates that the first record does not have a previous sealing confirmation benchmark in the same platform and is not included in the historical adjacent interval calculation. When three valid car closure confirmation records exist for designated platform number M01 at 09:10, 09:32, and 09:55, these three records are sequentially arranged on the timeline of designated platform number M01. The time interval between adjacent car closure confirmations for the second record is written as 22 minutes, and for the third record as 23 minutes. This ultimately forms a continuous platform operation time-stamped sequence indexed by the designated platform number and with the car closure confirmation time as the timeline. Each sequence record includes the designated platform number, vehicle task number, loading start time, car closure confirmation time, number of pallets, loading team number, and the time interval between adjacent car closure confirmations. This transforms discrete historical loading operation details into a platform operation time-stamped sequence with continuous temporal relationships, improving the accuracy, stability, and traceability of platform operation rhythm expression, and providing a structured time-series data foundation for predicting car closure confirmation times under candidate loading sequences.
[0065] S22, constructs candidate loading sequence time-series feature vectors based on the platform continuous operation time-stamped sequence and batch-level loading association table, and uses a gated cyclic unit regression model with time interval weight correction to output the predicted sealing confirmation time.
[0066] In this specific embodiment, based on the continuous operation time stamp sequence of the platform and the batch-level departure loading association table, aggregation is performed on the batch-level departure loading association table according to the vehicle task number. The number of pallets under the same vehicle task number is accumulated to the vehicle task pallet number. The designated platform number under the same vehicle task number is kept as the vehicle task designated platform number. The vehicle arrival reference time is kept as the vehicle task arrival time. The batch code and departure scanning time associated with the vehicle task number are retained as the result association identifier. When there are multiple vehicle arrival reference times for the same vehicle task number, the earliest vehicle arrival reference time is taken as the vehicle task arrival time. When the same vehicle task number matches multiple designated platform numbers, the vehicle task number is written to the platform matching exception cache and is not included in the candidate loading order prediction.
[0067] The vehicle task number is matched to the continuous operation timescale sequence of the platform according to the designated platform number, and the set of candidate loading sequence positions is determined on the time axis corresponding to the designated platform number. This is done when the designated platform number exists within the scheduling calculation window. When there are already sorted job records, set the candidate loading sequence to "from". to The integer sequence number; for example, when the scheduling calculation window takes 120 minutes before and 240 minutes after the current scheduling time and there are 6 valid operation records for the same platform, 7 candidate loading sequences are formed. For any candidate loading sequence, a length of [value missing] is extracted from the continuous operation time-stamp sequence of the platform preceding the candidate loading sequence. Continuous operation window, Take 3 to 20 operation records and select 8 of them; if there are insufficient candidates before the loading sequence... When processing a work record, the records are supplemented by the earlier work records under the same designated platform number. If the records are still insufficient, the records are supplemented by the median difference in loading start time, the median interval between sealing confirmation times of adjacent vehicles, and the median number of pallets from the historical samples of the designated platform number. An invalid window flag is written to the supplemented position.
[0068] The candidate loading sequence number indicates the insertable position of the current vehicle task number within the sorted operation sequence of the specified platform number. A higher candidate loading sequence number indicates an earlier vehicle task will participate in loading; a lower candidate loading sequence number indicates that the vehicle task needs to wait for more preceding loading operations to complete. The continuous operation window represents the platform operation cycle time before the candidate loading sequence number, and the window length is specified. Covering 3 to 20 job records is intended to achieve a match between stable input dimensions and historical beat representation. The invalid window identifier indicates that the window position is filled by the median of historical samples; it is only used to maintain the model input tensor dimension and is not used as a real job record for subsequent job tracing.
[0069] Within each continuous operation window, the difference between the vehicle task arrival time and the loading start time recorded in the window is calculated at a minute granularity. The sealing confirmation time interval of adjacent vehicles in the window record is extracted, and the number of vehicle task pallets is written into the same window record position to form a candidate loading sequence time-series feature vector. Numerical unit verification and normalization processing are performed on the candidate loading sequence time-series feature vector, unifying the time difference to minutes and the number of pallets to the number of pallets. The number of abnormal negative pallets, missing sealing intervals, and values exceeding the quantile boundaries of the training samples are written into the feature anomaly cache. Repairable missing sealing intervals are padded with the median of the sealing confirmation time intervals of adjacent vehicles with the same specified platform number. Time intervals exceeding the 99th percentile are truncated at the 99th percentile, so that the input tensor maintains the form of candidate loading sequence number multiplied by window length multiplied by three-dimensional feature. The improved gated loop unit regression model includes a three-dimensional feature input layer, a time interval weight correction layer, a gated loop state update layer, and a sealing time regression output layer. The hidden state dimension is taken as 16 to 128, with 64 being the preferred value. The model parameters are fixed after training using historical samples from the same fresh milk outbound platform operation scenario, and the model parameters are not updated during the current prediction process.
[0070] The time interval weighting correction layer generates a decay coefficient based on the deviation between the confirmation time interval of adjacent vehicles within the candidate loading sequence window and the historical interval statistics of the specified platform number.
[0071]
[0072] in, Indicates the first The first candidate for loading sequence Each window records the corresponding time interval decay coefficient. Indicates the first The number of minutes between the sealing confirmation times of adjacent vehicles recorded in each window. Indicates the specified platform number Historical interval statistics, Indicates the specified platform number Historical interval dispersion parameter, This represents a positive constant that avoids division by zero.
[0073] The time interval attenuation coefficient is used to characterize the degree of deviation of the current window operation cycle from the historical platform cycle. When the time interval between the confirmation of the sealing of adjacent vehicles is not higher than the historical interval statistics, the attenuation coefficient is close to 1, indicating that there is no delay amplification in the current cycle. When the time interval between the confirmation of the sealing of adjacent vehicles is higher than the historical interval statistics, the attenuation coefficient decreases as the degree of deviation increases, so that the gate control status update process reduces the direct amplification effect of abnormally long intervals on the predicted sealing confirmation time, thereby making the prediction results more suitable for the current platform operation status.
[0074] The last valid hidden state of each candidate loading sequence window is input into the sealing time regression output layer, and the sealing confirmation time of the adjacent operation record before the candidate loading sequence is used as the reference time; when there is no valid operation record before the candidate loading sequence, the vehicle task arrival time is used as the reference time. The predicted sealing confirmation time is determined by the following formula:
[0075]
[0076] in, Indicates the first The predicted sealing confirmation time corresponding to each candidate loading sequence position. Indicates the first The reference time corresponding to each candidate loading sequence position. This represents the smooth activation function used to output non-negative time increments. This represents the regression output weight vector at the time of sealing the compartment. Indicates the first The last valid window of each candidate loading sequence position records the corresponding hidden state vector. This indicates the output bias of the car closure time regression. The non-negative time increment output by softplus is used to avoid the predicted car closure confirmation time being earlier than the baseline time, thereby ensuring that the candidate loading sequence prediction results simultaneously satisfy the platform timing direction and the vehicle task arrival boundary.
[0077] A prediction result record is established based on the vehicle task number, designated platform number, and candidate loading sequence, and the predicted sealing confirmation time is written into the corresponding record. When the same vehicle task number is associated with multiple batch codes, the mapping relationship between the batch code set and the departure scanning time set is retained in the prediction result record, but the predicted sealing confirmation time for the same vehicle task number under the same designated platform number and the same candidate loading sequence remains unchanged. This enables the prediction of sealing confirmation time under different candidate loading sequences to have time-series adaptability and platform operation status awareness capabilities, and provides a calculable and verifiable prediction time basis for subsequent loading sorting constraints.
[0078] S23. Map the predicted sealing confirmation time to each batch code in the batch-level departure loading association table according to the vehicle task number, and generate a batch-level candidate loading sequence waiting prediction matrix based on the departure scanning time.
[0079] In this specific embodiment, the pre-prediction results adopt the format of vehicle task-level candidate sequence prediction records. Each record includes the vehicle task number, designated platform number, candidate loading sequence, and predicted sealing confirmation time. The batch-level departure loading association table adopts the format of batch-level detailed records. Each record includes the batch code, departure scanning time, pallet quantity, order number, store number, vehicle task number, license plate number, designated platform number, loading team number, vehicle arrival reference time, maximum allowed waiting time in minutes from departure to sealing, and batch allowed sealing deadline. Based on the predicted sealing confirmation time corresponding to the vehicle task number, designated platform number, and candidate loading sequence, and combined with the batch-level departure loading association table, a predicted sealing confirmation time index is established according to the vehicle task number. Each vehicle task number corresponds to multiple candidate loading sequence prediction records under the same designated platform number; for example, when the vehicle task number corresponds to candidate loading sequences from 1 to 7, 7 vehicle task-level candidate sequence prediction records are retained. The predicted sealing confirmation time index is mapped to each batch code in the batch-level departure loading association table according to the vehicle task number. When the same vehicle task number is associated with multiple batch codes, each batch code is expanded to obtain the predicted sealing confirmation time corresponding to all candidate loading positions under the vehicle task number. When a vehicle task number is associated with 3 batch codes and there are 7 candidate loading positions for the vehicle task number, it is expanded to form 21 batch-level candidate position records, and the one-to-one correspondence between batch codes and departure scanning times is maintained.
[0080] For each batch-level candidate sequence record after expansion, the departure scanning time corresponding to the batch code is extracted, and the predicted sealing confirmation time corresponding to the same vehicle task number and the same candidate loading sequence is extracted. The predicted sealing confirmation time is subtracted from the departure scanning time to obtain the time difference, which is then converted into the predicted platform waiting time. The time unit is uniformly set to minutes, and the second-level difference is rounded to two decimal places. For example, if the predicted sealing confirmation time is 10:36:30 and the departure scanning time is 10:08:00, the predicted platform waiting time is written as 28.50 minutes. The batch-level candidate loading sequence waiting prediction matrix is stored in a long table record format, with fields including batch code, vehicle task number, designated platform number, candidate loading sequence, predicted sealing confirmation time, and predicted platform waiting time. The batch-level candidate loading sequence waiting prediction matrix is used to convert the vehicle task-level time-series prediction results into a batch-level waiting quantification matrix, so that different batch codes under the same vehicle task number can form a predicted platform waiting time according to their respective departure scanning time, thereby improving the accuracy and verifiability of the expression of the fresh milk outbound loading waiting status, and providing a stable and traceable data foundation for the batch waiting upper limit constraint.
[0081] S3 compares the predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix with the maximum allowed waiting time in minutes from departure to sealing in the batch-level departure loading association table, and generates a batch-level waiting balance constraint list that includes candidate loading sequence waiting balance, sequence status and vehicle sealing deadline.
[0082] Further, step S3 includes:
[0083] S31. Align the batch-level candidate loading sequence waiting prediction matrix with the batch-level departure loading association table according to the batch code and vehicle task number, and calculate the candidate loading sequence waiting margin between the maximum allowed waiting time from departure to sealing and the predicted waiting time at the platform.
[0084] In this specific embodiment, based on the batch-level candidate loading sequence waiting prediction matrix and the batch-level departure loading association table, using the batch code and vehicle task number as matching keys, the specified platform number, candidate loading sequence, predicted sealing confirmation time, and predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix are aligned with the departure scanning time, the maximum allowed waiting time in minutes from departure to sealing, and the batch's allowed sealing deadline in the batch-level departure loading association table. For the same batch code, the predicted platform waiting time under each candidate loading sequence is validated, and the predicted platform waiting time is uniformly converted to minutes. The maximum allowed waiting time in minutes from departure to sealing is subtracted from the predicted platform waiting time to obtain the candidate loading sequence waiting margin. The candidate loading sequence waiting margin represents the remaining time for the fresh milk batch under the candidate loading sequence before reaching the maximum allowed waiting time; a positive value indicates that the predicted waiting time has not yet exceeded the maximum, a zero value indicates that the maximum has just been reached, and a negative value indicates that the predicted waiting time has exceeded the maximum. The candidate loading sequence waiting balance details table includes batch code, vehicle task number, designated platform number, candidate loading sequence, predicted platform waiting time, maximum allowed waiting time in minutes from departure from the warehouse to sealing of the wagon, and candidate loading sequence waiting balance.
[0085] S32, perform a zero-value boundary comparison on the waiting balance of the candidate loading sequence, mark the candidate loading sequence with a waiting balance less than zero as a prohibited sequence, and mark the candidate loading sequence with a waiting balance not less than zero as an available sequence.
[0086] In this specific embodiment, for the candidate loading sequence waiting balance details table, the records to be compared are located row by row according to batch code, vehicle task number, designated platform number, and candidate loading sequence, so that the waiting balance of the same batch code under different candidate loading sequences participates in the judgment separately. The candidate loading sequence waiting balance is extracted for each record to be compared, and the candidate loading sequence waiting balance is standardized to a minute value format, retaining two decimal places of precision. A candidate loading sequence waiting balance of 0.00 minutes is used as a valid boundary value for comparison, and a candidate loading sequence waiting balance of -0.01 minutes is determined to have exceeded the allowed waiting limit.
[0087] When the waiting time of the candidate loading sequence is less than 0 minutes, the sequence status field of the corresponding record is written to the prohibited sequence position, indicating that the predicted waiting time of the batch code under the corresponding vehicle task number, designated platform number and candidate loading sequence has exceeded the upper limit of the allowed waiting time from departure from the warehouse to sealing. When the waiting time of the candidate loading sequence is greater than or equal to 0 minutes, the sequence status field of the corresponding record is written to the available sequence position, indicating that the predicted waiting time of the batch code under the corresponding candidate loading sequence has not exceeded the upper limit of the allowed waiting time from departure from the warehouse to sealing. For example, if the predicted waiting time at the platform for a certain batch code is 28.50 minutes, the maximum allowed waiting time from departure from the warehouse to sealing is 30.00 minutes, and the waiting margin for a candidate loading sequence is 1.50 minutes, then the candidate loading sequence is marked as an available sequence. Conversely, if the predicted waiting time at the platform for a certain batch code is 32.20 minutes, the maximum allowed waiting time from departure from the warehouse to sealing is 30.00 minutes, and the waiting margin for a candidate loading sequence is -2.20 minutes, then the candidate loading sequence is marked as a prohibited sequence. The sequence status is determined by performing a zero-value boundary comparison on the waiting margin of the candidate loading sequence and writing it into a prohibited or available sequence status. This transforms the continuous numerical judgment of the batch waiting margin into a discrete constraint identifier that can be directly invoked for loading sorting. This eliminates sequence combinations exceeding the waiting limit before subsequent integer programming solutions, improving the accuracy, traceability, and stability of the feasibility determination of the fresh milk outbound loading sequence.
[0088] S33. Group the batch codes in the batch-level loading and unloading association table according to the vehicle task number, and determine the earliest allowed sealing deadline of the batch under the same vehicle task number as the vehicle sealing deadline, and generate a batch-level waiting margin constraint list.
[0089] In this specific embodiment, based on the candidate loading sequence feasibility determination table with sequence status and the batch-level outbound loading association table, field format validation is performed on the vehicle task number, batch code, and batch allowable sealing deadline. The vehicle task number is unified into a character format after removing leading and trailing spaces, and the batch allowable sealing deadline is converted into a timestamp format with the same time zone and time precision. The batch codes in the batch-level outbound loading association table are grouped according to the vehicle task number, so that all batch codes under the same vehicle task number enter the same vehicle task group. For each vehicle task group, the batch allowable sealing deadline corresponding to each batch code under that vehicle task number is extracted one by one, and the batch allowable sealing deadlines are sorted in ascending time order. The earliest batch allowable sealing deadline in the sorted result is determined as the vehicle sealing deadline corresponding to the vehicle task number. When there are multiple identical earliest batch allowable sealing deadlines under the same vehicle task number, the identical earliest time is retained as the vehicle sealing deadline, and the association relationship between the corresponding batch code and the vehicle sealing deadline is preserved.
[0090] The vehicle sealing deadline represents the latest time allowed for sealing confirmation of the most urgent fresh milk batch under the same vehicle task number. Using the earliest allowed sealing deadline ensures that the sealing constraint at the vehicle task level inherits the strictest waiting limit at the batch level, preventing batches nearing their waiting limit from being masked by more lenient batches. After establishing a vehicle sealing deadline index based on vehicle task number, the vehicle sealing deadline is backfilled into all records corresponding to the vehicle task number in the candidate loading sequence feasibility determination table with sequence status. This ensures that records with different batch codes, different designated platform numbers, and different candidate loading sequences under the same vehicle task number all have the same vehicle sealing deadline. After this earliest value is backfilled into the candidate loading sequence feasibility record, the batch-level fresh milk waiting limit constraint is transformed into a vehicle task-level sealing hard constraint. This allows subsequent loading sorting solutions to respond to the most urgent batch deadline and enhances the completeness, traceability, and stability of the batch waiting margin constraint list. The batch-level waiting capacity constraint list includes batch code, vehicle task number, designated platform number, candidate loading sequence, predicted platform waiting time, maximum allowed waiting time in minutes from departure to sealing, candidate loading sequence waiting capacity, sequence status, and vehicle sealing deadline.
[0091] S4. Based on the batch-level waiting margin constraint list, the batch-level candidate loading sequence waiting prediction matrix, and the platform resource configuration, establish the loading sorting integer programming variables and solve the vehicle loading sorting that satisfies the batch waiting upper limit, and generate an executable vehicle loading sequence and sealing and departure sequence instruction table.
[0092] Further, step S4 includes:
[0093] S41, establish vehicle sequence selection integer programming variables, platform allocation integer programming variables, loading start time time decision variables, and sealing confirmation time time decision variables according to the available sequence number in the batch-level waiting margin constraint list and the vehicle sealing deadline time.
[0094] In this specific embodiment, based on the batch-level waiting capacity constraint list and platform resource configuration, field format validation is performed on the vehicle task number, designated platform number, and candidate loading sequence. The vehicle task number is standardized to a character format after removing leading and trailing spaces; the designated platform number is standardized to the standard number format in the platform resource configuration; the candidate loading sequence is standardized to a positive integer format; and the vehicle sealing deadline is converted to a timestamp format with the same time zone and time precision. The batch-level waiting capacity constraint list is combined and deduplicated according to the vehicle task number, designated platform number, and candidate loading sequence, ensuring that only one sequence modeling record is retained for the same vehicle task number under the same designated platform number and the same candidate loading sequence. When multiple batch codes exist under the same combination, the association between all batch codes and the waiting capacity of the candidate loading sequence is maintained, and the vehicle sealing deadline corresponding to the same vehicle task number is taken as the unified sealing time limit field for the vehicle task dimension.
[0095] Combinations of available order positions are written into the loading sorting feasible domain; combinations of prohibited order positions are written into the exclusion constraint cache, ensuring that prohibited order positions do not enter the vehicle task selectable order set during subsequent solution processes. For each vehicle task number and candidate loading order combination in the loading sorting feasible domain, a vehicle order selection integer programming variable is established, with the variable's value range limited to 0 or 1. A value of 1 indicates that the vehicle task number selects the corresponding candidate loading order, and a value of 0 indicates that the vehicle task number does not select the corresponding candidate loading order. For each vehicle task number and designated platform number combination in the loading sorting feasible domain, a platform allocation integer programming variable is established, with the variable's value range limited to 0 or 1. A value of 1 indicates that the vehicle task number is allocated to the corresponding designated platform number, and a value of 0 indicates that the vehicle task number is not allocated to the corresponding designated platform number. For each vehicle task number, designated platform number, and candidate loading sequence combination in the exclusion constraint cache, the allowed value of the corresponding vehicle sequence selection integer programming variable is fixed to 0, or an exclusion constraint identifier field is written into the variable table so that prohibited sequence combinations are eliminated before solving. For each vehicle task number, a loading start time time decision variable and a sealing confirmation time time decision variable are established, and the data type of the time variables is set to an integer minute timestamp or a minute offset within the scheduling window; for example, taking the start time of the current scheduling calculation window as zero, the loading start time and sealing confirmation time are represented as integer minute values between 0 and 240, and a bidirectional conversion relationship is established between them and the original timestamp field.
[0096] After converting the available sequence, prohibited sequence, and vehicle sealing deadline in the batch-level waiting margin constraint list into the loading sorting feasible domain, exclusion constraints, integer programming variables, and time decision variables, a structured modeling input that can be directly read by the subsequent loading sorting solver is formed. This enables the fresh milk outbound loading sorting to use the batch waiting upper limit, platform resource boundary, and vehicle sealing time limit as hard constraints, and improves the executability, verifiability, and engineering implementation stability of the scheduling optimization process.
[0097] The uniqueness constraint for the sequence selection of vehicle task numbers is expressed by the following formula:
[0098]
[0099] The consistency constraint between vehicle task numbers and designated platform numbers is expressed by the following formula:
[0100]
[0101] The time limit for sealing the compartment is expressed as follows:
[0102]
[0103] in, Indicates the vehicle mission number At the designated platform number and candidate loading order The vehicle sequence position is selected as an integer programming variable. This represents the set of specified platform numbers in the platform resource configuration. Indicates the vehicle mission number At the designated platform number The following is the set of available candidate loading positions. Indicates the vehicle mission number Assigned to designated platform number Assign integer programming variables to the platform. Indicates the vehicle mission number The corresponding decision variable for the time of confirmation of the sealed-off area. Indicates the vehicle mission number The corresponding vehicle sealing deadline. After completing the writing of variables and constraint fields, generate a loading sorting integer programming variable table according to the field structure of vehicle task number, designated platform number, candidate loading sequence, vehicle sequence selection integer programming variable, platform allocation integer programming variable, loading start time time decision variable, sealing confirmation time decision variable, sequence status, exclusion constraint flag, vehicle sealing deadline, number of vehicles that can be served by the platform at the same time, and associated loading team number.
[0104] S42 maps the predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix to the waiting cost of the vehicle sequence selection integer programming variable, and solves the vehicle loading order under platform capacity constraints, loading team time window constraints, sealing time limit constraints and sequence uniqueness constraints.
[0105] In this specific embodiment, based on the loading sequence integer programming variable table, the batch-level candidate loading sequence waiting prediction matrix, and the platform resource configuration, feasible records in the loading sequence integer programming variable table are filtered according to vehicle task number, designated platform number, and candidate loading sequence. Records with a sequence status of available sequence and an exclusion constraint flag of null are retained, while records with a sequence status of prohibited sequence or an exclusion constraint flag of valid are removed from the candidate feasible domain. The predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix is mapped to the vehicle sequence selection integer programming variable in the loading sequence integer programming variable table according to the vehicle task number, designated platform number, and candidate loading sequence. The predicted platform waiting time is aggregated for all batch codes associated with the same vehicle task number under the same designated platform number and the same candidate loading sequence, and the aggregation result is written to the vehicle task candidate sequence waiting cost field. For example, if the same vehicle task number is associated with 3 batch codes and the corresponding predicted platform waiting times are 18.50 minutes, 21.00 minutes and 24.30 minutes respectively, the waiting cost of the vehicle task candidate order will be written as 63.80 minutes.
[0106] Construct an objective function that minimizes the total predicted platform waiting time using integer programming variables of vehicle task candidate position waiting cost and vehicle position selection:
[0107]
[0108] in, This represents the target value for the total predicted platform waiting time. This represents the set of vehicle task numbers. Indicates a set of platform numbers. Indicates the vehicle mission number At the designated platform number The following is the set of available candidate loading positions. Indicates the vehicle mission number At the designated platform number and candidate loading order Waiting cost for the candidate vehicle task position. Indicates the vehicle mission number At the designated platform number and candidate loading order The vehicle sequence position is selected as an integer programming variable.
[0109] The number of vehicles that can be served by a platform at the same time is determined from the platform resource configuration according to the designated platform number. The variable combination corresponding to the designated platform number whose platform resource activation flag is not enabled is fixed to 0, and the variable combination corresponding to the designated platform number whose platform resource activation flag is enabled is retained in the feasible domain of the solution. The time interval from the loading start time to the sealing confirmation time after each vehicle task number is selected is projected into the platform occupancy period at the minute granularity, and written into the platform capacity constraint.
[0110]
[0111] in, Indicates the vehicle mission number At the designated platform number and time period Platform occupancy signs inside Indicates the specified platform number The number of vehicles that can be served by the corresponding platform at the same time. This represents a minute-based time period within the scheduling calculation window. The platform occupancy indicator indicates whether a vehicle task occupies platform resources within a specified platform number and minute-based time period. Projecting the interval from the start of loading to the confirmation of sealing the wagon as a platform occupancy time period is to convert a continuous time operation interval into a discrete resource occupancy status that can be directly compared with the platform capacity. When the sum of the platform occupancy indicators for the same specified platform number within the same time period is not higher than the number of vehicles that the platform can serve at the same time, it indicates that the corresponding sorting satisfies the platform's resource capacity.
[0112] Based on the associated loading team number, the available start and end times of the loading team are determined from the platform resource allocation. The loading start time and sealing confirmation time decision variables corresponding to the vehicle task number are limited to the available time period of the corresponding loading team, and the valid start and end times of resources are simultaneously verified. For candidate records between the vehicle task number, designated platform number, candidate loading sequence number, and associated loading team number, a large constant constraint is used to bind the team time window to the integer programming variable for vehicle sequence selection.
[0113]
[0114] in, Indicates the vehicle mission number The corresponding decision variable for the start time of loading is time. Indicates the vehicle mission number The corresponding decision variable for the time of confirmation of the sealed-off area. Indicates the loading team number The corresponding loading team can use the start time. Indicates the loading team number The corresponding loading team can use the end time. This represents a positive constant greater than the length of the scheduling calculation window. The shift time window represents the time interval during which the loading shift can serve vehicle tasks; a large constant. This is used to release the time window constraints of shifts that were not selected when the integer programming variable for vehicle sequence selection is 0, and to ensure that the loading start time and the sealing confirmation time fall within the available time period of the corresponding loading shift when the integer programming variable for vehicle sequence selection is 1. This avoids unnecessary restrictions on the feasible region imposed by unselected candidate combinations, while ensuring that the selected vehicle tasks meet the available time boundary of the shift.
[0115] Write a sequence uniqueness constraint according to the rule that only one vehicle task number is bound to the same designated platform number and the same candidate loading sequence number:
[0116]
[0117] This constraint indicates that any given platform number and candidate loading sequence position can be assigned at most one vehicle task number. The vehicle sealing deadline is determined according to the vehicle task number and written into the sealing time constraint, ensuring that the sealing confirmation time corresponding to the selected vehicle task number is no later than the vehicle sealing deadline. When the vehicle sealing deadline is earlier than the available start time of the corresponding loading shift, the vehicle task number is written into the infeasible task cache and not included in the solution; when the vehicle sealing deadline is within the available time period of the loading shift, the vehicle sealing deadline is written into the solver as the upper bound of the sealing confirmation time. The integer programming solver is invoked to read the objective function, platform capacity constraints, loading team time window constraints, vehicle sealing deadline constraints, and sequence uniqueness constraints. Branch and bound solutions are executed only when all hard constraints are satisfied. When the solver returns the optimal solution, the vehicle task number, designated platform number, candidate loading sequence, and loading team number corresponding to the integer programming variable for vehicle sequence selection (value 1) are written into the solution result. The corresponding loading start time and sealing confirmation time decision variables are converted from minute offsets to actual timestamps. When the solver returns a feasible solution but does not reach the optimal bound, the combination with the smallest predicted platform waiting time among the current feasible solutions is retained. When no feasible solution exists, the infeasible vehicle task number, designated platform number, candidate loading sequence, vehicle sealing deadline, and resource time window are written into the solution exception cache.
[0118] S43 generates the vehicle loading sequence and the sealing and departure sequence according to the loading start time and sealing confirmation time of the vehicle loading order, and outputs the executable vehicle loading sequence and sealing and departure sequence instruction table.
[0119] In this specific embodiment, based on the vehicle loading sequence solution result table and the batch-level waiting margin constraint list, the field format of the vehicle task number, designated platform number, candidate loading sequence, and loading team number is standardized. The loading start time, sealing confirmation time, and vehicle sealing end time are converted into timestamp format with the same time zone and time precision. A solution result combination key is established according to the vehicle task number, designated platform number, and candidate loading sequence. Each vehicle task record in the vehicle loading sequence solution result table is matched with the corresponding batch record in the batch-level waiting margin constraint list, so that all batch codes associated with the same vehicle task number under the same designated platform number and the same candidate loading sequence are included in the same verification range.
[0120] For each vehicle task number, extract the vehicle sealing deadline from the corresponding batch-level waiting margin constraint list. When the same vehicle task number is associated with multiple batch records, retain the same vehicle sealing deadline already filled in each batch record as the sealing time limit field of the vehicle task number, and fill the vehicle sealing deadline into the corresponding vehicle task record in the vehicle loading sorting result table. Group the vehicle loading sorting result table according to the specified platform number, and arrange the vehicle task numbers in ascending order of loading start time within each specified platform number group; when multiple vehicle task numbers have the same loading start time, maintain the sorting result stability by ascending candidate loading order and ascending vehicle task number character order, and write the loading sequence number continuously starting from 1. The vehicle loading sequence result table is grouped again according to the designated platform number. Within each designated platform number group, the vehicle task numbers are arranged in ascending order of the sealing confirmation time. When multiple vehicle task numbers have the same sealing confirmation time, the sealing departure order is maintained by ascending order of loading sequence number and ascending order of vehicle task number characters, and the sealing departure sequence number is written continuously starting from 1. For example, if there are three vehicle task loading start times for the same designated platform number at 09:00, 09:18, and 09:41, loading sequence number 1, loading sequence number 2, and loading sequence number 3 are written in sequence; if there are three vehicle task sealing confirmation times for the same designated platform number at 09:32, 09:55, and 10:16, sealing departure sequence number 1, sealing departure sequence number 2, and sealing departure sequence number 3 are written in sequence.
[0121] For each vehicle task number, perform a sealing time limit check, extracting the sealing confirmation time and sealing deadline corresponding to the vehicle task number. When the sealing confirmation time is not later than the sealing deadline, write the sealing time limit check result to the "Pass" status; when the sealing confirmation time is later than the sealing deadline, write the vehicle task number, designated platform number, candidate loading sequence, sealing confirmation time, and sealing deadline to the sealing time limit exception record, and write the sealing time limit check result to the "Fail" status. For each vehicle task number, perform an availability check on the candidate loading sequence, locating all batch records in the batch-level waiting capacity constraint list according to the vehicle task number, designated platform number, and candidate loading sequence; when the sequence status of all batch records is available, write the sequence availability check result to the "Pass" status; when the sequence status of any batch record is prohibited, write the corresponding batch code, vehicle task number, designated platform number, candidate loading sequence, and candidate loading sequence waiting capacity to the sequence status exception record, and write the sequence availability check result to the "Fail" status. The executable vehicle loading sequence and sealing / departure sequence instruction table adopts the form of vehicle task-level execution instruction records. Each record expresses the loading execution sequence, loading start time, sealing confirmation time, sealing / departure sequence, and corresponding sealing time limit constraint verification result of a vehicle task under a specified platform number. This enables the on-site dispatching system to organize platform loading according to the loading sequence number and to organize sealing confirmation and vehicle departure according to the sealing / departure sequence number. After the vehicle loading sequence solution is converted into consecutive loading sequence numbers and sealing / departure sequence numbers according to the specified platform number, loading start time, and sealing confirmation time, the sealing confirmation time is simultaneously verified to be no later than the vehicle sealing deadline time and that the candidate loading sequence position is an available sequence position. In this way, the optimization solution result is transformed into fresh milk loading and sealing / departure instructions that can be directly executed, verified, and traced on-site, and the engineering implementation stability of the fresh milk outbound dispatching scheme and the closed-loop execution capability of batch waiting upper limit constraints are improved.
[0122] In one specific embodiment, such as Figure 2As shown, the system includes an association table generation unit, a waiting prediction unit, a surplus constraint generation unit, a sorting solution unit, an instruction generation unit, a storage unit, and a controller. The association table generation unit generates a batch-level outbound loading association table; the waiting prediction unit generates a batch-level candidate loading sequence waiting prediction matrix; the surplus constraint generation unit generates a batch-level waiting surplus constraint list; the sorting solution unit solves the vehicle loading sequence; and the instruction generation unit generates an executable vehicle loading sequence and sealing and dispatching sequence instruction table. The storage unit stores finished product cold storage outbound barcode scanning records, order batch binding records, vehicle task records, vehicle check-in records, quality parameter configurations, platform loading operation records, platform resource configurations, the batch-level outbound loading association table, the batch-level candidate loading sequence waiting prediction matrix, the batch-level waiting surplus constraint list, the loading sequence integer programming variable table, the vehicle loading sequence solution result table, and the executable vehicle loading sequence and sealing and dispatching sequence instruction table.
[0123] The above specific embodiments are only used to illustrate the technical solution of the present invention, and are not intended to limit the scope of protection of the present invention. Any equivalent substitutions or modifications made by those skilled in the art to the data source names, field organization methods, model deployment forms, or solver implementation methods in each step without departing from the concept of the present invention should fall within the scope of protection of the present invention.
Claims
1. A warehouse-out scheduling optimization method based on fresh milk industry big data analysis, characterized in that, include: S1, obtain finished product cold storage outbound scanning records, order batch binding records, vehicle task records, vehicle check-in records and quality parameter configurations, and generate a batch-level outbound loading association table based on batch code, order number, vehicle check-in priority rules and the maximum number of minutes allowed to wait from departure to sealing; S2, based on the platform loading operation record and the batch-level outbound loading association table, construct the platform continuous operation time-stamp sequence, predict the predicted sealing confirmation time of the vehicle task number under each candidate loading sequence, and convert it into a batch-level candidate loading sequence waiting prediction matrix. S3 compares the predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix with the maximum allowed waiting time in minutes from departure to sealing in the batch-level departure loading association table, and generates a batch-level waiting balance constraint list that includes candidate loading sequence waiting balance, sequence status and vehicle sealing deadline. S4. Based on the batch-level waiting margin constraint list, the batch-level candidate loading sequence waiting prediction matrix, and the platform resource configuration, establish the loading sorting integer programming variables and solve the vehicle loading sorting that satisfies the batch waiting upper limit, and generate an executable vehicle loading sequence and sealing and departure sequence instruction table.
2. The fresh milk industry big data analysis-based outbound scheduling optimization method according to claim 1, characterized in that, Step S1 includes: S11, perform equivalent matching between the finished product cold storage outbound scanning record and the order batch binding record according to the batch code, and generate batch order matching results containing batch code, outbound scanning time, pallet quantity, order number and store number; S12, perform equivalent matching between the batch order matching results and the vehicle task records according to the order number, and generate batch vehicle platform matching results containing vehicle task number, license plate number, designated platform number, task arrival time and loading team number; S13. Determine the vehicle arrival benchmark time according to the rule that vehicle check-in records take precedence over vehicle task records, and match the maximum number of minutes allowed to wait from leaving the warehouse to sealing the box according to the store number, and generate a batch allowable sealing deadline time and batch-level departure loading association table.
3. The fresh milk industry big data analysis-based outbound scheduling optimization method according to claim 1, characterized in that, Step S2 includes: S21. Group the loading operation records of the platform according to the designated platform number, and sort the valid operation records under the same designated platform number in ascending order according to the sealing confirmation time to generate a continuous operation time stamp sequence of the platform. S22, construct the candidate loading sequence time series feature vector based on the platform continuous operation time-scale sequence and batch-level loading association table, and use a gated cyclic unit regression model with time interval weight correction to output the predicted sealing confirmation time; S23. Map the predicted sealing confirmation time to each batch code in the batch-level departure loading association table according to the vehicle task number, and generate a batch-level candidate loading sequence waiting prediction matrix based on the departure scanning time.
4. The outbound scheduling optimization method based on fresh milk industrial big data analysis according to claim 1, characterized in that, Step S3 includes: S31, according to the batch code and vehicle task number, align the fields of the batch-level candidate loading sequence waiting prediction matrix with the batch-level departure loading association table, and calculate the candidate loading sequence waiting margin between the maximum allowable waiting time from departure to sealing and the predicted waiting time at the platform. S32, perform a zero-value boundary comparison on the waiting balance of the candidate loading sequence, mark the candidate loading sequence with a waiting balance less than zero as a prohibited sequence, and mark the candidate loading sequence with a waiting balance not less than zero as an available sequence. S33. Group the batch codes in the batch-level loading and unloading association table according to the vehicle task number, and determine the earliest allowed sealing deadline of the batch under the same vehicle task number as the vehicle sealing deadline, and generate a batch-level waiting margin constraint list.
5. The outbound scheduling optimization method based on big data analysis of the fresh milk industry according to claim 1, characterized in that, Step S4 includes: S41, according to the available sequence number in the batch-level waiting margin constraint list and the vehicle sealing deadline, establish vehicle sequence selection integer programming variables, platform allocation integer programming variables, loading start time time decision variables and sealing confirmation time time decision variables. S42 maps the predicted platform waiting time in the batch-level candidate loading sequence waiting prediction matrix to the waiting cost of the vehicle sequence selection integer programming variable, and solves the vehicle loading order under platform capacity constraints, loading team time window constraints, sealing time limit constraints and sequence uniqueness constraints. S43 generates the vehicle loading sequence and the sealing and departure sequence according to the loading start time and sealing confirmation time of the vehicle loading order, and outputs the executable vehicle loading sequence and sealing and departure sequence instruction table.
6. The outbound scheduling optimization method based on fresh milk industrial big data analysis according to claim 2, characterized in that, Step S13 includes: S131, Match the vehicle check-in records to the batch vehicle platform matching results according to the vehicle task number and license plate number; S132, when the vehicle check-in time exists, the vehicle check-in time is determined as the vehicle arrival reference time; when the vehicle check-in time is empty, the task arrival time is determined as the vehicle arrival reference time. S133, match the quality parameter configuration to the batch vehicle platform matching result according to the store number, and add the departure scanning time to the maximum allowed waiting time in minutes from departure to sealing to obtain the batch's allowed sealing deadline time.
7. The outbound scheduling optimization method based on big data analysis of the fresh milk industry according to claim 3, characterized in that, Step S22 includes: S221, aggregate the number of pallets, designated platform number, vehicle arrival reference time, batch code and departure scanning time in the batch-level departure loading association table according to the vehicle task number; S222, determine the set of candidate loading positions in the continuous operation time stamp sequence of the platform according to the platform number specified by the vehicle task, and extract the continuous operation window before each candidate loading position. S223, based on the difference between the vehicle arrival time and the loading start time in the continuous operation window, the time interval between the sealing confirmation time of adjacent vehicles and the number of vehicle task pallets, a candidate loading sequence time sequence feature vector is formed, and the sealing confirmation time is predicted after time interval weight correction, gate control status update and sealing time regression output.
8. The outbound scheduling optimization method based on fresh milk industrial big data analysis according to claim 4, characterized in that, Step S32 includes: S321 performs minute value format verification on the batch code, vehicle task number, designated platform number and candidate loading sequence waiting balance corresponding to the candidate loading sequence; S322: Write the prohibited sequence status when the waiting margin of the candidate loading sequence is less than zero, and write the available sequence status when the waiting margin of the candidate loading sequence is greater than or equal to zero. S323 retains the correspondence between the predicted platform waiting time, the maximum allowed waiting time in minutes from leaving the warehouse to sealing the wagon, the waiting margin of the candidate loading sequence, and the sequence status, and generates a feasibility judgment table for the candidate loading sequence with the sequence status.
9. The outbound scheduling optimization method based on fresh milk industrial big data analysis according to claim 5, characterized in that, Step S42 includes: S421 aggregates the predicted platform waiting time corresponding to all batch codes under the same vehicle task number and generates waiting cost for vehicle task candidate order. S422, construct the objective function that minimizes the total predicted platform waiting time using the vehicle task candidate order waiting cost and the vehicle order selection integer programming variables; S423, write the number of vehicles that the platform can serve at the same time into the platform capacity constraint, write the start time and end time of the loading team into the loading team time window constraint, and write the vehicle sealing deadline into the sealing time limit constraint. S424 solves the vehicle loading order under the condition that only one vehicle task number is bound to the same specified platform number and the same candidate loading sequence.
10. A system for optimizing outbound scheduling for big data analysis in the fresh milk industry, characterized in that: include: The association table generation unit is used to generate a batch-level outbound loading association table based on batch outbound barcode scanning, order batch binding, vehicle tasks, vehicle check-in, and quality parameter configuration. The waiting prediction unit is used to generate a batch-level candidate loading sequence waiting prediction matrix based on the platform loading operation record and the batch-level departure loading association table; the surplus constraint generation unit is used to generate a batch-level waiting surplus constraint list based on the predicted platform waiting time and the maximum allowable waiting time in minutes from departure to sealing; the sorting solution unit is used to solve the vehicle loading order based on the batch-level waiting surplus constraint list, the batch-level candidate loading sequence waiting prediction matrix, and the platform resource configuration. The instruction generation unit is used to generate an executable vehicle loading sequence and sealing and departure sequence instruction table based on the vehicle loading order.
