# Integrated Digital-Twin-Based Decision Support System for
## 5 Integrated DT-Based Decision Support System for Relocatable Module Allocation Plan
### Develop Algorithm for Module Selection  
Module availability and selection criteria  
The criteria for selecting modules for reuse in RMB projects are designed to ensure efficient resource utilization, compliance with project requirements, and optimal logistics management. The following criteria are considered:  
* Compliance with new project requirements: First, compliance with the new project requirements is paramount. This involves an initial filtering of modules by type, ensuring that only those matching the specific needs of the new project are considered. Additionally, the availability of modules must align with the project's schedule, excluding any that are already reserved or in use during the required period. Clients also have the option to select modules based on their historical performance. This includes prioritizing modules that have demonstrated a high performance in previous uses, thereby reducing the risk of future maintenance issues. Conversely, clients may opt to avoid modules that have undergone extensive maintenance or multiple reuses, aiming to maintain a higher standard of quality and reliability. * Condition of modules: The condition of the modules is another crucial factor. Modules classified as \"available\" are either newly manufactured and ready for immediate use or have been evaluated through a condition rating process and deemed \"reusable\". Modules that require maintenance are categorized as \"unavailable\" and are sent back to storage for inspection and repair, thus excluding them from immediate selection. This  
Figure 5: System data structure. ensures that only modules in optimal condition are considered for reuse, enhancing the reliability and safety of the modular units used in new projects. * Proximity to the new project site: The final selection criterion considers the proximity of the module units to the new project site to optimize logistics and transportation resources. Modules located closer to the project site are preferred to minimize transportation costs and logistical complexities. The selection process takes into account factors such as available transportation modes, route constraints, and potential obstacles to ensure efficient and cost-effective module transportation and installation. By considering these criteria, the module selection process aims to strike a balance between meeting project requirements, ensuring the optimal condition and performance of the selected modules, and minimizing the logistical and environmental impacts associated with module transportation and installation. It is important to note that the prioritization and weighting of these criteria may vary depending on the specific project requirements, client preferences, and organizational goals. For example, some projects may prioritize historical performance over proximity to the project site while others may place a greater emphasis on minimizing transportation costs and environmental impacts. Figure 6 presents a comprehensive algorithm for module selection in the context of the RMB system. The algorithm is divided into three main flow diagrams: \"Prepare available module list (M)\", \"Module selection flow\", and \"Algorithm on M to find result (R)\". These flow diagrams work together to systematically select the most suitable modules for a given project requirement. * Module selection flow: This flow represents the overall process of module selection. It begins by accepting the project requirements (P) and providing it as an input for the other two flows. The \"Prepare available module list (M)\" is executed to obtain the list of available modules. Subsequently, the \"Algorithm on M to find result (R)\" is run,  
Figure 6: Algorithm for module selection. which takes the project requirements (P) and the available module list (M) as inputs to determine the final result (R). The result (R) is then output and ends the selection process. * Prepare available module list (M): This flow outlines the process of creating a list of available modules (M) from the existing pool of modules.