Integrated Inbound and Outbound Scheduling for Coal Port: Constraint Programming and Adaptive Local Search

: The effective production scheduling of dry bulk ports is a challenging task that demands meticulous planning, task allocation based on customer requirements, as well as strategic route and timing scheduling. Dry bulk ports dedicated to handling commodities like coal and iron ore frequently engage in blending operations as a strategic imperative to gain market competitiveness. The process of blending coal and ore entails the timely arrival of the requisite raw materials at predetermined locations. Simultaneously, it necessitates the coordination of the sequencing of goods entering and departing the port to align with the operational demands associated with material stockpiles. This paper describes and analyzes an operational scheduling problem encountered by one of the largest coal blending sea ports in China. Speciﬁcally, a rich constraint programming model is presented to deﬁne operation sequences integrating daily inbound and outbound services provided by the port, minimizing the overall operation time. In order to enhance the practicality of the method, a CP-based adaptive simulated annealing local search algorithm has been designed and developed for the optimization problem. The empirical validation of the proposed method is conducted using both real production data and generated experimental data adhering to speciﬁc rules. The results conclusively demonstrate the efﬁcacy and feasibility of the proposed method. This also substantiates its practicality and effectiveness in real-world applications, facilitating efﬁcient production and energy-saving operations for the coal port.


Introduction
Dry bulk cargo constitutes over 70% of global maritime logistics [1], leading to the rapid development of dry bulk ports in response to the expanding dry bulk shipping market.However, unlike the stable growth in dry bulk port freight volume and port electrification upgrades, the production and operation of dry bulk ports still heavily rely on manual experience.The inefficiency of dry bulk port operations results in a substantial disparity between the port throughput and operational efficiency.The port under study is a prominent coal port in terms of automation, having successfully implemented a comprehensive unmanned operation system spanning from resource receiving to cargo exporting.With an annual throughput consistently surpassing 200 million tons for the past three years, it stands as one of the largest ports in China.The automation transformation demands the more intelligent coordination of machine movements to shape the most efficient flow of commodities through the port.
The production system of the port mainly includes an inbound part where coal resources carried by trains to the port are dumped and stacked onto stockyards, and an outbound part where resources in stockyards are reclaimed and blended as coal products and loaded onto vessels parking at the berths.The stockyards of the port are important places where the inbound and outbound operations interact.When the vessel arrives at a berth, the coal with different characteristics will be taken out from different stockpiles, mixed into the "product coal" in proportion, and then loaded onto the cabin according to the customer's needs.The vessel then transports the product coal to the destination.This complex process involves two types of operation tasks, i.e., the trains tasks where raw materials are transferred to stockpiles; and the vessel tasks where raw materials are reclaimed from stockpiles and loaded onto vessels.The objective, on both the train side and the vessel side, is to complete their tasks as early as possible.However, it is observed that only one operation task is allowed on a stockpile at the same time.Furthermore, some resources required for loading tasks must wait until the train is unloaded before they become available.These processes require the alignment of simultaneous moves over hundreds of equipment, while respecting operation rules such as precedence, disjunctive and capacity constraints etc., which pose a substantial challenge to the logistics system management.A partial overview of the port under study is outlined in Figure 1.This paper focuses on the integrated scheduling of operation tasks of the coal port.Operation task scheduling is the core of coal port production operations and coal port integrated scheduling.It is very difficult to manage due to the need to make many decisions, such as the coupling between different tasks, the selection of equipment, and the determination of the operation time.Ideally, we hope that each task can be completed as soon as it is generated.However, due to the limited capacities of the resources in the port, this ideal state cannot be achieved.
Our coal port integrated inbound and outbound scheduling approach aims to minimize the overall operation task completion time under the condition of meeting the production constraints of the coal port.Minimizing the operation completion time is used as a proxy for maximizing the throughput and optimizing the production efficiency, which is of great significance for meeting the rising sustainable development and low-carbon production needs of world ports in recent years.Our research is grounded in real-world data, where operation tasks are generated from the actual daily demands for unloading trains and loading ships or datasets created to reflect genuine production conditions.Additionally, equipment information and stockyard conditions are derived directly from the authentic conditions observed at the port.Note: "TS": train scheduling; "SM": stockyard management; "SRS": stacker/reclaimer scheduling; "BA": berth allocation; "SES": shoreside equipment scheduling; "SS": ship scheduling; "SD": ship deballasting; "MIP": mixed-integer programming; "RBH": rule-based heuristic; "MH": meta-heuristic; "BD": Benders decomposition; "CG": column generation; "CP": constraint programming; : contains this content.
The inbound and outbound operations in bulk ports encompass various production processes that differ based on the nature of the bulk cargo and the mode of transportation involved.The predominant modes of transportation are ship transportation and train transportation, which each require specific inbound or outbound operations.Consequently, complex scheduling problems arise, including train scheduling, berth allocation, ship scheduling, and inbound and outbound operation scheduling.
The quayside ship scheduling and berth allocation problem has consistently been a prominent issue in the operation of bulk cargo ports.Tang et al. [16] conducted a study focusing on the factors influencing the scheduling of bulk cargo ports.They developed a non-deterministic polynomial (NP) model for the berth scheduling problem in bulk cargo ports and employed a multi-stage particle swarm optimization algorithm to solve the model.Tang et al. [17] established a mixed-integer programming model for the problem of ship unloading and yard allocation in bulk cargo terminals of large iron and steel companies.They effectively solved the model using Benders decomposition, enhanced by various techniques such as effective inequalities, combinatorial Benders cuts, variable reduction tests, and an iterative heuristic procedure.Pratap et al. [7] and Hu [18] both utilized a meta-heuristic algorithm based on the genetic algorithm to optimize the joint allocation of berth and ship unloader configuration in bulk ports.Krimi et al. [19] proposed an efficient heuristic algorithm based on the rolling horizon approach to solve the integrated problem of berth allocation and crane allocation in bulk ports.Peng et al. [20], considering the minimization of port carbon emissions, utilized the multi-objective particle swarm optimization algorithm to achieve the collaborative allocation of bulk port berths and shore power.Gao et al. [13] described the unloading scheduling problem of a bulk cargo terminal in a large steel plant as a flexible shop scheduling problem, established a corresponding mixed-integer programming model, and proposed a column generation method to solve the optimization model.Yang et al. [21] formulated a mixed-integer programming model for scheduling irregular ships in coal ports and utilized the branch pricing algorithm to optimize the scheduling of such ships.Li et al. [22] formulated a multi-objective optimization model that considers multiple traffic constraints for the ship traffic scheduling problem of a shared navigation channel in the context of coal ports.Cheimanoff et al. [23] introduced a solution approach based on the reduced variable neighborhood for the dynamic continuous berth allocation problem in coal ports.For train scheduling, Xu et al. [24] conducted empirical research to optimize the train set strategy for coal ports, utilizing a simulation model to improve efficiency and effectiveness.
The yard, functioning as a connection point and inventory buffer in the inbound and outbound transportation of bulk ports, plays a crucial role in enhancing the overall operational efficiency.Extensive research has been conducted by scholars on yard management methods and technologies, with a specific focus on yard stacking management and yard equipment scheduling.Belov et al. [25] and Savelsbergh and Smith [26] proposed algorithms to optimize the coal stockpile assembly in stockyard operations.These methods, based on large-neighborhood search and tree search, respectively, aimed to enhance the efficiency of coal port operations.Mao and Zhang [27] developed a bulk cargo terminal management system utilizing the Internet of Things and radio frequency identification technology.In the domain of yard equipment scheduling, Angelelli et al. [28] introduced an abstract model for reclaimer scheduling and examined the model's complexity under different conditions, and gave a pseudo-polynomial algorithm for the scheduling problem of two reclaimers with given stockpile locations and a reclaim order.Kalinowski et al. [29] investigated the scheduling problem of reclaimer equipment in the presence of uncertain stacking and reclaiming sequences.They proved that the single equipment scheduling problem is NP-complete under these conditions and proposed a branch and bound algorithm as well as an approximation algorithm to address the problem.
Although previous research has extensively focused on ship scheduling and loading operation scheduling, there is a lack of discussion on the coupling relationship between inbound and outbound operations.However, some of them [14,15] provide valuable descriptions and explanations regarding the problem background and related constraints that are relevant to this paper.By referring to these sources, readers can acquire a more comprehensive understanding of the specific problem context addressed in this paper.Zhang et al. [15] established a multi-objective mathematical model for the loading operation and vessel traffic scheduling problem in Huanghua Port, and used a heuristic algorithm combining the variable neighborhood search and non-dominated sorting genetic algorithm II to solve the problem.A mixed-integer programming model for berth allocation and shiploader scheduling problem in Huanghua Port was established by Cao et al. [14], and the exact solution is obtained by using the logical Benders decomposition.Similarly, Guo et al. [30] established an integrated scheduling model that manages the scheduling process of vessel traffic and deballasting operations, and used a rule-based scheduling method to solve the multi-objective model.
Despite the significance of the integrated scheduling problem in bulk cargo ports, there remains a relative scarcity of studies addressing this complex problem and its influencing factors.Babu et al. [5] introduced two greedy construction algorithms based on heuristics for yard management, train scheduling, and ship scheduling problems in a coal export port.They successfully implemented ship scheduling and train scheduling while considering port yard management in stages.Rocha De Paula et al. [8] conducted a comprehensive analysis on maximizing the throughput of the coal port system, considering it from the perspective of the entire supply chain.Burdett et al. [10] conducted a comprehensive series of studies on the operations of coal export ports.They tackled the general resource scheduling problem using meta-heuristic algorithms, which encompassed berths, ship loaders, stackers, reclaimers, and stockpile inventory.In subsequent research, they further explored specific port operational constraints, such as coal blending, double recovery, pressure relief tank water delay [11], and introduced new geometry constraints to create a more realistic and detailed model of stacking process [12].While these papers conducted detailed research on the integrated scheduling problem of inbound and outbound operations and analyzed the impact of a coal blending constraint and the equipment's anti-collision constraint on the difficulty of solving, their approach did not encompass all the operational constraints addressed in this paper.The comprehensive nature of this paper's model, which considers a wider range of constraints, contributes to a more complete and practical solution for the coal port integrated inbound and outbound scheduling problem.
However, current research endeavors have predominantly focused on collaborative scheduling between yards and berths.Boland et al. [2] proposed a dynamic resource allocation and scheduling problem encompassing berths, coal blending spaces, and equipment.They developed an optimization algorithm utilizing mixed-integer programming and heuristic search techniques and validated their approach through example verification.Additionally, Boland et al. [3,4] presented a dynamic network flow model with edge interrupts for preventive maintenance scheduling problems, including coal transportation railways, trains, and port equipment.They also proposed a series of hybrid meta-heuristic algorithms based on linear programming, examining their performance through the experimental analysis of real-world and test cases.Pratap et al. [6] tackled the challenge of integrated yard management and rake scheduling problem in a coal export terminal, specifically addressing conflicts arising from yard resource occupancy during ship loading and rake unloading.In a subsequent study, Pratap et al. [7] shifted their attention to coal import terminals, proposing a decision support model for optimizing port operations.Unsal and Oguz [9] also presented an exact method for effectively solving the complex integrated problem involving berth allocation, reclaimer scheduling, and stockyard allocation in coal ports.Furthermore, Belov et al. [31] tackled the integration of train scheduling, yard management, and ship scheduling within the logistics system planning framework.They formulated a mathematical model independent of a solver, analyzing and comparing its performance in solving mixed-integer programming and constraint programming models.
These studies have made significant contributions to the study of inbound and outbound operations, yard management, ship berths, and traffic scheduling, as well as integrated scheduling in bulk cargo ports.Although the integrated inbound and outbound scheduling problem of bulk cargo ports remains relatively unexplored, these investigations provide valuable insights and methodologies for addressing various aspects of the problem, including resource allocation, preventive maintenance scheduling, and logistics system planning.Further research in this area can pave the way for comprehensive and efficient solutions to the integrated inbound and outbound scheduling challenges faced by bulk cargo ports.

Overview of the Work
In this paper, the integrated scheduling technology of coal port inbound and outbound operations based on optimization is developed.The primary goal is to provide a collaborative, efficient and reliable reference scheme for the preparation of the coal port inbound and outbound operation plan.In order to ensure that the integrated scheduling scheme of coal port inbound and outbound operation provided in this paper is meaningful and in line with the actual situation, it is necessary to clearly sort out the coal port inbound and outbound operation process, and capture the key operation characteristics or operational constraints according to the production layout and operational constraints of the coal port, and establish a mathematical model on the appropriate granularity.
This paper aims to fill the gap by specifically addressing the integrated scheduling problem of inbound and outbound operations in bulk cargo ports, considering their interconnected nature and associated challenges.By incorporating insights from existing research, this study provides a unique perspective on the coupling relationship between inbound and outbound operations, enhancing the overall understanding of the field.
This paper focuses on providing a reliable, feasible, and efficient reference scheduling scheme for medium-and short-term scheduling of coal ports.To achieve this goal, the model in this paper utilizes a minute-level granularity for modeling, which introduces additional complexity to the model solution process.Balancing the efficiency of model refinement and the solution process is a major challenge due to the intricate production process and operational constraints involved in coal ports.
The first and most notable contribution of this paper is the comprehensive consideration of coal blending operations and specific operational constraints in the integrated inbound and outbound coal port scheduling problem.Unlike previous studies, this paper accounts for a broad spectrum of practical constraints and the interplay between port inbound and outbound operations, incorporating coal blending operations for ship demand.This approach ensures a more realistic and accurate representation of actual port operations.At the same time, this paper innovatively considers the impact of inbound and outbound scheduling operations on the coal port integrated scheduling problem, and summarizes it as an academic research problem.
The second contribution involves creating a constraint programming model that accurately represents real-world scenarios and devises a solution algorithm that optimizes the balance between computation time and solution efficiency.Acknowledging the distinctive problem structure inherent in the comprehensive scheduling challenge of coal port inbound and outbound operations, we leverage a constraint programming methodology to address it.Introducing an innovative two-stage algorithm that integrates constraint programming (CP), adaptive local search (ALS), and simulated annealing (SA), we enhance the solver's ability to effectively escape local optima.This optimization process improves both the solution results and solution time for the model, proving particularly crucial when tackling large-scale instances where efficiency is paramount.
The third contribution lies in the practical application of the proposed algorithm to real-world scenarios, affirming its viability and efficiency in actual coal port operations.Through extensive experimentation and analysis, this paper unveils the distinctive features of the problem and highlights the advantages of the proposed approach across diverse operational conditions.Furthermore, a comparative analysis is presented, pitting the two proposed solving methods against the variable neighborhood search (VNS) and simulated annealing (SA) algorithms, effectively showcasing the superior efficiency of the algorithm introduced in this paper.

Problem Description: The Coal Port Integrated Inbound and Outbound Scheduling Problem
This paper aims to develop the technology based on mathematical optimization for coal port integrated inbound and outbound scheduling.The main goal is to provide a reliable and effective scheduling scheme for minimizing the port operation time.Considering that this technology will be used to formulate the medium-term production scheduling scheme of coal ports (usually a two-to three-day scheduling scheme), it is very important to accurately and precisely describe the characteristics and granularity of the problem.These characteristics determine the problem structure and difficulty of solving the coal port integrated inbound and outbound scheduling problem.
As the junction point of inbound and outbound operations, the coal port yard is an important buffer for balancing the supply and demand differences.As mentioned in the preface, different ports have different storage yard management modes.The port studied in this paper adopts a proprietary storage yard management mode, in which the storage yard space is divided into several parallel strip storage yards, each strip storage yard has several stockpiles with different types and stocks.There are several stackers and reclaimers on both sides of each strip yard, and the equipment moves along the tracks on both sides of the yard.Only one piece of equipment is allowed to stack or reclaim at the same time for each stack.A scheme of the stockyard is given in Figure 2.  As shown in Figure 2, after the raw coal mined in the mine is transported to the port by train, the coal loaded on the train is unloaded to the belt line by the car dumper.Then, the coal is transported to the designated stockpile by belt and loaded onto the stockpile by stacker.After the ship arrives at the port, it will inform the coal manager of the ship's information and the type and quantity of goods required.As coal is a mixed product, coal managers need to formulate different coal blending schemes according to each kind of goods required by customers, so as to better meet customers' requirements for coal price, gray scale and other properties.The coal blending scheme describes which kinds of raw coal are required to be mixed into product coal and the mixing proportion.After berthing, the ship can begin the outbound operation, that is, according to the ship's cargo demand and coal blending scheme, take out the coal from the designated stack by reclaimer, transport it to the shiploader by belt, and then load it to the designated cabin by the shiploader.Because the ship needs to keep balance during outbound operations to prevent a rollover, the ship must be loaded in a certain order and batch.Each batch of each cabin will generate 1-2 operation tasks according to the coal blending scheme of the product coal required by the cabin.The goal of scheduling is to complete the inbound and outbound tasks given by the port manager as soon as possible under certain production constraints.
The production management process of the port under study is divided into two stages: planning and scheduling.In the inbound operation link, the port planner specifies the stockpiles that can be unloaded for the arriving trains during the planning period, as well as the dumper and operation sequences of the inbound operation according to the current production situation, and then generates the inbound operation table.In the outbound operation link, the port planner will formulate several optional coal blending schemes for the product coal required by each cabin of the ship according to the ship's demand and storage conditions, define the operation requirements, and generate the outbound operation table.The operation requirements mainly refer to the operational constraints or operation priorities to be considered during the outbound operation, such as which coal blending scheme is preferred.In the scheduling phase, the port dispatcher will first select the operation stockpile of each operation task according to the operation tables given by the planner, and then select the equipment to perform the operation task and the operation sequence according to the equipment accessibility relationship on the basis of the comprehensive consideration of the storage yard stacking and equipment occupation.In this study, the inbound/outbound operation that determined the operation stockpile is called the operation task, and a complete operation path composed of various operation equipment selected to complete the operation task is called an operation stream.Each operation task can only be completed by one operation stream.A description of operation tasks and operation streams is shown in Figure 3.Because the coal port managers are often troubled in the task scheduling stage in the management process, the coal port integrated inbound and outbound scheduling problem (CPIIOS) in this paper assumes that only the generated tasks need to be scheduled.When scheduling tasks, this paper will consider the equipment capacity, equipment moving speed and yard capacity.At the same time, this paper assumes that all operation tasks can start immediately as long as they do not violate the operational constraints.

Selection of operation equipment
This paper adopts a minute-level modeling approach to represent the CPIIOS problem, matching the accuracy used by port managers in generating inbound and outbound scheduling schemes and actual operations.This finer granularity provides a more realistic reflection of the challenges faced in coal port scheduling and meets the requirements for medium-term coal port inbound and outbound scheduling.The CPIIOS problem necessitates the consideration of various constraints arising from port layout and production processes:

•
Operation stream matching and reachability constraint.An operation task can only be completed by one operation stream, and the operation stream performing the operation task must meet the equipment accessibility.• Coal blending constraint.If a ship has coal blending requirements during outbound operation, the workload of the operation tasks must meet the proportion requirements of the coal blending scheme given by the port planner.• Operation streams do not overlap constraint.When an inbound/outbound operation stream starts to perform an operation task, the resources on the operation stream cannot be released before the end of the task.Therefore, operation tasks using the same operation stream cannot overlap in operation time.• Operation precedence constraint.When determining the start and end time of the operation stream for the inbound/outbound task, operation sequence requirements caused by the train/ship arrival sequence, loading sequence requirements, and other factors must be observed.For example, if the cabin loading sequence of a ship with five cabins is 4-2-5-3-1 and it operates in two rounds.Each round of operations shall be loaded in the sequence of 4-2-5-3-1, and the next round of outbound operations can be carried out only when the operation volume of each cabin reaches the set target of the first round.• Stockpile capacity constraint.Each stockpile can only accept one piece of equipment for operation at the same time.Therefore, stockpiles can be considered as a special type of equipment added to the operation stream.In addition, the raw coal inventory on the stockpile shall be kept between 0 and the maximum inventory of the stockpile during the process of consumption (outbound operation) and replenishment (inbound operation).

•
Equipment anti-collision constraint.Pieces of equipment operating on the same track shall be kept at a certain safe distance.No equipment collision or equipment crossing is allowed.
To sum up, it can be found that the CPIIOS problem in this paper is the process of selecting and planning the corresponding operation streams for the generated operation tasks, reasonably scheduling these operation streams and arranging the operation time under specific constraints.

The Optimization Model
Based on the above description of the CPIIOS problem, this section states that the optimization model in the constraint programming inspired modeling language OPL [32].This paper presents the model in mathematical notation, using nonlinear constructs such as logical operators, variable subscripts, and some special constraints in constraint programming languages, such as cumulative and no-overlap.The model is linearized and solved by the CP Optimizer [33].
An important basic concept in the model is the interval variable.Interval variables have the attributes of present, start, end, and length (usually length = end − start).Interval variables are usually used to model quantities with interval characteristics.Their unique existence attributes make the existence state of variables optional.The constraint programming language also provides a large number of functions related to interval variables.Most of these functions have intuitive and concise meanings.For example: start(a) represents the starting point of interval variable a; end(a) represents the end point of interval variable a; and presence(a) represents whether interval variable a appears in the current solution.
Unless otherwise specified, all times are in minutes, the lengths are in meters, and the weights are in tons.Moreover, all values are assumed to be integers.

Objective Function
The default objective function of this paper is to minimize the sum of the completion time of the latest inbound operation task and the latest outbound operation task, min(max{ end(h)|h ∈ H} + max{ end(v)|v ∈ V}), as the embodiment of maximizing the port throughput.In the following paper, we also consider maximizing the average equipment utilization and minimizing equipment load imbalance as the optional objective functions.

Overall System Constraints and Bounds on Variables
Overall constraints mainly include operation stream selection and operation time constraints for operation tasks.
Only one operation stream can be selected for each operation task (that is, each operation stream interval for the same operation task has one and only one state that is present), and the start and end times of the operation stream interval are the same as that of the operation task (alternative(a, B) indicates that there is only one variable in set B that is equal to a): The start time of the operation stream shall not be earlier than its earliest theoretical start time, nor later than its latest theoretical start time: Since the actual production process constraints such as the unloading sequence on the dumper, the loading batch and sequence of outbound operation need to be considered, the operation task time needs to meet the operation task precedence constraints, that is, the start time sequence of the operational task needs to be consistent with the operation sequence required by the production process (endBe f oreStart(a, b, c) indicates that a cannot start until b ends c time units): Operation steams using the same production resource cannot overlap each other in operation time (sequence(A) arranges the elements in set A in order, noOverlap(A, lead) indicates that the elements in set A do not overlap with each other and keep a certain interval): It should be noted that all variables in the constraint programming model are interval variables, so they have an optional existence status (when the variable status is absent, this means that the variable is not included in the final result, otherwise it is included): Following the above constraints, we can obtain a scheduling scheme that meets the production process requirements of general coal ports, as shown in Figure 4.In the figure, each rectangle represents a distinct operation task, with the text label indicating the corresponding operation stacking.The various line trajectories depict the movement path of the operation equipment.

Stockpile Operational Constraints
The coal port yard is a place to stack and store the coal unloaded by inbound operations according to the type of coal, so that the coal can be taken out by outbound operations.It is the intersection and buffer of the inbound operation and outbound operation.As depicted in Figure 5, the stockpile operational constraints ensure that the stacking inventory adjusts as the reclaiming operation reduces it and the stacking operation increases it during operations, always maintaining the inventory level between 0 and the maximum allowed.The stockpile inventory in the stockyard will increase or decrease with the inbound and outbound operations.When ignoring the stockpile inventory constraint in the process of operation, it can be found that this problem will be closer to the scheduling problem.The analysis of the solution to this kind of scheduling problem will also be mentioned below.Therefore, it is necessary to ensure that the stockpile inventory is always kept within a reasonable range during the operation, that is, the stock cannot be 0 or exceed the maximum stock (cumulative constraint uses pulse function to reflect the change of stockpile inventory, and uses the alwaysIn constraint to constrain the change of stockpile inventory): alwaysIn(i s , 0, cap s ), ∀s ∈ S (11)

Stacker and Reclaimer Operational Constraints
The stacking and reclaiming process of each operation task can be completed by the corresponding equipment on both sides of the strip yard.In order to accurately describe the inbound and outbound process, the moving speed of the equipment can be set according to the actual operation parameters (30 m/min).Considering that there are usually 1-2 types of equipment on the equipment track, there are two types of equipment constraints to consider.
The first is the equipment operation gap constraint: the time required for the equipment to move from the current operation position to the next operation position when completing two consecutive operation tasks.
The other is the equipment's anti-collision constraint: equipment on the same track cannot pass each other.
Figure 6 shows an example of equipment movement trajectory.In the figure, reclaimers R03 and R04 are situated on the same track on the south side of Strip Yard 4, while stackerreclaimer SR00 and reclaimer R10 are positioned on the track on the north side of Strip Yard 4. The ordinate in the diagram indicates the equipment's location on the strip yard and represents the name of the stockpile corresponding to each location.For example, S401 indicates stockpile 401 on Strip Yard 4. As can be seen from the figure, equipment belonging to the same track always maintains a certain safety distance and a certain relative position to avoid equipment collision or equipment crossing.And there is only one piece of equipment operating on the same stack at the same time.These findings affirm the importance and effectiveness of the equipment operational constraints presented in this paper.

Special Operational Constraints
The unique production process of the port under study also brings special production process constraints to this problem.In contrast to the Hunter Valley coal supply chain studied by [31], which first mixes coal according to the ship's demand into a stockpile and then reclaims from it, in the port under study, the raw coal is stored in different stockpiles.After the ship arrives at the berth, it is taken from the stockpile according to the ship's demand, then mixed on the belt line, and finally loaded into the cabin.
In order to meet the requirements of the coal blending process, the outbound operation tasks belonging to the same coal blending scheme must start at the same time: Figure 7 is an example of the outbound operations of a cabin of a ship in the berth.The figure depicts the scheduling of outbound operation tasks, with the x-axis representing the operation time and the y-axis representing operation cabins.Each block represents an outbound operation task, with its width proportional to the task's workload.The text on each block indicates the specific outbound operation stream, such as "S106-RC01-SL02", which signifies that the operation task is handled by reclaimer RC01 on stacking S106 and loaded by shiploader SL02.It can be seen that the operation tasks belonging to the same coal blending scheme need to start at the same time to ensure that raw coal can be uniformly blended according to the coal blending ratio.Reclaiming task 2

Redundant Constraints
Since constraint programming plays a pivotal role in optimization by virtue of its capacity for reducing variable domains through constraint propagation, it is of paramount importance to exhaustively enumerate all requisite constraints.Furthermore, the judicious use of constraint recombination, global constraints, redundant constraints, and surrogate constraints stands out as a strategic approach that can substantially amplify the efficacy of the solution process [34].
Given that the issues addressed in this study encompass resource allocation and equipment selection, we devised resource constraints for various equipment types, such as stackers and reclaimers.These constraints serve to restrict the cumulative occupation of each equipment category during specific time intervals, ensuring it does not surpass the total quantity of such equipment available.Experiments show that these redundant constraints can bring significant efficiency gains in accelerating the convergence of the constraint programming model.

The Methodology: Heuristic Strategies to Improve the Solution
The presented model can be solved by a CP solver to obtain the optimal or nearoptimal solution.Nonetheless, when dealing with larger problem scales or increasingly complex structures, the solution performance of the CP solver exhibits gradual deterioration.Recognizing the inclination of heuristic and meta-heuristic algorithms to become ensnared within local optima when addressing intricate optimization challenges [35,36], this research offers a comprehensive explanation on the configuration of CP solver parameters and strategic solutions to enhance its efficiency.Additionally, it introduces an enhanced twostage solution algorithm that amalgamates ALS, SA, and the CP solver, with the specific aim of avoiding such suboptimal solutions.It incorporates several heuristic rules to strike a balance between the global search and local search capabilities.These rules encompass the use of roulette wheel rules, adaptive operator selection probabilities, and neighborhood operators tailored to the specific problem structure.

Outline of Proposed Algorithms
The CP Optimizer, when employed with its default search parameters, operates with a predefined search algorithm and constraint propagation process.In cases where the CP Optimizer detects inconsistency during the predefined constraint propagation, it will engage in backtracking until it finds a feasible solution.In constraint satisfaction problems with multiple or numerous feasible solutions, the primary challenge faced by the CP Optimizer is not in finding a feasible solution, but in optimizing the objective function [37].The CP Optimizer can swiftly generate feasible solutions for such problems, yet minimal backtracking may hinder its ability to escape local optimal solutions.Consequently, as depicted in Figure 8, this study introduces an approach that utilizes the CP Optimizer to address the CPIIOS problem.Additionally, it incorporates a framework that amalgamates SA and ALS algorithms to augment the CP Optimizer's capacity for exploring a broader spectrum of viable solutions.
The ALS algorithm is an advanced version of the LNS and VNS algorithms, recognized for its efficiency within neighborhood search algorithms [38].Compared with the general neighborhood search algorithm, the adaptive neighborhood search algorithm can dynamically manage the neighborhood operators based on their historical performance as the search progresses [39].Additionally, we incorporate the SA algorithm for accepting or rejecting new solutions.Developing an adaptive simulated annealing local search (ASALS) algorithm for complex constraint satisfaction problems involves significant design and programming efforts.By adopting a solution structure akin to that of constraint programming problems, the constraint propagation and solution verification procedures inherent to CP solvers can be maximized.Consequently, we merge these two approaches to formulate an enhanced solution strategy.This approach is segmented into two phases:

•
In the first phase, the CP Optimizer is employed multiple times to systematically explore feasible initial solutions, with the ASALS algorithm employed to dynamically enhance the search process for these initial solutions.

•
In the second phase, the CP Optimizer is harnessed to conduct an exhaustive search for the optimal solution.The local optimal solutions gathered during the initial stage play a pivotal role in guiding the CP Optimizer's search in this phase.

CP Solver Search Strategies
This article utilizes the IBM ILOG CP Optimizer solver [33] to model and solve the CPIIOS problem.The solver offers users various solution parameters and strategy settings that are essential for solving constraint programming problems and significantly impact the solution's performance and efficiency.The CP Optimizer offers a variety of solution parameter settings, including presolve, search type, inference levels, and workers.
Presolve: In contrast to the CPLEX solver which requires a large number of userdefined variable reduction techniques to improve the efficiency of the solver [40], the CP Optimizer provides users with the presolve function.Presolve involves simplifying the model by reducing linear constraints and eliminating redundant and fixed expressions before starting the search, resulting in a more efficient model solution.In the model this paper introduced, using the presolve function can effectively eliminate hundreds of redundant expressions and accelerate branch search speed.
Search type: The search types provided by the CP Optimizer include depth-first search, restart search, and multi-point search.Restart search has the best solution efficiency in this model.
Inference level: Changing the inference level for constraint propagation can alter the inference level and calculation time of constraint propagation.With a large number of no-overlap constraints in this paper's model, setting its inference level to the medium can strike a balance between solving efficiency and time.
Workers: The CP Optimizer uses multiple workers for parallel searches.While multithreading can accelerate the search speed, it also takes up some search time.In this constraint programming model, setting the number of workers to eight can achieve optimal search efficiency.
The CP Optimizer offers user-defined variable search order strategies, including variable search orders and variable value search orders.However, in the model presented in this article, the custom search order strategy based on heuristic rules did not show significant improvements.
Besides the parameter settings and search strategies discussed previously, the CP Optimizer offers further solution optimization by adjusting parameters such as temporary relaxation, random seed, and failure-directed search.Additionally, custom constraint propagators can achieve more consistent constraint propagation with the problem structure.However, due to their limited impact on the efficiency of the constraint programming model presented in this paper, these parameters will not be further examined in this study.

First Phase of ASALS-CP Algorithm
In the first phase, the ASALS algorithm is introduced, which dynamically adjusts the selection weights of various neighborhood operators based on their historical performance during execution, thus expediting the optimization process.As depicted in Algorithm 1, the initial solution is first derived through the CP solver, with a further detailed solution strategy found in Section 4.2.The initial weight for each neighborhood operator is initialized by setting it to 1. Once the initial solution and operator weights are established, the algorithm proceeds to its iterative phase, continuing until the iteration count (iter) is more than MaxIter.During each iteration, a neighborhood operator is randomly chosen based on its assigned weight and executed for a duration of τ seconds or all the neighborhood nodes are traversed (node > Node).To account for variations in CPU time among different neighborhood operators, this study assigns equal running time to each operator, rather than an equal number of iterations, in order to facilitate a more precise calculation of the adaptive operator selection probabilities.
Furthermore, the SA algorithm is used to accept or reject the current solution (S temp ) obtained from the neighborhood search.If the objective function value of S temp (C temp ) is lower than the objective function value of the best solution found so far (C best ), S temp replaces both S best and S. Additionally, if the condition random(0, 1) < exp C S −C temp θ is met, S temp is also accepted as the current solution S.

Representation
The accuracy of solutions in hybrid algorithms significantly relies on the solution transfer between various components within the algorithm, constituting a crucial step in the optimization process of the meta-heuristic algorithm.In this study, the configuration of the solution is represented by the allocation of operation tasks to specific operation equipment and resources, along with the corresponding operation time.The details regarding the transfer of solutions between different algorithms are comprehensively elucidated in Section 4.4.

Initial Solution
The initial feasible solution to the problem is obtained using the CP Optimizer to solve the constraint programming model, with its search parameters and strategies detailed in the previous section.Due to variations in problem structures and scales, the time required for the CP solver to achieve the initial solution may differ.To strike a balance between obtaining a high-quality initial solution and minimizing the computation time, an adaptive adjustment strategy for the solver solution time is designed in this paper.Specifically, the solver's current solution state is monitored every second.The solver stops and outputs the current solution as the initial solution for the ASALS algorithm when the current solution remains a feasible solution for five consecutive times without changes.

Adaptive Control Mechanism
The primary advantage of the ALS algorithm presented in this paper lies in its adaptive control mechanism, which can dynamically adjust neighborhood operator weights based on specific instances and each step of the algorithm.We employ a roulette wheel selection mechanism to choose neighborhood operators with varying weights.Initially, the weight of each operator is set to w n = 1, ∀n ∈ N.After each iteration, the operator's weight is updated based on its success rate r n in previous iterations.The selection probability p n of an operator can be calculated according to its weight, as shown in the following formula.This paper follows the operator selection probability and weight update approach detailed in [41].A minimum selection probability of 2% is set to guarantee that each operator has at least a 2% probability of being selected, preventing operators from being eliminated and ensuring operator diversity while maintaining computational efficiency.
The weight update is defined as follows.A reaction factor α = 0.5 is employed to regulate the impact of weight adjustment on changes in the operator's success rate in the previous iteration [42].A higher (or lower) reaction factor results in a greater (or lesser) influence of the latest iteration on weight adjustment.To give preference to operators that are frequently used, we calculate the success rate of operator n in the last iteration and divide it by the number of times that the operator has been applied, denoted by η.
The success rate calculation method is as follows.Initially, the success rate of each operator is set to zero at the start of every iteration.Then, each time operator n is invoked, its success rate is updated based on the operator's performance [43].Success is determined when the operator either discovers a better solution or identifies a solution with the same target value but different solution structures.Recognizing that achieving optimization becomes progressively challenging with the progression of the iteration process, we factor in the rate of improvement in the objective function value when updating the success rate.

Neighborhood Operators
Local search, a crucial component of the optimization process, is greatly enhanced by leveraging problem-specific knowledge, thereby significantly boosting the algorithm's exploration capabilities [44,45].The outcomes of local search are either superior novel solutions [46] or enhanced initial solutions [47].To further enhance the algorithm's performance, this paper introduces four tailored neighborhood structures designed for the specific problem structure to be employed during the local search process.The neighborhood structures are designed with reference to [48], as depicted in Figure 9.
Neighborhood structure InsertionInner: This structure generates neighborhood solutions by inserting an operation task into a new position.It selects an operation task on the device with the longest operation time, and then inserts it into another location on the same device.The selected operation task is chosen according to the operation time from the latest end to the earliest end, and the insertion position is selected according to the start time from the earliest start to the latest start.
Neighborhood structure InsertionBetween: This structure generates neighborhood solutions by inserting an operation task into a new position on another device of the same type.It selects an operation task on the device with the longest operation time, and then inserts it into a different location on another device of the same type.The selection of operation task and insertion position is the same as the previous neighborhood structure.
Neighborhood structure SwapInner: This structure generates new neighborhood solutions by swapping operation tasks within the same device.It selects two different operation tasks on the device with the longest operation time and swaps their positions within the same device to create a new solution.The selected operation task is selected according to the operation time from the latest end to the earliest end, and the other operation task is selected according to the operation time from the earliest start to the latest start.
Neighborhood structure SwapBetween: This structure generates neighborhood solutions by exchanging tasks between the device with the longest operation time and another device of the same type.Specifically, it selects an operation task from the device with the longest operation time and another operation task from another device of the same type, swapping their positions to create a new solution.The choice of the two operation tasks is the same as the previous neighborhood structure.OT

Neighborhood Solution and Feasibility Check
The CPIIOS problem is intricate, involving a myriad of complex constraints.When examining the feasible time window for the neighborhood operators, the operators' subfunctions play a crucial role in ensuring adherence to these constraints.In this paper, the conflict refiner of the CP Optimizer with the conflict recognition function is used to identify the feasible time window on the device.On the other hand, the neighborhood operator mainly deals with constraints related to equipment operations, often neglecting crucial process-related constraints such as inbound and outbound operation precedence constraints.To address this limitation, we also use the conflict refiner to identify all constraints in the problem and check whether the current solution is feasible.This integration allows for the identification of infeasible solutions by considering a broader spectrum of constraints, contributing to a more comprehensive and effective solution to the CPIIOS problem.
Detecting an irreducibly inconsistent set (IIS) among the constraints of a model is a standard method.However, the IIS method is only applicable to continuous linear programming models, and the conflict refiner can handle all types of continuous and discrete problems supported by CPLEX and CP Optimizer.In the CPIIOS problem, it only takes 0.009 s on average to check the feasible time window in GN5-1 using the conflict refiner, while it only takes 0.026 s on average to check the feasibility of the solution.

Cost Evaluation
To ensure the efficiency of the meta-heuristic algorithm, it is essential to swiftly compute the objective function value [49].Previous approaches have often utilized linear functions to calculate processing times, employing straightforward recursive functions for objective function computation [50].However, such calculation methods tend to sacrifice the computational time, hindering the overall efficiency of the solution process.In this study, the interval variable in the constraint programming exhibits characteristics encompassing both the start and end times.This unique feature enables the direct calculation of the objective function value by evaluating the end time of each task on respective operation devices.This approach enhances the accuracy and efficiency of the objective function calculation in the algorithm.

Simulated Annealing
Simulated annealing, being one of the predominant single-solution-based meta-heuristic algorithms, plays a crucial role in escaping the local optima by embracing non-improved solutions [43].It found extensive applications in solving combinatorial optimization problems.Drawing inspiration from the threshold acceptance algorithm outlined by [51], this study employs SA to accept solutions with identical target values.In each iteration, any neighborhood solution that is at least as good as the current target value is accepted.Otherwise, the acceptance of a neighborhood solution hinges on factors including the discrepancy between the target value and the current optimal solution, along with the prevailing temperature.The Boltzmann distribution is employed to compute the acceptance probability:

Second Phase of ASALS-CP
After resolving the first phase, the most optimal feasible solution obtained is passed to the second phase, with the initial point set as the optimal solution from the first phase guiding the subsequent solver solution.The parameters and strategies for solving with the CP Optimizer in the second phase are akin to those in the first phase, as detailed in Section 4.2.Notably, this paper advocates a multi-start two-stage solution framework.Through the iterative initiation of the CP + ASALS solution framework, multiple feasible solutions are acquired, with the optimal solution chosen as the starting point for the secondstage iteration of the algorithm.The number of multiple restarts is empirically set to 20 based on parameter experiments.The operational details of the second phase of the algorithm are delineated as follows: • The CP solver strategy in the second stage is configured similarly to the first stage, terminating when the solution time reaches the predetermined condition.

•
The precision of solutions in hybrid algorithms significantly relies on the exchange of solutions between different components.To facilitate the transfer of solutions between different components, the CP Optimizer offers functionalities for setting starting points and IloSolution.By combining these features, solutions can be stored by preserving the values of decision variables, eliminating the need for encoding and decoding typically encountered in heuristic algorithms.This approach enables the accurate transmission of solutions, enhancing the efficiency of hybrid algorithms.The concrete operational process involves reading the presence, start, and end values of key decision variables in the current feasible solution through the IloSolution function, assigning them to the starting point, and then transferring the solution by reading the starting point value.

Computational Experiments
The implementation of this paper is implemented through a Java project that combines the CP solver and ASALS.The interface to the CP solver is implemented by calling the CP Optimizer Java Archive File on the model and data files and reading its output results and logs.
Our CP solver was IBM ILOG CP Optimizer 12.10 (IBM Corporation 2020, commercial product used under academic license).Although compared to other solvers, CP Optimizer is not well known in the scheduling field.However, its simple and realistic modeling language makes it have good out-of-the-box performance for solving real-life problems [33].The CP Optimizer's memory consumption in the tests was below 80 MB.
All experiments were conducted on a Mac Pro A2338 workstation, which was equipped with two 3.2 GHz Quad-Core Apple M1 processors, providing a total of eight cores.It had 8 GB of unified memory and 256 GB of internal storage capacity.The experiments were performed on MacOS Monterey 12.3.

Test Data
The experimental data are mainly composed of two parts.The first part is the desensitization data obtained from the actual operation data of the port under study.And the second part is the simulation data generated according to the actual operation of the coal port.
The test data in this paper are derived from the actual coal port logistics system network structure, as illustrated in Figure 1.The logistics system comprises trains, ships, stackings, and different types of equipment.Nodes representing network resources are interconnected by belts/operation streams.Detailed explanations of the data structure and generation rules for the operation streams are provided below.
To mitigate the impact of the warm-up stage (when the yard occupancy is sufficient to commence operations) on the solution results, we simulated a relevant warm-up scenario in the dataset that aligns with the actual yard operation conditions.This involves simulating an appropriate yard inventory status based on real operational conditions and subsequently excluding its influence from the solution results.
An instance of the model is mainly composed of two kinds of data: port/operation basic data and operation task information.The port/operation basic data provide the basic configuration information in the production process, as shown in Table 2.The operation task information is composed of real-life operation task data and simulation data, as shown in Table 3: • Dataset A contains three real-life operation data entries from the port under study, and these data have been desensitized.• Dataset B contains 16 sets of data under six data sizes and three operation scenarios.The difference between the three operation scenarios is reflected in the different stacking selections of the operation tasks.In the case of strong overlap, on average, every three operation tasks are processed on the same stacking.In the case of weak overlap, on average, every two operation tasks are processed on the same stacking.And in the case of no overlap, the operation stacking of each task is almost different.

Algorithm Parameter Settings
The parameter configuration and solution strategy of the CP Optimizer have been extensively discussed in detail in Section 4.2.This section primarily delves into the setup of the ASALS algorithm to optimize its performance, prevent premature convergence, and enhance the diversity of the algorithm's search space.The ASALS algorithm proposed in this paper encompasses five key parameters: the maximum number of iterations MaxIter, the iteration optimization time for operators τ, the reaction factor α, the cooling rate µ, and the minimum selection probability p min .Each parameter consists of five different levels, such as MaxIter = [10, 30, 50, 70, 90], τ = [0.1, 0.2, .0.3, 0.4, 0.5], α = [0.1, 0.2, 0.3, 0.4, 0.5], µ = [0.90, 0.92, 0.94, 0.96, 0.98], p min = [0.01, 0.02, 0.03, 0.04, 0.05].For the sake of ensuring robustness and stability, all parameter combinations are independently executed 10 times under a predefined termination condition (i.e., 600 s), and the average objective function value is used as the metric.Figure 10 illustrates the trend of factor levels for the five parameters.Based on the figure, the ASALS algorithm parameters in this paper are configured as follows: MaxIter = 50, τ = 0.4, α = 0.5, µ = 0.9, p min = 0.02.

Performance Comparison with Other Algorithms
To assess the performance of the CP method and the proposed ASALS algorithm, this study compares them with two widely used VNS algorithm [52] and SA algorithm [53] applied to port scheduling problems.The parameter settings for these two algorithms are obtained from [54,55], as detailed in Table 4.In this context, T Start and T end denote the initial and ultimate temperatures in the SA, and L signifies the number of iterations at each temperature in the SA algorithm.Given the substantial influence of the initial solution on algorithmic efficiency, this study leverages the CP solver to construct initial solutions for both algorithms, which are subsequently subjected to optimization processes using the respective algorithms.Considering the inherent stochastic nature of heuristic algorithms, each algorithm undergoes 10 trials in a consistent environment.Table 5 presents the average objective values and average GAP values, with the best results for each combination highlighted in bold.The GAP value represents the percentage of the relative difference between the current objective value and the lower bound given by the CP Optimizer.Note that the lower bound provided by the CP Optimizer may be obtained after relaxing some operational constraints, resulting in a smaller GAP value between the objective value and the actual optimal value.According to the information provided in Table 5, the following conclusions can be drawn.

•
The CP Optimizer demonstrated a consistent performance across all instances, providing feasible solutions with GAP values below 30%, although many instances reach the solution time limit.In some cases, it is a struggle to significantly improve the solution results even with the increased solution time (CP (1000 s)).Instances achieved optimal solutions in 12% of cases, and 88% of instances showed a GAP of less than 20%.The solver's efficiency was notable, especially in scenarios where optimal solutions were readily attainable.Across the GN1-GN5 sets, the CP optimizer exhibits average solution gaps of 4.55%, 8.78%, 13.08%, 14.94%, and 17.21%, respectively.This indicates the CP Optimizer's capability to quickly attain near-optimal solutions within a defined timeframe.However, its effectiveness diminishes with larger problem scales, as evidenced by increased task completion times.The detailed introduction of different data scales and difficulty is shown in Section 5.9.

•
The ASALS algorithm demonstrates notable improvements, achieving a substantial enhancement in the solution results, especially in larger and more challenging instances.The two-stage algorithm combining ASALS and CP solver showed a notable improvement of up to 6.49% in the best-case scenario.This showcases its ability to efficiently explore the search space and avoid local optima.In certain scenarios, notably for small-scale or easily optimized instances, further optimization proves challenging for ASALS-CP.Compared with the CP solver, ASALS outperforms the CP solver in 17 of 25 instances.Specifically, the average solution gaps obtained by ASALS for GN1-GN5 are 4.55%, 7.28%, 12.63%, 14.14%, and 16.16%, respectively, representing a gradual increase from 0 to 6.49% compared to the average improvement in the CP solver.This trend indicates that, as the problem scale expands, the advantages of the ASALS algorithm become increasingly evident.Nevertheless, its robustness is evident in handling instances of diverse sizes and complexities, providing alternative solutions while maintaining a balance between solution quality and computational efficiency.

•
Compared with SA and VNS algorithms, the ASALS algorithm achieves a good balance between convergence speed and traversing the search space.It outperforms these algorithms in terms of both efficiency and the ability to avoid falling into local optima.The ASALS algorithm outperforms the SA and VNS algorithms in 15 out of 25 and 16 out of 25 instances, respectively.On average, the ASALS algorithm consistently achieves better objective function values and gaps compared to the SA and VNS algorithms.Figure 11 illustrates the convergence of objective values for the four algorithms across different instances.In comparison to the rapid convergence and susceptibility to local optima of the CP solver, as well as the slow convergence and difficulty in escaping local optima exhibited by VNS and SA algorithms, the ASALS algorithm strikes a commendable balance between convergence speed and thorough exploration of the search space.Figure 12 presents a comparative analysis of scheduling outcomes between the CP solver and the ASALS-CP algorithm.The results underscore the efficiency of the ASALS-CP algorithm.Through the optimized arrangement of equipment operation tasks, the ASALS-CP algorithm achieves a more time-efficient scheme, enhancing operational efficiency in the coal port production process.It is noteworthy, however, that the operation scheme derived from the two-stage algorithm notably differs from that of the CP solver, not only in terms of operation time but also in the selection of operation stacking.This divergence implies that the CP Optimizer may encounter challenges escaping local optima during the solution process, limiting its ability to explore solutions with significantly improved objective values.To ascertain the adaptability of the ASALS algorithm in handling extreme port operations and to demonstrate its efficacy in large-scale scenarios, this study compares and analyzes the solution efficiency of the ASALS algorithm and the CP algorithm using a set of large-scale instances, as depicted in Table 6.The findings indicate that the ASALS algorithm not only reduces the operation time and solution gap but also enhances the yard and equipment occupancy rates for large-scale instances.This occurs because the ASALS algorithm aims to optimize the objective function by minimizing the operation time, leading it to prioritize parallel operations.This strategy involves selecting more operation equipment and operation stacking, as evidenced by the comparative analysis of the above solution schemes.These results underscore the robust performance of the proposed algorithm in busy port operations and underscore its effectiveness and efficiency compared to the direct solution method of the CP solver, highlighting its strong practical applicability.

Comparison with Manual Scheduling Method
To verify the feasibility of our solutions, we compare the manual scheduling results of three actual instances with the scheduling results obtained by the two-stage algorithm.Table 7 demonstrates that the ASALS-CP algorithm can achieve optimal scheduling results within a short solution time (not exceeding 15 s), whereas manual scheduling typically requires more than 20 min to generate a feasible scheduling scheme.
The relative difference percentage quantifies the variation in operation completion times between the two scheduling approaches: the ASALS-CP algorithm and manual scheduling.The scheduling scheme obtained by the ASALS-CP algorithm significantly reduces the task completion time, with the maximum operation time shortened by nearly 60% compared to manual scheduling.However, it is important to note that, as the problem scale increases, this advantage may experience a certain decline.Meanwhile, the ASALS-CP algorithm effectively enhances the yard and equipment occupancy rates, improving the yard occupancy rate by 12.03% and the equipment occupancy rate by 8.33%.It is worth noting that the yard occupancy rate at the studied port is relatively low due to strategic reserves, with only about 50% of yard resources being utilized for actual operations.
Figure 13 presents the scheduling scheme diagrams obtained by the manual scheduling and the ASALS-CP algorithm for solving the instance of R1.It is evident that the manual scheduling scheme is more loosely arranged with lower equipment utilization rates, whereas the scheduling scheme generated by the ASALS-CP algorithm is significantly more compact, resulting in shorter task completion times.The comparison of scheduling results reveals that the ASALS-CP algorithm achieves more efficient operation equipment and stacking utilization, with more compact operation tasks.In contrast, manual scheduling often involves frequent equipment switches within a short period and larger distances between the adjacent operation stacks.These factors contribute to the significantly longer operation time observed in manual scheduling compared to the ASALS-CP algorithm.
These results demonstrate the feasibility and effectiveness of our proposed ASALS-CP algorithm for the CPIIOS problem.The algorithm not only achieves optimal scheduling results within a short solution time but also improves the task completion efficiency compared to manual scheduling, especially for smaller-scale instances.

Comparison to a Genetic Algorithm without CP Solver
The genetic algorithm has proven to be an effective and versatile approach for solving combinatorial optimization problems, particularly resource-constrained scheduling problems [56].Zhang et al. proposed a heuristic algorithm based on NSGA-II and VNS to address the combination problem of loading operation planning and ship traffic scheduling in bulk ports [15].Building upon Zhang et al.'s work, this paper devises a genetic algorithm tailored to the CPIIOS problem.
In the designed genetic algorithm, a chromosome is defined, comprising segments for inbound operation tasks and outbound operation tasks.Feasible solutions are generated through random generation, and the algorithm incorporates standard genetic steps such as selection, crossover, mutation, and retention.However, experimental results demonstrate that finding solutions that adhere to all constraints is challenging for the genetic algorithm.Even for the smallest-scale example GN1-1, the genetic algorithm can only attain a solution with an operation completion time of 697 when disregarding the no-overlap constraints on operation equipment and operation stacking, which is still close to 15% worse than the solution obtained by the CP Optimizer.This limitation highlights the difficulty of achieving feasible solutions for complex combinatorial optimization problems with intricate constraints, as presented in this study.To enhance the efficiency of such algorithms, future endeavors may focus on improving the quality of initial solutions and incorporating repair operators to address constraint violations.

Scheduling Results and Equipment Operation Diagrams
Figure 14 illustrates the scheduling scheme diagrams obtained by the ASALS-CP algorithm for five instances with progressively larger task scales.As the scale of tasks increases from diagram (a) to diagram (e), the corresponding operation completion times and the number of operation equipment in the diagrams also increase.Notably, the diagrams reveal a noticeable trend towards a more compact arrangement of tasks as the scale increases.This demonstrates the algorithm's ability to effectively handle larger task sets while optimizing the overall scheduling scheme.The diagrams vividly illustrate the impact of task scale on equipment operations.As the scale of tasks increases, the demand for completing tasks on each equipment intensifies.This heightened task allocation poses significant challenges in ensuring the uniqueness constraint of each piece of equipment and complying with the constraints related to the equipment's movement distance.Nevertheless, the ASALS-CP algorithm proves its effectiveness in efficiently managing these complexities and delivering optimized scheduling solutions for equipment operations.The diagrams serve as visual evidence of the algorithm's capability to handle diverse task scales and generate well-organized equipment operations.

Choice of Objective Function
The coal port integrated inbound and outbound scheduling system is a discrete-time dynamic system, and establishing a direct correlation between various performance indices and system performance is challenging.Furthermore, scheduling optimization results can significantly differ based on the same indicator, considering the diversity of coal port systems and customer needs.To enhance the universality and practicality of the coal port integrated scheduling system, it is crucial to optimize the system performance using various scheduling indicators, thereby offering a diverse set of scheduling strategies.

•
Minimizing the operation completion time: one objective to improve the coal port's efficiency and service level is to minimize the completion time of the operations.

•
Maximizing the average equipment utilization: This optimization aims to enhance the efficiency of equipment operation and optimize resource allocation.This is accomplished by maximizing the utilization rate, calculated as the percentage of the equipment operation time to the latest completion time of all operations.

•
Minimizing equipment load imbalance: The objective is to minimize the equipment load discrepancies and eliminate the efficiency losses caused by operational imbalances, which is achieved by calculating the variance of the equipment operating time.
In Table 8, we analyze the performance of the three objective functions mentioned above using instances R1-R3, with the default objective function being the minimization of the operation completion time.It is important to note that all data in the table have been desensitized to maintain confidentiality.It is evident that different objective functions yield advantages in different evaluation indicators.However, the objective function employed in this paper consistently performs well across all aspects of the indicators.

Model Sensitivity Analysis under Different Model Parameters
Table 9 shows operation completion time for the five instances under different model parameters, using CP Optimizer as the backend without ASALS.And Figure 15 compares the impacts of different model parameters on the operation task completion time and GAP.The results reveal that, in comparison to the inbound operation, the outbound operation significantly influences the difficulty of solving the model.Neglecting the inbound operation leads to a considerable increase in the complexity of solving the CPIIOS problem.The remaining operational constraints also exert a certain influence on the model's difficulty.Among these, the no-overlap constraint, which ensures operation equipment and stockpile uniqueness, has the most significant impact.By removing this constraint, an optimal solution can be obtained for any problem scale.Conversely, the inbound operation precedence constraint has the least impact on the model's difficulty.This underscores the meaningfulness of considering the integrated scheduling problem of inbound and outbound operations in this study.And each constraint in the model carries significance for problem-solving.Ignoring a specific operation aspect or constraint introduces varying levels of difficulty in solving the problem.

Model Sensitivity Analysis by Multi-Data Scale
Table 10 presents the time taken to find the optimal solution for the 75 instances and the corresponding GAP under various data scales and operation scenarios, utilizing CP Optimizer as the backend without ASALS.Figure 16 visually depicts the influence of data size and scenarios on the time taken to find the optimal solution and the GAP.The figure illustrates that, as the data scale increases, the GAP value also increases, indicating a decline in the solution quality.This implies that larger data scales result in relatively worse solution outcomes.Additionally, more complex operation scenarios have a greater negative impact on solution quality compared to the data scale alone.Furthermore, the increase in data scale and complexity leads to longer times required to find the optimal solution.However, as the number of operation tasks increases, the complexity of the solving scenario can actually expedite the solver's ability to find the optimal solution.This phenomenon may be attributed to the complexity of the scenarios and constraints, which make it easier for the constraint propagation solver to narrow down the solution space and quickly identify feasible solutions.

Conclusions
We employ ASALS and CP techniques to tackle a complex coal port integrated inbound and outbound scheduling problem.Our objective is to develop a reliable and efficient operational scheduling scheme for medium-and short-term operations at coal ports.By utilizing the simple and realistic characteristics of the constraint programming modeling language, we can effectively and appropriately model the operational processes of the coal port.Given the port layout, production process, and operational constraints of the studied port, we constructed an integrated scheduling model for the actual production operations of composite coal ports.This model considers the port inbound, storage, and outbound operations, as well as the coal blending process based on ship demand.The integrated scheduling of inbound and outbound operations is found to have a significant influence on the model's solution, directly impacting the overall difficulty of solving the problem.Additionally, we observe the indispensability of the various operational constraints proposed in this study.Disregarding any of these constraints affects the problem's structure and changes the complexity of finding the solution.
Recognizing the limitations of constraint programming in solving large-scale problems, as it is prone to obtain trapped in local optimum, we propose a two-stage solution method that combines CP and ASALS to enhance the solution process for the CPIIOS problem.The customized search capabilities of the CP solver allow for resource allocation with a greedy approach, which may lead to a local optimum.Employing the CP Optimizer, a high-quality initial solution is obtained, followed by the application of an ALS algorithm for local optimization.The SA algorithm is introduced to accept diverse scheduling schemes with different solutions under the same objective function, facilitating the escape from local optima and further enhancing the solution efficiency.It is important to highlight that the ASALS algorithm proposed in this paper consistently outperforms or matches the performance of the CP solver, the SA, and the VNS algorithms across all instances.By employing this improved algorithm, a 7.26% improvement in the GAP can be achieved.The CP method proposed in this paper requires significant computational time to escape local optima.In contrast, the ASALS algorithm can produce superior solutions in a shorter time, especially for large-scale instances.This capability enables more frequent and effective adjustments to the operational plan in the dynamic scheduling environment of large coal ports, allowing them to adapt to dynamic environmental changes such as equipment failures, and variations in train and ship arrival times.
Comparing the results with manually generated schedules, we find that the constraint programming-based results align with the actual operational requirements of the coal port.Moreover, the proposed approach significantly improves both the solution efficiency and solution quality compared to manual planning and scheduling.Out of the 75 instances, we achieve optimal solutions in 8 cases, and for all instances, the solution gap is below 30%.Consequently, we have confidence in the ability of the proposed method to obtain highquality near-optimal solutions.This method offers flexibility and scalability advantages: it employs a straightforward constraint programming modeling approach that closely reflects the actual operational context, allowing port managers to modify or expand the model based on the port's production and operational processes.However, its drawback lies in the lack of a flexible and efficient search strategy, which occasionally hinders one's efforts to find the optimal solution.
Future research endeavors should center around more intricate coal port integrated planning and scheduling models, particularly incorporating ship scheduling, berth allocation, and dumper allocation.The development of models encompassing both inbound and outbound operation scheduling would be crucial for aiding port managers in implementing comprehensive and efficient port management practices.Moreover, the effectiveness of our proposed method in handling large-scale problems still requires enhancement.Exploring and devising more efficient and flexible solving tools can further improve the solving time and effectiveness.Researchers can explore the effects of various port management strategies on operational efficiency and problem structure.For instance, they might examine the impact of merging the demand orders from different ships for coal blending operations, enhancing the overall port efficiency by efficiently transporting the same product coal to multiple ships.Given the increasing consensus within the port industry on addressing the rising energy prices and mitigating climate change [57], researchers can also delve into studies on port carbon emissions and energy efficiency.Such research endeavors can contribute to promoting energy conservation and emission reduction in ports, thus fostering their sustainable and environmentally friendly development.

Figure 1 .
Figure 1.A partial overview of the port under study.

Figure 2 .
Figure 2. A scheme of the coal port inbound and outbound operation instructions.

Figure 3 .
Figure 3.A description of operation tasks and operation streams.

Figure 4 .
Figure 4.A general scheduling scheme for the coal port.

4 Figure 5 .
Figure 5.A schematic example of change in stockpile inventory of coal port.

Figure 7 .
Figure 7.A schematic example of outbound operations of a cabin.

Figure 9 .
Figure 9. Illustration of neighborhood solution generation method.

Figure 10 .
Figure 10.Factor level trend of five key parameters.

Figure 11 .
Figure 11.The convergence process of objective values of different algorithms under different instances.From left to right is the convergence process of objective values of GN3-5, GN4-5, and GN5-5.

Figure 12 .
Figure 12.Illustration of the effect of the CP solver (a) versus the ASALS-CP algorithm (b) on the scheduling results of instance GN5-1.

Figure 13 .
Figure 13.Scheduling scheme diagrams of R1 obtained by the manual scheduling method (a) and ASALS algorithm (b).

GN1Figure 15 .
Figure 15.Comparison of the operation task completion time and GAP under different model parameters.

Figure 16 .
Figure16.Impact of data sizes and scenarios on the time taken to find the optimal solution (s) (left) and GAP (%) to the optimal solution (right).

Operation volume of inbound operation task h siz loadv
Operation volume of outbound operation task v cap unload f Operation efficiency of inbound operation stream f (t/min) cap load f Operation efficiency of outbound operation stream f (t/min) ord unload h Operation sequence of inbound operation task h in the dumper operation set ord load v Operation sequence of outbound operation task v in the ship operation set lead Operation task switching time of equipment est unload h The earliest time when inbound the operation task h can start operation (est unload h

Table 1 .
Overview of the research on inbound and outbound operation scheduling problems in dry bulk ports.

16 end 17 end 18 node ← node + 1 19 end 20
Construct an initial solution S 0 using CP solver; 2 S, S temp , S best ← S 0 3 Initialize weights of neighborhood operators; 7 node ← 1 8 while duration < τ and node ≤ Node do 9 Apply the operator n to find a neighbor solution S ; 10 Check whether S is feasible; 11 if S is feasible then 12 Calculate objective function value C of S ; 13 if C < C temp then 14 C temp ← C 15 S temp ← S θ ← θ × µ

Table 2 .
Basic operation data information.

Table 3 .
Datasets and data characteristics.

Table 4 .
The parameters for the compared algorithms.

Table 6 .
Comparison of the results of the CP solver and the ASALS-CP algorithm for challenging instances.

Table 7 .
Comparison of the results of the manual scheduling method and the ASALS-CP algorithm.

Table 8 .
Objective function versus value: operation completion time, average equipment utilization, and equipment load imbalance.

Table 9 .
The influence of model parameters on operation task completion time and GAP value.

Table 10 .
Model sensitivity analysis by multi-data scale and operation scenario.