# An Event-Driven Agent-Based Simulation Model for Industrial Processes
## 5 Simulation Experiments and Results
### Undisturbed Scenario  
In the undisturbed scenario, the system must process six products with different characteristics. The products are characterized by physical and quality parameters like weight, thickness, width, length, and quality type, and they were ordered by some customers with specific requirements. A detail of the products information is reported in Table 2. The information about the production orders are summarized in Table 3, where the quality target parameters with their tolerances are reported. Initially, the first three products in Table 2 are located in Warehouse WH1, whereas the last three products are located in Warehouse WH2. The expected scheduling of the machines was set as reported in Table 4, whereas the events generated sequentially by the simulator are summarized in Table 5. \begin{table}
\begin{tabular}{c c c c c c c c c} \hline \hline \multirow{2}{*}{**OrderID**} & **Quantity** & **Residual** & \multirow{2}{*}{**Length**} & \multirow{2}{*}{**Width**} & \multirow{2}{*}{**Thickness**} & **Width** & **Thickness** & **Tolerance** & **Quality** \\ \cline{5-10}  & & & & & & & & & \\ \hline
11913427 & 20,000 & 20,000 & 100 & 100 & 3 & 10 & 0.5 & A \\
11913428 & 40,000 & 40,000 & 1000 & 100 & 2 & 10 & 0.5 & A \\
11923427 & 40,000 & 40,000 & 1000 & 100 & 3 & 10 & 0.5 & B \\ \hline \hline \end{tabular}
\end{table} 
Table 4: Machines scheduling in the undisturbed scenario. \begin{table}
\begin{tabular}{c c c c c c} \hline \hline
**Module** & **Scheduling (Products Sequence)** \\ \hline \multirow{3}{*}{M1} & & 115678 \\  & & 115679 \\  & & 115680 \\ \hline M2 & 215678 \\  & & 215679 \\ \hline M3 & 225680 \\ \hline M4 & 215678 \\ \hline \hline \end{tabular}
\end{table} 
Table 3: Production order information. The operations in Table 4 are arranged to process and deliver products 215678 and 215679, while the processing of the other products remains uncompleted. A representation of the plant at the end of the simulation is shown in Figure 12. The simulation ends as expected without unforeseen events and the MAS orchestrates the system, accomplishing all the designed operations. During the simulation, the machine scheduling is fixed, but the Machine Agents might be rescheduling the products in a different manner, e.g., by minimizing product tardiness. \begin{table}
\begin{tabular}{c c c} \hline \hline
**Operation** & **Operation Code** & **Process Involved** \\ \hline Assigning product 115678 to M1 scheduling & 1 & M1 \\ Assigning product 115679 to M1 scheduling & 1 & M1 \\ Assigning product 115680 to M1 scheduling & 1 & M1 \\ Loading product 115678 into M1 buffer & 3 & W1H1, M1 \\ Loading product 115679 into M1 buffer & 3 & W1H1, M1 \\ Moving product 115680 within WHI & 2 & WH1 \\ Assigning product 215678 to M2 scheduling & 1 & M2 \\ Assigning product 215679 to M2 scheduling & 1 & M2 \\ Working product 115678 on M1 & 4 & M1 \\ Working product 115679 on M1 & 4 & M1 \\ Loading product 115680 into M1 buffer & 3 & WH1, M1 \\ Assigning product 225680 to M3 scheduling & 1 & M3 \\ Loading product 215678 into M2 buffer & 3 & W1Z, M2 \\ Loading product 225680 into M3 buffer & 3 & WHZ, M3 \\ Loading product 215679 into M2 buffer & 3 & WH2, M2 \\ Working product 215678 on M2 & 4 & M2 \\ Working product 225680 on M3 & 4 & M3 \\ Working product 215679 on M2 & 4 & M2 \\ Moving product 215678 within WH3 & 2 & WH3 \\ Assigning product 215678 to M4 scheduling & 1 & M4 \\ Loading product 215678 to M4 buffer & 3 & WH3, M4 \\ Working product 215678 on M4 & 4 & M4 \\ Working product 115680 on M1 & 4 & M1 \\ Assigning product 215679 to M4 scheduling & 1 & M4 \\ Loading product 215679 into M4 buffer & 3 & WH3, M4 \\ Working product 215679 on M4 & 4 & M4 \\ Loading product 215679 into M4 buffer & 3 & WH3, M4 \\ Working product 215679 on M4 & 4 & M4 \\ Loading product 215678 to delivery truck & 5 & WH4, D \\ Loading product 215679 to delivery truck & 5 & WH4, D \\ Delivering product 215678 and 215679 & 6 & D \\ \hline \hline \end{tabular}
\end{table} 
Table 5: Production operations of the undisturbed scenario.