scieee AI-readable full text Open interactive document viewer

Multi-layer edge resource placement optimization for factories

Zietsch, Jakob,Kulaga, Rafal,Held, Harald,Herrmann, Christoph,Thiede, Sebastian

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Zietsch, Jakob; Kulaga, Rafal; Held, Harald; Herrmann, Christoph; Thiede, Sebastian Article — Published Version Multi-layer edge resource placement optimization for factories Journal of Intelligent Manufacturing Provided in Cooperation with: Springer Nature Suggested Citation: Zietsch, Jakob; Kulaga, Rafal; Held, Harald; Herrmann, Christoph; Thiede, Sebastian (2023) : Multi-layer edge resource placement optimization for factories, Journal of Intelligent Manufacturing, ISSN 1572-8145, Springer US, New York, NY, Vol. 35, Iss. 2, pp. 825-840, https://doi.org/10.1007/s10845-022-02071-3 This Version is available at: https://hdl.handle.net/10419/312298 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Journal of Intelligent Manufacturing (2024) 35:825–840 https://doi.org/10.1007/s10845-022-02071-3 Multi-layer edge resource placement optimization for factories Jakob Zietsch1·Rafal Kulaga2·Harald Held2·Christoph Herrmann1·Sebastian Thiede3 Received: 29 June 2022 / Accepted: 24 December 2022 / Published online: 28 January 2023 © The Author(s) 2023 Abstract Introducing distributed computing paradigms to the manufacturing domain increases the difficulty of designing and planning an appropriate IT infrastructure. This paper proposes a model and solution approach addressing the conjoint application and IT resource placement problem in a factory context. Instead of aiming to create an exact model, resource requirements and capabilities are simplified, focusing on usability in the planning and design phase for industrial use cases. Three objective functions are implemented: minimizing overall cost, environmental impact, and the number of devices. The implications of edge and fog computing are considered in a multi-layer model by introducing five resource placement levels ranging from on-device, within the production system, within the production section, within the factory (on-premise), to the cloud (offpremise). The model is implemented using the open-source modeling language Pyomo. The solver SCIP is used to solve the NP-hard integer programming problem. For the evaluation of the optimization implementation a benchmark is created using a sample set of scenarios varying the number of possible placement locations, applications, and the distribution of assigned edge recommendations. The resulting execution times demonstrate the viability of the proposed approach for small (100 applications; 100 locations) and large (1000 applications, 1000 scenarios) instances. A case study for a section of a factory producing electronic components demonstrates the practical application of the proposed approach. Keywords Edge computing ·Resource placement ·IT infrastructure optimization ·Application allocation BJakob Zietsch [email protected] Rafal Kulaga [email protected] Harald Held [email protected] Christoph Herrmann [email protected] Sebastian Thiede [email protected] 1Chair of Sustainable Manufacturing and Life Cycle Engineering, Institute of Machine Tools and Production Technology, Technische Universität Braunschweig, Brunswick, Germany 2Corporate Technology, Siemens AG, Munich, Germany 3Chair of Manufacturing Systems, Department of Design, Production and Management, University of Twente, Enschede, The Netherlands Introduction The transformation process towards edge-driven smart manufacturing is still in its infancy, facing many challenges (Basir et al., 2019). The introduction of distributed computing paradigms conflicts with the prevailing legacy systems historically dominated by Operational Technology (OT). Devices like Programmable Logic Controllers (PLCs) are embedded in a strict hierarchy, often referred to as the automation pyramid, with data and information mostly traveling northbound and aggregated on the higher levels (Vogel-Heuser et al., 2015). The design maxims were availability and reliability, and the computation capacity was planned to allow the execution of the predefined automation tasks at any given moment following strict cycle times. While both design maxims are still crucial, the transition to smart manufacturing systems requires adaptability and flexibility (Brettel et al., 2016). A suitable IT infrastructure providing sufficient computational capacity in the right place enables a successful transition to modern cyber-physical production systems (CPPS). 123 826 Journal of Intelligent Manufacturing (2024) 35:825–840 Upgrading an IT infrastructure is a resource-intensive process and should be critically assessed (Hertel & Wiesent, 2013). Purchasing or leasing an IT resource can be a significant investment considering the scale of an entire factory. Additionally, each IT resource affects the overall environmental impact of the factory due to the energy consumption of each IT resource during production, use, and recycling (Hischier et al., 2015). Hence, when striving towards smart and sustainable manufacturing, the cost and environmental impact of each IT resource should be considered (Thiede, 2021). These two aspects depend primarily on the hardware specifications, like processing power, memory, or storage, often referred to as the capacity of an IT resource. Considering the capacity in an early planning and design stage ensures an adequate resource selection before installation, avoiding costly change and transformation processes. However, ensuring sufficient capacity at the right places within a highly interconnected factory network where all devices can communicate with one another poses a significant challenge to an IT infrastructure designer and planner. Three questions are in the center of the planning problem illustrated in Fig. 1: – What kind of IT resources should be selected? – Where should these IT resources be installed (vertical/horizontal dimension)? – Which applications should be deployed on which level? The vertical dimension refers to how these IT resources are integrated into the network topology of the factory. The placement level is essential due to the influence of the network, e.g., bandwidth limitation or network delay. Cloud computing providers offer to provide the required capacity dynamically; however, when considering the vast amount of production data on the scale of a factory aggregating raw data streams in a central location is time and cost-intensive and, therefore, often not feasible, compare (Mourtzis et al., 2016). Furthermore, the network load can negatively influence the communication delay added with each network hop, which is a disadvantage of centralized computing paradigms (Basir et al., 2019). Furthermore, the potentially varying delays are a challenge for traditional automation applications, which often have real-time execution requirements that need to be guaranteed for the safe and reliable operation of the production systems (Vogel-Heuser et al., 2015). Additionally, in the context of smart factories, running the analytical processing in (near) real-time becomes increasingly important (Trinks & Felden, 2018), paving the way for, e.g., real-time task processing for spinning cyber-physical production systems (Yin et al., 2020). Distributed computing paradigms enable the handling of large quantities of data and reduce the network delay through the decentralization of data processing instead of central aggregation (Qi & Tao, 2019; Trinks & Felden, 2018; Ismail et al., 2015). The data is processed at the network’s edge, hence the paradigm’s name: edge computing. The term fog computing is another form of distributed computing paradigm originating from the perspective of a network provider and is often used interchangeably with edge computing (Aazam et al., 2018; Hong & Varghese, 2019). We consider fog computing a middle layer between edge and cloud, representing more powerful computational entities like a server cluster or an on-premise cloud. Edge computing platforms will allow applications to be deployed on any resource with computing and communication capabil- Fig. 1 Resource placement problem in edge-cloud continuum from Zietsch et al. (2020) Cloud Where and how many? (Horizontal dimension) On which level? (Vertical dimension) Potential IT resource placement location Data prosumers e.g. machines, sensors Network node (switch/router) Exemplary data/action flow Network connection (cable/wireless) Off-premise On-premise Edge Fog What kind of IT resource? ABC Cost Environmental rating Performance rating Resource type 123 Journal of Intelligent Manufacturing (2024) 35:825–840 827 ities (Noghabi et al., 2020), increasing the flexibility and agility of the entire factory network (Chen et al., 2018). This paper proposes an approach, a model, and an implementation to address the multi-layer IT resource placement problem for factories. The structure of the paper is as follows. First, the relation between the proposed work and previous publications is clarified. Second, the proposed model and the framework in which it is embedded are described. Third, the implementation is evaluated by simulating 16 test scenarios ranging from small to large scale. Fourth, the proposed work is applied in a case study. Finally, the experiences and limitations of the proposed multi-layer model are discussed, concluding this work. Related work Yousefpour et al. (2019) identified the planning and design of networks incorporating the distributed edge and fog computing paradigms as an essential topic with limited available publications compared to, e.g., resource management, provisioning, and operation. More recent literature reviews like Hong and Varghese (2019), Ghobaei-Arani et al. (2020), Kumar et al. (2022) reveal a further increase in interest in dynamic resource provisioning or application allocation. However, the lack of publications addressing the physical placement of IT resources, especially in a manufacturing context, persists. There are various approaches outside of smart factories addressing the placement of IT resource in other contexts like mobile edge computing (Zhang et al., 2019; Wang et al., 2019), smart cities (Xu et al., 2016; Yin et al., 2017), vehicular networks (Guo et al., 2016; Mao et al., 2022). These contributions have in common that the network stretches over large areas, necessitating the geographical distance of nodes and users. The distance is either represented by a constraint or integrated into the target functions, which is necessary due to physical limitations, e.g., the range of a cell phone tower, the induced latency, or the added installation cost for additional cabling [compare Guo et al. (2016)]. Although the specific placement of IT resources in the factory (horizontal dimension) is of significant relevance, the geographical distance is of reduced importance since the areas that need to be covered and the movement of clients are more manageable compared to, e.g., vehicular networks. Yin et al. (2017) propose a decision support framework for the provisioning of edge servers for online service providers optimizing the construction cost and bandwidth prices. The decision to place an additional edge server depends strongly on the number of users. Lin and Yang (2018) establish an integer programming model for the cost-efficient deployment of a fog computing system at a logistics center populated with Automatic Guided Vehicles (AGVs), the IoT devices with resource demand. A meta-heuristic algorithm incorporating the discrete monkey algorithm is applied to determine the placement of gateway, fog devices, and edge devices, minimizing the overall installation cost. The focus on AGVs allowed the simplification of the resource demand such that an edge device can only support a set amount of AGVs with the fog devices and gateways following the same logic. However, the focus is a significant limitation when considering the heterogeneity of applications. Jiang et al. (2021) introduce a k-means clustering algorithm for the deployment of edge computing nodes in the context of smart manufacturing. The proposed algorithm balances the network delay and computing resources deployment cost while considering the impact of spatial device distribution, device function, and computing capacity. Instead of offering a prior investigation and planning process, the algorithm focuses more on the possible node deployment during operation. In summary, the previous research contributions do not address the planning phase of an IT infrastructure in the context of manufacturing. Although there are various examples of optimization algorithm implementations, they often require the availability of highly detailed information, which is challenging to provide when considering the required collaboration of multiple planning departments and the uncertainty involved in the planning phase. Primarily when considering that the deployment or placement of applications (sometimes called tasks) is often determined through minimizing or constraining latency as one of the essential advantages of edge/fog computing. Latency as a constraint in today’s factory is highly relevant, e.g., time-sensitive automation tasks, but challenging to determine for other IoT solutions which might have other requirements like connectivity, data sensitivity, or data encapsulation. For this work, the application deployment restrictions within a factory are consolidated in a so-called edge level that combines distance, latency, bandwidth, and data ownership in one value. Summarizing the latency requirements of the applications in the new edge level constraint allows omitting a latency-related term from the target function commonly part of similar models like the ones presented Lin and Yang (2018) or Wang et al. (2019). The consolidation simplifies the modeling for the practitioner of the multi-layer edge resource placement problem and the execution of multiple optimizations in a reasonable time frame. The edge level was first introduced in Zietsch et al. (2019) simplifying the vertical application placement within the edge-cloud continuum by allowing a streamlined modeling approach. The novel aspects and differences of this work can be summarized as follows: 123 828 Journal of Intelligent Manufacturing (2024) 35:825–840 – Targeting the factory environment shifting the focus from large amounts of moving clients (users) to fewer but more critical data sources modeling physical as well as logical placement constraints – Focusing on the planning and re-planning phase for an IT infrastructure for the green field as well as brownfield applications – Solving the NP-hard optimization challenge using MILP (Mixed integer linear programming) in a reasonable amount of time by utilizing the edge level as a constraint for a vertical application and resource placement Multilayer model for resource placement Methodology In contrast to related publications regarding the optimized placement of IT resources in a manufacturing environment, the initialization of the developed model is embedded in a framework that enables an efficient determination of the required inputs. The framework’s structure with its four process steps is illustrated in Fig. 2. Following these steps requires the availability of information about the production environment, applications, and IT resources, often mandating a high level of abstraction and deliberate simplification, limiting its application scope and the subsequent optimization to areas for which said information is obtainable (Zietsch et al., 2020). Even though it is possible to utilize the model disjoint from the framework, the concept of a predetermined edge level that constrains the application placement is an integral part of the optimization. In the first step (1), experts from varying domains drive the initial modeling procedure. Software experts model the applications that can be deployed in the manufacturing environment. These applications, or apps in short, process data of specific types and sources, e.g., calculating and visualizing the Overall Equipment Efficiency (OEE), perform complex analytics to estimate the remaining useful lifetime of machinery, or provide advanced control functions. From an abstract point of view, an application is, therefore, something that takes data as input and outputs the results of specific computational tasks. Each application has resource requirements like CPU, RAM, and bandwidth and might be subject to specific demands like latency, data volume, or autonomy. The resource requirements determine which kind of IT resources shall be placed. These IT resources are modeled by a domain expert and added to a resource catalog accessible by the optimization algorithm. In the second step (2), an expert selects apps from the application catalog intended to be deployed. Then, the expert attaches the App to a data producer since it is assumed to require a data stream from one or many data producers; in other words, the expert specifies the application’s input values. Finally, a facility expert independently models these data producers as part of the factory structure. The factory is divided into factory buildings and systems containing multiple data producers. These elements can be considered potential locations for an IT resource, like an edge device or any appropriate computational device. Model applications Attach apps to data prosumers Model factory structure Model data prosumer in factory Calculate edge level score (0-4) for each app Transform layout into tree structure Edge Level Run optimization Model resources Domain expert executes step manually (tool supported) 0 1 2 3 4 APP Application catalogue Factory model R Resource catalogue Application deployment model Multilayer resource placement model Process step is done automatically Possible deployment location APP attached to data prosumer Optimal solution 4 31 2 Processes can be executed independently Modelled IT resource Modelled application Modelled data prosumer 024 Fig. 2 Framework proposed in Zietsch et al. (2020) leading to the optimization execution 123 Journal of Intelligent Manufacturing (2024) 35:825–840 829 In the third step (3), the information about the specific demands enables an automatic calculation of an edge-level score ranging from zero to four. The score reflects a deployment recommendation for an application for the five levels in the edge-cloud continuum ranging from on-device-edge, edge, fog, cloudlet, or cloud level proposed in Zietsch et al. (2020). The calculation of a deployment restriction before the optimization execution is an essential difference compared to other optimization approaches found in the literature (compare Sect. 2). For brevity’s sake, the specificities of the edge level calculation are not part of this work; please refer to Zietsch et al. (2020). The 2D factory structure is transformed into a tree structure with the cloud (level 0) at the top and the data producers at the bottom (level 4). All applications attached to data producers have an assigned edge level ranging from zero to four, restricting their placement in the tree. In the fourth step (4), the optimization is executed with three distinct objectives: cost minimization, environmental impact minimization, or a combination of the two. The model containing the constraints and objectives is described in the following subsection. Model Sets and parameters The hierarchical 2D factory layout, translated into a tree structure, captures the relational links between the locations. As illustrated in Fig. 3, each location (l) can be viewed as a slot where a resource (r) can be placed in order to complete computation tasks (Apps). A set of mlocations L={l1,l2,...,lm}comprises all tree nodes ranging from the cloud (level 0) to the on-device edge (level 4). Parameter l∈[0,1,2,3,4]stores information about the tree level of each location l. The lowest layer extends the tree by a set of napplications A={a1,a2,...,an}connected with appropriate location nodes. A performance requirement τPerformance a describes each application a, memory requirement τMemory a, and bandwidth requirement τBandwidth a. In addition, each application has an assigned edge level restricting its placement, l∈[0,1,2,3,4]stores information about the tree level of each location a. Resources required to accommodate the Apps are gathered in a set R={r1,r2,...,rK}, where Kdenotes the total number of resource types (including different cloud services). Similar to the applications, each resource is denoted by a series of parameters. A resource’s performance, memory, and bandwidth capacity are described by ρPer f ormance r, ρMemory r, and ρBandwidth r. Furthermore, installation and usage of a resource result in capital expenditure ρCapEx r, yearly operational expenditure ρOpEx r, and environmental impact ρEcoImpact r. Fig. 3 Transforming the 2D factory layout into a tree structure 123 830 Journal of Intelligent Manufacturing (2024) 35:825–840 Optimization variables The solver controls the decision variables ya,r,l, which affects two auxiliary functions (cr,land κr,l) that facilitate the model’s description. ya,r,l=⎧ ⎪ ⎨ ⎪ ⎩ 1,if a resource ris allocated at the location land runs application a 0,otherwise (3.1) cr,ltracks the number of allocated applications for each pair of resources and location: cr,l= a∈A ya,r,l,∀r∈R,∀l∈L.(3.2) The auxiliary variable κr,lmaps cr,lto a binary, which indicates if at least one application is placed at a specific location requiring the placement of a specific resource: κr,l=1,if cr,l>0 0,if cr,l=0,∀r∈R,∀l∈L.(3.3) Constraints The following constraints are implemented to enforce compliance of the optimal solution with the requirements. Additional constraints can be added reflecting additional requirements like a budget limit, specific operating system, hardware inputs, and outputs for IT resources. Resource level constraint restricts the placement of resour ces at certain positions. For example, cloud service cannot be placed on a machine or line. κr,l≤ρResLevel l,r(r∈R,l∈L)(3.4) Allowed positions constraint restricts the placements of Apps to locations based on the assigned edge level. Each App, and each location, has a level score assigned to it. An app can only run on a location with the same or higher score. For example, if an app has a score of 4, it can run on level 4 (at the tree depth equal to 4) and nowhere else, as there are no different levels with higher scores. On the contrary, if an app has a score of 0, it can run on level 0 (cloud level) and lower levels (section, system, data source). Positions allowed for each App are encoded in the τAllowed a,lvariable, and the optimization constraint is enforced by:  r∈R ya,r,l≤τAllowed a,l(a∈A,l∈L)(3.5) No app splitting constraint specifies that an application cannot be split and distributed to multiple resources. Instead, each App must be fully deployed and executed on one resource. This constraint ensures that none of the apps are skipped and enforces that each application is placed.  r∈R l∈L ya,r,l=1(a∈A)(3.6) Fulfill performance demand constraint assures that the resource selected for each application has a performance higher than or equal to the app requirement.  r∈R l∈L ya,r,lρPerf ormance r≥τPerformance a(a∈A)(3.7) Fulfill memory demand constraint assures that the resource selected for each App has a memory capacity higher than or equal to the app requirement.  r∈R l∈L ya,r,lρMemory r≥τMemory a(a∈A)(3.8) Fulfill bandwidth demand constraint assures that resource selected for each App has bandwidth capacity higher than or equal to the app requirement.  r∈R l∈L ya,r,lρBandwidth r≥τBandwidth a(a∈A)(3.9) Resource performance limit constraint assures that total performance demand caused by the Apps (placed at a specific position) is lower than the performance capacity of a selected resource.  a∈A ya,r,lτPerformance a≤ρPerformance r(r∈R,l∈L) (3.10) Resource memory limit constraint is analogous to the resource performance limit constraint and ensures that the memory capacity of a selected resource is not exceeded.  a∈A ya,r,lτMemory a≤ρMemory r(r∈R,l∈L)(3.11) Resource bandwidth limit constraint is analogous to the resource performance limit constraint and ensures that the bandwidth capacity of a selected resource is not exceeded.  a∈A ya,r,lτBandwidth a≤ρBandwidth r(r∈R,l∈L)(3.12) 123 Journal of Intelligent Manufacturing (2024) 35:825–840 831 One resource per location constraint enforces that, at most, one resource is placed at each location.  r∈R κr,l≤1(l∈L)(3.13) Objective functions In the current version of the model, three optimization objectives are defined to minimize the overall cost (), the environmental impact (), and the number of placed resources. However, it is essential to note that the model was specifically designed to facilitate new objectives. The previously defined constraints ensure that all applications can be deployed in the factory, an essential requirement for the whole model. Each solution the solver finds is viable, and the objective function allows these solutions to be compared. In general, any desired goal that can be represented as a value allowing the solver to minimize or maximize said value can be added to the model to find the “best” solution. Examples of additional objectives that use only previously introduced variables are the minimization of operational expense (ρOpEx r), upfront capital expense (ρCapEx r), bandwidth consumption (ρBandwidth r), or maximization of performance (ρPerformance r). More complex objectives, like maximizing the overall availability or flexibility of the resulting IT infrastructure, can also be added, resulting in the challenge of describing the desired objective as a function out of the scope of our work. Since the resource catalog contains all resource types, it is necessary to distinguish between a set of resources that can be placed on-premise, denoted as R(a subset of R), and a cloud service denoted as rcto compute the overall cost and economic impact. Overall cost minimization objective aims to minimize the overall cost of running on-premise resources and cloud service over a given period (T). A resource placement is associated with the upfront capital investment (ρCapEx r) and operational expense (ρOpEx r). A significant portion of the operational expense for the on-premise IT resources is due to the energy consumption of the resource. However, other reoccurring costs, e.g., maintenance or licensing, can also be included. Although there could be upfront capital expenditure for setting up cloud services (rc), they are considered negligible compared to the operational expenses of the cloud service (ρOcpEx rc), which increases with each added App. min  r∈R l∈L κr,lρCapEx r+T r∈R l∈L κr,lρOpEx r +T a∈A l∈L ya,rc,lρOcpEx rc(3.14) Environmental impact minimization objective aims to minimize the overall environmental impact of running onpremise resources and cloud service over a given period (T). Each IT resource has an environmental impact. Accurately quantifying this impact is a significant challenge and continues to be subject to an ongoing debate about the sustainability of ICT in manufacturing (Thiede, 2021). The overall CO2 emission during operation per year is used for the model. The overall CO2emissions per year (ρEcoImpact r) can be calculated using each resource’s energy consumption (r∈R). The environmental impact of deploying Apps to the cloud depends on the amount of Apps and a separate impact factor (ρEcoImpact rc). min T r∈R l∈L κr,lρEcoImpact r + a∈A l∈L ya,rc,lρEcoImpact rc (3.15) The minimization of the number of resources aims to minimize the number of nodes (locations) on which resources are placed, including the cloud service. min  r∈R l∈L κr,l(3.16) Combining multiple objectives Executing the optimization with one of the above implemented objective functions yields one single optimal solution mathematically. However, minimizing cost, environmental impact, or the number of devices might not fulfill the desire of a user aiming for an optimal solution with contradicting goals or mandating the satisfaction of additional boundary conditions. In the model development process, three possible ways were identified that allow the consideration of potentially opposing objectives like and can be achieved: 1. Adapt the resource catalog in such a way that the solver can only select resources that are in a specific cost or environmental impact range 2. Add an additional constraint e.g. the overall capital investment cost must not exceed 10.000 e. The disadvantage of an additional constraint is that there might not exist any feasible solution that the solver can return 3. Addressing multiple objectives simultaneously transforming the problem into a multi-objective problem. 123 832 Journal of Intelligent Manufacturing (2024) 35:825–840 Whereas the first two options are relatively straightforward, a multi-objective problem can be addressed in various ways. However, to use the existing solver (SCIP), the two objectives, cost, and environmental impact, are combined by adding a priority indicator xthat signifies the preference of the user alongside a conversion factor α. The priority indicator xranges from zero to one. Three distinct values and their impact are presented as an example in Eq. (3.17). x=⎧ ⎪ ⎨ ⎪ ⎩ 1 Fully prioritize disregard  0.5and are of equal importance 0 Fully prioritize disregard  (3.17) The conversion factor is required since the cost () and environmental impact () can have different magnitudes. α is an additional parameter that the user can set. The resulting objective function combining and is found in Eq. (3.18). min xT r∈R l∈L κr,lρOpEx r+ r∈R l∈L κr,lρCapEx r+ (1−x)αT r∈R l∈L κr,lρEcoImpact r(3.18) Since the combination of multiple objective functions is not in the scope of this work, the value for αwas not investigated further. For an initial test, it was calculated by dividing the mean cost and mean the environmental impact of all available resources in the repository over five years which had an insignificant effect on the run time of the optimization. Any objectives can be combined by introducing a priority indicator alongside a suitable conversion factor. From a factory planner’s point of view, xcan be represented as a slider whose two ends represent the two different objectives, cost, and environmental impact, respectively. The practitioners can experiment with different settings interactively and with ease. Implementation in a factory context Additional parameters and functions are defined to accommodate the specificities for optimizing an IT infrastructure in a factory. The safety factor βcan be set based on the factory’s requirements. Then, βis applied to the individual resource requirements to create a safety margin for selecting the resources. Having a safety margin is considered good practice when planning capacity due to the various factors impacting an application’s performance requirements, like a software upgrade, configuration adjustments, and unforeseen software or hardware interactions. The safety factor can be set to any value; however, the range from 1.1 - 1.5 is common (Wescott, 2013). The proposed safety margin is illustrated in Eq. (3.19). τa,ef f ective=τaβ,β=⎧ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎩ 1 No safety margin 1.2 Small safety margin 1.5 Medium safety margin 2 Large safety margin (3.19) In addition, the τAllowed a,lis used in the factory context to offer the user the ability to select and modify different deployment strategies. The content of the τAllowed a,lmatrix encodes which application can run at which location. The description, as mentioned earlier, of the “Allowed Positions Constraint” does not fully explain the rule that controls the construction of τAllowed a,l. The proposed implementation offers three strategies controlling which application is allowed to run at which location, which is illustrated in Fig. 4: 1. Cloud-Fog-Edge placement strategy means that the App can only be placed on the node in direct connection with the App (on-device edge - level 4), the factory level (fog - level 1), or the cloud (level 0) with the intermediate system and section resource locations (level 2 and 3) being unoccupied. The placement strategy is intended to simplify an edge or cloud implementation choice. In addition, the execution time of the optimization is reduced since the number of possible locations is decreased. 2. Upward path only strategy means that an App can only run at locations that can be accessed by going through the tree upwards only, starting from the App assigned to the factory object. In other words, if an app is not placed at the initially assigned factory object, a strictly upward path must exist from the initially assigned factory object to the newly selected location as long as the level allows it. This strategy is set as default for all optimizations forming a compromise of speed and optimization potential 3. Entire Sub-tree strategy allows the placement of an App on the entire subtree(s) of the node with the lowest level. This placement means that in the example Fig. 4A1can be placed on any node in the entire tree. The increase in possible placement locations reduces the optimization speed, which might be impractical for scenarios with many applications. The τAllowed a,l(Eq. 3.20) is calculated according to the selected strategy for all applications before executing the solver. τAllowed a,l=1,if ais allowed at location l 0,if ais not allowed at location l(3.20) 123 Journal of Intelligent Manufacturing (2024) 35:825–840 839 permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/. References Aazam, M., Zeadally, S., & Harras, K. A. (2018). Deploying Fog computing in industrial internet of things and industry 4.0. IEEE Transactions on Industrial Informatics, 14(10), 4674–4682. https://doi.org/10.1109/TII.2018.2855198 Basir, R., Qaisar, S., Ali, M., Aldwairi, M., Ashraf, M. I., Mahmood, A., & Gidlund, M. (2019). Fog computing enabling industrial Internet of Things: State-of-the-art and research challenges. Sensors, 19(21), 4807. https://doi.org/10.3390/s19214807 Beitinger, G. (2021). Digitalization and automation are the gamechangers. https://ingenuity.siemens.com/2021/03/digitalization- and-automation-are-the-game-changers/ Brettel, M., Klein, M., & Friederichsen, N. (2016). The relevance of manufacturing flexibility in the context of Industrie 4.0. Procedia CIRP, 41, 105–110. https://doi.org/10.1016/j.procir.2015.12.047 Chen, B., Wan, J., Celesti, A., Li, D., Abbas, H., & Zhang, Q. (2018). Edge computing in IoT-based manufacturing. IEEE Communications Magazine, 56(9), 103–109. https://doi.org/10.1109/MCOM. 2018.1701231 Filz, M. A., Herrmann, C., & Thiede, S. (2020). Simulation-based assessment of quality inspection strategies on manufacturing systems. Procedia CIRP, 93, 777–782. https://doi.org/10.1016/j. procir.2020.04.069 Ghobaei-Arani, M., Souri, A., & Rahmanian, A. A. (2020). Resource management approaches in fog computing: A comprehensive review. Journal of Grid Computing, 18(1), 1–42. https://doi.org/ 10.1007/s10723-019-09491-1 Gleixner, A., Bastubbe, M., Eifler, L., Gally, T., Gamrath, G., Gottwald, R.L., Hendel, G., Hojny, C., Koch, T., Lübbecke, M.E., Maher, S.J., Miltenberger, M., Müller, B., Pfetsch, M.E., Puchert, C., Rehfeldt, D., Schlösser, F., Schubert, C., Serrano, F., Shinano, Y., Viernickel, J.M., Walter, M., Wegscheider, F., Witt, J.T., & Witzig, J. (2018). The SCIP Optimization Suite 6.0. Technical report, Optimization Online Guo, P., Lin, B., Li, X., He, R., & Li, S. (2016). Optimal deployment and dimensioning of fog computing supported vehicular network. In: 2016 IEEE Trustcom/BigDataSE/ISPA, IEEE, Tianjin, China, (pp. 2058–2062). https://doi.org/10.1109/TrustCom.2016.0315 Gupta, H., Vahid Dastjerdi, A., Ghosh, S. K., & Buyya, R. (2017). iFogSim: A toolkit for modeling and simulation of resource management techniques in the Internet of Things, Edge and Fog computing environments: iFogSim: A toolkit for modeling and simulation of internet of things. Software: Practice and Experience, 47(9), 1275–1296. https://doi.org/10.1002/spe.2509 Hart, W. E., Watson, J. P., & Woodruff, D. L. (2011). Pyomo: Modeling and solving mathematical programs in Python. Mathematical Programming Computation, 3(3), 219. Hertel, M., & Wiesent, J. (2013). Investments in information systems: A contribution towards sustainability. Information Systems Frontiers, 15(5), 815–829. https://doi.org/10.1007/s10796-013-9417-x Hischier, R., Coroama, V. C., Schien, D., & Ahmadi Achachlouei, M. (2015). Grey energy and environmental impacts of ICT hardware. In L. M. Hilty & B. Aebischer (Eds.), ICT innovations for sustainability (pp. 171–189). Springer. https://doi.org/10.1007/978- 3-319-09228-7 Hong, C. H., & Varghese, B. (2019). Resource management in fog/edge computing: A survey on architectures, infrastructure, and algorithms. ACM Computing Surveys, 52(5), 1–37. https://doi.org/10. 1145/3326066 Ismail, B.I., Mostajeran Goortani, E., Ab Karim, M.B., Ming Tat, W., Setapa, S., Luke, J.Y., & Hong Hoe, O. (2015). Evaluation of Docker as Edge computing platform. In: 2015 IEEE Conference on Open Systems (ICOS), IEEE, Bandar Melaka, (pp. 130–135). https://doi.org/10.1109/ICOS.2015.7377291 Jiang, C., Wan, J., & Abbas, H. (2021). An edge computing node deployment method based on improved k-means clustering algorithm for smart manufacturing. IEEE Systems Journal, 15(2), 2230–2240. https://doi.org/10.1109/JSYST.2020.2986649 Kumar, D., Baranwal, G., & Vidyarthi, D. P. (2022). A survey on auction based approaches for resource allocation and pricing in emerging edge technologies. Journal of Grid Computing, 20(1), 3. https:// doi.org/10.1007/s10723-021-09593-9 Lin, C. C., & Yang, J. W. (2018). Cost-efficient deployment of fog computing systems at logistics centers in industry 4.0. IEEE Transactions on Industrial Informatics, 14(10), 4603–4611. https://doi. org/10.1109/TII.2018.2827920 Mao, W., Akgul, O. U., Mehrabi, A., Cho, B., Xiao, Y., & Ylä-Jääski, A. (2022). Data-driven capacity planning for vehicular Fog computing. IEEE Internet of Things Journal, 9(15), 13179–13194. https:// doi.org/10.1109/JIOT.2022.3143872 Mourtzis, D., Vlachou, E., & Milas, N. (2016). Industrial big data as a result of IoT adoption in manufacturing. Procedia CIRP, 55, 290– 295. https://doi.org/10.1016/j.procir.2016.07.038 Noghabi, S. A., Cox, L., Agarwal, S., & Ananthanarayanan, G. (2020). The emerging landscape of edge computing. GetMobile: Mobile Computing and Communications, 23(4), 11–20. https://doi.org/ 10.1145/3400713.3400717 Qi, Q., & Tao, F. (2019). A smart manufacturing service system based on edge computing, fog computing, and cloud computing. IEEE Access, 7, 86769–86777. https://doi.org/10.1109/ACCESS.2019. 2923610 Schulte, L., Schmitt, J., Meierhofer, F., & Deuse, J. (2020). Optimizing inspection process severity by machine learning under label uncertainty. Advances in intelligent systems and computingIn I. L. Nunes (Ed.), Advances in human factors and systems interaction (pp. 3–9). Springer. https://doi.org/10.1007/978-3-030-51369-6 Thiede, S. (2021). Digital technologies, methods and tools towards sustainable manufacturing: Does Industry 4.0 support to reach environmental targets? Procedia CIRP, 98, 1–6. https://doi.org/ 10.1016/j.procir.2021.02.001 Trinks, S., & Felden, C. (2018). Edge Computing architecture to support Real Time Analytic applications : A State-of-the-art within the application area of Smart Factory and Industry 4.0. In: 2018 IEEE International Conference on Big Data (Big Data), IEEE, Seattle, WA, USA, (pp. 2930–2939). https://doi.org/10.1109/BigData. 2018.8622649 Vogel-Heuser, B., Fay, A., Schaefer, I., & Tichy, M. (2015). Evolution of software in automated production systems: Challenges and research directions. Journal of Systems and Software, 110, 54–84. https://doi.org/10.1016/j.jss.2015.08.026 Wang, S., Zhao, Y., Xu, J., Yuan, J., & Hsu, C. H. (2019). Edge server placement in mobile edge computing. Journal of Parallel and Distributed Computing, 127, 160–168. https://doi.org/10.1016/j.jpdc. 2018.06.008 Wescott, B. (2013). Every Computer Performance Book: How to Avoid and Solve Performance Problems on the Computers You Work With. CreateSpace Independent Publishing Platform Xu, Z., Liang, W., Xu, W., Jia, M., & Guo, S. (2016). Efficient algorithms for capacitated cloudlet placements. IEEE Transactions on Parallel and Distributed Systems, 27(10), 2866–2880. https://doi. org/10.1109/TPDS.2015.2510638 Yin, H., Zhang, X., Liu, H., Luo, Y., Tian, C., Zhao, S., & Li, F. (2017). Edge provisioning with flexible server placement. IEEE Transactions on Parallel and Distributed Systems, 28(4), 1031–1045. https://doi.org/10.1109/TPDS.2016.2604803 123 840 Journal of Intelligent Manufacturing (2024) 35:825–840 Yin, S., Bao, J., Zhang, J., Li, J., Wang, J., & Huang, X. (2020). Real-time task processing for spinning cyber-physical production systems based on edge computing. Journal of Intelligent Manufacturing, 31(8), 2069–2087. https://doi.org/10.1007/s10845-020- 01553-6 Yousefpour, A., Fung, C., Nguyen, T., Kadiyala, K., Jalali, F., Niakanlahiji, A., Kong, J., & Jue, J. P. (2019). All one needs to know about fog computing and related edge computing paradigms: A complete survey. Journal of Systems Architecture, 98, 289–330. https://doi.org/10.1016/j.sysarc.2019.02.009 Zhang, D., Haider, F., St-Hilaire, M., & Makaya, C. (2019). Model and algorithms for the planning of fog computing networks. IEEE Internet of Things Journal.https://doi.org/10.1109/JIOT. 2019.2892940 Zietsch, J., Vogt, M., Lee, B. D., Herrmann, C., & Thiede, S. (2020). Enabling smart manufacturing through a systematic planning framework for edge computing. CIRP Journal of Manufacturing Science and Technology.https://doi.org/10.1016/j.cirpj.2020.06. 010 Zietsch, J., Weinert, N., Herrmann, C., & Thiede, S. (2019). Edge Computing for the Production Industry A Systematic Approach to Enable Decision Support and Planning of Edge. In: 2019 IEEE 17th International Conference on Industrial Informatics (INDIN), IEEE, Helsinki, Finland, (pp. 733–739). https://doi.org/10.1109/ INDIN41052.2019.8972193 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123