1. Introduction
The manufacturing industry faces increasing pressure to respond to dynamic market conditions characterized by fluctuating consumer demand and evolving product specifications. Manufacturers must rapidly adapt to product variations, new market trends, and increasingly complex customer requirements. As a result, manufacturing systems must evolve to emphasize flexibility, adaptability, and rapid response.
Flexible Manufacturing Systems represent an effective solution to these challenges, providing the necessary flexibility to accommodate changing demands and diverse product variations. Unlike traditional manufacturing systems, FMSs do not rely on dedicated machines; instead, machines are designed to be multi-functional and can perform multiple operations. This flexibility allows FMSs to rapidly adjust to product changes and ensure efficient resource utilization. Despite their advantages, the implementation of FMSs is usually associated with a higher capital investment due to the need for multi-functional machinery and flexible transportation systems. Effective management of these complicated systems requires strategic planning, efficient scheduling, and optimized operational strategies.
Extensive research has been conducted on FMS scheduling, with numerous methods proposed to optimize machine and AGV operations. Most existing studies focus on machine scheduling or AGV scheduling independently. The simultaneous scheduling (SS) of both remains unexplored despite its potential to improve overall system efficiency.
In recent decades, several papers [
1,
2,
3,
4,
5,
6,
7,
8,
9] have been published on the solution of SS problems, using approximate solution methods or exact methods.
Among approximate optimization strategies, Abdelmaguid et al. devised a hybrid genetic algorithm in which a deterministic assignment rule dispatched transport tasks [
1]. Hurink and Knust reformulated the problem as a disjunctive graph model and investigated it through a tabu-search method, although their study considered only a single vehicle [
10]. Adopting a task-oriented viewpoint, Deroussi et al. proposed an innovative chromosome representation and fortified local search with three complementary metaheuristics [
11]. Gnanavel Babu et al. applied differential evolution to refine the operation vector and incorporated a repair operator to restore individuals who violated the precedence relations [
12]. Lacomme et al. constructed a non-oriented disjunctive graph and incorporated two specialized heuristics within a memetic framework to determine carrier selection and task sequencing, respectively [
13]. Extending the graph-based paradigm, Zhang et al. introduced processing, transport, and buffer nodes, coupling this structure with a modified shifting bottleneck heuristic to dispatch AGV operations [
14]. Zheng et al. designed a two-layer encoding for tabu-search that persistently delivered state-of-the-art solutions [
15]. Using Colored Petri nets, Baruwa and Piera crafted a composite heuristic capable of completing resource allocations [
3]. Nouri et al. presented a multi-agent hybrid in which a genetic algorithm performed global exploration while agents guided the direction of a tabu-search phase, thus intensifying search efficiency [
16]. Gao et al. used a hybrid genetic algorithm with a large neighborhood search (GA-LNS) to optimize the routing of heterogeneous AGV fleets in the routing of green vehicles. This method minimized transportation distance and energy consumption in FMS [
6].
Approximate solution methods exhibit three critical limitations in partitioned FMS scheduling scenarios. First, their heuristic rules and stochastic exploration mechanisms inherently lack an optimality guarantee when handling dynamic routing constraints across partitioned workshops. Second, performance consistency degrades significantly for novel problem configurations, particularly in multi-shop coordination scenarios where prior benchmarks remain unavailable. The absence of known optimal solutions further complicates the quantitative evaluation of the quality of the solution. Third, metaheuristics demonstrate computational unpredictability that makes them unsuitable for real-time industrial applications requiring deterministic response time.
These fundamental limitations underscore the necessity for exact mathematical programming approaches. Unlike heuristic-based methods, mathematical optimization frameworks establish rigorous performance baselines through provably optimal solutions while systematically encoding complex spatial-temporal constraints. The deterministic methodology proves particularly valuable for validating emerging scheduling scenarios in a partitioned FMS environment. The earliest exact treatment of the SS problem is due to Khayat et al., who devised both a mixed integer programming (MIP) formulation and a constraint programming model [
17]. Caumond et al. later focused on an FMS with a single AGV by means of a MILP that explicitly handles loading, unloading, and limited machine buffers [
18]. To explore shop-floor flexibility, Çemal, et al. developed MILPs for the flexible job–shop scheduling problem (FJSP) and its extension with process plan flexibility [
19]. Zheng, et al. dealt with the SS problem by formulating a joint machine–AGV MIP in which the first and last trips of each vehicle are modeled separately, although the scheme remains tractable only for small instances [
15]. Huang redesigned the index sets within a similar MILP, markedly accelerating the exact solution of SS cases [
20]. Fontes and Homayouni employed the
Gurobi solver to shrink run times for SS, although their model does not output an explicit AGV transport task order [
9]. Abderrahim, et al. embedded a variable-neighborhood search inside an MIP and could certify optimal SS plans for part of the test bed [
21]. Yao, et al. decomposed the job shop with mobile robots into processing order, transport assignment, and transport sequencing, then recast the three coupled decisions in a novel MILP that directly targets SS [
22]. Boccia, et al. incorporated battery depletion and recharging into SS by pairing a MILP with a three-stage metaheuristic to minimize makespan for multiple AGVs [
8]; these researchers later fused a MILP with a genetic algorithm to downsize the AGV fleet while respecting identical energy limits, still within an SS framework [
23]. Addressing energy-aware SS in flexible job shops, Meng, et al. proposed a bi-objective MILP that balances makespan and power consumption [
24], whereas Liu, et al. offered two MILPs for integrated process planning and scheduling (IPPS), covering both fully and semi-flexible SS scenarios [
25]. For hybrid flow shops, Amirteimoori, et al. coupled an MILP with a two-stage parallel heuristic to generate collision-free SS solutions for moderate problem sizes [
26]. Guo, et al. developed an MILP to handle conflict-free routing in multi-AGV systems with partial charging capabilities. Their model manages route conflicts efficiently in constrained layouts, providing precise scheduling solutions for small instances [
27]. Wang, et al. propose four different modeling approaches based on MILP (sequence-based, position-based, time-based, and adjacent sequence-based) to address the Three-Stage Remanufacturing System Scheduling Problem (3T-RSSP) [
28]. However, these models focus primarily on job sequencing and machine assignment without considering AGV routing or transportation logistics.
Through the aforementioned research, it becomes evident that existing models often target simplified workshop production scenarios and make numerous idealized assumptions (neglecting transportation time, unlimited machine buffer) to reduce model complexity, thereby facilitating easier solving and improving solution efficiency. Moreover, most existing studies on FMS scheduling consider a single, unpartitioned workshop and assume static initial conditions, whereas, in reality, most factories have different steps of a production line distributed across multiple workshops. The concept of a partitioned FMS—where the shop floor is divided into distinct areas requiring dedicated inter-area material transport—introduces additional complexity that has not been comprehensively addressed in previous scheduling models. Furthermore, real-world manufacturing often involves dynamic initial conditions, such as machines already processing jobs or jobs carried over from prior shifts, which are rarely modeled in classical MILP formulations. Motivated by these gaps, this paper aims to address this limitation by providing a comprehensive MILP mathematical modeling of common real-world industrial production scenarios and obtaining globally optimal solutions through numerical calculation.
To the best of our knowledge, this is the first work to consider an FMS divided into separate workshop areas within a single MILP scheduling framework, incorporating inter-area transport requirements. Furthermore, our model is extended to handle dynamic initial conditions (ongoing jobs and occupied machines at the start of the schedule), thereby increasing its practical applicability to rolling-horizon production planning. In this study, we present the formulation of the MILP model and demonstrate its application across various scenarios. We also compare the MILP’s performance with that of a heuristic (greedy algorithm enhanced by A*-like search) to illustrate the benefits and limitations of exact optimization in this context. This model is of greater significance for guiding the improvement of production efficiency in real factories. Due to its alignment with real production scenarios, the solutions of this model can theoretically be directly applied to digital simulation platforms for optimization. This facilitates the seamless transition of real-world scenarios to simulation environments, enabling better integration with digital twins and rendering digital production scenarios more lifelike.
In summary, the key contributions of this work are: (1) a comprehensive MILP model for integrated machine–AGV scheduling in a partitioned FMS environment, capturing realistic layout constraints; (2) an extension of the model to accommodate dynamic initial conditions (partial job completion and machine occupation from previous operations), which is rarely addressed in the literature; and (3) a thorough evaluation against a heuristic approach, establishing the MILP model’s optimal solutions as a benchmark to assess and guide the development of faster scheduling heuristics.
The remaining sections of this paper are organized as follows.
Section 2 provides the related background, such as scenario description, for the joint production and transportation scheduling problem in Flexible Manufacturing Systems. In
Section 3, the problem is described in detail, and after introducing the used notation, the mixed-integer linear programming model is developed. The results are discussed in
Section 4, followed by the conclusions and possible future works in
Section 5.
3. Problem Definition and Formulation
For an FMS, multiple production tasks and AGVs compete for limited resources such as space and equipment. Different resource allocations result in different completion times. Optimization of the scheduling problem in an FMS requires careful consideration of various factors. It involves determining the optimal order in which the workpieces are processed, assigning tasks to the AGVs in an efficient manner, and planning the AGV paths to minimize traveling time and resource conflicts. By addressing these challenges and considering process constraints and resource limitations, this research aims to achieve the shortest possible completion time for manufacturing tasks. By minimizing the processing completion time, the proposed approach can enhance the overall efficiency and productivity of the system.
In this study, a simplified scenario and a general scenario are used to capture the different layers of operational complexity encountered in partitioned flexible manufacturing systems. Both scenarios share the same job sets, number of machines, and AGVs. Their difference is the shop-floor state at the beginning of optimization. In the simplified scenario, every machine and buffer are empty at time zero, so production begins from an idle state. In the general scenario, several machines may already be processing residual jobs carried over from a previous batch, yielding a random initial occupation pattern. This contrast isolates the influence of initial conditions and allows the model to be evaluated both for first-time scheduling and for rescheduling after an unexpected interruption without altering the underlying problem scale.
3.1. Simplified Workshop Scenario
As shown in
Figure 2, the simplified workshop scenario is divided into two distinct regions, each region being assigned an AGV for task scheduling. Region 1 comprises a loading station S, processing area A, and processing area B, while Region 2 comprises processing area B and an unloading station E.
The objective of AGV scheduling in this scenario is to transport all materials from the loading station through processing areas A and B and to deliver them to the unloading station. In this scheduling scenario, all workpieces are initially stored at the loading station. Each workpiece is then transported to any available machine in Area A for execution of the first processing operation, followed by transportation to any available machine in Area B for the second processing operation. Upon completion of the processing operations, the workpiece is transported to the unloading station, where the entire scheduling process is concluded.
There are several important considerations in this scenario:
1. Processing areas do not have buffer zones associated with individual machines. This means that materials cannot be temporarily stored within the processing areas and that a continuous flow of materials is required to maintain efficient operations.
2. Processing area B is located on the boundary between Region 1 and Region 2. It is imperative to ensure that machines in this area do not allow simultaneous occupancy by two AGVs. This constraint is crucial to avoid conflicts and potential disruptions in the workflow.
These considerations highlight the need for careful planning and scheduling in the workshop setting. The absence of buffer zones in the processing areas, which is very common due to the limited space in the workshop, requires effective coordination and management of the material flow to minimize delays and optimize production efficiency. Additionally, the constraint at the boundary between regions underscores the importance of proper sequencing and allocation of tasks to AGVs, ensuring that conflicts are avoided and the overall system performance is maximized.
3.1.1. MILP Formulation
This section constructs the MILP model and presents the following notation, parameters, and decision variables to facilitate the description of this model.
However, prior to model development, it is necessary to define the conditions and limitations considered in the model. Thus, the following conditions are defined for model development:
All AGVs have unit-load capacity.
Each machine processes only one product at any given moment.
AGVs and machines operate continuously without failure.
There are no traffic problems, collisions, deadlocks, or conflicts.
Each job has a fixed setup time that is not sequence-dependent. This fixed setup time is included in the job’s total processing time
The vehicles maintain a constant velocity and can only move forward.
The distances between machines, as well as the distances from the L/U to the machines, are predefined and known.
AGVs remain at L/U until they receive dispatch instructions.
Notation
job indices, , where n is the total number of jobs.
-
p
indices for operations,
the operation for job i
.
the loaded task of AGV01 transporting job i to perform .
AGV01’s unloaded trip to pick up job i for completing
the loaded task of AGV02 transporting job i from B to E.
AGV02’s unloaded trip to pick up job i for completing
Parameters
upload/download time
processing time in area A (setup time included)
processing time in area B (setup time included)
traveling time from machine k to machine l
-
M
a large positive number
Variables
All the following variables are decision variables in the MILP model. The time-related variables (start times and completion times, beginning with and ) are continuous decision variables representing scheduling timestamps (in seconds). The binary variables (e.g., those beginning with x, f, l, and v) are 0–1 decision variables indicating assignment and sequencing decisions.
start time of (AGV1’s empty trip to pick up job i for task ).
completion time of .
start time of (AGV1’s loaded trip transporting job i for operation ).
completion time of .
start time of (AGV2’s empty trip to pick up job i for task ).
completion time of .
start time of (AGV2’s loaded trip transporting job i from Area B to the unloading station).
completion time of .
makespan
The MILP model for the simplified workshop scenario is given below.
3.1.2. Objective Function
The objective function stated in Equation (
4) is to minimize the makespan.
3.1.3. Constraints
The above objective function is subject to several different categories of constraints.
Resource Constraints
These constraints govern the allocation of machines and AGVs, ensuring that each resource can be assigned only to a single task at a time. In other words, no individual workpiece can occupy multiple machines in the same region, and each AGV is restricted to exactly one initial task and one terminal task. In doing so, the formulation captures the limitation in the real world that machines and vehicles cannot engage in parallel usage for the same job.
Constraint (
5) ensures that in each region, each workpiece can be assigned to only one machine. Constraints (
6) and (
7) ensure that each AGV can have only one first task and one last task. If an AGV were allowed multiple first or last tasks, it would imply that the same vehicle is attempting to initiate or conclude multiple transport operations simultaneously, which is impossible in real-world scenarios. By restricting each AGV to a single first and last task, the model enforces a coherent, continuous chain of operations. Each vehicle has a unique starting point and a unique endpoint, thus ensuring logical consistency and better reflecting how AGVs are actually utilized on the shop floor.
Precedence Constraints
Precedence constraints enforce the logical ordering of tasks along an AGV’s route. They stipulate that if a specific transportation task is not the first (or last), it must be immediately preceded (or succeeded) by another task. Consequently, the operational sequence of each AGV is made continuous, and there are no gaps or overlaps, corresponding to the practical requirement that every transport operation must be part of a coherent path from start to finish.
Constraints (
8) and (
9) indicate that if
is not the first task, it must be immediately preceded by another task. Constraints (
10) and (
11) indicate that if
is not the final task, it must be immediately followed by another task. Constraint (
12) indicates that if
is not the first task, it must be immediately preceded by another task. Constraint (
13) indicates that if
is not the final task, it must be immediately followed by another task.
Timing and Synchronization Constraints
The following constraints handle the timing aspects of the schedule, ensuring synchronization between different operations and transportation tasks. They also ensure that tasks are completed within their specified time windows.
Constraint (
14) describes that the makespan should not be less than the completion time of the last operation of any workpiece.
Constraint (
15) indicates that the start time
for the loaded trip of AGV1 from station
S to Area
A must equal the completion time
of its previous movement unloaded to
S plus unloading time
. In essence, the AGV cannot begin transporting a new workpiece from
S to
A until it has fully arrived at
S (while unloaded) and finished the necessary loading operations.
Constraint (
16) indicates that the completion time of the AGV1 load task from S to A is its start time plus the transport time and the time taken to load the material on the machine in Area A.
The start time of the AGV1 load task from A to B is influenced by two factors: the time when the unloaded AGV1 arrives at the machine in Area A, where the material is located, and the completion time of the material processing. If AGV1 arrives first but the material has not yet been processed, AGV1 must wait until the material processing is completed and then begin the loading task. Conversely, if the material processing is completed before AGV1 arrives, the start time is determined by AGV1’s arrival. This physical interpretation is encapsulated by Constraint (
17). Constraint (
18) is similar to Constraint (
16) except that the trip is from A to B. Constraint (
19) is for the start time of the AGV2 load task and its physical meaning is similar to Constraint (
17). Constraint (
20) indicates that the completion time of the AGV2 load task is its start time plus the transportation time and loading time. Constraints (
21) and (
22) each indicate that the time for unloaded AGV1 to arrive at the workpiece location is equal to the start time of the unloading task plus the traveling time. In addition, the starting point of the unloading task is the endpoint of the previous transport task. Constraint (
23) ensures that the time in which AGV2 arrives unloaded at the material location is equal to the start time of the unloaded task plus the traveling time. The starting point of the unloaded task for AGV2 can only be D. Constraint (
24) indicates that if the transport task
is transported by AGV1 before
, the start time of the unloaded task
must be later than the end time of
. Constraint (
25) indicates that if the transportation task
is transported by AGV2 before
, the start time of the unloaded task
must be later than the end time of
.
Capacity and Buffer Constraints
The following constraints address the limitations of the buffer space at the loading/unloading stations and machines. They ensure that buffer capacities are not exceeded, which could otherwise lead to production delays or stoppages.
Constraint (
26) indicates that if
occupies
in Area A before
, AGV1 can start transporting
only after
has been moved to Area B. Constraint (
27) indicates that if
occupies
in Area B before
, the arrival time of AGV1 transporting
must be later than the time when
starts being transported by AGV2.
Flow Constraints
Flow constraints ensure that the movement of materials or workpieces through the system follows a logical and efficient path. They prevent unnecessary back-tracking or detours, optimizing the transportation routes.
Constraints (
28) and (
29) ensure that each transportation task is not executed more than once. Constraint (
30) and (
31) indicates that if
and
are assigned to be processed at the same machine, a sequential order must be established.
Initial Condition Constraints
Constraint (
32) is an initial condition constraint specifying the starting conditions of the system.
3.2. General Workshop Scenario
The model discussed above considers a simplified scenario, assuming that all machines are initially unoccupied. However, real-world conditions are rarely so ideal. For example, in the case of a system shutdown and restart, the recalculation must begin from the current machine occupation state. The general workshop scenario extends the simplified scenario by considering initial machine states, where certain machines may already be occupied with jobs from a previous batch. This requires adjusting the index ranges for jobs in progress, ensuring that the system can handle random initial conditions. However, these modifications primarily involve setting initial conditions and adjusting constraints for jobs already in the system (e.g., modifying the index range for jobs that are still in progress). The complexity and solution time of this general scenario, when applied to similar-sized job sets, do not differ significantly from the simplified model. This ensures that the proposed model can handle dynamic scheduling situations (e.g., system interruptions) without introducing substantial computational overhead while also laying the groundwork for incremental computation. The detailed modifications to the general model, compared to the simplified model, are as follows.
3.2.1. Notation Modification
[] indices for jobs, , where refers to the set of job indices in the current batch, refers to the set of remaining job indices from the previous batch in Area A, and refers to the set of remaining job indices from the previous batch in Area B.
3.2.2. Constraints Modification
Machine
k is considered occupied when job
i has
seconds remaining to complete its processing on machine
k. To describe this state, we need to set several constraints on the parameters.
Constraint (
33) thus fixes the decision variable
to 1 for the specific job
i (and its corresponding operation
p) that is still being processed on machine
k (with remaining time
) at the start of the new scheduling horizon. In other words, this ensures that job
i is definitively assigned to continue processing on machine
k in the current schedule, reflecting the carry-over occupation of that machine. This condition is applied only for jobs carried over from a previous batch (i.e.,
or
, depending on which partition the job was in).
If
, at this point
has been completed, so
If
, at this point, both
and
have been completed, which means the impact of these two transportation tasks on the results should be eliminated. So we have:
Consequently, parts of the original constraints need to be modified as well because they cannot be applied to all jobs. For example, if the job does not belong to the current batch, obviously, it has already finished the transportation task from the loading station to area A, which is
.
4. Case Study
To evaluate the effectiveness and performance of the proposed MILP model, three different workshop layouts are designed, as illustrated in
Figure 3.
Layout 1 consists of one processing machine in Area A and one in Area B (
). In
Layout 2, Area A contains two machines (
) while Area B includes three machines (
). Finally,
Layout 3 features five machines in Area A (
) and four machines in Area B (
). The traveling time matrices between the machines and the loading/unloading stations for these layouts are provided in
Table 1. These layouts facilitate a systematic analysis of the model performance under increasing levels of complexity.
To further test the simplified MILP model, nine different scenarios are generated, each combining various workshop layouts and workpiece counts, as detailed in
Table 2. For example, in Scenario 4, a total of five workpieces are processed using two machines in both Areas A and B.
For the general MILP model, we introduce six additional scenarios to consider different initial conditions within the workshop (
Table 3). For example, in Scenario 10, five jobs are present, one already in progress on Machine 1, expected to complete after 50 s.
4.1. MILP Solution Based on CPLEX Solver
CPLEX, developed by IBM, is a highly regarded optimization software widely recognized for solving complex MILP problems. Renowned for its robustness and efficiency, CPLEX has powerful algorithms and advanced computational capabilities, making it an authoritative tool for addressing various optimization challenges. Using CPLEX, this study ensures the use of a proven and respected tool, thereby enhancing the credibility and reliability of the results obtained (we still use a small-scale scenario to prove the correctness of the results obtained by CPLEX).
Based on the capabilities of the CPLEX solver, optimal solutions are obtained for various problems of different sizes in
Table 2 and
Table 3, demonstrating the model’s ability to handle different scales of scheduling challenges.
The problems are solved using IBM ILOG CPLEX Optimization Studio 22.1.0.0 on a computer with an Intel Core i7-8750H CPU @2.2 GHz.
4.2. Greedy Algorithm for Comparison
For the sake of comparison, an improved greedy algorithm is developed to incorporate the design principles of the A* algorithm to formulate a loss function for AGV scheduling planning:
In this context, represents the total time taken by the AGV from the start of task execution until the completion of the current task, while estimates the remaining time for the AGV to complete its tasks and reach the unloading station. This heuristic is more sophisticated than a simple distance-based function. In our implementation, takes into account not only the direct travel distance but also factors like machine availability and the potential waiting time. Specifically, the heuristic considers the time required for AGVs to move between stations (e.g., from Area A to B), as well as the processing times that may vary based on machine availability and the dynamic state of the system. By factoring in these elements, the heuristic attempts to predict the time required for completing all remaining tasks, allowing the algorithm to make more informed decisions at each step. By comparing the values of the loss function of various decision schemes, the optimal current decision can be identified, thereby improving the greedy algorithm.
The greedy algorithm is used in this scheduling scenario to optimize the assignment of transportation tasks between multiple AGVs across different nodes. The core idea is to choose the locally optimal solution at each step, selecting the transportation task with the minimum cost to execute. This algorithm is efficient and suitable for online scheduling, and decision-making for multiple AGVs is simulated in parallel using multi-threading.
Figure 4 illustrates the AGV task scheduling scenario based on the greedy algorithm. AGV-01 operates between Nodes S, A, and B, while AGV-02 operates between Nodes B and E, with tasks dynamically assigned based on the local optimization of the greedy algorithm.
4.2.1. Node State Definitions
Node S: Number and sequence of parts waiting to be picked up.
Node A: Status of storage slots and the remaining processing time for each part.
Node B: Status of storage slots and the remaining processing time for each part.
Node E: Loading status of AGV.
4.2.2. Node Transition Rules
S to A: The AGV picks up the highest priority part from Node S and transports it to Node A.
A to S: If loaded, the AGV places the part in an available slot at Node A, then returns to Node S. If empty, it directly returns to Node S.
A to B: If loaded, the AGV places the part in Node B’s available slot. If empty, it picks up the part with the shortest remaining waiting time and transports it to Node B.
B to A: The AGV places the part in an available slot at Node B and then returns to Node A.
B to E:The AGV places the part in Node E if loaded or fetches the part with the shortest remaining waiting time from Node B and transports it to Node E.
E to B: If loaded, the AGV places the part in an available slot at Node E and then returns to Node B. If empty, it directly returns to Node B.
4.2.3. Cost Definition
The cost of each transition is defined by the time consumed, which includes the pickup and placement time, the transportation time, and the waiting time. The greedy algorithm always selects the transition with the lowest cost at each decision point.
4.2.4. Collaboration Mechanism
Each AGV performs tasks independently, but they share the state information of Node B to avoid conflicts. The final completion status is jointly determined through information sharing and optimal decision-making.
4.2.5. Detailed Procedure of the Algorithm
The procedure for solving the problem is described in the pseudo-code shown in Algorithm 1.
4.3. Results Comparison
4.3.1. Comparison Between Simplified MILP and Greedy Algorithm
Table 4 summarizes the results in terms of makespan and computational time for both the simplified MILP model and the greedy algorithm in nine scenarios. For several smaller instances (Scenarios 1–3 and 6), two approaches yield identical or nearly identical makespans. In these cases, their computational times remain fairly low and do not differ dramatically, indicating that a simple MILP model can still handle moderate-scale problems efficiently.
In more demanding scenarios (e.g., Scenarios 4, 5, 7–9), the simplified MILP method achieves strictly lower makespans than the greedy approach, sometimes by a notable margin. This improvement in solution quality, however, comes with a considerable increase in computational time. For instance, Scenario 7 shows only a marginal improvement in objective value when using the MILP, yet the solution time is orders of magnitude higher than the heuristic. Moreover, in Scenario 9, the MILP required 91,178.93 s (over 25 h) to find the optimal solution. This run time is clearly impractical for real-time scheduling. Such a stark difference underscores how the exhaustive search and exact optimization inherent in MILP can become computationally expensive as the complexity of the problem increases. On the other hand, the MILP’s global optimum is valuable as a benchmark: it quantifies the maximum possible improvement. Therefore, we emphasize that the MILP formulation is best suited for offline planning or small instances rather than live control of a manufacturing system. As shown in our experiments, the MILP can solve small to moderate instances fairly quickly. For example, scenarios with up to roughly 10 jobs and 3 machines per partition were solved in a reasonable time (typically seconds). In contrast, solution time grows very rapidly beyond this size. For larger instances (like Scenario 9), heuristic methods are necessary to obtain timely solutions.
Algorithm 1: Greedy Search for AGV Task Scheduling. |
- 1:
Initialize the production world with a grid for storage locations at stations A and B - 2:
Set initial transportation times and parameters - 3:
Initialize state variables for the current parts and AGVs - 4:
procedure AGV1_Task_Scheduling - 5:
AGV-1 starts at source node S - 6:
while there are remaining parts to process do - 7:
Pick up a part from source - 8:
Transition to station A and place the part in an available slot - 9:
Update time and state for AGV-1 - 10:
if there is a part ready at station A then - 11:
Transport the part to station B and place it in an available slot - 12:
end if - 13:
end while - 14:
end procedure - 15:
procedure AGV2_Task_Scheduling - 16:
AGV-2 starts at station D - 17:
while there is a part ready at station B do - 18:
Fetch the part from station B - 19:
Transport it to station D and unload - 20:
Update state for AGV-2 - 21:
end while - 22:
Wait for AGV-1 if required - 23:
end procedure - 24:
Calculate the cost for each slot in the storage grid - 25:
Periodically check if all parts have been transported and processed - 26:
Start threads for AGV-1 and AGV-2 to operate concurrently - 27:
while tasks are not finished do - 28:
Execute both AGV tasks concurrently - 29:
end while
|
The MILP model is consistently capable of outperforming the greedy approach in terms of finding optimal solutions. In contrast, the greedy algorithm can rapidly generate solutions but may fail to capture nuanced interdependencies, particularly when there are multiple machines, AGVs, or intricate precedence requirements. Consequently, it can produce suboptimal schedules for more complex scenarios.
In summary, while the simplified MILP formulation guarantees optimality, it can incur dramatic computational overheads for certain problem sizes. The greedy algorithm, with its heuristic nature, offers a much faster runtime but cannot ensure the best-possible makespan. Deciding which method to employ depends on the scale of the instance and whether the application prioritizes speedy results over absolute optimality.
4.3.2. Comparison Between General MILP Method and Greedy Algorithm
Table 5 compares the performance of the general MILP approach and the greedy algorithm in six different scenarios (10–15), reporting both makespan and computational time. From a makespan standpoint, the general MILP model consistently achieves equal or better solutions than the greedy approach, although its computation time can be higher, particularly for larger instances.
In Scenarios 10, 11, and 12, the MILP method achieves makespans of 6980, 6576, and 5592 s, respectively, while the greedy algorithm produces 6980, 6672, and 5882 s. Notably, in Scenario 10, there is no difference in makespan (both are 6980 s), yet the MILP approach computes more quickly (0.45 s vs. 1.14 s), suggesting that for such mid-scale problems, the MILP solver can efficiently reach an optimal outcome. In Scenarios 11 and 12, the MILP model outperforms the greedy approach by reducing the makespan by 96 and 290 s, respectively, and requires less than one second of runtime (0.19 s and 0.13 s) as compared to about one second for the greedy algorithm (1.13 s and 1.12 s). These observations point to the ability of the MILP model to balance the quality of solutions and efficiency in moderately sized problems.
By contrast, in Scenarios 13 and 14, as the problem becomes more complex, the computational time of the MILP model rises to 142.29 s and 7.82 s, while the greedy algorithm remains near 1.14 s. However, the MILP method still achieves notably lower makespans (2984 s vs. 3188 s and 2904 s vs. 2964 s, respectively), indicating that even under increased complexity, the MILP model can deliver superior scheduling results if the user can afford the additional computational time.
Finally, in Scenario 15, the MILP solver requires 5.51 s, compared to 1.13 s for the greedy approach. Despite the difference in runtime, the MILP solution further reduces the makespan to 2700 s relative to 2960 s under the greedy strategy. This result underscores that, for cases of the intermediate size, the MILP model continues to exhibit strong performance in optimizing schedules while demanding a moderate and often acceptable level of computational effort.
Overall, these findings demonstrate that the general MILP model consistently outperforms the greedy algorithm in makespan minimization. Although the MILP approach may require more time, especially for larger-scale scenarios, it delivers better-quality solutions. In contrast, the fast execution of the greedy algorithm makes it suitable for highly dynamic or real-time applications but at the cost of suboptimal schedules. Thus, the final choice between these methods depends on the user’s specific needs for the quality of the solution versus responsiveness.
5. Conclusions
This study presents a comprehensive MILP model for the simultaneous scheduling of machines and AGVs in a partitioned FMS. By addressing the complex interplay between machine operations and AGV movements, the proposed model aims to optimize the overall scheduling process, thus minimizing the total completion time and improving the efficiency of the system.
The MILP model is solved using IBM’s CPLEX, a highly regarded optimization solver known for its robustness and accuracy. The results obtained from CPLEX demonstrate the effectiveness of the model in achieving globally optimal solutions for small- to medium-sized scheduling problems. Furthermore, comparison analysis with an improved greedy algorithm provides valuable insight into the trade-offs between the solution quality and computational efficiency. Although the MILP model consistently ensures optimal solutions, the greedy algorithm offers a pragmatic alternative for larger-scale problems where computational resources may be limited.
This research makes several contributions to the field of manufacturing optimization. First, the MILP model incorporates realistic production constraints, such as transportation times and multi-workshop coordination, making it more applicable to real-world industrial scenarios. Second, by integrating the scheduling of machines and AGVs, the model provides a holistic approach that can significantly improve operational performance in FMS environments. Lastly, the use of CPLEX underscores the importance of using advanced optimization tools to solve complex scheduling problems, thereby enhancing the credibility and reliability of the results.
Future work will focus on extending the model to handle even larger and more complex scheduling problems, possibly by integrating other heuristic or metaheuristic approaches to further reduce computational times while maintaining solution quality. In addition, the current model assumes no traffic collisions, deadlocks, or conflicts between AGVs. While this assumption is reasonable for an initial study, omitting collisions means that travel times may be underestimated in highly congested settings. In future work, AGV conflicts could be handled by adding constraints or specialized rules (e.g., defining reservation tables or path-priority rules) to the model.Furthermore, exploring the application of the model in different industrial settings and integrating it with digital simulation platforms could provide deeper insights into its practical utility and impact on production efficiency. Last but not least, while the comparison in this study focuses on makespan and computational time, we recognize the importance of additional production indicators, such as AGV idle rate and machine utilization, in evaluating scheduling strategies. AGV idle rate measures the proportion of time that AGVs are not in active use, while machine utilization tracks the percentage of time machines are engaged in production. We plan to include these metrics to provide a more comprehensive evaluation of the MILP and greedy algorithms, highlighting the trade-offs between solution speed and resource optimization.