Bulk cargo terminal self-healing scheduling method and system, electronic equipment and storage medium

Through the self-healing scheduling method, the scheduling resilience function and the deep reinforcement learning algorithm model are used to solve the problem of ship loader failure affecting loading and unloading, realize self-healing scheduling at the terminal, improve efficiency and performance, and reduce ship waiting time and loading Machine loading costs.

CN118607833APending Publication Date: 2024-09-06WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410651093.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The actual loading and unloading of bulk cargo terminal operations was affected due to the failure of the ship loader, and the baseline plan could not be executed as originally planned, resulting in serious interference to subsequent ships in the entire system. It is difficult for existing technology to effectively solve this problem.

Method used

A self-healing scheduling method is proposed. By constructing a dock baseline plan, determining the ship loader failure and constructing a scheduling resilience function based on preset loading and unloading indicators, a self-healing scheduling model is constructed, and the Markov decision-making process and deep reinforcement learning algorithm are used. The model performs predictive analysis and obtains a target scheduling plan to achieve self-healing scheduling.

Benefits of technology

It effectively improves the efficiency and performance of self-healing dispatching of bulk cargo terminals, ensures that the loading and unloading system can continue to operate after a ship loader failure, improves scheduling resilience, and reduces ship waiting time and ship loader loading costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607833A
    Figure CN118607833A
Patent Text Reader

Abstract

The invention discloses a bulk cargo wharf self-healing scheduling method and system, electronic equipment and a storage medium, and the method comprises the steps: constructing a wharf baseline plan according to wharf loading and unloading information, so as to execute the wharf baseline plan, and judging whether the bulk cargo wharf has a ship loader fault or not; when it is determined that the bulk cargo wharf has the ship loader fault, a scheduling toughness function is constructed according to preset loading and unloading indexes; constructing a wharf self-healing scheduling model according to the scheduling toughness function; and performing prediction analysis on the wharf self-healing scheduling model through a preset deep reinforcement learning algorithm model according to a preset Markov decision process to obtain a target scheduling scheme. According to the embodiment of the invention, the self-healing scheduling of the bulk cargo terminal can be realized, and the efficiency and performance of the self-healing scheduling are effectively improved. The method can be widely applied to the field of automatic wharfs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automated terminals, and in particular to a self-healing scheduling method, system, electronic device and storage medium for a bulk cargo terminal. Background Art

[0002] With the continuous growth of bulk shipping business and the increase in bulk terminal throughput, many port problems have arisen, among which the problem of shoreline resource intensiveness is particularly prominent. In related technologies, when executing the baseline plan, the operation of the bulk terminal will be affected by the actual loading and unloading due to the failure of the loader. Once a disturbance occurs, the subsequent tasks of the baseline plan cannot be carried out as planned, which will cause serious interference to the subsequent ships in the entire system.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a self-healing scheduling method, system, electronic device and storage medium for a bulk cargo terminal, which can realize the self-healing scheduling of the bulk cargo terminal and effectively improve the efficiency and performance of the self-healing scheduling.

[0005] To achieve the above-mentioned purpose, one aspect of an embodiment of the present application proposes a self-healing scheduling method for a bulk cargo terminal, the method comprising:

[0006] constructing a terminal baseline plan according to the terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal;

[0007] When it is determined that a loader failure occurs at the bulk cargo terminal, a scheduling resilience function is constructed according to preset loading and unloading indicators;

[0008] A terminal self-healing scheduling model is constructed according to the scheduling resilience function;

[0009] According to the preset Markov decision process, the terminal self-healing scheduling model is predicted and analyzed through the preset deep reinforcement learning algorithm model to obtain the target scheduling plan.

[0010] In some embodiments, constructing a scheduling resilience function according to preset loading and unloading indicators includes:

[0011] The scheduling resilience function is constructed based on the ship waiting time index, the loader loading cost index and the berth change index; wherein the ship waiting time index includes the change compared with the ship waiting time plan in the terminal baseline plan, the loader loading cost index includes the change compared with the loader loading cost plan in the terminal baseline plan, and the berth change index includes the change compared with the berth plan in the terminal baseline plan.

[0012] In some embodiments, the step of constructing a terminal self-healing scheduling model according to the scheduling resilience function includes:

[0013] Constructing a model objective function according to the scheduling resilience function;

[0014] Construct model constraints based on loader failure information, expected maintenance time, and loading and unloading situation information;

[0015] The terminal self-healing scheduling model is constructed according to the model objective function and the model constraint conditions.

[0016] In some embodiments, the predictive analysis of the terminal self-healing scheduling model is performed through a preset deep reinforcement learning algorithm model according to a preset Markov decision process to obtain a target scheduling solution, including:

[0017] Constructing preset model parameters; the preset model parameters include state parameters, action parameters, strategy parameters, reward parameters and return parameters;

[0018] The solution process of the terminal self-healing scheduling model is converted into a multi-agent Markov decision process through the preset model parameters; wherein the multi-agent Markov decision process takes preset current state information as input and takes the target scheduling scheme as output, and the preset current state information includes the current state information of the ship, the current state information of the berth and the current state information of the loader;

[0019] Constructing the preset deep reinforcement learning algorithm model;

[0020] The multi-agent Markov decision process is solved by the preset deep reinforcement learning algorithm model to obtain the target scheduling solution.

[0021] In some embodiments, the step of constructing the preset deep reinforcement learning algorithm model includes:

[0022] Construct a multi-agent deep reinforcement learning algorithm model; wherein the multi-agent deep reinforcement learning algorithm model includes a preset agent and a preset environment; the preset agent includes a ship agent, a berth agent and a loader agent, and the ship agent, the berth agent and the loader agent all include an action network, a target network and an experience playback pool; the preset environment includes a preset ship, a preset berth, a preset loader and a preset state;

[0023] The preset intelligent agent interacts with the preset environment to update the network parameters of the preset intelligent agent and train to obtain the preset deep reinforcement learning algorithm model.

[0024] In some embodiments, the interaction between the preset agent and the preset environment to update the network parameters of the preset agent and train the preset deep reinforcement learning algorithm model includes:

[0025] Initializing each of the experience replay pools, the target network, and the action network of the preset agent, and obtaining an initial state to determine whether the current moment is a decision point;

[0026] When the current moment is determined to be a decision point, a preset action is selected through a preset reinforcement learning strategy;

[0027] According to the preset action, a corresponding rule is selected from a preset selection rule library as an expected action to be executed, so as to select the preset ship, the preset berth and the preset ship loader, and obtain corresponding expected scheduling data; wherein the expected scheduling data includes ship scheduling data, berth scheduling data and ship loader scheduling data;

[0028] Calculating reward data through a preset reward function according to the ship scheduling data, the berth scheduling data and the ship loader scheduling data, and updating the state characteristic value of the preset state;

[0029] The state characteristic value, the reward data, and the scheduling expectation data are stored as a batch of scheduling experience data in each of the experience replay pools, and the number of data storage batches in the experience replay pool is updated;

[0030] When it is determined that the number of data storage batches is greater than the preset number of batches, a batch of the scheduling experience data is randomly selected from each of the experience replay pools to perform parameter update on the corresponding action network;

[0031] When it is determined that the number of execution time steps is greater than a preset number, updating the parameters of the corresponding target network according to the network parameters of the action network;

[0032] When it is determined that all ships have completed the allocation and reached the preset number of training times, the network parameters of each of the action networks and the target network are saved to obtain the preset deep reinforcement learning algorithm model.

[0033] In some embodiments, solving the multi-agent Markov decision process by the preset deep reinforcement learning algorithm model to obtain the target scheduling solution includes:

[0034] Calculate the state characteristic information of the bulk cargo terminal according to the terminal loading and unloading information;

[0035] The state feature information is input into the preset deep reinforcement learning algorithm model to solve the multi-agent Markov decision process to obtain the target scheduling plan; the target scheduling plan includes maintaining the initial operation unchanged, waiting for the loader to operate at the original berth after maintenance, waiting at the original berth and reallocating the loader operation, and reallocating the ship berth.

[0036] To achieve the above-mentioned purpose, another aspect of the embodiment of the present application provides a self-healing scheduling system for a bulk cargo terminal, the system comprising:

[0037] The first module is used to construct a terminal baseline plan based on terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal;

[0038] The second module is used to construct a scheduling resilience function according to preset loading and unloading indicators when it is determined that a loader failure occurs at the bulk cargo terminal;

[0039] The third module is used to construct a terminal self-healing scheduling model according to the scheduling resilience function;

[0040] The fourth module is used to perform predictive analysis on the terminal self-healing scheduling model according to a preset Markov decision process through a preset deep reinforcement learning algorithm model to obtain a target scheduling plan.

[0041] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising:

[0042] at least one processor;

[0043] at least one memory for storing at least one program;

[0044] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0045] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0046] The embodiments of the present application include at least the following beneficial effects: The present application provides a method, system, electronic device and storage medium for self-healing scheduling of bulk cargo terminals. The scheme constructs a terminal baseline plan based on the terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal. Next, when it is determined that a loader failure occurs at the bulk cargo terminal, the embodiment of the present invention constructs a scheduling resilience function based on preset loading and unloading indicators, and obtains a terminal self-healing scheduling model based on the scheduling resilience function. Finally, the embodiment of the present invention predicts and analyzes the terminal self-healing scheduling model through a preset deep reinforcement learning algorithm model according to a preset Markov decision process to obtain a target scheduling plan, thereby realizing the self-healing scheduling of the bulk cargo terminal. It is easy to understand that the embodiment of the present invention predicts and analyzes the terminal self-healing scheduling model through a preset deep reinforcement learning algorithm model according to a preset Markov decision process, which can effectively improve the efficiency and accuracy of the model prediction analysis, thereby effectively improving the efficiency and performance of the self-healing scheduling of the bulk cargo terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a flow chart of a self-healing scheduling method for a bulk cargo terminal provided in an embodiment of the present application;

[0048] Figure 2 It is a schematic diagram of the recovery process of the embodiment of the present application adopting self-healing scheduling;

[0049] Figure 3 It is a schematic diagram of the multi-agent deep reinforcement learning algorithm architecture provided in the embodiment of the present application;

[0050] Figure 4 It is a schematic diagram of the process of updating network parameters provided in an embodiment of the present application;

[0051] Figure 5 It is a schematic diagram of the overall process of the self-healing scheduling method for bulk cargo terminals provided in an embodiment of the present application;

[0052] Figure 6 It is a structural schematic diagram of a bulk cargo terminal self-healing scheduling system provided in an embodiment of the present application;

[0053] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0055] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0056] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0058] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.

[0059] Multi-agent Markov decision making: refers to the process of applying the Markov decision process (MDP) to make decisions in a multi-agent system. In a multi-agent system, each agent can be modeled as an independent MDP. And there may be interactions and collaborations between them. In it, each agent will consider the behavior and decisions of other agents to maximize its own rewards.

[0060] Deep reinforcement learning algorithm: It is a method that combines deep learning and reinforcement learning to solve complex decision-making problems. In deep reinforcement learning, the agent learns how to make optimal decisions by interacting with the environment to maximize the long-term accumulated rewards.

[0061] The global dry bulk shipping business is growing, and the throughput of bulk terminals is increasing, which has caused many port problems, among which the problem of intensive shoreline resources is particularly prominent. Therefore, new requirements and challenges have been put forward for the rational use of shoreline resources, that is, the scheduling efficiency of bulk terminal berths and ship loaders. Among them, unlike container terminals, the loading and unloading of ships at berths requires the loading and unloading operation of the equipment ship loader connecting the terminal and the ship. Therefore, ship scheduling is easily affected by the ship loader, especially the failure of the ship loader during the scheduling process. Accordingly, before the arrival of the ship, the specific information of the ship will be known in advance, including the type of cargo loaded by the ship, the loading volume and the estimated arrival time. Based on the known information, the port operator formulates a ship port loading and unloading plan within the cycle to reduce the waiting and congestion of the ship and improve the port throughput efficiency. This plan is called the baseline plan. In the related art, when executing the baseline plan, the actual loading and unloading of the bulk terminal operation will be affected by the failure of the ship loader. Once a disturbance occurs, the subsequent tasks of the baseline plan cannot be carried out according to the original plan, which will cause serious interference to the subsequent ships of the entire system.

[0062] In view of this, a method, system, electronic device and storage medium for self-healing scheduling of a bulk cargo terminal are provided in an embodiment of the present application. The scheme constructs a terminal baseline plan based on the terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal. Next, when it is determined that a loader failure occurs at the bulk cargo terminal, the embodiment of the present invention constructs a scheduling resilience function based on preset loading and unloading indicators, and obtains a terminal self-healing scheduling model based on the scheduling resilience function. Finally, the embodiment of the present invention predicts and analyzes the terminal self-healing scheduling model through a preset deep reinforcement learning algorithm model according to a preset Markov decision process, and obtains a target scheduling plan, thereby realizing self-healing scheduling of bulk cargo terminals, and effectively improving the efficiency and performance of self-healing scheduling.

[0063] The self-healing scheduling method for bulk cargo terminals provided in the embodiments of the present application relates to the field of automated terminal technology. The self-healing scheduling method for bulk cargo terminals provided in the embodiments of the present application can be applied to a terminal, can be applied to a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the self-healing scheduling method for bulk cargo terminals, etc., but is not limited to the above forms.

[0064] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0065] Figure 1 is an optional flow chart of the self-healing scheduling method for bulk cargo terminals provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S110 to S140.

[0066] Step S110, constructing a terminal baseline plan according to the terminal loading and unloading information, so as to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal.

[0067] Step S120: When it is determined that a loader failure occurs at the bulk cargo terminal, a scheduling resilience function is constructed according to preset loading and unloading indicators.

[0068] Step S130, constructing a terminal self-healing scheduling model according to the scheduling resilience function.

[0069] Step S140, predicting and analyzing the terminal self-healing scheduling model through a preset deep reinforcement learning algorithm model according to a preset Markov decision process to obtain a target scheduling plan.

[0070] During the working process of this specific embodiment, the embodiment of the present invention first constructs a terminal baseline plan based on the terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk terminal. Specifically, in the bulk terminal, the embodiment of the present invention first obtains the terminal loading and unloading information to construct a terminal baseline plan. Then, the ship performs loading and unloading operations according to the terminal baseline plan. In the real-time loading and unloading process, it is determined whether a loader failure occurs, causing the loading and unloading tasks to be disturbed and unable to continue according to the terminal baseline plan. Next, when it is determined that a loader failure occurs at the bulk terminal, the embodiment of the present invention constructs a scheduling resilience function based on preset loading and unloading indicators. Specifically, the embodiment of the present invention constructs a resilience measurement framework for measuring the performance of self-healing scheduling, selects appropriate indicators (preset loading and unloading indicators) to form resilience, that is, a scheduling resilience function, so as to use resilience to represent the recovery process of self-healing scheduling after the terminal baseline plan is disturbed, such as Figure 2 As shown. Among them, resilience in the embodiment of the present invention refers to the ability to continuously complete the expected operations when disturbed. This ability emphasizes the adaptability, resilience and self-repair ability of the system when facing impact interference. When the bulk terminal loading and unloading system is interrupted, it will cause congestion in the system loading and unloading ships, increased waiting time and other problems. The self-healing scheduling adopted by the embodiment of the present invention can ensure that the loading and unloading system can continue after being affected by the loader failure, thereby achieving the purpose of improving scheduling resilience. Among them, self-healing scheduling is an important measure to achieve resilience recovery, and resilience is an important indicator to measure self-healing scheduling.

[0071] Furthermore, the embodiment of the present invention constructs a terminal self-healing scheduling model based on the scheduling resilience function. Specifically, when a loader fails, the embodiment of the present invention constructs a terminal self-healing scheduling model based on the real-time loader failure information, the estimated maintenance time, and the current loading and unloading situation, in combination with the scheduling resilience function. Finally, the embodiment of the present invention predicts and analyzes the terminal self-healing scheduling model through a preset deep reinforcement learning algorithm model according to the preset Markov decision process to obtain a target scheduling plan. Specifically, the embodiment of the present invention converts the solution process of the self-healing scheduling model into a preset Markov decision process, and then solves the preset Markov decision process through a trained preset deep reinforcement learning algorithm model, that is, predicts and analyzes the terminal self-healing scheduling model, thereby obtaining a corresponding target scheduling plan, realizing the self-healing scheduling of bulk terminals, and can effectively improve the efficiency and performance of self-healing scheduling.

[0072] In some embodiments of the present invention, a scheduling resilience function is constructed according to preset loading and unloading indicators, including but not limited to the following steps:

[0073] The scheduling resilience function is constructed based on the ship waiting time index, the loader loading cost index and the berth change index. Among them, the ship waiting time index includes the change compared with the ship waiting time plan in the terminal baseline plan, the loader loading cost index includes the change compared with the loader loading cost plan in the terminal baseline plan, and the berth change index includes the change compared with the berth plan in the terminal baseline plan.

[0074] In this specific embodiment, the embodiment of the present invention constructs a scheduling resilience function through a ship waiting time index, a loader loading cost index, and a berth change index. Specifically, in the process of self-healing scheduling, the port operator does not want to change the baseline plan too much. Therefore, the embodiment of the present invention selects three indicators, namely, the ship waiting time index, the loader loading cost index, and the berth change index, to construct resilience, namely, a scheduling resilience function. Among them, the berth berthing change index in the embodiment of the present invention includes the change amount compared with the berth plan in the terminal baseline plan, that is, whether to change the berth. In addition, the ship waiting time index in the embodiment of the present invention includes the change amount compared with the ship waiting time plan in the terminal baseline plan, that is, the change amount of the ship waiting time (such as the increase in the ship waiting time). At the same time, the loader loading cost index in the embodiment of the present invention includes the change amount compared with the loader cost plan in the terminal baseline plan, that is, the change amount of the loader loading cost (such as the increase in the loader loading cost). Accordingly, the embodiment of the present invention takes the maximum function value of the scheduling resilience function as the target of the self-healing scheduling model, as shown in the following formula (1):

[0075]

[0076] Among them, ρ(t) represents resilience, which is the objective function of the self-healing scheduling model. It is a real number between (0,1], and the exponential function is used to balance the range of changes in the index before and after self-healing scheduling. c1, c2 and c3 are three parameters, which are adjusted according to actual needs. It is easy to understand that the increase in waiting time and loading cost of the loader and the change of the initial berthing position of the ship will lead to a significant decrease in the resilience value. In addition, the corresponding character parameter information in the above formula is shown in Table 1 below, where the baseline plan parameters have no superscript ', and the superscript is the self-healing scheduling parameter, that is, the formula represents the degree of change in the waiting time of the ship, the loading cost of the loader, and the number of berths after self-healing scheduling compared with the baseline plan.

[0077] Table 1

[0078]

[0079] In some embodiments of the present invention, a terminal self-healing scheduling model is constructed according to the scheduling resilience function, including but not limited to the following steps:

[0080] The model objective function is constructed based on the scheduling resilience function.

[0081] The model constraints are constructed based on the loader failure information, expected maintenance time, and loading and unloading situation information.

[0082] The terminal self-healing scheduling model is constructed based on the model objective function and model constraints.

[0083] In this specific embodiment, the embodiment of the present invention first constructs a model objective function based on the scheduling resilience function, and constructs model constraints based on the loader failure information, expected maintenance time, and loading and unloading situation information, and then constructs a terminal self-healing scheduling model based on the model objective function and model constraints. Specifically, when a loader fails, the embodiment of the present invention maximizes the constructed scheduling resilience function as the objective function of the terminal self-healing scheduling model, that is, the model objective function. Next, the embodiment of the present invention simplifies the actual port operating conditions, and the operating constraints of the scheduling model include: the weather conditions and berth depth of the port meet the berthing requirements of each ship; the arrival schedule of the cargo operation ships entering the port is known, and they arrive at the designated berth on time; when a loader failure occurs, the extent of the failure and the maintenance time are immediately known without delay; a maximum of two ship loaders are allowed to operate simultaneously on a berth. Accordingly, the relevant model parameters of the terminal self-healing scheduling model in the embodiment of the present invention are shown in Table 1 above, and the constructed model constraints include:

[0084] a. The berthing time is greater than the ship arrival time, as shown in the following formula (2):

[0085]

[0086] b. The departure time of a ship is determined by the berthing time and operation time, as shown in the following formula (3):

[0087] y i ′=x i '+TBH i +TAC i +m i / (∑ q X ij ′*Y qi ′*w qju ) / 60 (3)

[0088] c. The start time of each ship is greater than the end time of the ship already operating at its berth, as shown in the following formula (4):

[0089] x h ′≥y i ′Z ijh ′ (4)

[0090] d. The ship must berth and has only one berth opportunity, as shown in the following formula (5):

[0091] ∑ j X ij ′=1 (5)

[0092] e. The number of ship loaders assigned to each ship is limited, as shown in the following formula (6):

[0093] 1≤∑ q Y qi ′≤2 (6)

[0094] f. A berth can only berth one ship at a time, as shown in the following formula (7):

[0095]

[0096] g. A ship loader can only act on one ship at a time, as shown in the following formula (8):

[0097]

[0098] h. The total number of ship loaders in operation during the same operation period shall not exceed the number of ship loaders owned by the terminal, as shown in the following formula (9):

[0099]

[0100] i. When allocating ship loaders, crossing is not allowed, as shown in the following formula (10):

[0101] ∑ i (Y qi ′+Y (q+2)i ′-Y (q+1)i ′)-1≤0 (10)

[0102] j. When the ship loader is within the maintenance time window, the berth corresponding to the ship loader is not available during this period, as shown in the following formula (11):

[0103]

[0104] Accordingly, the embodiment of the present invention constructs a terminal self-healing scheduling model by combining the model constraint conditions with the model objective function constructed with the goal of maximizing the scheduling resilience function. This can achieve self-healing scheduling, so that the loading and unloading system can continue to operate after being affected by a loader failure, thereby effectively improving the scheduling resilience.

[0105] In some embodiments of the present invention, a terminal self-healing scheduling model is predicted and analyzed by a preset deep reinforcement learning algorithm model according to a preset Markov decision process to obtain a target scheduling solution, including but not limited to the following steps:

[0106] Construct preset model parameters. The preset model parameters include state parameters, action parameters, strategy parameters, reward parameters, and return parameters.

[0107] The solution process of the terminal self-healing scheduling model is converted into a multi-agent Markov decision process by presetting model parameters. The multi-agent Markov decision process takes the preset current state information as input and the target scheduling plan as output. The preset current state information includes the current state information of the ship, the current state information of the berth and the current state information of the loader.

[0108] Build a preset deep reinforcement learning algorithm model.

[0109] The multi-agent Markov decision process is solved through a preset deep reinforcement learning algorithm model to obtain the target scheduling plan.

[0110] In this specific embodiment, the embodiment of the present invention first constructs preset model parameters to convert the solution process of the terminal self-healing scheduling model into a multi-agent Markov decision process through the preset model parameters. Specifically, the preset model parameters in the embodiment of the present invention include state parameters, action parameters, strategy parameters and reward parameters. The embodiment of the present invention converts the solution process of the terminal self-healing scheduling model into a multi-agent Markov decision process by designing state S (state parameters), action A (action parameters), strategy Π (strategy parameters) and reward G (reward parameters), and takes the preset current state information as input and the target scheduling scheme as output. Among them, the preset current state information in the embodiment of the present invention includes the current state information of the ship, the current state information of the berth and the current state information of the loader. Accordingly, in the Markov decision process of the embodiment of the present invention, the state S describes the characteristics of the ship loading and unloading operation environment, and the action A describes the decision-making behavior of the agent. The strategy Π is the probability distribution of the state based on the environmental conditions, which is used to guide the probability of the agent selecting an action under different states, and the reward R and the reward G represent the feedback of the agent on its decision-making behavior.

[0111] Accordingly, the state S in the embodiment of the present invention includes 7 state variables, which respectively describe the main characteristics of the ship, berth and ship loader in the environment and their time-varying laws, which are related to the scheduling target, and together constitute a state space. For example, the state variables of the state S in the embodiment of the present invention include:

[0112] ①. The average waiting time of the ship is as shown in the following formula (12):

[0113]

[0114] ②. Average loading rate of the ship, as shown in the following formula (13):

[0115]

[0116] ③. The standard deviation of the average loading rate of the ship is shown in the following formula (14):

[0117]

[0118] ④. Average berth utilization rate, as shown in the following formula (15):

[0119]

[0120] ⑤. The standard deviation of berth utilization rate is shown in the following formula (16):

[0121]

[0122] ⑥ The average utilization rate of installed capacity is as shown in the following formula (17):

[0123]

[0124] ⑦. Standard deviation of installed capacity utilization, as shown in the following formula (18):

[0125]

[0126] In the above formula, n is the total number of ships, m is the number of berths, SC i (t) represents the weight of cargo loaded on ship i at time step t, SAN(t) represents the number of ships that have arrived at time step t, SSN(t) represents the number of ships that have started loading at time step t, SEN(t) represents the number of ships that have completed loading at time step t, and BM j (t) represents the departure time of the last ship at berth j at time step t, QM q (t) represents the service completion time of the last ship on the loader q at time step t.

[0127] In addition, the action space A in the embodiment of the present invention includes 3 agents and 8 priority rules. Among them, the action set of the ship agent in the embodiment of the present invention includes selecting the ship with the earliest arrival time, selecting the ship with the largest load, and rotating the ship with the smallest load. The action set of the berth agent in the embodiment of the present invention includes selecting the berth with the shortest loading and unloading time, selecting the berth with the earliest available time, and selecting the berth with the same baseline plan. At the same time, the action set of the loader agent in the embodiment of the present invention includes selecting the earliest available loader and selecting two loaders.

[0128] At the same time, the embodiment of the present invention measures the reward or punishment obtained by the agent after taking a specific action in the environment through the reward R (reward parameter), and encourages the agent to perform specific behaviors or achieve specific goals. The embodiment of the present invention designs a reward function so that the agent tends to choose the same berth and loader allocation as the baseline plan, including the waiting time after self-healing scheduling, the loading and unloading cost of the loader, and the berth of the ship as much as possible. The same as the baseline plan. Accordingly, the reward function in the embodiment of the present invention is shown in the following formula (19):

[0129] R(t)=-(k1(SWT ave (t)′-SWT ave (t))+k2(SCT ave (t)′-SCT ave (t))+k3BA(t)) (19)

[0130] The increase in the average waiting time after the self-healing scheduling in the embodiment of the present invention compared with the average waiting time of the baseline plan is as shown in the following formula (20):

[0131]

[0132] In addition, the increase in average loading and unloading time after self-healing scheduling in the embodiment of the present invention is shown in the following formula (21):

[0133]

[0134] In the embodiment of the present invention, whether the baseline allocated berth is changed after the self-healing scheduling, that is, the berth change index, is shown in the following formula (22):

[0135]

[0136] Furthermore, the embodiment of the present invention constructs a preset deep reinforcement learning algorithm model to solve the multi-agent Markov decision process through the preset deep reinforcement learning algorithm model to obtain a target scheduling solution. Specifically, the preset deep reinforcement learning algorithm model in the embodiment of the present invention is constructed based on the architecture of the multi-agent deep reinforcement learning algorithm. Among them, the multi-agent deep reinforcement learning algorithm refers to an algorithm used to solve the problem of multi-agent collaborative competition. In the multi-agent deep reinforcement learning algorithm, the agent can accelerate the learning process by sharing experience and knowledge, and can also improve performance and adaptability through competition. The embodiment of the present invention constructs a preset deep reinforcement learning algorithm model based on the multi-agent deep reinforcement learning algorithm, and then can solve the terminal self-healing scheduling model through the preset deep reinforcement learning algorithm model, which effectively improves the efficiency and performance of the terminal self-healing scheduling.

[0137] In some embodiments of the present invention, constructing a preset deep reinforcement learning algorithm model includes but is not limited to the following steps:

[0138] Construct a multi-agent deep reinforcement learning algorithm model. The multi-agent deep reinforcement learning algorithm model includes preset agents and preset environments. The preset agents include ship agents, berth agents, and loader agents. The ship agents, berth agents, and loader agents all include action networks, target networks, and experience playback pools. The preset environment includes preset ships, preset berths, preset loaders, and preset states.

[0139] The preset intelligent agent interacts with the preset environment to update the network parameters of the preset intelligent agent and train the preset deep reinforcement learning algorithm model.

[0140] In this specific embodiment, the embodiment of the present invention first constructs a multi-agent deep reinforcement learning algorithm model. Specifically, the preset deep reinforcement learning algorithm model in the embodiment of the present invention includes a multi-agent deep reinforcement learning algorithm model. Among them, the multi-agent deep reinforcement learning algorithm model in the embodiment of the present invention includes a preset agent and a preset environment. Among them, the preset agents in the embodiment of the present invention include a ship agent, a berth agent, and a loader agent. Correspondingly, the ship agent, the berth agent, and the loader agent in the embodiment of the present invention all include corresponding action networks, target networks, and experience replay pools. In addition, the preset environment in the embodiment of the present invention includes a preset berth, a preset ship, a preset loader, and a preset state. Exemplarily, as Figure 3As shown, in the embodiment of the present invention, the target network in each agent is connected to the action network, and the output end of the action network is connected to the corresponding selection rule base, such as the ship selection rule base, the berth selection rule base and the loader selection rule base. Correspondingly, in the embodiment of the present invention, the output end of the selection rule base is connected to the output specific action, and the action includes ships, berths and loaders. Among them, after the ship is output, the ship is connected to the berth selection rule base, the berth selection rule base outputs the berth of the corresponding ship, the ship and the berth are jointly connected to the loading selection rule base, and the loader selection rule base outputs the corresponding loader. The three actions are jointly connected to the state and reward, and the state and reward output ends are connected to the three agents, thereby completing the parameter update and obtaining the optimal model.

[0141] Next, the embodiment of the present invention interacts with the preset environment through the preset agent to update the network parameters of the preset agent, thereby training a preset deep reinforcement learning algorithm model. Specifically, in the embodiment of the present invention, the multi-agent Markov decision process is as follows: the agent interacts with the environment at each decision point t, first in the current state s t The specific state / action policy function π(S→A) is used to obtain positive or negative rewards according to the reward R. Secondly, the discount factor γ is used to calculate the impact of each decision on the overall process and obtain the long-term reward G of the strategy. Finally, enter a new state s with the state transition probability P t+1 , restart a new Markov decision process. Among them, the decision point t refers to the decision time point for starting a new round of job scheduling. Therefore, the embodiment of the present invention updates the network parameters of each preset agent in the multi-agent deep reinforcement learning algorithm model by means of the interaction between the preset agent and the preset environment, so as to train the multi-agent deep reinforcement learning algorithm model and obtain the preset deep reinforcement learning algorithm model.

[0142] Reference Figure 4 In some embodiments of the present invention, a preset agent interacts with a preset environment to update the network parameters of the preset agent and train a preset deep reinforcement learning algorithm model, including but not limited to the following steps:

[0143] Initialize each experience replay pool, target network, and action network of the preset agent, and obtain the initial state to determine whether the current moment is a decision point.

[0144] When the current moment is determined to be a decision point, a preset action is selected through a preset reinforcement learning strategy.

[0145] According to the preset action, a corresponding rule is selected from the preset selection rule library as the expected action to be executed, so as to select the preset ship, the preset berth and the preset ship loader to obtain the corresponding scheduling expectation data, wherein the scheduling expectation data includes the ship scheduling data, the berth scheduling data and the ship loader scheduling data.

[0146] The reward data is calculated by a preset reward function according to the ship scheduling data, the berth scheduling data and the loader scheduling data, and the state characteristic value of the preset state is updated.

[0147] The state characteristic values, reward data, and scheduling expectation data are stored as a batch of scheduling experience data in each experience replay pool, and the number of data storage batches in the experience replay pool is updated.

[0148] When it is determined that the number of data storage batches is greater than the preset number of batches, a batch of scheduling experience data is randomly selected from each experience replay pool to update the parameters of the corresponding action network.

[0149] When it is determined that the number of execution time steps is greater than a preset number, the parameters of the corresponding target network are updated according to the network parameters of the action network.

[0150] When it is determined that the ship has completed the allocation and reached the preset number of training times, the network parameters of each action network and target network are saved to obtain the preset deep reinforcement learning algorithm model.

[0151] In this specific embodiment, the embodiment of the present invention first initializes each experience replay pool, target network and action network of the intelligent agent, and obtains the initial state to determine whether the current moment is a decision point. Specifically, the embodiment of the present invention first initializes an experience replay pool D with a capacity of N, and randomly initializes the relevant parameter numbers θ and θ of the action network and the target network. - , initialize the number of training episodes = 0. At the same time, the embodiment of the present invention initializes the current time t = 0, observes the initial state s0, to determine whether the current moment is a decision point. Then, when it is determined that the current moment is a decision point, the embodiment of the present invention selects a preset action through a preset reinforcement learning strategy, so as to select a corresponding rule from a preset selection rule library according to the preset action as the expected action to execute, and then select a preset ship, a preset berth, and a preset loader to obtain the corresponding scheduling expected data. Specifically, the decision point in the embodiment of the present invention refers to the current moment when a ship has arrived or a ship that is loading cannot continue the task due to a loader failure. When it is determined that the current moment is a decision point, the embodiment of the present invention selects action q according to a preset reinforcement learning strategy, such as the ε-greedy strategy. t, i.e., the expected action, and select the corresponding rule from the corresponding selection rule library as the action to execute, respectively select the corresponding ship, berth and loader, so as to obtain the scheduling expected data, including ship scheduling data, berth scheduling data and loader scheduling data. Among them, in the embodiment of the present invention, the action a is selected according to the ε-greedy strategy t The process is shown in equation (23):

[0152]

[0153] Next, the embodiment of the present invention calculates the corresponding reward value R(t), i.e., reward data, through the reward function according to the corresponding scheduling expectation data, such as ship scheduling data, berth scheduling data, and loader scheduling data, and updates the state characteristic value of the terminal. Then, the embodiment of the present invention stores the corresponding state characteristic value, reward data, and scheduling expectation data as a batch of scheduling experience data in each experience replay pool, and updates the number of data storage batches of the corresponding experience replay pool. The embodiment of the present invention stores each scheduling experience as (s t ,a t ,r t ,s t+1 ) in the form of a batch of scheduling experience data to provide experience for the subsequent learning and training of the neural network. Then, when it is determined that the number of data storage batches is greater than the preset number of batches, the embodiment of the present invention randomly selects a batch of scheduling experience data from each experience replay pool to update the parameters of the corresponding action network. Specifically, the embodiment of the present invention first determines whether the number stored in the current experience replay pool is greater than the minimum number of batches, that is, the preset number of batches. If it is greater, the embodiment of the present invention randomly selects a batch size of experience from the experience replay pool for training and updating the neural network.

[0154] The embodiment of the present invention establishes an experience buffer with a fixed capacity at the beginning of training. At each decision point, the single-step sample (s t ,a t ,r t ,s t+1 ) is saved in the experience buffer. Once the buffer is full of samples, new samples will replace the old samples stored therein. During the learning process, update samples are selected from the experience buffer using small batch random sampling to update the parameters of the Q network. The experience replay method in the embodiment of the present invention uses "storage sampling" to enable the agent to learn from random samples rather than sequential samples. On the one hand, this method overcomes the correlation of consecutive samples and reduces the variance of the updated parameters. On the other hand, this method improves the utilization rate of data samples because a sample may be used more than once.

[0155] Accordingly, the embodiment of the present invention converts the state st Input into the action network and estimate its Q value, and convert the state s t+1 Output to the target network and combine with the reward value r to obtain the target value y. Among them, the parameters of the action network are updated by gradient descent. It is easy to understand that in the embodiment of the present invention, each agent includes two neural networks with the same structure: the action network and the target network. Among them, the former is used to determine the action, and the latter is used to generate a stable Q value. In the embodiment of the present invention, the structure and parameters of the two networks are initially the same. The parameters θ of the action network are updated during each training, while the parameters θ of the target network are updated. - The parameters of the action network are copied to the target network after each fixed time step. Therefore, the method of fixing the parameters of the target network for a period of time can make the Q value generated during this period relatively stable, thereby avoiding the divergence and oscillation of the parameters and making the convergence of the action network stable. Among them, the calculation formula of the network target value in the embodiment of the present invention is shown in the following formula (24):

[0156]

[0157] In addition, in the process of using the DQN algorithm to solve the production scheduling problem, since the algorithm uses the above formula to update the Q value, this will lead to "maximization bias", making the Q value of the scheduling action too large, and then fall into the local optimum, affecting the final scheduling effect. To solve this problem, Double DQN (DDQN) uses the action network to determine the action when calculating the estimated return, and uses the target network to determine the Q value to reduce overestimation. The calculation of the target value is shown in the following formula (25):

[0158]

[0159] Then, the network is trained by minimizing the loss function L(θ), as shown in Equation (26):

[0160]

[0161] Where L(θ) represents the loss function, (s,a,r,s t+1 , done) represents the data extracted from the sample, γ is the discount factor, Represents the action network evaluating the next state s t+1 The action with the highest value is a t+1 .

[0162] Further, when it is determined that the number of time steps executed is greater than a preset number, the embodiment of the present invention updates the parameters of the corresponding target network according to the network parameters of the action network. Specifically, in the embodiment of the present invention, the parameters of the target network are obtained by detecting and copying the parameters of the action network for a certain period of time. Each time a decision C step is made, the parameters of the action network are copied to the target network, thereby completing the network parameter update of the target network. Then, the embodiment of the present invention determines whether all ships have completed the allocation and whether the preset number of training times has been reached. When it is determined that all ships have completed the allocation, that is, when the current round ends, the embodiment of the present invention determines whether the number of training times has been reached. If it has been completed, the parameters of the neural network, such as the network parameters of each action network and the target network, are saved to obtain a trained preset deep reinforcement learning algorithm model. On the contrary, if the number of training times has not been reached, episode = episode + 1, and the step of observing the initialization state s0 is returned. Accordingly, when it is determined that the current round has not ended, the embodiment of the present invention updates the current time to t = t + 1, and returns to the step of determining whether the current time is a decision point. Accordingly, the embodiment of the present invention obtains a decision result, that is, a target scheduling solution, by inputting the current state of the terminal into the trained neural network. The decision result includes the selection of the ship to be loaded, the berth to be docked, and the loading machine to be loaded at the current time.

[0163] In some embodiments of the present invention, a multi-agent Markov decision process is solved by a preset deep reinforcement learning algorithm model to obtain a target scheduling solution, including but not limited to the following steps:

[0164] The status characteristic information of the bulk cargo terminal is calculated based on the terminal loading and unloading information.

[0165] The state feature information is input into the preset deep reinforcement learning algorithm model to solve the multi-agent Markov decision process and obtain the target scheduling plan. The target scheduling plan includes maintaining the initial operation unchanged, waiting for the ship loader to be repaired at the original berth, waiting at the original berth and reallocating the ship loader operation, and reallocating the ship berth.

[0166] In this specific embodiment, the embodiment of the present invention first calculates the corresponding state characteristic information of the bulk cargo terminal based on the terminal loading and unloading information. Specifically, the embodiment of the present invention calculates the current state characteristic value of the bulk cargo terminal, that is, the state characteristic information, based on the acquired relevant operation information of the bulk cargo terminal, such as the state information of the loader, berth and ship, and combined with the designed state parameters, that is, the state variables. Next, the embodiment of the present invention solves the multi-agent Markov decision process obtained by converting the terminal self-healing scheduling model by inputting the state characteristic information into the preset deep reinforcement learning algorithm model obtained by training, thereby obtaining the target scheduling plan. Specifically, referring to Figure 5In the embodiment of the present invention, the preset intelligent agent solves the terminal self-healing scheduling model with the maximum resilience value as the goal through the trained improved deep reinforcement learning algorithm, that is, the multi-agent deep reinforcement learning algorithm model, obtains a specific self-healing scheduling plan, that is, the target scheduling plan, and calculates the resilience value. Among them, the target scheduling plan in the embodiment of the present invention includes one of maintaining the initial operation unchanged, waiting for the loader to operate after maintenance at the original berth, waiting at the original berth and reallocating the loader operation, and reallocating the ship berth. The embodiment of the present invention implements the specific strategy obtained by solving the terminal self-healing scheduling model to minimize the impact of loader failure on ship loading and unloading.

[0167] It should be noted that the embodiment of the present invention takes into account the baseline loading plan disturbed by the loader failure. In order to make the restored plan as similar as possible to the baseline plan, the three indicators of increased ship waiting time, loading cost of the loader and whether to change berths after the restored plan are selected as resilience compared with the baseline plan. The maximum resilience value is used as the objective function to construct a terminal self-healing scheduling model. At the same time, the method for calculating the real-time operation status of the terminal in the embodiment of the present invention designs different state characteristics for ships, berths and loaders, respectively, so that the state of the terminal can be quickly understood. In addition, the scheduling priority rule in the embodiment of the present invention uses the priority rule as an optional action. After the agent selects the priority rule from the action set, it selects a specific ship, berth and loader according to this rule. At the same time, the embodiment of the present invention uses the corresponding reward function to achieve the maximum resilience value. Accordingly, the embodiment of the present invention calculates the state feature value of the terminal, inputs the state into the trained multi-agent deep reinforcement learning algorithm model, decides the corresponding scheduling rules, executes the action and calculates the reward function, so as to realize the self-healing scheduling of the bulk terminal after the loader failure is disturbed, and achieves both efficiency and performance. In addition, four recovery strategies are used in the embodiment of the present invention to recover the interruption of the baseline plan caused by the failure of the ship loader, and the strategy with the largest resilience value is solved and implemented by calculating the terminal self-healing scheduling model, so that the bulk terminal can continue to complete the operation within the cycle after the interruption, and realize the self-healing scheduling of berths and ship loaders.

[0168] See also Figure 6 The embodiment of the present application further provides a bulk cargo terminal self-healing scheduling system, which can implement the above-mentioned bulk cargo terminal self-healing scheduling method, and the system includes:

[0169] The first module 210 is used to construct a terminal baseline plan according to the terminal loading and unloading information, so as to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal.

[0170] The second module 220 is used to construct a scheduling resilience function according to preset loading and unloading indicators when it is determined that a loader failure occurs at a bulk cargo terminal.

[0171] The third module 230 is used to construct a terminal self-healing scheduling model according to the scheduling resilience function.

[0172] The fourth module 240 is used to perform predictive analysis on the terminal self-healing scheduling model according to a preset Markov decision process through a preset deep reinforcement learning algorithm model to obtain a target scheduling plan.

[0173] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0174] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned bulk terminal self-healing scheduling method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0175] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0176] See also Figure 7 , Figure 7 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0177] The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0178] The memory 320 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 320 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 320, and the processor 310 calls and executes the self-healing scheduling method for bulk cargo terminals in the embodiment of this application;

[0179] Input / output interface 330, used to implement information input and output;

[0180] Communication interface 340, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0181] bus 350 , which transmits information between the various components of the device (e.g., processor 310 , memory 320 , input / output interface 330 , and communication interface 340 );

[0182] The processor 310 , the memory 320 , the input / output interface 330 and the communication interface 340 are connected to each other in communication within the device via the bus 350 .

[0183] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned self-healing scheduling method for bulk cargo terminals is implemented.

[0184] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0185] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0186] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0187] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0188] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0190] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0191] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0192] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0193] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0194] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0195] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0196] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A self-healing scheduling method for a bulk cargo terminal, characterized in that: The method comprises the following steps: constructing a terminal baseline plan according to the terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal; When it is determined that a loader failure occurs at the bulk cargo terminal, a scheduling resilience function is constructed according to preset loading and unloading indicators; A terminal self-healing scheduling model is constructed according to the scheduling resilience function; According to the preset Markov decision process, the terminal self-healing scheduling model is predicted and analyzed through the preset deep reinforcement learning algorithm model to obtain the target scheduling plan.

2. The method according to claim 1, characterized in that: The construction of a scheduling resilience function according to preset loading and unloading indicators includes: The scheduling resilience function is constructed based on the ship waiting time index, the loader loading cost index and the berth change index; wherein the ship waiting time index includes the change compared with the ship waiting time plan in the terminal baseline plan, the loader loading cost index includes the change compared with the loader loading cost plan in the terminal baseline plan, and the berth change index includes the change compared with the berth plan in the terminal baseline plan.

3. The method according to claim 2, characterized in that The terminal self-healing scheduling model is constructed according to the scheduling resilience function, including: Constructing a model objective function according to the scheduling resilience function; Construct model constraints based on loader failure information, expected maintenance time, and loading and unloading situation information; The terminal self-healing scheduling model is constructed according to the model objective function and the model constraint conditions.

4. The method according to claim 1, characterized in that: The method of predicting and analyzing the terminal self-healing scheduling model through a preset deep reinforcement learning algorithm model according to the preset Markov decision process to obtain a target scheduling plan includes: Constructing preset model parameters; the preset model parameters include state parameters, action parameters, strategy parameters, reward parameters and return parameters; The solution process of the terminal self-healing scheduling model is converted into a multi-agent Markov decision process through the preset model parameters; wherein the multi-agent Markov decision process takes preset current state information as input and takes the target scheduling scheme as output, and the preset current state information includes the current state information of the ship, the current state information of the berth and the current state information of the loader; Constructing the preset deep reinforcement learning algorithm model; The multi-agent Markov decision process is solved by the preset deep reinforcement learning algorithm model to obtain the target scheduling solution.

5. The method according to claim 4, characterized in that The step of constructing the preset deep reinforcement learning algorithm model includes: Construct a multi-agent deep reinforcement learning algorithm model; wherein the multi-agent deep reinforcement learning algorithm model includes a preset agent and a preset environment; the preset agent includes a ship agent, a berth agent and a loader agent, and the ship agent, the berth agent and the loader agent all include an action network, a target network and an experience playback pool; the preset environment includes a preset ship, a preset berth, a preset loader and a preset state; The preset intelligent agent interacts with the preset environment to update the network parameters of the preset intelligent agent and train to obtain the preset deep reinforcement learning algorithm model.

6. The method according to claim 5, characterized in that The preset agent interacts with the preset environment to update the network parameters of the preset agent and train the preset deep reinforcement learning algorithm model, including: Initializing each of the experience replay pools, the target network, and the action network of the preset agent, and obtaining an initial state to determine whether the current moment is a decision point; When the current moment is determined to be a decision point, a preset action is selected through a preset reinforcement learning strategy; According to the preset action, a corresponding rule is selected from a preset selection rule library as an expected action to be executed, so as to select the preset ship, the preset berth and the preset ship loader, and obtain corresponding expected scheduling data; wherein the expected scheduling data includes ship scheduling data, berth scheduling data and ship loader scheduling data; Calculating reward data through a preset reward function according to the ship scheduling data, the berth scheduling data and the ship loader scheduling data, and updating the state characteristic value of the preset state; The state characteristic value, the reward data, and the scheduling expectation data are stored as a batch of scheduling experience data in each of the experience replay pools, and the number of data storage batches in the experience replay pool is updated; When it is determined that the number of data storage batches is greater than the preset number of batches, a batch of the scheduling experience data is randomly selected from each of the experience replay pools to perform parameter update on the corresponding action network; When it is determined that the number of execution time steps is greater than a preset number, updating the parameters of the corresponding target network according to the network parameters of the action network; When it is determined that all ships have completed the allocation and reached the preset number of training times, the network parameters of each of the action networks and the target network are saved to obtain the preset deep reinforcement learning algorithm model.

7. The method according to claim 4, characterized in that The method of solving the multi-agent Markov decision process by using the preset deep reinforcement learning algorithm model to obtain the target scheduling solution includes: Calculate the state characteristic information of the bulk cargo terminal according to the terminal loading and unloading information; The state feature information is input into the preset deep reinforcement learning algorithm model to solve the multi-agent Markov decision process to obtain the target scheduling plan; the target scheduling plan includes maintaining the initial operation unchanged, waiting for the loader to operate at the original berth after maintenance, waiting at the original berth and reallocating the loader operation, and reallocating the ship berth.

8. A self-healing dispatching system for bulk cargo terminals, characterized in that: The system comprises: The first module is used to construct a terminal baseline plan based on terminal loading and unloading information to execute the terminal baseline plan and determine whether a loader failure occurs at the bulk cargo terminal; The second module is used to construct a scheduling resilience function according to preset loading and unloading indicators when it is determined that a loader failure occurs at the bulk cargo terminal; The third module is used to construct a terminal self-healing scheduling model according to the scheduling resilience function; The fourth module is used to perform predictive analysis on the terminal self-healing scheduling model according to a preset Markov decision process through a preset deep reinforcement learning algorithm model to obtain a target scheduling plan.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.