Scheduling of Multipurpose Batch Plants - Towards the Development of a Decision-Making Tool for the Chemical-Pharmaceutical Industry
Full text
THESIS FOR THE DEGREE OF DOCTOR IN LEADERS FOR TECHNOLOGICAL INDUSTRIES Scheduling of Multipurpose Batch Plants Towards the Development of a Decision-Making Tool for the Chemical-Pharmaceutical Industry Samuel de Oliveira Moniz Submitted to Faculdade de Engenharia da Universidade do Porto in partial fulfillment of the requirements for the degree of Doctor in Leaders for Technological Industries, supervised by Ana Paula Ferreira Dias Barbosa-Póvoa, Full Professor at Instituto Superior Técnico, and Jorge Manuel Pinho de Sousa, Associate Professor at Faculdade de Engenharia da Universidade do Porto. Porto, March 2014
iii “A inquietante força que nos impulsiona rumo à incerteza e à descoberta transforma-nos em incansáveis e destemidos viajantes.” Rosa Gomes This research was supported by the PhD Grant SFRH/BD/33970/2009, awarded by the Portuguese Foundation for Science and Technology, and by Hovione FarmaCiencia SA.
v Agradecimentos À professora Ana Paula Ferreira Dias Barbosa Póvoa, orientadora desta tese, pela forma como me acompanhou no decurso desta etapa, pela partilha de saberes, por toda a sua disponibilidade, confiança, determinação, simpatia e principalmente pelos incentivos constantes e tão valiosos para a concretização deste projeto. Ao professor Jorge Pinho de Sousa, co-orientador desta investigação, pela transmissão de conhecimentos, inspiração e pela ajuda essencial no decurso desta etapa. A minha gratidão por todo o apoio e companheirismo que já se estende há 10 anos. Ao Pedro Duarte, orientador do parceiro industrial (Hovione FarmaCiencia SA), pelo acompanhamento, colaboração e sobretudo pela visão inspiradora sempre presente. Aos meus orientadores, agradeço o espírito único de trabalho em equipa que me permitiu chegar ao fim desta desafiante etapa. À minha família por compreenderem a minha ausência e pelo incentivo incessante durante todo o percurso. Sem eles não teria sido possível. Aos meus colegas e amigos do programa MIT Portugal pelo privilégio de trabalhar com eles, relembrando com especial carinho o tempo que passamos no Massachusetts Institute of Technology, pela forma como estimulou a investigação e as amizades que ficarão para sempre. A todos aqueles que direta ou indiretamente contribuíram para a concretização desta tese, o meu sincero agradecimento!
vii Escalonamento de Instalações Multitarefa de Produção em Lotes Desenvolvimento de uma Ferramenta de Suporte à Decisão para a Indústria Químico-Farmacêutica Samuel Moniz Resumo Esta tese incide sobre o desenvolvimento de modelos de escalonamento para instalações multitarefa de produção em lotes que operam para a indústria farmacêutica. O problema de escalonamento da produção é geralmente reconhecido como um problema difícil de resolver uma vez que lida com vários objetivos potencialmente concorrentes. A principal finalidade do escalonamento é produzir as quantidades adequadas, no tempo certo, com o menor custo e dentro dos critérios de qualidade. Para resolver este problema, modelos de otimização podem ser aplicados para obter soluções ótimas (ou quase ótimas). Os vários desafios que surgem a este nível estão relacionados com a implementação, modelação e eficiência computacional na resolução de problemas de grande dimensão. Contudo, a aplicação destes modelos em problemas reais cria claramente oportunidades de melhoria para as atividades de produção e logística. Nesta tese é apresentada uma metodologia inovadora para a representação e resolução do problema de escalonamento, suportada por um modelo de otimização discreto. As características da indústria químico-farmacêutica levaram a uma definição mais alargada do problema de escalonamento, que tem em conta decisões relacionadas com a modificação dos equipamentos. Métodos de decomposição e estratégias de reformulação são propostas para abordar a complexidade computacional. A eficiência destes métodos é ilustrada através da resolução de instâncias reais. São também discutidos aspetos relacionados com a implementação da metodologia de escalonamento de forma a demostrar a sua aplicabilidade prática.
ix Scheduling of Multipurpose Batch Plants Towards the Development of a Decision-Making Tool for the Chemical-Pharmaceutical Industry Samuel Moniz Abstract The main objective of this thesis was to development scheduling models for multipurpose batch plants operating in the context of the pharmaceutical industry. The production scheduling problem is commonly recognized as being very difficult since it must deal with several potential conflicting objectives. The primary goal of production scheduling is to produce the right amounts of product at the right time, cost, and quality. For that purpose, model-based approaches can be applied so as to obtain optimal (or close to optimal) scheduling solutions. Several challenges that arise at this level are related to implementation, modeling issues, and computational efficiency when solving large-scale problems. Nevertheless, the application of such models in real world scheduling problems clearly creates improvement opportunities for logistics and manufacturing activities. In this thesis, an innovative methodology is introduced for efficiently representing and solving the integrated scheduling problem, based on a new general discrete-time model. The characteristics of the chemical-pharmaceutical industry led to the definition of an extended view of the scheduling problem that accounts for units redesign decisions. Decomposition methods and reformulation strategies are also introduced to address the computational complexity of the models. The effectiveness of the proposed methods is illustrated by solving several real world instances. Practical implementation issues of the scheduling methodology are also discussed so as to demonstrate its application potential.
16 Moniz, S. Consequently, new technologies and production methodologies focused on the manufacturing system are being developed and evaluated, and some of them are being progressively adopted. For example, according to Roberge et al. (2005), 50% of the reaction tasks in the chemical-pharmaceutical industry could benefit from the adoption of continuous processes that have lower plant and production costs and can be highly automated. Concerning the manufacturing methodologies the focus is being on Good Manufacturing Practice (GMP), Process Analytical Technology (PAT) and also on advanced optimization tools, as stated by Grossmann (2005), with the concept of Enterprise-Wide Optimization (EWO). The relevance of using optimization tools is being recognized by the industry (Klatt & Marquardt, 2009). Thus, not surprisingly, the efforts made in the past years by both academia and industry resulted into several successful integrations of optimization tools in complex decision-making processes related to process design, supply chain, planning and scheduling (Grossmann, 2005). Some relevant reviews on these topics have been published (Kallrath, 2005; Mendez et al., 2006; Barbosa-Povoa, 2007; Li & Ierapetritou, 2008; Maravelias & Sung, 2009; Verderame et al., 2010), showing the remarkable progress done in the Process System Engineering (PSE) area. Production planning and scheduling are systematically considered very difficult functions to perform, since they are intended to produce operational plans dealing with several potential conflicting objectives, namely minimizing costs, completion times, and delays or maximizing profit. Additionally, these functions are closely related to other areas such as sales, procurement, production execution, and control, hence they may interface with decisions at the strategic and operational levels. In short, we can say that the scheduling decision-making process must be simultaneously faster, integrated, validated, and provide various alternatives instead of a single solution to the problem. The assessment of the manufacturing system in new scenarios is done on a regular basis, and may be triggered by the arrival of new orders or rescheduling needs. Moreover, scheduling solutions must be obtained in reasonable time, considering the time window available for the decision-making process, and may need to consider decisions made in other areas. The validation of the solutions must then be performed to ensure operational feasibility, and since a variety of solutions having different objectives can be obtained, it is highly desirable to have alternative schedules.
1 Introduction 17 The use of optimization methods in the scheduling decision making-process should ensure that all these requirements are met, thus providing a systematic way to obtain optimal (or close to optimal) scheduling solutions. 1.1 Research Gaps and Research Questions The major issues raised by optimization approaches, when applied to industrial problems, are related to computational performance, uncertainty, multiscale optimization, or the modeling task itself (Grossmann, 2005; Grossmann, 2012). In particular, scheduling optimization is quite difficult to perform since it involves solving combinatorial problems in highly collaborative and dynamic production environments. The relevance of these issues and the practical need to address them, in an effective and efficient way, are the main motivation for this work. Our research is in fact pursued with the aim of designing new optimization based decision-support tools, for solving planning and scheduling problems in process batch plants. Thus, in spite of the significant progress done in the development of scheduling models, these issues are restricting the adoption of mathematical approaches by the process industry. Modeling is surely a very critical issue, since it deals with the design of models targeting their integration with the company’s decision-making processes. Thus, the first research question can be posed as follows: Q1: What should be the structure and components of models for scheduling multipurpose batch plants? Question Q1 reflects the importance of understanding the structure of the scheduling problem, as seen by the practitioners, and leads to the definition of the main components that will constitute the decision-making tool. Moreover, the factors that are determinant to integrate optimization models in industrial practices should also be considered here. In other words, it is quite relevant to understand the structure of the scheduling problem in order to integrate models in existing decision-making processes, in such a way that models can be rapidly understood by the industrial practitioners. Along the same lines, another motivating research question arises:
18 Moniz, S. Q2: What is the optimal strategy for scheduling of multipurpose batch plants taking into account the different production modes? Question Q2 provides guidance to this research on the development of scheduling models and solution methods, capable to solve large-scale scheduling problems and to adapt to different production scenarios. The critical factors concern with the computational performance and quality of the solutions when solving difficult scheduling problems. The challenge here is to develop solution methods such that the balance between computational time and quality of the solutions is acceptable in the context of the day to day scheduling decisions. 1.2 Thesis Objectives The main objective of this thesis is to develop a general methodology for solving scheduling problems of multipurpose batch plants. In a more detailed way, this work aims at: 1) identifying the requirements for the scheduling models; 2) developing generic scheduling models for multipurpose batch plants; 3) designing solution methods; 4) developing the basis for a decision support tool for the chemical-pharmaceutical industry. First we try to develop a clear view of the scheduling problem as seen by the industry, and to identify the requirements necessary to design scheduling models. Then we design, test, and validate scheduling models under real-world conditions, which can be supported by the case study addressed in this work. We then propose solution methods to solve large-scale scheduling problems. Finally, we develop the prototype of a decisionsupport tool that integrates the developed mathematical approaches with decision-making processes. The characteristics of the models, the structure of the problems and also the decision-making processes of the case-study are taken into consideration, so as to define a scheduling methodology that can be truly implemented in real manufacturing systems.
1 Introduction 19 1.3 Scope of the Thesis The work presented throughout this thesis is centered on the scheduling problem of multipurpose batch plants and is motivated by the resolution of a case study from the chemical-pharmaceutical industry. The level of analysis of this research is the multipurpose batch plant, and the unit of analysis is the scheduling model. The case-study of this work was designed based on a company that is responsible for the development and manufacturing of complex chemicals called Active Pharmaceutical Ingredients (API). The batch processes are typically long and are executed under close supervision of the regulatory authorities. To manufacture a single product, several days of effective production time may be required, with tasks processing times varying between one hour and two days. The production resources are shared between products that are under development and products that are already in commercialization. Changeovers are required to avoid cross contamination of the products and are quite critical since often they impose significant downtime periods. In this context, the scheduling problem consists in efficiently allocating production resources to tasks so as to fulfill given demand targets. In the cases when the scheduling problem is deeply dependent on other types of problems, such as batch plant design or planning, those problems have also been considered. Two important advantages of this study should be emphasized. First, the resolution of real world scheduling problems helped to focus the research in the development of optimization models that can effectively be implemented. Thus, practical scheduling requirements have been discussed with the company and considered in the models whenever possible. Second, although the scheduling models and solution approaches developed were motivated by a case-study, they can be applied to other types of industries, as long as the scheduling problem has a similar structure. 1.4 Key Concepts and Definitions The main key concepts and definitions used throughout this thesis are: a) Production planning – “Production planning is viewed here as the planning of the acquisition of the resources and raw materials, as well as the planning of the production activities, required to transform raw materials into finished products
20 Moniz, S. meeting customer demand in the most efficient or economical way possible.”, by Pochet and Wolsey (2006). b) Production scheduling – “Scheduling is a decision-making process that is used on a regular basis in many manufacturing and services industries. It deals with the allocation of resources to tasks over given time periods and its goal is to optimize one or more objectives”, by Pinedo (2002). c) Multipurpose batch plants – “multipurpose batch plants or jobshops are general purpose facilities where a variety of products can be produced by sharing the available equipment, raw materials and intermediates, utilities and production time resources”, by Barbosa-Povoa (2007). Planning is associated to long-term decisions and scheduling is related to shorttime decisions. The interaction between these two types of decisions has been extensively addressed in the literature. A recent review on this topic is provided by Maravelias and Sung (2009). 1.5 Research Design and Methods The models developed in this thesis apply well known mathematical approaches, such as Linear Programming (LP) and Mixed Integer Linear Programming (MILP). To address the computational complexity of some scheduling instances, decomposition methods have also been used. Modeling scheduling problems invariably requires integer variables, which results into models having both continuous and integer variables. Due to the combinatorial nature of the problems, a complete enumeration of all possible values of the decision variables is impractical. To solve this type of problems the branch-and-bound (B&B) technique is generally applied. B&B is an enumeration algorithm that applies a partitioning process to cut a lot of the enumeration whenever possible. Current implementations of B&B take advantage of extraordinary theoretical progresses and are in practice quite efficient. In a nutshell, B&B computes the Linear Relaxation of the MILP problem at each node of the enumeration tree and keeps record of the best integer solution found and of the linear relaxation solution and value to find bounds on the optimal values for the integer programs (Johnson et al., 2000). Nowadays, B&B is part of advanced solvers such
1 Introduction 21 as CPLEX that include a preprocessing stage and heuristics to speed up the resolution time. However, many scheduling problems can hardly be solved by exact methods (as B&B) in an acceptable amount of time. These problems usually deal with a large number of resources, tasks, and mainly with a large number of time intervals. Moreover, if we consider some complicating constraints as sequence-dependent changeovers and temporary storage in the processing units, the resolution time tends to be prohibitive and the quality of the solutions tends to deteriorate very rapidly. Alternatively, decomposition techniques can be applied to obtain satisfactory solutions quickly. In this work, we have applied aggregated model formulations, task-unit aggregation, and time-based decompositions. In this research, the case study naturally played a very important role. Data collection for analysis and interpretation was performed in the company and used later to build the scheduling instances. Due to the lack of coherent information structures, data was firstly arranged to be used then by the scheduling models. In order to test and validate the proposed methodology, we have, during one year, performed meetings in a regular basis with process engineers and planners. Insights from industrial practitioners revealed to be very useful in redefining the components of the methodology and the integration requirements between those components. 1.6 Thesis Outline The research questions have been tackled throughout four papers that essentially constitute the body of the thesis, thus some unavoidable repetitions are present in this document. The original content of each published or submitted paper was transcribed to single chapters, excluding the work presented in Chapter 2 that was not submitted to a journal. Thus, the relevant literature review is discussed in each of these chapters. Chapter 2 presents a discussion on the complexity of planning and scheduling functions. The role and scope of planning and scheduling are addressed in detail, in an attempt to better understand the critical factors that drive these functions in the context of the pharmaceutical industry. We show that there is an improvement path that must be followed in order to respond to the new challenges of this industry.
22 Moniz, S. Chapter 3 introduces a new type of problem that is closely related to the scheduling problem. The equipment redesign problem is defined by the implementation of modifications in the processing units so as to change their suitability to perform tasks. This problem takes more relevance in industries that perform process development, since the production recipes evolve with it and for that reason it may be necessary to modify the processing units. Modeling both problems simultaneously increases the solution space, since additional task-unit assignments can be explored by modifying the processing units. The developed model delivers a schedule and an equipment modification plan. Chapter 4 proposes a new general discrete-time scheduling model for multipurpose batch plants. The developed formulation deals efficiently with two complicated requirements of the discrete-time scheduling models as: the sequence-dependent changeovers and the temporary storage in the processing units. Other operational requirements such lots blending and material flows traceability that have been somehow neglected by the literature, are also taken into account. Chapter 5 presents a novel solution methodology for the production scheduling of batch plants that distinctively integrates the representation of the scheduling problem, the optimization model, and the decision-making process. The main objective is to ensure the development of a methodology that can effectively be integrated in the decision-processes of the company, in which the case-study of this research project is based. Chapter 6 addresses the scheduling of regular and non-regular production. The objective of this chapter is two-fold. First, solving a scheduling problem that requires two distinct operating strategies: campaign and short-term production. Second, tackling the computational complexity of the scheduling problems by using decomposition methods and reformulation strategies. Real world scheduling instances are solved to demonstrate the efficiency and quality of the solutions. Finally, chapter 7 summarizes the work presented in this thesis and identifies some future research topics in the area. The papers that support the structure of the thesis, described above, are presented in Table 1.1 and have been published/or are under review in international peer reviewed journals or have been published in conference proceedings.
1 Introduction 23 Table 1.1 – Publications. Chapter Publications Chapter 3 Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2012). Scheduling with equipment redesign in multipurpose batch plants. Foundations of Computer-Aided Process Operations - FOCAPO 2012. Chapter 4 Moniz, S., Barbosa Póvoa, A. P., & Pinho de Sousa, J. (2013). A new general discrete-time scheduling model for multipurpose batch plants. Industrial & engineering chemistry research. doi: 10.1021/ie4021073. Chapter 5 Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2013). A solution methodology for scheduling problems in batch plants. Under review in Industrial & engineering chemistry research. Chapter 6 Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2013). Simultaneous regular and non-regular production scheduling of multipurpose batch plants: a real chemical-pharmaceutical case study. Under review in Computers & Chemical Engineering. Papers in Conference Proceedings Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2012). Regular and non-regular production scheduling of multipurpose batch plants. Proceedings of the 22nd European Symposium on Computer Aided Process Engineering. doi: 10.1016/B978-0-444-59520-1.50012-9. Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2013). Extending the Resource- Task Network (RTN) for Industrial Scheduling Problems. IO 2013, XVI Congresso da Associação Portuguesa de Investigação Operacional.
24 Moniz, S. References Barbosa-Povoa, A. P. (2007). A critical review on the design and retrofit of batch plants. Computers & Chemical Engineering, 31, 833-855. DiMasi, J. A., Hansen, R. W., & Grabowski, H. G. (2003). The price of innovation: new estimates of drug development costs. Journal of health economics, 22, 151-185. Federsel, H.-J. r. (2009). Chemical Process Research and Development in the 21st Century: Challenges, Strategies, and Solutions from a Pharmaceutical Industry Perspective. Accounts of Chemical Research, 42, 671-680. Grossmann, I. (2005). Enterprise‐wide optimization: A new frontier in process systems engineering. AIChE Journal, 51, 1846-1857. Grossmann, I. (2012). Advances in mathematical programming models for enterprisewide optimization. Computers & Chemical Engineering. Hynes III, M. D. (2009). Project and capacity management: An application to drug development. Computers & Chemical Engineering, 33, 1994-1998. Johnson, E. L., Nemhauser, G. L., & Savelsbergh, M. W. P. (2000). Progress in linear programming-based algorithms for integer programming: An exposition. INFORMS Journal on computing, 12, 2-23. Kallrath, J. (2005). Solving planning and design problems in the process industry using mixed integer and global optimization. Annals of Operations Research, 140, 339- 373. Kessel, M. (2011). The problems with today's pharmaceutical business [mdash] an outsider's view. Nature biotechnology, 29, 27-33. Klatt, K.-U., & Marquardt, W. (2009). Perspectives for process systems engineering— Personal views from academia and industry. Computers & Chemical Engineering, 33, 536-550. Li, Z., & Ierapetritou, M. (2008). Process scheduling under uncertainty: Review and challenges. Computers & Chemical Engineering, 32, 715-727. Maravelias, C. T., & Sung, C. (2009). Integration of production planning and scheduling: Overview, challenges and opportunities. Computers & Chemical Engineering, 33, 1919-1930. Mendez, C. A., Cerda, J., Grossmann, I. E., Harjunkoski, I., & Fahl, M. (2006). State-of- the-art review of optimization methods for short-term scheduling of batch processes. Computers & Chemical Engineering, 30, 913-946. Pinedo, M. (2002). Scheduling : theory, algorithms, and systems. Upper Saddle, N.J.: Prentice Hall. Pochet, Y., & Wolsey, L. A. (2006). Production planning by mixed integer programming: Springer. Roberge, D. M., Ducry, L., Bieler, N., Cretton, P., & Zimmermann, B. (2005). Microreactor technology: a revolution for the fine chemical and pharmaceutical industries? Chemical engineering & technology, 28, 318-323. Shah, N. (2004). Pharmaceutical supply chains: key issues and strategies for optimisation. Computers & Chemical Engineering, 28, 929-941. Verderame, P. M., Elia, J. A., Li, J., & Floudas, C. A. (2010). Planning and Scheduling under Uncertainty: A Review Across Multiple Sectors. Industrial & engineering chemistry research, 49, 3993-4017.
2 On the Complexity of Production Planning and Scheduling in the Pharmaceutical Industry 25 2 On the Complexity of Production Planning and Scheduling in the Pharmaceutical Industry Abstract This chapter discusses on the role of the planning and the scheduling functions in the drug development process and production environment of the pharmaceutical industry, and aims at identifying the critical factors of decision-making and global optimization to the operations. We redefine the scope of planning and scheduling problems, and we propose an extended view of these problems to account for higher levels of integration between process design and operations. Finally, we introduce a conceptual representation, the Delivery Tradeoffs Matrix to provide guidance on the tradeoffs occurring in the drug development process and to expose the factors that affect the performance of these manufacturing systems. Keywords: process design; planning and scheduling optimization; batch plants; pharmaceutical industry
32 Moniz, S. 2.3.3 Plants The plant structure has also implications on how planning and scheduling is performed. Note that, although the modeling approach strongly depends on the process topology (as discussed above), the characteristics of the plants (such as resources, plant structure, operating mode, and batch/continuous manufacturing) lead as well to specific planning and scheduling problems. Batch plants have different types of production resources (e.g., processing units, storage units, units’ connections, materials, utilities and people) that may need to be considered when solving these problems. Facilities having multipurpose units are inherently more flexible, since these units are suitable to produce a variety of products (Barbosa Povoa & Macchietto, 1994). Resources of the type material may be available for manufacturing several processes according to the recipe instructions, and they can have the following states: raw materials, intermediaries, stable intermediaries and final products. Material storage policies are defined by the process itself and by the storage alternatives available for scheduling. Dedicated storage units may exist, even if multipurpose units such as reactors can often be used temporarily as vessels. The plant is typically composed by reactors, filters and dryers that are connected through a complex system of pipelines or through mobile vessels. This connectivity allows fixed or flexible links between units, having significant implications on the effective utilization of processing units. In general, resources sharing and connectivity alternatives are advantageous in scenarios were product demands or formulations demands change rapidly (Barbosa Povoa & Macchietto, 1994). Design and scheduling problems have been addressed simultaneously as a way to account for units connectivity and layout characteristics, resulting into integrated operating strategies (Barbosa-Povoa, 2007). Barbosa Povoa and Macchietto (1994) addressed for the first time the design and scheduling of multipurpose batch plants taking into account the plant structure and, more recently, the units redesign problem was introduced by Moniz et al. (2012). Here, we have considered that the units’ suitability to perform tasks can change during the scheduling horizon. The set of resources available in the plant and the degree of flexibility to adapt the resources to the products demand will provide more or less scheduling alternatives.
2 On the Complexity of Production Planning and Scheduling in the Pharmaceutical Industry 33 Concerning the operating mode, batch plants that have to manufacture products with dissimilar recipes and low production volume require different operating strategies than those having similar recipes and high volume (Reklaitis, 1992). In this way, for low volume production (short-term mode) a reduced number of batches are produced and for high volume production (campaign mode) the number and size of batches tends to be higher. These strategies have impact on the way how resources are allocated and on the required system responsiveness. The short-term mode under a multipurpose environment requires a higher responsiveness from the manufacturing system, since resources are shared between several products in a very dynamic production environment, whereas in the campaign mode, resources are allocated to single products during long time periods. Campaign schedules can be computed using the periodic scheduling approach proposed by Shah et al. (1993) where it is assumed that tasks are executed with a cyclic pattern. In practice, these schedules are seen as operationally easier to manage and execute. Finally, we may have a mixed strategy, in which some resources are allocated to short-term demand, while the other resources are dedicated to the campaign demand (Moniz et al., 2013). Continuous manufacturing of pharmaceuticals is an emergent process mode that relies on flow reactors and is being evaluated to the production of drugs. An immediate consequence of using flow reactors, instead of using batch reactors, is that the production process moves from a batch process to continuous operating conditions (Buchholz, 2010). Benefits of continuous manufacturing when compared to batch manufacturing include lower plant and production costs, lower carbon footprint; better quality, higher safety; less costs to scale-up, and higher levels of automation (Roberge et al., 2008; Calabrese & Pissavini, 2011). Nevertheless, existing technological challenges of flow reactors and adaptation of batch processes to continuous processes have made their evaluation and deployment difficult. I what concerns the supply chain of continuous processes, materials can be planned in a regular basis so leading to a reduction of inventory costs. Moreover, since labor costs in the pharmaceutical industry are very significant (Roberge et al., 2008), the possibility of introducing automated continuous processes has at least two advantages: it reduces labor costs and improves the reliability of the production process, thus reduces the uncertainty in planning and scheduling problems.
34 Moniz, S. 2.4 Delivery Tradeoffs Matrix The ultimate goal of planning and scheduling is to deliver the right amounts of product at the right time, cost and quality. Thus, in order to provide guidance on the issues that determine the effectiveness of launching a new drug to the market, we propose a conceptual representation, named the Delivery Tradeoffs Matrix (DTM) depicted in Figure 2.2. The relative importance of costs and uncertainty on the manufacturing activities that support the development and delivery of APIs or final products can be assessed in the DTM. Drug Development Cycle The matrix depicts three phases (R&D, trials I-III and commercialization) of the drug development cycle. The R&D phase accounts for discovery, safety and toxicology research activities, and clinical supplies. Trials I-III are related to the clinical studies performed on humans. The commercialization phase includes the manufacturing activities required to deliver the right amounts of product to the market, after approval by the regulatory agencies. Uncertainty and costs are represented in a scale of high-low and the lot size proportion at each phase is indicated by the size of the associated bubble. The DTM of Figure 2.2 a) attempts to show the current tradeoffs of the industry, while b) tries to depict a future scenario, as a possible response to the challenges the pharmaceutical industry is facing and needs to overcome. The DTMs were built taking into account a set of estimated values available in the literature. To the best of our knowledge, there are no reliable figures regarding the cost structure and uncertainty associated to the R&D, trials I-III and commercialization phases (Suresh & Basu, 2008). Though, the dimension of development and manufacturing costs justify a discussion on the path to the manufacturing efficiency of the pharmaceutical industry. Uncertainty and Costs At the start of a research program, products and processes are not developed, and therefore there is a high uncertainty associated to the drug structure and to the process design. Uncertainty makes planning decisions more complex, since it is more difficult to estimate the required time and resources. For example, in the development and manufacturing of APIs it is common to allocate production resources 6 to 12 months in
2 On the Complexity of Production Planning and Scheduling in the Pharmaceutical Industry 35 advance. Thus, any changes in the planning will surely have impact in manufacturing costs and delivery time. With drug development the uncertainty tends to decrease since product and process characteristics are better understood. At the laboratory scale just small amounts are produced (around few hundred grams). The delivery of the first scaled up batch (usually between 1 to 5 kg), used to support toxicological and formulations studies and phase I trials, is on the critical path of the development process This scale-up is particular difficult to perform since the knowledge from the laboratory scale is typically not sufficient to guarantee a successful process at a plant scale (Federsel, 2009). Moreover, the drug development process requires a series of scale-ups so as to develop an efficient production process. At the commercialization stage, there is an increasing need for API or drug product at the order of hundreds of kilograms. The processes are well defined, thus the uncertainty is mainly associated to market parameters such as demand and to the processing time of complex production tasks. The current practice demonstrates that there are large costs and high uncertainty at the R&D and trials I-III phases (see Figure 2.2). The total cost of bringing a new drug to market is estimated to exceed 1 billion dollars (Kessel, 2011). In terms of the total cost structure, pharmaceutical R&D costs are around 30% to 35% and clinical trials (typically representing the most significant cost) can be between 35% to 40% of the total (Suresh & Basu, 2008). Time-to-Market and Amount Delivered It should be noted that from the planning and scheduling perspective, the delivery of products to Trials I-III phases is of extreme importance. Shah (2004) and Buchholz (2010) pointed out that time-to-market is a critical driver of the pharmaceutical industry. Additionally, Buchholz (2010) highlighted another relevant driver for this industry, which is fast and robust scalability of the production processes. These drivers are even more relevant since frequently more than one company are developing drugs targeting the same market, thus the importance to respect due dates is crucial. On the other hand, at the commercialization phase there is more flexibility concerning delivery dates, if there is inventory on the supply chain. According to Shah (2004), the whole pharmaceutical chain stock can represent 30% to 90% of the annual demand in quantity. Therefore, at this phase, we can say that delivering the right product
36 Moniz, S. amounts is relatively more important than respecting delivery dates. Note that the lot sizes at the Trials I-III phases are in the order of few kilograms, while after several scaleup and validation steps, the lot sizes are around hundreds of kilograms. After drug development, the manufacturing costs are lower and tend to decrease with the reduction of the root causes of variability in the process. Concerning the operating mode, manufacturing sites run in short-term mode to fulfill a small product demand, or run preferably in campaign mode to respond to a regular demand. The short-term mode is also used for manufacturing products that are in commercialization, this naturally resulting in the production of a smaller number of lots. However, in all cases the process must run with the same lot size as approved by the regulatory agencies. a) b) Figure 2.2 – Delivery Tradeoffs Matrix (DTM) of the pharmaceutical industry: a) current state, b) future scenario. The Path to Efficient R&D and Manufacturing Activities All these issues led the pharmaceutical industry to recognize the need for reducing time-to-market, the costs of new drug development, and manufacturing costs. The path to efficient R&D and manufacturing activities has to find ways to address uncertainty and reduce costs, see Figure 2.2 b). This will involve the introduction of new production technologies (Suresh & Basu, 2008), as well as, the adoption of innovative process design and planning and scheduling decision-making tools (Shah, 2004). For example, according to Roberge et al. (2005), 50% of the reaction tasks in the chemical-pharmaceutical industry could benefit from the adoption of continuous processes based on the
2 On the Complexity of Production Planning and Scheduling in the Pharmaceutical Industry 37 microreactor technology. In what concerns decision-making, the relevance of applying optimization methods and deploying more integrated decision-making processes is being recognized by the industry, despite the challenges that still exist (Grossmann, 2012). Figure 2.2 b) provides a view on a possible path for efficient R&D and operations. The uncertainty and costs can be reduced by the adoption of new technologies (e.g., continuous flow manufacturing, process analytical technology (PAT)) and, on the other hand, be addressed by optimization tools. 2.5 Final Remarks This piece of research is intended to analyze the main aspects that influence planning and scheduling decisions in the context of the pharmaceutically industry. Extending the traditional scope of planning and scheduling functions is particularly interesting, if drug development and manufacturing activities are simultaneously considered. The critical factors that determine planning and scheduling were identified and grouped in three categories: market, processes and plants. In our view, comprehensive optimization methods for the pharmaceutical industry must somehow take into account these factors. Finally, we propose a conceptual representation, the Delivery Tradeoffs Matrix that attempts at providing guidance on uncertainty and costs issues involved in the drug development and manufacturing activities.
38 Moniz, S. References Barbosa-Povoa, A. P. (2007). A critical review on the design and retrofit of batch plants. Computers & Chemical Engineering, 31, 833-855. Barbosa-Povoa, A. P., & Macchietto, S. (1994). Detailed design of multipurpose batch plants. Computers & Chemical Engineering, 18, 1013-1042. Barbosa Povoa, A. P., & Macchietto, S. (1994). Redesign of a multipurpose batch pilot plant with cleaning in place (CIP) integration. Computers & Chemical Engineering, 18, S277-S281. Bassett, M., Dave, P., Doyle, F., Kudva, G., Pekny, J., Reklaitis, G., Subrahmanyam, S., Miller, D., & Zentner, M. (1996). Perspectives on model based integration of process operations. Computers & Chemical Engineering, 20, 821-844. Basu, P., Joglekar, G., Rai, S., Suresh, P., & Vernon, J. (2008). Analysis of manufacturing costs in pharmaceutical companies. Journal of Pharmaceutical Innovation, 3, 30-40. Buchholz, S. (2010). Future manufacturing approaches in the chemical and pharmaceutical industry. Chemical Engineering and Processing: Process Intensification, 49, 993-995. Calabrese, G. S., & Pissavini, S. (2011). From batch to continuous flow processing in chemicals manufacturing. AIChE Journal, 57, 828-834. Federsel, H.-J. r. (2009). Chemical Process Research and Development in the 21st Century: Challenges, Strategies, and Solutions from a Pharmaceutical Industry Perspective. Accounts of Chemical Research, 42, 671-680. Grossmann, I. (2012). Advances in mathematical programming models for enterprisewide optimization. Computers & Chemical Engineering. Hynes III, M. D. (2009). Project and capacity management: An application to drug development. Computers & Chemical Engineering, 33, 1994-1998. Kessel, M. (2011). The problems with today's pharmaceutical business [mdash] an outsider's view. Nature biotechnology, 29, 27-33. Maravelias, C. T. (2012). General framework and modeling approach classification for chemical production scheduling. AIChE Journal. Mendez, C. A., Cerda, J., Grossmann, I. E., Harjunkoski, I., & Fahl, M. (2006). State-of- the-art review of optimization methods for short-term scheduling of batch processes. Computers & Chemical Engineering, 30, 913-946. Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2012). Scheduling with equipment redesign in multipurpose batch plants. Foundations of Computer- Aided Process Operations - FOCAPO 2012. Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2013). Simultaneous regular and non-regular production scheduling of multipurpose batch plants: a real chemicalpharmaceutical case study. Under review in Computers & Chemical Engineering. Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2013 submitted). A solution methodology for scheduling problems in batch plants. under review in Industrial & engineering chemistry research. Pinto, J. M., & Grossmann, I. E. (1998). Assignment and sequencing models for thescheduling of process systems. Annals of Operations Research, 81, 433-466. Reklaitis, G. V. (1992). Overview of scheduling and planning of batch process operations. Proc. NATO Advanced Study Institute on Batch Processing System Engineering, Antalya, Turkey.
2 On the Complexity of Production Planning and Scheduling in the Pharmaceutical Industry 39 Roberge, D. M., Ducry, L., Bieler, N., Cretton, P., & Zimmermann, B. (2005). Microreactor technology: a revolution for the fine chemical and pharmaceutical industries? Chemical engineering & technology, 28, 318-323. Roberge, D. M., Zimmermann, B., Rainone, F., Gottsponer, M., Eyholzer, M., & Kockmann, N. (2008). Microreactor technology and continuous processes in the fine chemical and pharmaceutical industry: Is the revolution underway? Organic Process Research & Development, 12, 905-910. Shah, N. (2004). Pharmaceutical supply chains: key issues and strategies for optimisation. Computers & Chemical Engineering, 28, 929-941. Shah, N., Pantelides, C., & Sargent, R. (1993). Optimal periodic scheduling of multipurpose batch plants. Annals of Operations Research, 42, 193-228. Sundaramoorthy, A., & Maravelias, C. T. (2011). A general framework for process scheduling. AIChE Journal, 57, 695-710. Suresh, P., & Basu, P. K. (2008). Improving pharmaceutical product development and manufacturing: impact on cost of drug development and cost of goods sold of pharmaceuticals. Journal of Pharmaceutical Innovation, 3, 175-187.
3 Paper 1: Scheduling With Equipment Redesign In Multipurpose Batch Plants 41 3 Paper 1: Scheduling With Equipment Redesign In Multipurpose Batch Plants Samuel Moniz,a,c Ana Paula Barbosa-Póvoa,a Jorge Pinho de Sousab,c aCentro de Estudos de Gestão, Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisboa, Portugal bINESC TEC, 4200-465, Porto, Portugal cFaculdade de Engenharia da Universidade do Porto, 4200-465, Porto, Portugal This chapter was published in the proceedings of the conference FOCAPO 2012. Abstract The objective of this paper is to present a new formulation for the optimal scheduling of multipurpose batch plants where equipment redesign is considered simultaneously with the scheduling decisions. The equipment redesign is characterized by the implementation of modifications in the existent processing units so as to change their suitability to perform certain tasks, while regarding tasks’ characteristics inside a given scheduling horizon. This approach may be advantageous in cases where no schedule solutions are found with the existent equipments and where, with minor technology modifications on the processing units, feasible schedules can be obtained. Each of these changes has a cost and requires a certain time to be implemented. In order to model such problem a simple Mixed Integer Linear Programing formulation (MILP) is proposed having as basis the unified Resource-Task Network (RTN) representation presented by Pantelides (1994). An example motivated by a chemical-pharmaceutical industry is used to demonstrate the applicability of the proposed formulation. Keywords: Multipurpose batch plants, simultaneous scheduling and design, equipment redesign
48 Moniz, S. Figure 3.2 - RTN of the equipment redesign problem (reversible modification). If the modification is irreversible there is no removing task; if the modification is reversible it is necessary to create two tasks: one to add the auxiliary equipment to the processing unit, representing the equipment modification, and another task to remove the previously installed auxiliary equipment, providing the processing unit with its initial suitability. The network of processing tasks requires the explicit representation of all possible combinations of auxiliary equipments (e.g. CIP, sampling devices and temperature systems) and processing units (e.g. reactors, filters, dryers). In the case of the reversible modifications, two additional tasks and one extra resource will be added to the model for each equipment modification needed. For these reasons, the model complexity for representing the problem using the RTN formulation rises. 3.3.3 Equipment Redesign Problem Using an Extended RTN Formulation An alternative approach to tackle this problem is to create two additional sets of binary variables to control when the processing unit needs to be modified in order to be suitable for the task execution, see constraints (3.4). HtRr MM NRR rt Kk s u utk rukutkruk Kk tkkrtkkrtrrt ' r k r k , '0 ,' ','' 0,,1, ' (3.4) To express the redesign of the processing units, we will use the binary variables kt M and kt M that will be equal to 1 if a modification (addition or removal respectively) occurs by means of the task k at the time interval t. The parameter λkru denotes the resources r that will be consumed (e.g., CIP and Reactor1) by an equipment modification required by a task k during the interval u, once the modification has started. The
3 Paper 1: Scheduling With Equipment Redesign In Multipurpose Batch Plants 49 parameter γkru denotes the reverse operation. It consumes the modified resource (e.g., Reactor1) and releases back the resources (e.g., CIP and Reactor1). The setup-time required for each modification is given by the parameter sk. Constraints (3.1) are modified and a third term is added to reflect this behavior. The utkkruM, expression enforces the modifications to be done by each task k, while the utk kruM, part denotes the removal of the auxiliary equipment from the processing units. The entire formulation also guarantees that the auxiliary equipment cannot be removed during the task execution and that the setup-times sk for modifying the processing units are respected. K’r is a subset of Kr that denotes the tasks that require redesign through the auxiliary resources r. More specifically, for the example given in Figure 3.2, we get the λReaction,Reactor1,0= λReaction,CIP,0=-1 and λReaction,Reactor1,1=1 and γReaction,Reactor1,0= -1 and γReaction,Reactor1,1= γReaction,CIP,1=1, see Figure 3.3. Figure 3.3 - Equipment redesign modeling with the alternative formulation. An additional constraint type is also needed for the correct assignment of the kt M and kt M binary variables. Since the equipment modification needs to be done before the task starts, constraints (3.5) guarantee that the auxiliary equipment has been previously installed. A is the subset of R which has auxiliary equipments needed to modify the processing units, and Kkr is the set of tasks that share the auxiliary equipment r. HtKkAr MMN r t Kk k ktk kr ,, 0 ' ,' ,', (3.5) When the binary variables Nkt are equal to 1, the right hand side of the constraints needs also to be 1, therefore having at that time instant a sum (involving the kt M and kt M variables) equal to 1. In practice, this means that the auxiliary equipment needs to be
50 Moniz, S. previously consumed by that task, or by other task that was executed in the past and that required the same auxiliary equipment in the same processing unit. With this formulation, there is no need to explicitly write the modification tasks. Instead two sets of additional binary variables are added to the model to express the addition and removal of auxiliary equipments to the processing units. The resources are still treated uniformly as they are in the original RTN formulation. Finally, for both formulations the objective function considered in this work is the minimization of the processing units modification costs k C and, k C as well as the operational costs k O , see equation (3.6). ' , min Kk Ht ktkktk Kk Ht tkk MCMCNO (3.6) 3.4 Case Study A real world problem from a chemical-pharmaceutical industry is solved using both presented formulations. The company performs the development and production of complex and fine chemicals to the pharmaceutical industry and biotechs. Its core business is the development and manufacture of new active pharmaceutical ingredients (APIs). In this business, the chemical industry is continuously challenged to respond within short time windows. On the one hand, the company needs to manage small batches of under development products and, on the other hand, needs to produce large batches of products in commercialization. Thus, operations flexibility is required to respond to this heterogeneous demand. This adds extra complexity to operations management especially to the planning and scheduling functions. The product object of our analysis goes through a sequence of tasks such as reaction, precipitation, crystallization, filtration, suspension, drying, quality control and packaging, which can be performed by the following resources: four reactors, one vessel, one filter, one dryer and a packaging room. The typical production time is around ten days. For illustration purposes, we will focus here on the multipurpose reactors since these are the most difficult resources to schedule, thus imposing the schedule of the remaining resources. Devices such as CIP and temperature systems (TS) are considered auxiliary equipments that can be used for the reactors redesign. The reaction,
3 Paper 1: Scheduling With Equipment Redesign In Multipurpose Batch Plants 51 precipitation, crystallization and suspension tasks can either be executed in reactors that do not require modifications but have small capacity, or can be executed in reactors with higher capacity but need to be modified at a certain cost. The product must be delivered at a date and quantity agreed with the customer. The objective is to get the optimal schedule for this product, minimizing the global operation and modification costs, while respecting the product delivery date. 3.4.1 Case Study Results The scheduling problem was solved for a time horizon of ten days. The time was discretized to one shift of eight hours, which resulted in a scheduling horizon of 30 time intervals (three shifts per day). We have considered an operational cost for each task depending on the processing unit that is used. Tasks that take place in low capacity reactors (capacity of 4,000 liters) have an operational cost of 70 m.u. (monetary units) and tasks that are performed in high capacity reactors (capacity of 10,000 liters) have a cost of 100 m.u.. In the course of the recipe production the tasks’ characteristics may change requiring the processing units redesign. For instance, precise temperature control is needed on Mixing and Precipitation tasks at Reactor1 and Reactor2, and a CIP system must be available in Reactor2 and Reactor3 when performing Reaction and Stirring tasks, respectively. The costs to modify a reactor with a CIP and TS are, respectively, 3 m.u. and 5 m.u.. The setup-time to modify the reactors with a CIP is 8 hours, while for a TS is 16 hours. The time required to remove those systems from the reactors in order to restore their original suitability is equal to 8 hours for both auxiliary equipments. One final product delivery of 2 tons is scheduled for the entire schedule horizon. The optimal schedule obtained for our example is depicted in Figure 3.4. This optimal solution has a value of 2074 m.u. Although this test instance is relatively simple, it allows us to understand the tradeoffs existing in the equipment redesign problem, between equipment’s suitability and the setup-time and costs to perform the equipments modifications. As can be seen in Figure 3.4, to respect the delivery date, equipment redesign tasks must take place. To perform the Reaction task in Reactor2 it is necessary to add a CIP, and to do the Precipitation task in this same reactor it is necessary to add a TS. These tasks can be seen at the time interval 0 and 5 of the schedule, respectively. The
52 Moniz, S. same reasoning applies to the Mixing task at Reactor1 and to the Stirring task at Reactor3. But note that no auxiliary equipments were defined for the Crystallization task at Reactor2 and for the Cooling task at Reactor3, that nevertheless were modified previously. In the end of this schedule Reactor2 had a TS installed, while Reactor3 had a CIP mounted. The MILP model using Pantelides formulation resulted in 1178 binary variables, 2202 continuous variables and 5085 constraints. Optimality could be proved in 3.15 seconds. The extended formulation has 775 binary variables, 1396 continuous variables, 2853 constraints and reached the optimal solution in 1.78 seconds. Figure 3.4 - Optimal production schedule with the equipment redesign plan. The model was implemented using ILOG/CPLEX version 12.2 on an Intel Core i7 at 2.67GHz with 4 GB of RAM. The extended formulation has less binary and continuous variables and a smaller number of constraints. When analyzing these results some disadvantages can be pointed to the original RTN formulation when using it in the redesign problem. It requires the representation of all modification tasks, which results in a complex network of processing tasks. One needs to create additional resources to manage the modified equipments, such as for instance: Reactor2_CIP and Reactor2_TS; these are two additional resources that define Reactor2 modified with a CIP and a TS, respectively. At the same time, since we are assuming the redesign process increases the processing units’ suitability such that more tasks can be performed, we must represent all new production alternatives. For instance, the Crystallization task does not require any change on Reactor2, nevertheless if this reactor is modified with a CIP or TS, becoming Reactor2_CIP, Reactor2_TS or Reactor2_CIPTS, we need to create several additional tasks to allow for the possibility of the task being executed in one of these resources. This kind of tasks needs to be created for all resources that can be modified, thus increasing the model size. These drawbacks REACTOR1 Mix RTS REACTOR2 ACIP RCIP REACTOR3 ACIP Stir. Coo Coo REACTOR4 VESSEL1 Hold FILTER1 DRYER1 Dry. Dry QUALITY C. PACK.ROOM Pck Pck 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 time Quality contr. Quality contr. Suspen. Suspen. Suspen. Filtration Filtration Filtration Filtration ATS ATS Reaction Precip. Crystallization Precip. Crystallization Legend: ATS - add temperature system RTS - remove temperature system ACIP - add CIP RCIP - remove CIP Reactor2_CIP Reactor2_TS Reactor3_CIP
3 Paper 1: Scheduling With Equipment Redesign In Multipurpose Batch Plants 53 are overcome in the proposed formulation by replacing the redesign tasks by kt M and kt M binary variables. The resulting model is smaller and it is easier to write since it does not require the representation of additional tasks. The redesign tasks are simply modeled by the kt M and kt M variables. For that reason, the resulting MILP has less binary and continuous variables. Nevertheless, the use of the kt M and kt M variables limits the equipment modification to one auxiliary equipment per task. The possibility of doing more than one modification per task would clearly be an interesting extension of our model. 3.5 Conclusions This paper has addressed a new type of problem that is being faced by the chemicalpharmaceutical industry using multipurpose batch plants, and performing simultaneous design and scheduling within a short period of time. The equipment redesign problem concerns the need to perform changes in the processing units such that their suitability is increased and therefore the units are capable to perform additional tasks. The redesign tasks can be seen as an additional way to increase flexibility of these plants. The redesign problem was formulated using the RTN formulation introduced by Pantelides and an extension to this formulation was also proposed in this work. While the RTN formulation requires the explicit representation of all production alternatives, taking into account the different states of the modified resources, the extension here developed deals with the equipment redesign decisions through two extra groups of binary variables. Preliminary computational results show that the proposed formulation has better performance. The formulation applicability was tested in an industrial example and the achieved results are promising but improvements should be further explored. Namely, it would be interesting to extend the formulation to deal with multiple modifications per task. Also more comprehensive tests need to be performed to further compare the two analyzed formulations.
54 Moniz, S. References Barbosa-Póvoa, A. P. (2007). A critical review on the design and retrofit of batch plants. Computers & Chemical Engineering, 31, 833-855. Castro, P. M., Barbosa-Póvoa, A. P., & Matos, H. A. (2003). Optimal periodic scheduling of batch plants using RTN-based discrete and continuous-time formulations: A case study approach. Industrial & engineering chemistry research, 42, 3346-3360. Mendez, C. A., Cerda, J., Grossmann, I. E., Harjunkoski, I., & Fahl, M. (2006). State-of- the-art review of optimization methods for short-term scheduling of batch processes. Computers & Chemical Engineering, 30, 913-946. Pantelides, C. C. (1994). Unified frameworks for optimal process planning and scheduling. In (pp. 253-274): Cache Publications New York.
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 55 4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants Samuel Moniz,a,c Ana Paula Barbosa-Póvoa,a Jorge Pinho de Sousab,c aCentro de Estudos de Gestão, Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisboa, Portugal bINESC TEC, 4200-465, Porto, Portugal cFaculdade de Engenharia da Universidade do Porto, 4200-465, Porto, Portugal This chapter was published in the journal Industrial & Engineering Chemistry Research. Abstract This work deals with the optimal short-term scheduling of general multipurpose batch plants, considering multiple operational characteristics such as sequence-dependent changeovers, temporary storage in the processing units, lots blending, and material flows traceability. A novel Mixed Integer Linear Programming (MILP) discrete-time formulation based on the State-Task Network (STN) is proposed, with new types of constraints for modeling changeovers and storage. We also propose some model extensions for addressing changeovers start; non-preemptive lots; lots start and sizes; alternative task-unit and task-unit-layout assignments. Computational tests have shown that the proposed model is more effective than a similar model based on the Resource-Task Network (RTN). Keywords: Multipurpose batch plants, scheduling, MILP models, lots modeling, materials traceability, Resource-Task Network.
56 Moniz, S. 4.1 Introduction In the past decades many optimization approaches have been developed to address supply chain, planning, and scheduling problems. These developments are being motivated by the need that industries have to reduce costs, increase revenues, and in general, to operate more efficiently. Consequently, the existing gap between theoretical optimization models and real world scheduling problems is gradually decreasing. This can be somehow justified by the increasing number of works published in the recent years that address practical optimization problems. According to Grossmann (2012), process industries are actively looking for optimization approaches that can be integrated in key decisionmaking processes so as to minimize costs and maximize income, while increasing the system responsiveness. In the particular case of the pharmaceutical industry, Varma et al. (2007) argue on the importance of developing models that integrate decision-making processes related to R&D, manufacturing, supply chain, and marketing. An extensive review on the modeling approaches for scheduling problems that tackle these issues is available in the paper written by Mendez et al. (2006), where the characteristics, advantages, and disadvantages of the models are deeply addressed. Although a significant progress has been observed in this field, new planning and scheduling models are still needed to tackle existing complexities that remain unsolved and to address new challenges that are becoming more relevant. In this paper, we propose a short-term scheduling model for multipurpose batch plants that addresses two critical modeling features of the discrete-time models: the sequence-dependent changeovers and the temporary storage in the processing units. We also discuss lots blending and traceability requirements in the production schedules. Particular emphasis is given to the performance of the proposed model. The consideration of such aspects was motivated by the resolution of a real case study within the chemical-pharmaceutical industry that led to the design of an illustrative problem instance, used to assess the developed models. The rest of the paper is structured as follows. In section 4.2, we describe an example to illustrate the impact of the definition of lots in the production schedule, and in section 4.3, a literature review is presented. The problem statement is introduced in section 4.4, and it is followed by the mathematical formulations in section 4.5. Then in section 4.6, we propose several models extensions, and in section 4.7, we compare the models performance. Finally, section 4.8 provides some concluding remarks.
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 57 4.2 Illustrative Example This example is motivated by a case study occurring in a real chemical-pharmaceutical industry where it is critical to consider some production features such as sequencedependent changeovers, temporary storage in the processing units, lots blending, and materials traceability. Consider the determination of a production schedule for three products: PA, PB, and PC. Task sequences and respective alternative units are depicted in Figure 4.1. Products PA and PB are produced from raw materials, while product PC is produced from PA and PB. The objective is to maximize the overall profit by determining a schedule that keeps record of the production lots and involves sequence-dependent changeovers between products and lots. A distinction is made between lots and task - batches. The former have to do with the amount of stable intermediary or final product produced through a known set of tasks, processing units and materials. The latter are related to the amount of material produced by each task that is limited by the capacity of the processing unit and is part of the production of a lot. In this way, lots traceability must be ensured for all products considered in the production schedule. We must be able to trace the proportions/quantities of the lots of PA and PB used to produce each lot of PC. This means that lots blending may occur and that the scheduling model must consider the amount of each lot used to produce subsequent lots. Raw materials and intermediaries must be also associated to lots. Generally, the scheduling model must do the record (i.e., allow for traceability) of the task-batching (materials splitting and mixing) and of the lots blending process.
64 Moniz, S. time relative to the start of the task processing time of task k production/consumption proportion of resource (intermediary or final product) r in task k at time relative to the start of task cost of storage of products and intermediaries r operational costs of task k missing deliveries cost for material r of lot l and delivery d changeover time in processing unit r from lot l to lot l’ minimum and maximum amount of lot l and product r at delivery d maximum resource availability of resource r (intermediary or final product) at time interval t resource r (intermediary or final product) availability of lot l in the beginning of the planning horizon resource r (intermediary or final product) availability of lot l at task k in the beginning of the planning horizon length of the scheduling horizon earliest time interval of lot l at delivery d latest time interval of lot l at delivery d value of product r minimum and maximum capacity of resource r (processing unit) for task k of lot l Variables batch size of task k and lot l at time interval t (continuous)(models M1 and M2) delivery of resource (final products) r of lot l at time interval t (continuous) (model M1) delivery of resource (final products) r of lot l at time interval t available from task k (continuous) (model M2) missing delivery d of lot l of product r (continuous) (models M1 and M2) binary variables that are equal to 1 if a changeover task occur on resource (processing units) r between lots l and l’(model M1)
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 65 binary variables that are equal to 1 if task k starts lot l at time interval t (models M1 and M2) allocation of resource r (processing unit) at the beginning of the scheduling horizon (continuous) (model M1) resource availability r at lot l and at time interval t (continuous) (model M1) resource availability (processing units) r at time interval t (continuous) (model M1) resource r (intermediaries or final products) availability, produced by task k of lot l at time interval t (continuous) (model M2) amount of resource r (intermediaries or final products) consumed from task k of lot l at time interval t (continuous) (model M2) amount of resource r ( intermediaries or final products) produced by task k of lot l at time interval t (continuous) (model M2) binary variables that are equal to 1 if task k is assigned to lot l (models M1 and M2) 4.5.2 RTN Model (M1) We use a RTN discrete-time formulation as basis for comparison with the model proposed in this paper. Model M1 extends the RTN model of Pantelides (1994) by considering the temporary storage in the processing units constraints defined by Kondili et al. (1993), the changeover variables proposed by Castro, Novais, et al. (2008) and the multiproduct delivery extensions developed by Wassick and Ferrio (2011). Moreover, in section 4.6, we also propose some extensions to address the start of changeovers tasks, non-preemptive lots, lots start and sizes, task-unit-layout assignment, and alternative taskunit assignment. We assume a scheduling horizon having a length equal to T and divided into time intervals of fixed length. The model considers the following decision variables that are defined for each time interval . a) The assignment of tasks to processing units decisions is done by the binary variables that are equal to 1 if task k starts lot l at time interval t. b) The task batch size decisions are done through the continuous variables that define the batch size of task k and lot l at time interval t.
66 Moniz, S. c) Changeover tasks are defined by the binary variables that are equal to 1 if a changeover task occurs on resource (processing unit) r between lots l and l’ at time interval t. d) Resources availability is given by the continuous variables that define the resource availability r at lot l and at time interval t. e) Deliveries are modeled by the continuous variables that define the delivery of resource (final products) r of lot l at time interval t. If the minimum demand is not fulfilled, then the continuous variables will have a value equal to the amount that was not delivered. variables are used to model the initial allocation of processing units to lots. In the cases where changeovers are not required, we use the continuous variables that define the resource availability (processing units) r at time interval t. Model M1 considers the processing units with changeovers constraints (4.A1) and the initial assignment of processing units to lots constraints (4.A2), or alternatively, the processing units balance without changeovers constraints (4.A3); materials balance constraints (4.A4); minimum and maximum materials availability constraints (4.A5); minimum and maximum task batch size constraints (4.A6); temporary storage in the processing units constraints (4.A7); demand constraints (4.A8); delivery constraints (4.A9) and (4.A10); tasks started must end within the time horizon constraints (4.A11), and variables domain constraints (4.A12). Model M1 formulation is given in the appendix. 4.5.3 Proposed Model (M2) Discrete-time models efficiently deal with resources balances, multiple delivery dates, and inventory costs. However, the model size significantly increases and the computational performance is seriously affected when modeling variable processing times, temporary storage in the processing units, and sequence-dependent changeovers. The storage in the processing units is commonly used in many industrial processes due to the multipurpose characteristics of the units. In these situations, intermediaries can be stored temporarily inside the processing units that have produced them. In practice,
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 67 this type of storage may be required for a variety of reasons. Some of the possible cases are: a) the capacity of the processing units that follow in the process may be low when compared with the amount of material being stored; b) the lot may need to wait for quality approval; c) scheduling delays may occur, forcing intermediaries to wait temporally in the processing units; or d) maintenance tasks may be required, also imposing scheduling delays. Changeovers cannot be neglected since they often occupy processing units during long time periods. We may have unit and sequence-dependent changeovers, the latter being usually more significant in terms of time. Sequence-dependent changeovers can be modeled in the original RTN formulation through the creation of changeover tasks, as done in model M1, or if it is not relevant to determine the exact time of the changeover, we can use changeover constraints. In order to avoid increasing the number of binary variables of the model, as a result of modeling temporary storage and changeovers, we have developed a new discrete-time formulation. The developed model also addresses lots blending and traceability features. This model explicitly considers the inventory carried out by each production task. Following this approach, we can model the temporary storage through a set of constraints instead of using additional binary variables as done in model M1. Regarding sequencedependent changeovers, we have followed a similar strategy. Changeover variables are replaced by a set of constraints that inhibit the start of the production tasks for a time period imposed by the changeover time of the tasks sequence. Figure 4.3 shows the conceptual differences between models M1 and M2 for the resource availability variables. While in M1 all resources are treated uniformly through the continuous variables , in M2 the continuous variables define the amount of resource r (intermediaries or final products) available at time interval t and produced by task k of lot l.
68 Moniz, S. Figure 4.3 – Resource availability variables for models M1 and M2. The relations between products, lots, tasks, and units sets are illustrated in Figure 4.4. We assume that we have a set of products P; in the example we have , associated with recipes that describe the tasks sequence, the task-unit suitability, the materials needs, and the storage policies. A recipe may involve the production of one or more products. In the example shown in Figure 4.4, products PA1 and PA2 are subproducts of a unique recipe. Each product has at least one lot belonging to set L. Production tasks are associated to processing units and belong to set K and may execute any lot of the corresponding product. Finally, processing units belong to set E and are associated to different tasks, since they operate in a multipurpose way. Figure 4.4 – Relation between products, lots, tasks, and units sets. Model M2 is defined by task-unit assignment/sequencing constraints (4.1); materials produced and consumed, constraints (4.2) and (4.3) respectively; products blending constraints (4.4), materials balance constraints (4.5), minimum and maximum materials availability constraints (4.6); minimum and maximum task batch size constraints (4.7); demand constraints (4.8); delivery constraints (4.9) and (4.10); temporary storage in the processing units without or with changeovers, constraints (4.11)
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 69 and (4.12) respectively; tasks started must end in the time horizon constraints (4.13); and variables domain constraints (4.14). Constraints ∑∑ ∑ (4.1) ∑( ) (4.2) ∑ ∑∑( ) (4.3) ∑ ∑ ∑∑∑( ) (4.4) ( ) (4.5) ∑∑ (4.6) (4.7) ∑ ∑ { } (4.8) (4.9) (4.10) ∑∑ ∑ ∑ ∑( ) (4.11) ∑ ∑ ∑ ∑ ( ) (4.12)
70 Moniz, S. ∑ (4.13) (4.14) Constraints (4.1) express the assignment of tasks to processing units and state that at most one task k of lot l can start during the time period corresponding to the task processing time. This is implemented through a backward time aggregation for over the binary variables . Since constraints (4.1) are similar to the STN constraints for handling task-unit allocation, M2 can be classified as a STN model. Materials production and consumption are defined separately to address lots blending. Constraints (4.2) define the amount of resource r (intermediaries or final products) produced by task k of lot l at time interval t. Parameters give the production proportion of the batch size of task k for resource r. Constraints (4.3) give the amount of resource r consumed by task k of lot l at time interval t at the proportion of the batch size . Since resource r of lot l can be available from any tasks that have produced r, the summation over in the left-hand side of constraints (4.3) is required. Constraints (4.4) define the special case of lots blending. In many situations, it is common to produce several lots of stable intermediaries that are used to produce other lots of final products. In these cases, blending of lots is allowed but it is necessary to ensure traceability, which is done by constraints (4.4). These constraints are defined for the set of intermediaries/products whose lots can be blended. Constraints (4.5) express the material r balance for each task k and lot l by considering the material in the previous time interval, the amount produced and consumed, and the material deliveries. Constraints (4.6) define the minimum and maximum materials/lots availability allowed for each time interval. Constraints (4.7) impose the task-batch size limits.
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 71 Constraints (4.8) define multiple product/lot deliveries for a given delivery time window . The amount of resource r of lot l at delivery d is limited by the minimum and maximum quantities. Production requirements are modeled as “soft-constraints” so as to avoid infeasible solutions. Thus, missing deliveries are expressed by the continuous variables and are penalized in the objective function through coefficient . Constraints (4.9) and (4.10) express the fact that delivery variables cannot take values for the time intervals out of the delivery time window and for other resources than final products. Constraints (4.11) define the temporary storage in the processing units and state that if the binary variable is equal to 1, then must be equal to 0. In other words, no task k of any lot l can start in the processing unit r if unit r is temporarily storing material from any other task. Note that the second term of the left-hand side only occurs for tasks that produce intermediaries subject to the Non-Intermediate Storage (NIS) policy, defined by the set . Constraints (4.12) extend constraints (4.11) to account for sequence-dependent changeovers. In this way, tasks must respect the sequence-dependent changeover time defined for each unit and lot by the parameter and for possible storage time in the processing units. Therefore, if task k of lot l occurs at time t, then the first term of the constraint is equal to one, and the second and third terms are forced to be zero for all tasks and belonging to lots and for the time intervals corresponding to for the production tasks and to for the temporary storage. Constraints (4.13) define that tasks must finish in the time horizon of interest and constraints (4.14) state the non-negativity of the continuous variables resource availability, production and consumption, batch size, and missing delivery; the nonpositivity of the delivery variables; and the integrality of the assignment/sequencing variables. 4.5.4 Objective Function The objective is to maximize the economical result of the global operation (see expression (4.15)) by taking into account the value of the products (VP), the storage costs (SC), the operational costs (OC), and the missing deliveries costs (MC). Note that model M2 cannot take into account changeover costs since there are no changeover variables,
72 Moniz, S. and in order to make a fair comparison between models M1 and M2, changeover costs were not considered in the objective function. Objective Function (4.15) ∑∑∑∑ (4.15a) ∑ ∑ ∑ ∑( ) (4.15b) ∑ ∑∑ ∑ (4.15c) ∑∑∑( ) (4.15d) ∑∑∑( ) (4.15e) The first term of the objective function defines the value of the delivered products, see expression (4.15a). The second term determines the storage costs, which are calculated differently for models M1 and M2. So, for model M1 storage costs are associated to materials stored under FIS and UIS policies that can be expressed by the continuous variables and by materials temporarily held by the processing units, see expression (4.15b). For model M2, storage costs are determined simply by the continuous variables , since the availability of the materials is only modeled through these variables, see expression (4.15c). The fourth term of the objective function determines the operational costs, see expression (4.15d) and the fifth term is a penalty cost associated with the missing deliveries, see expression (4.15e).
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 73 4.6 Models Extensions We have also investigated some extensions of these models to address the start of changeovers tasks, non-preemptive lots, lots start and sizes, task-unit-layout assignment, and alternative task-unit assignment. Changeovers Start (M1) In model M1, as stated by constraints (4.A1), changeover tasks may occur in any time interval between the start of the tasks associated to lots and . However, a common industrial practice is to perform the changeover as soon as the task finishes. We illustrate this situation in Figure 4.5, with a) showing the time range where the changeover tasks may occur if constraints (4.A1) are used. However, the desirable scheduling solution is the one presented in b), since the changeover occurs immediately after the storage tasks. a) b) Figure 4.5 – Start of production, storage, and changeover tasks (Model M1). Constraints (4.16) force changeovers to occur immediately after a production or storage task. Another relevant point is that constraints (4.16) help in reducing the model degeneracy. ∑ ∑ (4.16) Non - Preemptive lots (M1) It is also a common practice in many chemical batch plants that lots once started in one unit cannot be interrupted to allow the production of a different lot. Constraints (4.17) define that if a changeover from lot to lot occurs in unit , then no changeover can occur in that unit from to .
80 Moniz, S. Table 4.4 – Process 3 solution statistics (time grid is 5 hours). Model/process/ horizon/grid Int. variables/ Cont. variables/ Constraints Nodes Iterations LP relaxation Gap (%) Objective CPU time (sec) M1/P3/120/5 1550/1720/2841 17,969 1,413,603 5,387.3 0.00 5,066.0 18 M2/P3/120/5 575/2879/5086 5,893 297,682 5,392.2 0.00 5,066.0 5 M1/P3/240/5 3038/3355/5541 330,548 40,797,510 10,774.7 0.00 10,184.8 677 M2/P3/240/5 1127/5642/9946 199,201 21,796,427 10,784.5 0.00 10,184.8 476 Table 4.5 – Process 3 solution statistics (time grid is 5 hours and stopping criterion is the integrality gap of 5%). Model/process/ horizon/grid Nodes Iterations Gap (%) Objective CPU time (sec) M1/P3/240/5 18,539 2,565,141 4.30 10,000.6 58 M2/P3/240/5 4,771 446,278 5.00 9,966.8 10 Table 4.6 – Process 3 solution statistics (time grid is 1 hour and stopping criterion is the time limit of 3,600 seconds). Model/process/ horizon/grid Int. variables/ Cont. variables/ Constraints Nodes Iterations LP relaxation Gap (%) Objective CPU time (sec) M1/P3/120/1 7502/8248/13653 178,586 72,707,311 5,317.2 13.34 4,587.7 3,600 M2/P3/120/1 2783/13919/30346 168,092 25,231,890 5,321.2 9.09 4,768.5 3,600 M1/P3/240/1 14942/16411/27165 56,025 26,545,793 10,634.3 11.18 9,457.9 3,600 M2/P3/240/1 5543/27722/60418 59,941 17,039,145 10,642.4 5.80 9,920.5 3,600 Table 4.7 – Process 3 solution statistics (time grid is 1 hour and stopping criterion is the integrality gap of 5%). Model/process/ horizon/grid Nodes Iterations Gap (%) Objective CPU time (sec) M1/P3/120/1 578,271 296,170,781 7.84 4,795.61) 14,400 M2/P3/120/1 566,936 131,212,184 4.78 4,912.4 14,400 M1/P3/240/1 341,515 136,133,027 10.24 9,496.71) 14,400 M2/P3/240/1 129,924 44,592,826 4.98 9,978.7 7,125 1) Stopping criterion is the time limit of 14,400 seconds. 4.7.4 Process 4 We now consider the network defined by the three processes depicted in Figure 4.1. Products PA and PB are produced from raw materials, while Product PC is produced
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 81 from PA and PB. Moreover, we are given the unit’s physical layout shown in Figure 4.6. This process is used to test the performance of both models and also to address new modeling features only possible to be treated with model M2 with the extensions proposed in section 4.6. First, we test Process 4 assuming sequence-dependent changeovers and single lots without blending. Since model M1 cannot address lots blending and traceability features, we slightly change the recipe of product PC by imposing that the materials required to produce PC are raw materials and not the products PA and PB as defined in Figure 4.1. The numerical results for this scenario are presented in Table 4.8 and Table 4.9. Second, we define multiple lots and assume that lots blending may happen. Thus, here only model M2 is tested. We analyze lots traceability, sequence-dependent changeovers, temporary storage in the processing units, task-unit-layout, and alternative task-unit assignments. The numerical results for this case are shown in Table 4.12. Single Lots Without Blending As it can be seen in Table 4.8 and Table 4.9, the results obtained by model M2 are superior to the results retrieved by model M1. For example, in the 48 hours horizon instance, the solution time of M2 is 651 seconds, while M1 required 1,996 seconds. In the 120 and 240 hours horizons, none of models could prove optimality for the CPU time limit of 3,600 seconds. Nevertheless, the solutions obtained by M2 are always better, achieving integrality gaps that are less than 5% and that are less than half of the gaps obtained by M1. Table 4.8 – Process 4 solution statistics (stopping criterion is the time limit of 3,600 seconds). Model/proce ss/horizon/gr id Int. variables/cont. variables/ constraints Nodes Iterations LP relaxation Gap (%) Objective CPU time (sec) M1/P4/24/1 1750/1771/3103 9,259 607,242 515,216.8 0.01 511,167.8 9 M2/P4/24/1 500/2704/6331 1,945 84,077 515,295.8 0.01 511,167.8 6 M1/P4/48/1 3430/3454/6064 315,067 91,541,309 1,030,433.6 0.01 1,022,336.5 1,996 M2/P4/48/1 980/5299/12388 72,764 5,372,800 1,030,591.7 0.01 1,022,336.5 651 M1/P4/120/1 8470/8497/15025 53,326 18,026,661 2,545,650.8 4.25 2,430,807.0 3,600 M2/P4/120/1 2420/13078/30637 89,081 13,183,238 2,548,144.6 1.27 2,499,456.8 3,600 M1/P4/240/1 16870/16900/29986 20,785 17,080,636 5,008,652.8 8.96 4,572,396.1 3,600 M2/P4/240/1 4820/26041/61078 46,029 12,090,984 5,015,842.1 3.52 4,809,863.8 3,600
82 Moniz, S. With an integrality gap of 5% as stopping criterion, model M2 also performed better than M1, as it can be seen in Table 4.9. The solution times of M2 are considerably smaller than the solution times required by M1 (except for the 24 hours instance). In the 120 hours horizon, M1 required 2,554 seconds and M2 required 51 seconds, and in the 240 hours instance M1 needed 10,370 seconds, while M2 just needed 267 seconds. Table 4.9 – Process 4 solution statistics (stopping criterion is the integrality gap of 5%). Model/process /horizon/grid Nodes Iterations Gap (%) Objective CPU time (sec) M1/P4/24/1 76 26,378 0.52 511,067.8 3 M2/P4/24/1 287 24,182 0.59 511,075.8 6 M1/P4/48/1 12,359 3,340,246 4.14 985,409.0 91 M2/P4/48/1 2,055 150,354 3.71 991,374.5 14 M1/P4/120/1 53,308 18,026,661 4.39 2,427,689.0 2,554 M2/P4/120/1 1,762 269,770 3.99 2,441,242.8 51 M1/P4/240/1 55,073 43,710,694 4.27 4,775,346.8 10,370 M2/P4/240/1 6,889 931,290 3.90 4,806,198.8 267 The performance of the extensions, on changeovers start and non-preemptive lots, expressed by constraints (4.16) and (4.17), respectively, is assessed by the numerical results of Table 4.10. Constraints (4.17) impose that lots cannot be interrupted to produce other lots, thus limiting the profit of the schedule when compared with the profit values shown in Table 4.8. The computational performance of the model M1.1 tends to decrease with the increase of the time horizon, as can be seen by the large integrality gaps of the 120 and 240 hours instances. Table 4.10 – Process 4 solution statistics, assuming changeovers start and non-preemptive lots constraints. Model/process/ horizon/grid Constraints Gap (%) Objective CPU time (sec) M1.1/P4/24/1 3,545 0.00 501,290.0 10 M1.1/P4/48/1 6,914 0.571) 998,965.5 3,600 M1.1/P4/120/1 17,099 23.021) 2,060,248.0 3,600 M1.1/P4/240/1 34,100 34.941) 3,692,146.0 3,600 1) Stopping criterion is the time limit of 3,600 seconds.
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 83 On the Changeover Costs In order to reflect the changeover costs on the schedule solutions, we have added expression (4.26) in the objective function of model M1. The cost structures of the resultant model M1.2 and of model M2 are illustrated in Figure 4.7. ∑∑∑∑ (4.26) It can be seen that in the 24 hours instance both models had storage costs equal to 3,032 m.u. In the 48 hours storage costs increased to 6,463 in model M2, while model M1.2 storage costs (SC) increased to 6,807. Regarding the operational costs (OP), M2 had always inferior costs than M1.2. It is important to note that, when changeover costs (GC) are considered in the objective function the tradeoffs between task-unit allocation, storage and changeover costs pass to exist. Figure 4.7 – Cost structure for models M1.2 and M2 (SC – storage costs, OC – operational costs, GC – changeover costs). The computational results of model M1.2 are shown in Table 4.11. As expected, the profit obtained by M1.2 is always inferior to the profit obtained by models M1 and M2 (see Table 4.8) due to the changeover costs. Model M1.2 demonstrated worse performance than M1, particularly in the larger instances. For example, in the 240 hours instance, M1.2 had 28.23% of integrality gap, in contrast to M1 that had 8.96%.
84 Moniz, S. Table 4.11 – Process 4 solution statistics, assuming changeovers costs. Model/process/ horizon/grid Nodes Iterations LP relaxation Gap (%) Objective CPU time (sec) M1.2/P4/24/1 4,291 476,489 515,200.6 0.01 510,167.8 8 M1.2/P4/48/1 300,486 130,181,404 1,030,401.2 0.11 1,019,193.5 3,600 M1.2/P4/120/1 52,633 35,118,731 2,545,454.9 5.14 2,408,360.0 3,600 M1.2/P4/240/1 12,733 12,292,104 5,007,848.3 28.23 3,884,643.0 3,600 Looking into the scheduling solutions (see Figure 4.8), we can analyze how changeover costs affect the task-unit assignment. The schedule solution of M1.2 has a total of 3 changeovers, resulting into a cost of 800 m.u. and an idle time of 11 hours. Although M2 does not model changeover tasks, costs and time of the changeovers can be derived by analyzing the schedule solution. In this way, the schedule solution of M2 has a total of 7 changeovers that result into a cost of 1800 m.u. and an idle time of 25 hours. Processing units are used less efficiently in M2, which concerns to the total changeover time and costs. Nevertheless, the profit of M2 is 99.8% of M1.2, discounting the changeover cost of 1800 m.u. to the profit obtained by M2. Thus, although M1.2 and M2 schedules are slightly different, they deliver the same amount of products and have a similar profit. In practice, since changeover constraints lead to a more efficient model, they can be used instead of changeover tasks if: a) the exact time of the changeover is not relevant; b) utilities/materials consumption during changeovers can be disregarded; and c) changeover costs are not significant.
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 85 a) b) Figure 4.8 – Scheduling for 24 hours instance: a) model M1.2; b) model M2. (CO = changeover) Multiple Lots with Blending Now, we use the processes as shown in Figure 4.1 to obtain schedules with multiple lots per product and with blending operations. We considered the production of two lots of PA, two lots of PB, and a single lot of PC, in a time horizon of 48 hours. The aim is to define production schedules in which the traceability of lots is kept during the entire horizon and the tasks-units assignment is done by assuming the physical layout limitations shown in Figure 4.6. For that we consider the extended model M2.1 by adding constraints (4.22) to (4.25) to model M2. Moreover, we also include the lot sizes extensions in model M2.2 that is defined by constraints (4.19) to (4.25). Figure 4.9 shows the schedule for a 48 hours horizon, having an objective value of 340,442.2 m.u., relative to a delivery of 7,000 kg of product PC. Lot L1 of product PA starts first in units U2 and F1, while lot L2 of the same product is processed in units U4 and F2. We can see that the physical layout limitations expressed in Figure 4.6 were followed by both lots. Regarding the production of PB, lots L1 and L2 were produced in units U3, U3, and F2. Although model M2.1 does not explicitly give the start of the temporary storage tasks in the processing units and the sequence-dependent changeovers, those can be directly deduced from and variables. Thus, it can be seen that intermediary PA_S3 is temporary stored in unit U3 in all occurrences of TASK3 of product PA. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 U1 NIS NIS NIS U2 PC(T1,2500) PA(T3,862) NIS PA(T3,1200) NIS U3 PC(T1,1666) U4 PC(T2,2500) PC(T2,1666) U5 PB(T2,2000) PB(T2,2000) PB(T2,2000) PB(T2,2000) PB(T2,2000) F1 F2 D1 CO PA(T2,2875) PA(T2,4000) PA(T1,4000) CO CO PC(T3,5000) PC(T3,3333) PC(T4,3000) PC(T4,1500) PC(T4,3000) PB(T1,2000) PB(T1,2000) PB(T1,2000) PB(T3,2000) PB(T3,2000) PB(T3,2000) PB(T1,2000) PB(T1,2000) PB(T3,2000) PB(T3,2000) PA(T1,2875) Time intervals 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 U1 NIS NIS NIS U2 PC(T1,2500) U3 PC(T1,1666) U4 PC(T2,2500) PB(T2,2000) PA(T3,1200) NIS PA(T3,862) NIS U5 PB(T2,2000) PB(T2,2000) PC(T2,1666) PB(T2,2000) PB(T2,2000) F1 F2 D1 PB(T3,2000) PB(T3,2000) PB(T3,2000) PC(T4,3000) PC(T4,1500) PA(T2,4000) PA(T2,2875) PC(T4,3000) PB(T3,2000) PB(T3,2000) PC(T3,5000) PC(T3,3333) PA(T1,4000) PA(T1,2875) PB(T1,2000) PB(T1,2000) PB(T1,2000) PB(T1,2000) PB(T1,2000) CO CO CO CO CO CO CO Time intervals
86 Moniz, S. Concerning the sequence-dependent changeovers, we can see changeovers between lots of different products and changeovers between lots of the same product. This latter case happens in unit U3 at the time interval 9. Finally, lots traceability is ensured for all products. The amounts produced of PA and PB of each lot are consumed by product PC and are directly traceable. For example, at the time interval 27, the amount of lot L1 of product PB is 2,500 kg and of L2 is 833.3 kg, and because the amount of L1 of PB is not sufficient to feed the batch of TASK2 of PC, it is necessary to blend lots. This situation can be seen in Figure 4.10, at time 28, where lots L1 and L2 of PB are consumed simultaneously by TASK2 of product PC. Figure 4.9 – Scheduling for instance M2.1/P4/48/11). Figure 4.10 – Inventory for lots of products PB and PC. Table 4.12 shows the computational results for models M2.1 and M2.2. M2.1 obtained a profit equal to 340,442.2 after 3,600 seconds. But assuming an integrality gap of 5%, a solution was retrieved in just 31 seconds. Model M2.2 takes into account the lot sizes constraints (4.19) and (4.20), and it can be seen that M2.2 and M2.1 performances are comparable for the tested instance. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 U1 U2 PA(T3,L1) NIS PC(T1,L1) U3 U4 PB(T2,L1) PB(T2,L1) PB(T2,L2) PB(T2,L2) U5 PC(T2,L1) F1 F2 D1 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 U1 U2 PC(T1,L1) PC(T1,L1) U3 PA(T1,L2) PA(T3,L2) NIS PA(T3,L2) NIS U4 U5 PC(T2,L1) PC(T2,L1) F1 F2 D1 PC(T4,L1) PC(T4,L1) PC(T4,L1) PC(T3,L1) PC_L1 PC(T3,L1) PC(T3,L1) PA(T1,L1) PA(T2,L1) PA(T1,L2) PA(T2,L2) PA(T1,L2) PA(T2,L2) PB(T1,L1) PB(T1,L1) PB(T3,L1) PB(T3,L1) PB(T1,L2) PB(T1,L2) PB(T3,L2) PB(T3,L2) CO CO CO CO CO CO CO Time intervals Time intervals
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 87 Table 4.12 – Process 4 solution statistics. Model/process/ horizon/grid Int. variables/cont. variables/ constraints Nodes Iterations Gap (%) Objective CPU time (sec) M2.1/P4/48/11) 1650/8875/30554 36,169 31,493,851 0.61 340,442.2 3,600 M2.1/P4/48/12) 1650/8875/30554 935 233,990 2.36 338,356.4 31 M2.2/P4/48/11) 1650/8875/30580 57,805 34,439,408 0.14 338,787.2 3,600 M2.2/P4/48/12) 1650/8875/30580 236 181,674 4.13 332,480.2 34 1) Stopping criterion is the time limit of 3,600 seconds; 2) Stopping criterion is the integrality gap of 5%. 4.8 Conclusions In this work, we propose two general discrete-time scheduling models for multipurpose batch plants (models M1 and M2). We first use a RTN discrete-time formulation (M1) as basis for comparison with a more innovative model (M2). The first model (Model M1) extends the RTN model of Pantelides (1994) by considering explicitly and in an integrated way scheduling features already treated in the literature, such as temporary storage in the processing units (Kondili et al., 1993), sequence-dependent changeovers (Castro, Novais, et al., 2008), and multiproduct delivery extensions (Wassick & Ferrio, 2011). This model is then generalized by considering the start of changeovers tasks, nonpreemptive lots, as well as alternative task-unit and task-unit-layout assignments. Model M2, based on STN, can be viewed as an innovative contribution in the area, explicitly modeling the inventory carried out in each task by adding a task index to the resource availability variables. This approach allows the development of new types of constraints for modeling sequence-dependent changeovers and temporary storage in the processing units. Moreover, we address lots blending, lots start, and alternative task-unit and task-unit-layout assignments. Lots blending and traceability are two requirements introduced in this work that are common in the chemical and biochemical-pharmaceutical industries, considered here with the purpose of keeping record of the blending processes during the production. We compare the effectiveness of both models using three benchmark problems from the literature and one scheduling problem proposed in this paper. Experimental results have shown that model M2 is computationally more effective for the instances tested. In the larger or more complicated instances, both models had difficulties in
88 Moniz, S. proving optimality. However, model M2 always reached a solution within 5% of the integrality gap, except for the 240 hours scheduling horizon of Kallrath (2002) network. Model M1 had worse performance in most of the cases. Two critical modeling features of the discrete-time formulations (sequencedependent changeovers and temporary storage in the processing units) have been addressed, the proposed modeling alternative being computationally more efficient. An interesting and challenging issue for future research is the modeling of variable processing times with discrete-time formulations. Appendix - RTN Model (M1) ( ) ∑∑( ) ∑ ∑ ∑( ) (4.A1) ∑ (4.A2) ( ) ∑∑( ) (4.A3) ( ) ∑∑( ) (4.A4) ∑ (4.A5) (4.A6) ∑ (4.A7)
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 89 ∑ { } (4.A8) (4.A9) (4.A10) ∑ (4.A11) (4.A12) Constraints (4.A1) express the availability of the processing units for each lot and time interval. So the unit availability is equal to the availability in the previous time interval plus the availability resulting from the unit’s allocation/release to/from the production or changeover tasks at time interval t. For the production tasks, this is done through coefficient that defines the unit r allocation/release done by task k at time relative to the start of the task. And for changeover tasks, we have introduced the changeover coefficient that defines the allocation/release of unit r from lot l’ to l’’, at the current lot l and at time relative to the start of the changeover task. The changeover time is given by parameter . Constraints (4.A2) do the initial assignment of processing units to lots. A simplified version of constraints (4.A1) can be written if changeovers between lots are not required; see constraints (4.A3). In these cases, we just have the resource balance for the production tasks and the index l of the resource availability variables is removed. Because constraints (4.A1) or (4.A3) ensure that no processing units are eliminated or created, we do not need to define lower or upper bounds for this type of resources. Note that, or variables do not need to be integer variables, since the resource balance equation ensures that these variables take always integer values.
96 Moniz, S. Table 4.S6 – Process 2: materials initial, minimum and maximum availability, inventory costs and storage policy. Resources Init. availability [kg] Max. availability [kg] Inventory cost [m.u.] Storage policy STATE1 1,000 1,000 0 UIS STATE2 10 30 0.1 FIS STATE3 10 30 0.02 FIS STATE4 0 15 0.02 FIS STATE5 10 30 0.01 FIS STATE6 0 0 0.2 NIS STATE7 0 10 0.05 FIS STATE8 0 10 0.05 FIS STATE9 0 10 0.05 FIS STATE10 0 0 0.2 NIS STATE11 0 0 0.2 NIS STATE12 0 10 0.01 FIS STATE13 0 0 0.2 NIS STATE14 0 10 0.01 FIS P1 0 1,000 0.09 UIS P2 0 1,000 0.09 UIS P3 0 1,000 0.25 UIS P4 0 1,000 0.25 UIS P5 0 1,000 0.25 UIS Table 4.S7 – Process 3: products demand, delivery dates, price and missing delivery costs. Network Product Lot product Earliest delivery date Latest delivery date Minimum lot size [kg] Maximum lot size [kg] Price [m.u./kg] Miss deliveries costs [m.u./kg] PA PA PA_L1 112 120 40 80 30 60 PB PB PB_L1 112 120 60 90 10 20 PC PC PC_L1 112 120 20 55 45 90 PA PA PA_L1 232 240 40 80 30 60 PB PB PB_L1 232 240 60 90 10 20 PC PC PC_L1 232 240 20 55 45 90
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 97 Table 4.8 – Process 3: characteristics of processing units. Unit Min. volume Max. volume Unit operating costs [m.u.] R1 4 40 4 R2A 2 10 1 R2B 2 10 1 R3 3 30 3 R4 2 15 1.5 R5 4 40 4 R6 2 15 1.5 R7 4 50 5 Table 4.S9 – Process 3: materials initial, minimum and maximum availability, inventory costs and storage policy. Resources Init. availability [kg] Max. availability [kg] Inventory cost [m.u.] Storage policy PA_S1 1,000 1,000 0 UIS PA_S2 0 0 0.2 NIS PA_S3 0 1,000 0.01 UIS PA_S4 0 50 0.01 FIS PA_S5 0 0 0 ZW PA 0 1,000 0.3 UIS PB_S1 1,000 1,000 0 UIS PB_S2 0 0 0 ZW PB_S3 0 50 0.05 FIS PB 0 1,000 0.2 UIS PC_S1 1,000 1,000 0 UIS PC_S2 0 0 0 ZW PC_S3 0 100 0.04 FIS PC_S4 0 1,000 0.02 UIS PC_S5 0 0 0.3 NIS PC 0 1,000 0.25 UIS
98 Moniz, S. Table 4.S10 – Process 4: products demand, delivery dates, price and missing delivery costs (single lot without blending) Network Product Lot product Earliest delivery date Latest delivery date Minimum lot size [kg] Maximum lot size [kg] Price [m.u./kg] Miss deliveries costs [m.u./kg] PA PA PA_L1 16 24 3,000 5,500 15 30 PB PB PB_L1 16 24 2,500 7,000 20 40 PC PC PC_L1 16 24 4,500 6,000 50 100 PA PA PA_L1 40 48 3,000 5,500 15 30 PB PB PB_L1 40 48 2,500 7,000 20 40 PC PC PC_L1 40 48 4,500 6,000 50 100 PA PA PA_L1 112 120 9,000 16,500 15 30 PB PB PB_L1 112 120 7,500 21,000 20 40 PC PC PC_L1 112 120 13,500 18,000 50 100 PA PA PA_L1 232 240 15,000 27,500 15 30 PB PB PB_L1 232 240 12,500 35,000 20 40 PC PC PC_L1 232 240 22,500 30,000 50 100 Table 4.S11 – Process 4: products demand, delivery dates, price and miss deliveries costs (multiple lots with blending) Network Product Lot product Earliest delivery date Latest delivery date Minimum lot size [kg] Maximum lot size [kg] Price [m.u./kg] Miss deliveries costs [m.u./kg] PA PA PA_L1 40 48 2,000 2,500 15 30 PA PA PA_L2 40 48 2,000 2,500 15 30 PB PB PB_L1 40 48 2,000 2,500 20 40 PB PB PB_L2 40 48 2,000 2,500 20 40 PC PC PC_L1 40 48 6,000 7,000 50 100 Table 4.S12 – Process 4: characteristics of processing units. Unit Min. volume Max. volume Unit operating costs [m.u.] U1 50 5,000 500 U2 40 4,000 400 U3 20 2,000 200 U4 30 3,000 300 U5 20 2,000 200 F1 40 4,000 400 F2 20 2,000 200 D1 30 3,000 300
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 99 Table 4.S13 – Process 4: materials initial, minimum and maximum availability, inventory costs and storage policy. Resources Initial availability [kg] Max. availability [kg] Inventory cost [m.u.] Storage policy PA_S1 0 0 0.2 NIS PA_S2 0 0 0.4 NIS PA_S3 0 0 0.1 NIS PA 0 10,000 0.05 FIS PB_S1 0 5,000 0.3 FIS PB_S2 0 0 0.1 NIS PB 0 10,000 0.03 FIS PC_S1 0 0 0 ZW PC_S2 0 0 0 ZW PC_S3 0 0 0.3 NIS PC 0 10,000 0.1 FIS Table 4.S14 – Process 4: changeovers time between products and units. Unit PA PB PC PA cr+1 cr+2 cr+2 PB cr+2 cr+1 cr+2 PC cr+2 cr+2 cr+1 Table 4.S15 – Process 4: changeovers time per unit. Unit cr U1 3 U2 3 U3 1 U4 2 U5 1 F1 3 F2 1 D1 3
100 Moniz, S. Table 4.S16 – Process 4: costs structure. Model/process/ horizon/grid VP [m.u.] SC [m.u.] OC [m.u.] MC [m.u.] GC [m.u.] Profit [m.u.] M1.2/P4/24/1 522500 3,032 8,500 0.0 800.00 510,167.8 M2/P4/24/1 522500 3,032 8,300 0.0 0.00 511,167.8 M1.2/P4/48/1 1045000 6,807 16,800 0.0 2200.00 1,019,193.5 M2/P4/48/1 1045000 6,463 16,200 0.0 0.00 1,022,336.5 M1.2/P4/120/1 2536000 79,640 40,500 0.0 7500.00 2,408,360.0 M2/P4/120/1 2612500 71,843 41,200 0.0 0.00 2,499,456.8 M1.2/P4/240/1 4522000 352,857 73,000 200,000.0 11500.00 3,884,643.0 M2/P4/240/1 5184500 289,736 84,900 0.0 0.00 4,809,863.8
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 101 References Barbosa-Povoa, A. P. (2007). A critical review on the design and retrofit of batch plants. Computers & Chemical Engineering, 31, 833-855. Barbosa-Povoa, A. P., & Macchietto, S. (1994). Detailed design of multipurpose batch plants. Computers & Chemical Engineering, 18, 1013-1042. Castro, P., Barbosa-Povoa, A. P., & Matos, H. A. (2003). Optimal periodic scheduling of batch plants using RTN-based discrete and continuous-time formulations: A case study approach. Industrial & engineering chemistry research, 42, 3346-3360. Castro, P., Barbosa-Póvoa, A. P., Matos, H. A., & Novais, A. Q. (2004). Simple continuous-time formulation for short-term scheduling of batch and continuous processes. Industrial & engineering chemistry research, 43, 105-118. Castro, P., Erdirik‐Dogan, M., & Grossmann, I. (2008). Simultaneous batching and scheduling of single stage batch plants with parallel units. AIChE Journal, 54, 183-193. Castro, P., Novais, Q., & Carvalho, A. (2008). Optimal equipment allocation for high plant flexibility: An industrial case study. Industrial & engineering chemistry research, 47, 2742-2761. Castro, P. M., Harjunkoski, I., & Grossmann, I. E. (2009). New continuous-time scheduling formulation for continuous plants under variable electricity cost. Industrial & engineering chemistry research, 48, 6701-6714. Floudas, C. A., & Lin, X. (2004). Continuous-time versus discrete-time approaches for scheduling of chemical processes: a review. Computers & Chemical Engineering, 28, 2109-2129. Grossmann, I. (2012). Advances in mathematical programming models for enterprisewide optimization. Computers & Chemical Engineering. Grossmann, I. E. (2002). Review of nonlinear mixed-integer and disjunctive programming techniques. Optimization and Engineering, 3, 227-252. Ierapetritou, M., & Floudas, C. (1998). Effective continuous-time formulation for shortterm scheduling. 1. Multipurpose batch processes. Industrial & engineering chemistry research, 37, 4341-4359. Janak, S. L., Lin, X., & Floudas, C. A. (2004). Enhanced continuous-time unit-specific event-based formulation for short-term scheduling of multipurpose batch processes: Resource constraints and mixed storage policies. Industrial & engineering chemistry research, 43, 2516-2533. Kallrath, J. (2002). Planning and scheduling in the process industry. OR spectrum, 24, 219-250. Kondili, E., Pantelides, C., & Sargent, R. (1993). A general algorithm for short-term scheduling of batch operations--I. MILP formulation. Computers & Chemical Engineering, 17, 211-227. Li, Z., & Ierapetritou, M. (2008). Process scheduling under uncertainty: Review and challenges. Computers & Chemical Engineering, 32, 715-727. Liu, Y., & Karimi, I. (2007). Novel continuous-time formulations for scheduling multistage batch plants with identical parallel units. Computers & Chemical Engineering, 31, 1671-1693. Liu, Y., & Karimi, I. (2008). Scheduling multistage batch plants with parallel units and no interstage storage. Computers & Chemical Engineering, 32, 671-693.
102 Moniz, S. Maravelias, C. T., & Grossmann, I. E. (2003). New general continuous-time state-task network formulation for short-term scheduling of multipurpose batch plants. Industrial & engineering chemistry research, 42, 3056-3074. Maravelias, C. T., & Sung, C. (2009). Integration of production planning and scheduling: Overview, challenges and opportunities. Computers & Chemical Engineering, 33, 1919-1930. Méndez, C., Henning, G., & Cerda, J. (2001). An MILP continuous-time approach to short-term scheduling of resource-constrained multistage flowshop batch facilities. Computers & Chemical Engineering, 25, 701-711. Méndez, C. A., & Cerdá, J. (2003). Dynamic scheduling in multiproduct batch plants. Computers & Chemical Engineering, 27, 1247-1259. Mendez, C. A., Cerda, J., Grossmann, I. E., Harjunkoski, I., & Fahl, M. (2006). State-of- the-art review of optimization methods for short-term scheduling of batch processes. Computers & Chemical Engineering, 30, 913-946. Moniz, S., Barbosa-Póvoa, A. P., & Pinho de Sousa, J. (2012). Regular and non-regular production scheduling of multipurpose batch plants. Proceedings of the 22nd European Symposium on Computer Aided Process Engineering. Pantelides, C. C. (1994). Unified frameworks for optimal process planning and scheduling. In (pp. 253-274): Cache Publications New York. Papageorgiou, L. G., & Pantelides, C. C. (1993). A hierarchical approach for campaign planning of multipurpose batch plants. Computers & Chemical Engineering, 17, S27-S32. Pinto, J. M., & Grossmann, I. E. (1995). A continuous time mixed integer linear programming model for short term scheduling of multistage batch plants. Industrial & engineering chemistry research, 34, 3037-3051. Pinto, T., Barbosa-Póvoa, A. P. F. D., & Novais, A. Q. (2005). Optimal design and retrofit of batch plants with a periodic mode of operation. Computers & Chemical Engineering, 29, 1293-1303. Schilling, G., & Pantelides, C. (1996). A simple continuous-time process scheduling formulation and a novel solution algorithm. Computers & Chemical Engineering, 20, S1221-S1226. Shah, N., Pantelides, C., & Sargent, R. (1993). A general algorithm for short-term scheduling of batch operations--II. Computational issues. Computers & Chemical Engineering, 17, 229-244. Shaik, M. A., & Floudas, C. A. (2007). Improved unit-specific event-based continuoustime model for short-term scheduling of continuous processes: Rigorous treatment of storage requirements. Industrial & engineering chemistry research, 46, 1764-1779. Sundaramoorthy, A., & Karimi, I. (2005). A simpler better slot-based continuous-time formulation for short-term scheduling in multipurpose batch plants. Chemical engineering science, 60, 2679-2702. Sundaramoorthy, A., & Maravelias, C. T. (2008). Simultaneous batching and scheduling in multistage multiproduct processes. Industrial & engineering chemistry research, 47, 1546-1555. Sundaramoorthy, A., & Maravelias, C. T. (2011a). Computational Study of Network- Based Mixed-Integer Programming Approaches for Chemical Production Scheduling. Industrial & engineering chemistry research.
4 Paper 2: New General Discrete-Time Scheduling Model for Multipurpose Batch Plants 103 Sundaramoorthy, A., & Maravelias, C. T. (2011b). A general framework for process scheduling. AIChE Journal, 57, 695-710. Varma, V., Reklaitis, G., Blau, G., & Pekny, J. (2007). Enterprise-wide modeling & optimization--An overview of emerging research challenges and opportunities. Computers & Chemical Engineering, 31, 692-711. Verderame, P. M., Elia, J. A., Li, J., & Floudas, C. A. (2010). Planning and Scheduling under Uncertainty: A Review Across Multiple Sectors. Industrial & engineering chemistry research, 49, 3993-4017. Vooradi, R., & Shaik, M. A. (2012). Improved Three-Index Unit-Specific Event-Based Model for Short-Term Scheduling of Batch Plants. Computers & Chemical Engineering. Wassick, J. M., & Ferrio, J. (2011). Extending the Resource Task Network for Industrial Applications. Computers & Chemical Engineering.
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 105 5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants Samuel Moniz,a,c Ana Paula Barbosa-Póvoa,a Jorge Pinho de Sousab,c aCentro de Estudos de Gestão, Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisboa, Portugal bINESC TEC, 4200-465, Porto, Portugal cFaculdade de Engenharia da Universidade do Porto, 4200-465, Porto, Portugal This chapter is under review in the journal Industrial & Engineering Chemistry Research. Abstract This paper proposes a solution methodology for the production scheduling of batch plants. The methodology is defined by an integrated approach that simultaneously considers the representation of the scheduling problem, the optimization model and the decision-making process. A problem representation and a mixed integer linear programing (MILP) model are developed and applied to solve a real world scheduling problem from the chemical-pharmaceutical industry. The main advantage of this approach is that it includes a general process representation that can be used across several departments of the company. Moreover, we also discuss general development and implementation challenges of optimization methods for the process industry, and we provide some guidelines to mitigate existing problematic issues in this domain. Keywords: scheduling; optimization; decision-making; enterprise-wide optimization; mixed-integer linear programming
112 Moniz, S. dependent changeovers. They remark that although planning is usually performed by the planning department, it is a collaborative process that seeks data from several other departments (sales, procurement, laboratory, maintenance and higher management). Addressing the steel making process scheduling, Harjunkoski and Grossmann (2001) developed a decomposition algorithm that relies on splitting the original problem into smaller subproblems, by exploring its special structure. The algorithm involves three MILP models and one LP model solved in a sequential solution strategy. Later, addressing also a scheduling problem of a steel plant, Harjunkoski et al. (2011) discussed the implementation issues and benefits of planning and scheduling optimization. The authors state that reusability, flexibility and configurability are relevant aspects that must be considered when encapsulating mathematical models in software applications to be used in industrial environments. Pacciarelli and Pranzo (2004) proposed an alternative graph formulation and a heuristic search strategy (beam search), and Li et al. (2012) developed a unit-specific event continuous-time formulation and present an extension of a rolling horizon algorithm. For the production scheduling in the polymer industry, Schulz et al. (1998) formulated a discrete-time model and a continuous-time non-linear model (MINLP) for a real case of a chemical batch plant producing expandable polystyrene. Algorithms have been developed to produce solutions in reasonable time. Considering the same scheduling problem, Wang et al. (2000) have applied a genetic algorithm, and Till et al. (2007) addressed uncertainty by using a two-stage stochastic integer programming model and proposing a hybrid evolutionary algorithm to solve the stochastic problem. Castro et al. (2003) explored the optimal periodic schedule of a resource constrained industrial problem of the pulp industry, through the use of discrete-time and continuous-time Resource-Task Network (RTN) based mathematical formulations. Adequate solution strategies were proposed for both formulations. While the exact optimal solution to the problem was achieved using the discrete-time formulation, the same was not true for the continuous-time formulation. In the scheduling of chemical batch plants, Erdirik-Dogan et al. (2008) formulated a MILP model for the short-term scheduling of parallel batch reactors. They concluded that for addressing mid and long term scheduling horizons specialized solution algorithms must be developed. Erdirik-Dogan and Grossmann (2008) developed a time slot
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 113 continuous-time model and a bi-level decomposition algorithm that involves solving iteratively an aggregated model and a detailed scheduling model. Considering Enterprise-Wide Optimization (EWO) in complex production systems, Wassick (2009) presented the case of Dow Chemical Company, and discussed opportunities for the integration of design, planning and scheduling optimization models in the industry. The problem of waste disposal scheduling is solved using the RTN discrete-time formulation. Moreover, the author presented some useful considerations on modeling and implementation. So, to the company, the choice of the discrete-time RTN relied on the simplicity and generality of the formulation, due to an uniform treatment of all resources. A creative definition of the production resources allows solving a variety of scheduling problems without changing the model (and the code). Simple linear representations of the processes are adequate for long time frames or more strategic decisions, but for short time frames or operational decisions, it becomes necessary to account for the non-linearities of the chemical processes. For this author, the greatest modeling challenge concerns capturing complex operating policies. In these cases, it is recommended to negotiate simplifications with the decision makers, instead of dealing with complicated constraints. Moreover, the process design, planning and scheduling integration, and the representation of uncertainty and risk, should be viewed as critical. An interesting case-specific aspect about the implementation is that during the first year of operation, the scheduling model was used together with the existing scheduling procedure, in order to compare both methods and to gain confidence in the model. In general, Applequist et al. (1997) pointed out four practical issues that make planning and scheduling problems particularly difficult to address, namely: a) social considerations –manufacturing is considered a cooperative activity in the company, and the “planning and scheduling” function is viewed as having the responsibility to orchestrate this cooperation; b) dynamic nature – the active environment of the manufacturing system requires flexible and scalable planning and scheduling tools that must be able to adapt to different production scenarios; c) information intensity – even relatively small planning and scheduling problems require a considerable amount of data, and this creates additional complications concerning data management; and d) intrinsic combinatorial character – leading to significant mathematical challenges to solve these problems.
114 Moniz, S. The relevance of these issues, and the practical need to address them, are the main motivation for this work. Our research is in fact pursued with the aim of designing new optimization based decision-support tools, for solving planning and scheduling problems in process batch plants. 5.3.3 Integration of Optimization Models in Industry As referred it is clear that there is still a lot of work to do concerning the integration of optimization models in the decision-making processes of the companies. The literature addressing models and solution approaches for planning and scheduling problems is mainly focused on time performance and comparison between models. When addressing the quality of the solutions, few confront the solutions obtained by the models with the solutions obtained by the planners, and just a small number of works address practical issues associated to modeling and implementation of optimization methods in industrial companies. Models are rarely evaluated in the context where the information is available, thus they simply do not consider the internal decision-making processes of the company. This interaction is missing and it would surely provide valuable information for improvement of the optimization methods. Although we also consider that, in practical terms, time to obtain solutions is the most critical issue of many models solving scheduling problems, research should also focus in other aspects that are determinant to integrate optimization methods in industrial practices. The development of systematic approaches for structuring the scheduling problems and the inclusion of the decision-making processes into models that can be rapidly understood by the industrial practitioners, are essential issues that have been somehow neglected. These issues are being addressed in this paper, where we aim at contributing to reduce the existing gap between the design and development of scheduling models and their applicability to real industry problems.
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 115 5.4 Methodology Conceptual Framework The conceptual framework, developed in this work, proposes a generic and systematic approach for tackling scheduling problems in real production systems. It attempts to identify the key issues for the definition of a scheduling problem and for the integration of optimization models in industrial companies. In this section, we discuss the components of the methodology and then, in section 5.5, we present the solution of a real world problem from the chemical-pharmaceutical industry to demonstrate its applicability. 5.4.1 Key Components The methodology is defined by three main components, as shown in Figure 5.1. The Problem Representation component that is related to the interpretation of the scheduling problem, and it is used as an interface with the decision-makers and to capture data for the optimization model. The Optimization component that deals with case-specific models and solution approaches developed to solve the scheduling problem. The Decision-making component that has to do with the analysis of the solution pool provided by the optimization component, and involves the visualization and user-interface interactivity required to support the decision-making process. Figure 5.1 – Conceptual framework for the solution methodology.
116 Moniz, S. In this context, we consider two main sets of tasks: Implementation and Modeling. Implementation includes all tasks required to place the application running in the company and it is typically assigned to IT consultants. Its scope must be wide enough to incorporate all components that in the end will constitute the decision-making tool. Modeling concerns the analysis and definition of the model and is usually a task performed by academics and researchers. The scope of modeling is in many situations limited to the development and test of models and disregards the context where the data is created and gathered, and mainly how decisions are made. In our view, when addressing real-world optimization problems, the scope of the modeling task must be broadened to include the data context and to encompass the information flow of the decision-making processes. In this paper, we explore the idea that the modeling task must be extended to define more complex interactions between the representation of the problem and the decision-making process (see Figure 5.1). This will surely ask for a deeper collaboration between academics, industrial practitioners and IT consultants. Note that although the focus of this methodology is on scheduling problems, we think that it can also be applied to other types of problems. The components and their interactions will be discussed in detail in the following subsections. 5.4.2 Representation of the Scheduling Problem As Bassett et al. (1996), we also view scheduling as an integration activity. Accordingly, scheduling problems should be represented so that different types of knowledge can be captured in a coherent way. For that, different scheduling views may be necessary in order to ensure a comprehensive representation of the problem. Such representation can have then several layers (or views) and must be able to be integrated with any model or solution approach. Grossmann et al. (1999) argue that the application of mathematical programming approaches to process design and synthesis problems require the development of superstructures for the representation of the alternatives, regardless of the detail of the model. We can say that this reasoning is also valid to planning or scheduling problems, since these problems use similar superstructures. Although there is a general consensus that models / solution approaches must be adapted to the specific features of each case, we believe that it is possible to develop
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 117 general representations of the scheduling problems that could be used later by different models. A good example of this is the State-Task Network (STN) of Kondili et al. (1993) and the RTN of Pantelides (1994) representations that are being applied to represent a variety of scheduling problems and are used by many different formulations. For example, extensions of STN to account for design and operational decisions were developed by Barbosa-Povoa and Macchietto (1994) and Amaro and Barbosa-Póvoa (2008b) developed the chain-STN to solve supply chain problems. In this way, scheduling representations could evolve independently from the model formulations and provide a coherent representation of the problems. This research direction has been recently followed by Maravelias (2012). The author proposes a framework for the description of scheduling problems in chemical industries based on the characteristics of the processes. Furthermore, the representation of the scheduling problem is typically based on the process structure, in which the level of abstraction is a critical issue. High detail representations of the processes may allow the development of more detailed models and reach theoretically optimal solutions, but may result into models that are computationally intractable. In practice, this approach requires the involvement of industrial and academic specialists and the integration of different types of knowledge, which will easily turn into a very time consuming task. On the other hand, less detailed processes result into more simple models that are easier to solve and to manage, but may result into infeasible schedules. In summary, a careful exploitation of the problem structure is required in order to keep the balance between these tradeoffs, and here a close collaboration between academics and industrial planners must exist. In the PSE community, planning and scheduling problems appear closely connected to process development and design problems (Barbosa-Povoa, 2007). The process design focus is to define the characteristics of products, the production tasks and the specifications of processing units. The planning and scheduling problem take often the design into account and seek the effective use of the enterprise resources (Stephanopoulos & Reklaitis, 2011). In this work, we have developed a comprehensive representation of the scheduling problem that captures the characteristics of the processes and available equipment, defining superstructures with possible production alternatives.
118 Moniz, S. The representation of the scheduling problem is then a key part of the scheduling methodology that integrates with the optimization and the decision-making components. 5.4.3 Optimization A single model would hardly be sufficient to address all types of planning and scheduling decisions. Thus, if a model-based approach is followed, then the methodology must be able to include several models, in which the links between those models play a crucial role. Furthermore, since the decision-making processes vary from company to company, case-specific models may also be developed. Concerning the computational complexity, many scheduling models solving real world problems are considered too large to be solved to optimality in affordable time. This is due to the combinatorial nature of the problems, associated to binary decisions such as task-unit assignments, tasks sequencing, changeovers and storage tasks. Problems with a significant number of tasks and processing units and considering long scheduling horizons tend to be difficult to solve with exact methods. In these cases, alternative solution approaches can be applied to obtain satisfactory solutions in reasonable time. A discussion on scheduling models and solution approaches has been presented in section 5.3. In summary, models and solution approaches should be built taking into account the characteristics of the problems and the decision-making processes of the companies, thus defining concise methodologies that integrate mathematical approaches with existing decision-making procedures and result in solvable models that represent adequately the reality. 5.4.4 Decision-Making The planning information flow presented by Pinedo (2002) and the Purdue Reference Model are two comprehensive frameworks where the complexity of the planning and scheduling activities are evident. To address this complexity, the development and implementation of decision-support tools should start by addressing the core decisionmaking processes of the company. The approach may vary from company to company, but should always involve academics and industrial practitioners.
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 119 The scheduling process must be supported by adequate information flows between those participating in the decision-making process. Assuming that scheduling is performed collaboratively, the scheduling methodology (Problem representation, Optimization, Decision-making) should ensure that the necessary data is available and up to date, before being used by the optimization model. In this way, the methodology must be integrated transversally in the company, since it is common that several functions in the company can use that information and benefit from it. The scheduling methodology presented in this paper proposes a development and implementation scheme for decision-support tools to tackle scheduling problems in the chemical-pharmaceutical industry. To clearly explain this methodology the application to a case-study is detailed below. 5.5 Scheduling Methodology – Application The proposed conceptual framework is now applied to a real case-study from the chemical-pharmaceutical industry. The main goal of this exercise is to demonstrate how the components (Representation of the scheduling problem, Optimization, and Decisionmaking) can be designed in order to implement a decision-support methodology for the scheduling problems of a batch plant. For that purpose, we briefly describe the context of scheduling problem in the chemical-pharmaceutical industry and a typical scheduling decision-making process. We then present the methodology that was implemented in our case study and discuss the main decisions involved in that process. The optimization model and results are also presented. 5.5.1 The Scheduling Problem in Chemical-Pharmaceutical Industry The chemical-pharmaceutical industry is responsible for the development and manufacturing of fine chemicals called Active Pharmaceutical Ingredients (API). Manufacturing such products involves complex and long processes that are executed under a close supervision of the regulatory authorities, with responsiveness of the manufacturing system and cost reduction being two critical aspects. Production may simultaneously include products that are under development and products that are in commercialization, and the plant resources may be shared between
120 Moniz, S. these products. Products are associated to recipes that describe in detail the production processes. Recipes are defined by a network of production tasks that must be executed to manufacture a product (Reklaitis, 1995), and include process data such as materials consumption and production proportions, tasks processing times and characteristics of the units required by each task. Recipes differ from product to product, i.e., tasks sequencing and material flows are product specific. To manufacture a single product several days of effective production time may be required, with tasks processing times varying between one hour and two days. Cleaning of processing units, pipelines and other resources is needed to avoid cross contamination of the products. Therefore changeovers between lots of the same product and between lots of different products are present and may impose significant downtime periods. Often the chemical-pharmaceutical industry relies on general purpose batch plants with multipurpose processing units between which connections are usually not fixed. Instead units are organized in such a way that almost all connectivity options are possible. Operations flexibility is achieved through multipurpose units, capable of executing a variety of chemical tasks, as well as, through the connections between units, that can be changed when there is a change from a product to another product. I.e., connections between units can change with the production demand. In such plants, the most common units are reactors, filters and dryers of different volumes, packaging rooms, and auxiliary equipment like condensers, temperature systems, cleaning in place (CIP), vacuum pumps, etc. that may be attached to the processing units, thus changing their configuration with additional characteristics important for the task-unit assignment. For instance, a reactor is defined by its maximum and minimum volume, type (glass lined or stainless steel) and also by the agitation system, the temperature system, CIP, etc. The material flows are established through a complex system of pipelines and mobile vessels. Furthermore, people are critical resources and are usually considered in the medium and short-term scheduling. This happens because tasks require specialized manpower to execute or control the production. The planning and scheduling functions are typically a responsibility of the planning department of the company. However other areas, such as sales, procurement
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 121 and R&D, are also involved. These areas contribute with data inputs relevant for planning and scheduling, and may as well do the analysis of the solutions. Planning is in general done for a time horizon of up to twelve months, and involves the determination of the production quantities and a preliminary allocation of the processing units to products. But because production capacity is defined at the level of the processing units, planning is referred here as medium-term scheduling. The medium-term scheduling tends to be stable, at least for the next months, and is revised every month or whenever an unexpected event that has impact on the plan appears. There is also the short-term scheduling that has a time horizon of up to two weeks and is revised on a daily basis. Data from the medium-term term scheduling is used as a reference for building the short-term scheduling, namely in what concerns: recipes, inventory and products demand. Decisions at this level refer to the assignment of tasks to units, and to the determination of the exact time when tasks are going to be executed. Industrial planners are therefore challenged to obtain the “best” set of processing units to manufacture each product and to obtain an effective tasks sequencing, taking into account objectives related to cost and total production time. Since recipes may have a large number of tasks and tasks may be processed through multiple units of different capacities, where sequence dependent changeovers must be respected, scheduling decisions become extremely complex. The status of the tasks execution is continuously checked and potential delays are evaluated. Products that are under development add more complexity to the scheduling function, since they regularly impose the revision of the schedule. Schedule deviations that do not have any further impact in the plan are promptly solved, while significant delays trigger the revision of the medium-term schedule. Although we assume here that medium and short-term scheduling are two distinct problems, they are linked because they constrain each other. Both scheduling problems should therefore use a unique problem representation, defined by the methodology proposed in this work (see section 5.5.3). This will ensure that with respect to data, both problems use the same structures, although the detail level of the models can be different. In this paper, our focus is on the short-term scheduling problem, as defined in detail in the next section.
128 Moniz, S. (ZW) and Unlimited Intermediate Storage (UIS) policies. Concerning the materials temporarily held on the processing units (NIS), the amount of material that can be stored is bounded by the maximum capacity of the unit. Constraints (5.6) ensure that the tasks batch size is within the minimum and maximum capacities of resource r (processing unit) for task k and lot l. Constraints (5.7) impose that the total amount of product manufactured must be equal to the lot size , and constraints (5.8) bound the lot size between the minimum and maximum allowed size for lot l. Constraints (5.9) define that lot can only be produced if lot has been produced. Backlogged demand is defined by expressions (5.10), where will take a value greater than zero whenever a product delivery is not fulfilled, partially or totally. Sequence-dependent changeovers are required whenever cleaning and units setup operations need to be performed, when changing the production to a new product or lot. Thus, constraints (5.11) state that if task k of lot l occurs at time interval t, then the first term is equal to one, and the second is forced to be zero for all tasks of lot and time intervals corresponding to Constraints (5.12) define that tasks must finish in the time horizon of interest. Constraints (5.13) impose that delivery variables cannot take values either for the time intervals outside the delivery time windows, or for resources other than final products. And expressions (5.14) define the variables domain.
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 129 ∑∑ ∑ ∑ ∑ ∑( ) (5.1) ∑( ) (5.2) ∑ ∑∑( ) (5.3) ( ) (5.4) ∑∑ (5.5) (5.6) ∑∑ (5.7) (5.8) (5.9) ( ) ∑∑ (5.10) ∑ ∑ (5.11) ∑ (5.12) { } (5.13) (5.14)
130 Moniz, S. The objective functions considered in this work are: the minimization of cost (see expression (5.15)), that involves the storage, operational, backlog and lot costs; and the maximization of profit, (see expression (5.16)), reflecting the economic value of the products. Storage costs are associated to holding costs of intermediaries and products during the scheduling horizon (5.16a). Operational costs are related to the assignment of processing units to tasks are defined by expression (5.16b). Backlogged demand costs are given by expression (5.16c) and lot fix and variable costs are given by expression (5.16d). The economic value of the products is given by expression (5.16e). (5.15) (5.16) ∑ ∑∑ ∑ (5.16a) ∑∑∑( ) (5.16b) ∑∑ (5.16c) ∑ (5.16d) ∑∑∑∑ (5.16e)
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 131 5.5.3.3 Decision-Making The scheduling solutions obtained through this model are then evaluated by experienced planners and other participants involved in the scheduling process. In practice, it is desirable to produce more than one schedule, even for the same objective function, as the model may not represent the real problem due to simplifications considered. In some situations model constraints are linear approximations or aggregations designed to keep the problem computationally tractable. Thus, it could happen that solutions might not be preferred by planners or could be considered operationally infeasible. The assessment of the model will be then made by the quality of the solutions delivered and the computational time required to produce them. To avoid this problem, several scheduling solutions are generated and compared during the decision-making process. For example, multiple scheduling solutions can be obtained by using the CPLEX solution pool feature or simply by setting different values of CPLEX stopping criteria, such as the integrality gap or the time limit. Note that these solution strategies do not guarantee that the solutions are optimal. Although the most common constraints of the scheduling problem are known and well described in the literature, new types of constraints are often necessary when trying to solve real world scheduling problems. To address this issue, a knowledge base is kept with the purpose of describing new scheduling rules that are empirically followed by the planners. The scheduling rules are then evaluated and, if applicable, are converted into model constraints. Thus, the model is composed by a set of constraints that can be activated or deactivated in order to convey to the preferences of the planner. For example, case-specific extensions for dealing with layout, manpower and maintenance constraints may be considered in the model. Finally, the user interface for the scheduling solutions plays also an important role, since the dynamic nature of the scheduling process requires the visualization of a considerable amount of information, as well as advanced interactive options. In our case, a prototype of a Gantt chart was built in Microsoft Excel to allow the test and assessment of the scheduling solutions. The evaluation of the produced pool of schedules is then supported by Gantt charts and additional indicators (see below) allowing the planners to choose the most adequate schedule for real implementation.
132 Moniz, S. 5.5.4 Case-Study Description and Results As mentioned above, the case-study under analysis concerns the scheduling problem in a chemical-pharmaceutical industry where different products are to be produced. The decision-making tool is used to obtain optimized production plans and to perform an evaluation of alternative production processes. The scheduling decisions involve the determination of the processing units to be used by each process, the lot sizes, the total amount produced and the delivery dates. Here, recipe design decisions (as described in section 5.5.3.1) are integrated with scheduling decisions in order to predict the impact of the process in the shop-floor, guaranteeing that units are used in an efficient way. For example, the selection of the processing units to execute a given process can be done taking into account the scalability, completion time, number of processing units used, material flows, costs, etc. of the process. Since a discrete time model is being used, a critical modeling decision concerns the definition of the length for the time intervals. A thin discretization of time would theoretically result in better solutions, but may conduct to models that are very difficult to solve. In our case, we assume a time interval (grid) of 8 hours, since tasks processing times can be roughly approximated by multiples of 8. Moreover, schedules having time intervals of 8 hours (1 working shift) work well in practice. Computational tests and discussions with the planners have shown that the computational time required to solve the short-term scheduling model is quite reasonable and acceptable in practice. The model was implemented using ILOG/CPLEX version 12.5.1, running on an Intel Xeon X5680 at 3.33GHz with 24 GB of RAM. In the following two subsections, we present some results that show the utilization of our scheduling model (defined in section 5.5.3.2). Initially, we perform an analysis of the processes involved and we discuss tradeoffs related to the determination of the lot size, which are important to the scale-up strategies followed by the chemicalpharmaceutical industry. Then, we derive short-term production schedules for time horizons of 1 and 2 weeks. The network studied in this work considers four processes, responsible for the production of four products (P1 to P4) and that may share 9 processing units (7 reactors of different characteristics and 2 filters-dryers). The total number of tasks is 40, with
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 133 processing times varying between 6 and 64 hours. Processes data is available in the supporting information file 5.5.4.1 Evaluation of Alternative Processes The impact of the lots definition on the cost is the first analysis to be performed. This is a relevant indicator concerning the scale-up of the lot size. Figure 5.5 depicts the minimum cost of manufacturing 30, 40, 60, 80 and 100 kg of product P1, considering different lot sizes (e.g. 3 lots of 10 kg = 3L10). Table 5.1 shows some numerical values used in this analysis of the process alternatives. These results were obtained by running the scheduling model with the cost minimization objective function ( ), and assuming the scheduling horizon of 1 week, discretized into 21 time intervals of 8 hours. Figure 5.5 – Production lots cost in monetary units (m.u.) for product P1 (1L30 = 1 lot of 30 kg; 2L15 = 2 lots of 15 kg; and 1L10+1L20 = 1 lot of 10kg plus 1 lot of 20 kg).
134 Moniz, S. Table 5.1 – Costs, number of reactors and capacity used and completion time for product P1. Amount produced [kg] Process/lots Cost [m.u.] Reactors capacity used [l] Completion time [hours] 30 P1/1L30 1,108.6 15,600 112 P1/2L15 1,134.6 15,600 128 P1/3L10 1,922.5 27,100 152 P1/1L10+1L20 1,341.5 19,300 88 40 P1/1L40 1,365.0 20,300 40 P1/2L20 1,595.0 23,000 64 P1/4L10 2,973.5 42,300 136 P1/1L10+1L30 1,903.0 27,100 144 60 P1/1L60 1,375.0 20,300 40 P1/2L30 2,511.8 35,900 144 P1/3L20 2,446.0 34,500 88 P1/4L15 3,021.6 42,300 136 80 P1/1L80 1,455.0 20,800 40 P1/2L40 2,782.2 40,600 72 P1/1L20+1L60 2,185.0 31,800 80 P1/1L20+2L30 3,623.2 51,100 160 100 P1/1L100 2,030.0 28,600 88 P1/2L50 2,823.7 40,600 72 P1/4L25 5,131.2 71,400 168 P1/2L25+1L50 3,631.2 51,100 152 * 1LOT30 = 1 lot of 30 kg; 2LOT15 = 2 lots of 15 kg; and1LOT10+1LOT20 = 1 lot of 10kg plus 1 lot of 20kg, etc; ** Reactors capacity used = total reactors capacity allocated to the process ∑ ∑ ∑ , calculated during the post processing phase of CPLEX. When analyzing Figure 5.5 and Table 5.1, it can be seen that the production of 30 kg of product P1 has a cost always bellow 2,000. The most costly production case is to consider 3 lots of 10 kg (3L10), with a cost of 1,922.5, which leads also to the highest completion time. This indicates that the processing units are used inefficiently, as it can be seen by the value of 27,100 liters of reactors capacity allocated to the process (see Table 5.1). Assuming a production of 40 kg, the costs increase by 23% considering just one lot, however the completion time goes from 112 hours to just 40 hours. Again with the increase of the number of lots the process requires more reactors capacity and takes
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 135 more time. An increase of the production to 60 kg (assuming a single lot) has almost no effect in the cost, and has no impact on the completion time and no impact on the reactors capacity allocated. Interestingly, the production of 3 lots of 20 kg results in a lower cost, in a lower reactors capacity and in a lower completion time, when compared with the production of 2 lots of 30 kg. The production of 80 kg (assuming a single lot) increases the costs by 6% of the 60 kg production case, but keeps the same completion time. While the production of 100 kg (assuming a single lot) increases the cost by 40% (assuming a single lot) and more than doubles the completion time, when compared with the 80 kg production case. As conclusions it can be said that the tradeoffs associated to the scheduling decisions are related to the task-unit assignment and storage costs. The allocation of tasks to the smaller capacity units may result in lower operational costs, but may lead to longer completion times, since tasks may need to occur multiple times or a higher number of changeovers may be required; both situations potentially leading to an increase in the storage costs. 5.5.4.2 Scheduling Solutions Following the previous analysis, we now derive full schedules for the production of the four products, with different lot sizes and scheduling horizons of 1 and 2 weeks. Since all products are scheduled simultaneously, the tradeoffs discussed above become more complex, resulting in the Gantt charts of Figure 5.6. The first instance (INST1) is depicted in Figure 5.6 a) and considers the production of just one lot in a scheduling horizon of 1 week (21 time intervals of 8 hours). Figure 5.6 b) shows the second instance (INST2) also based on a single lot, but considering now a scheduling horizon of 2 weeks (42 time intervals of 8 hours). Figure 5.6 c) depicts the third instance (INST3) for the production of 2 lots of each product, in a scheduling horizon of 2 weeks. Table 5.2 summarizes the cost structure of each instance. The objective function utilized is the profit maximization (see expression (5.16)).
136 Moniz, S. Table 5.2 – Cost structure of each instance. Instance Profit [m.u.] Value of the products [m.u.] Storage costs [m.u.] Operational costs [m.u.] Backlog costs [m.u.] Lot costs [m.u.] INST1 48,438.8 56,000.0 1,646.2 5,520.0 0.0 395.0 INST21) 49,441.4 56,000.0 1,413.6 4,750.0 0.0 395.0 INST32) 48,754.7 56,000.0 1,450.3 5,350.0 0.0 445.0 1) Solution within 3.32% of the optimal solution; 2) solution within 5.34% of the optimal solution. The most compact schedule is obtained with instance INST1 (see Figure 5.6). Processing units need to accommodate the demand in just one week, and this leads to a high occupation rate of the processing units. By extending the scheduling horizon to 2 weeks (INST2), units can be used more efficiently, with a reduction of the costs and an associated profit increase, see Table 5.2. For INST1 the profit is equal to 48,438.8 m.u., while INST2 has a profit of 49,441.4 m.u., which is at least 2% higher, since the solution of INST2 has potentially some margin for improvement because it is not an optimal solution (3.32% gap). Moreover, the schedule of INST1 is inherently more complex to execute in practice, since several production tasks are repeated in order to fulfill the demand, see Figure 5.6 a). For example, in INST1 it can be seen that TASK1 of product P1 occurs 5 times, while in INST2, see Figure 5.6 b), this task occurs only 2 times. In instance INST3, we have defined 2 lots for each product in a scheduling horizon of 2 weeks. This scenario tends naturally to impose additional idle periods for the units, as a consequence of the changeover periods; nevertheless the profit is comparable with the one obtained in INST1. Looking at the lot size decision variables of instance INST3, Product P1 has lots with 56 kg and 64 kg, resulting into a total amount of 120 kg. The demand of Product P2 was 70 kg, resulting into one lot of 16.8 kg and another of 53.2 kg. The lots of product P3 have 23.5 kg and 26.5 kg for fulfilling a demand of 50 kg, and product P4 had a demand of 60 kg that was fulfilled through lots of 28 kg and 32 kg. As discussed in the above section, the lot size has impact on the task-unit assignments, thus lots of the same product may have been assigned to different processing units. Globally, INST3 has lower storage costs, but has higher operational and lot setup costs. Concerning the model performance, the computational time to obtain solutions is surely the main drawback when solving large instances. The numerical results
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 137 demonstrate that CPLEX version 12.5.1 could not prove optimality for INST2 and INST3 during a computational time of 3,600 seconds. However, it should be noted that, from a practical perspective, the solutions presented in this paper have been considered very satisfactory by the industrial practitioners.
144 Moniz, S. Figure 5.10 - Automation pyramid - source (Harjunkoski et al., 2009) . Figure 5.11 - Purdue Reference Model(ANSI/ISA-95, 2000).
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 145 Notation Indices delivery period Lot Task p Product resource (processing unit, intermediary or final product) time interval Sets demand of product r at time interval t delivery window of lot l and resource r (final product) at delivery period d processing units scheduling horizon intermediaries intermediaries subject to a non-intermediate storage policy intermediaries produced by task k and subject to a non-intermediate storage policy lots lots associated with resource r lots associated with task k tasks that require resource r (processing unit, intermediary or final product) tasks that consume resource r (intermediary or final product) tasks that produce resource r (intermediary or final product) products production resources Parameters processing time of task k
146 Moniz, S. production/consumption proportion of resource (intermediary or final product) r in task k at time ϴ relative to the start of task cost of storage of products and intermediaries r operational costs of task k lot fix and variable costs changeover time in processing unit r from lot l to lot l’ tasks k associated with processing unit r and lot l minimum and maximum lot l size maximum resource availability of resource r (intermediary or final product) at time interval t resource r (intermediary or final product) availability of lot l at task k in the beginning of the planning horizon length of the scheduling horizon earliest time interval of lot l at delivery d latest time interval of lot l at delivery d value of product r minimum and maximum capacity of resource r (processing unit) for task k of lot l Variables amount of product manufactured by lot l – lot size (continuous) batch size of task k and lot l at time interval t (continuous) delivery of resource (final products) r of lot l at time interval t available from task k (continuous) binary variables that are equal to 1 if task k starts lot l at time interval t resource r (intermediaries or final products) availability, produced by task k of lot l at time interval t (continuous) amount of resource r (intermediaries or final products) consumed from task k of lot l at time interval t (continuous) amount of resource r ( intermediaries or final products) produced by task k of lot l at time interval t (continuous) binary variables that are equal to 1 if l lot has been produced
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 147 Supporting Information Networks Figure 5.S1 – Recipe of product P1. Figure 5.S2 - Recipe of product P2. Figure 5.S3 - Recipe of product P3. Figure 5.S4 - Recipe of product P4.
148 Moniz, S. Data Table 5.S1 – Products demand, delivery dates and backlog costs. Product Earliest delivery date Latest delivery date Minimum amount [kg] Maximum amount [kg] Backlog costs [m.u/kg] P1 21 21 0 120 250 P2 21 21 0 70 200 P4 21 21 0 60 100 P3 21 21 0 50 120 Table 5.S2 – Minimum and maximum lot sizes, economic value and lot setup costs. Product Lot Minimum lot size [kg] Maximum lot size [kg] Value [m.u] Lot setup cost [m.u.] P1 L1 10 80 250 5 P1 L2 10 80 250 5 P2 L1 10 60 200 25 P2 L2 10 60 200 25 P3 L1 10 30 120 10 P3 L2 10 30 120 10 P4 L1 10 40 100 10 P4 L2 10 40 100 10
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 149 Table 5.S3 – Materials initial, minimum and maximum availability, inventory costs and storage policy. Resources Init. availability [kg] Max. availability [kg] Inventory cost [m.u./kg] Storage policy P1_S0 100,000 100,000 0.07 UIS P1_S1 0 0 0 ZW P1_S2 0 10,500 0.04 FIS P1_S3 0 4,500 0.01 FIS P1_S5 0 0 0.08 NIS P1 0 10,000 0.9 FIS P2_S0 100,000 100,000 0.05 UIS P2_S1 0 0 0 ZW P2_S2 0 0 0.03 NIS P2_S3 0 0 0 ZW P2_S4 0 2,000 0.07 FIS P2_S5 0 3,500 0.01 FIS P2 0 10,000 0.6 FIS P3_S0 100,000 100,000 0.05 UIS P3_S1 0 0 0.03 NIS P3_S2 0 3,000 0.04 FIS P3_S3 0 0 0 ZW P3_S4 0 0 0.07 NIS P3_S10 0 0 0.02 NIS P3 0 10,000 0.8 FIS P4_S0 100,000 100,000 0.05 UIS P4_S1 0 1,500 0.03 FIS P4_S2 0 0 0.07 NIS P4 0 10,000 0.5 FIS
150 Moniz, S. Table 5.S4 – Characteristics of the processing units. Unit Type Min. Volume [l] Max. Volume [l] Cost [m.u.] R2 REACTOR 45 500 50 R3 REACTOR 75 1,700 100 R5 REACTOR 20 800 60 R6 REACTOR 70 2,700 200 R7 REACTOR 60 4,800 300 R8 REACTOR 150 9,300 600 R9 REACTOR 65 12,400 700 FD1 FILTER/DRYER 25 1,600 20 FD2 FILTER/DRYER 20 530 10 Table 5.S5 – Changeovers time of each unit (cr). Unit cr [hours] R1 8 R2 16 R3 8 R4 16 R5 16 R6 16 R7 24 FD1 16 FD2 8 Table 5.S6 – Changeovers time between products (cr + products changeover time in hours). Products P1 P2 P3 P4 P1 cr cr+2 cr+2 cr+16 P2 cr+16 cr cr+2 cr+16 P3 cr+16 cr+16 cr cr+16 P4 cr+16 cr+16 cr+16 cr
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 151 Table 5.S7 – Numerical results of the processes evaluation. Amount produce d [kg] Process/lots Int. variables/cont. variables/ Constraints Nodes Iterations Gap (%) Objective CPU time (sec) 30 P1/1LOT30 221/1124/1858 70,183 578,331 0.0 1,108.6 5.8 P1/2LOT15 442/2225/5005 20,871 379,326 0.0 1,134.6 10.7 P1/3LOT10 663/3326/8372 29,256 1,479,559 0.0 1,922.5 41.4 P1/1LOT10+1LOT20 442/2225/5005 35,102 538,112 0.0 1,341.5 10.6 40 P1/1LOT40 221/1124/1858 90,210 554,767 0.0 1,365.0 6.2 P1/2LOT20 442/2225/5005 43,783 788,227 0.0 1,595.0 12.9 P1/4LOT10 884/4427/11959 75,031 8,891,340 0.0 2,973.5 275.3 P1/1LOT10+1LOT30 442/2225/5005 69,026 1,595,698 0.0 1,903.0 22.4 60 P1/1LOT60 221/1124/1858 210 2,901 0.0 1,375.0 1.1 P1/2LOT30 442/2225/5005 72,327 2,298,281 0.0 2,511.8 30.0 P1/3LOT20 663/3326/8372 35,729 1,668,960 0.0 2,446.0 56.8 P1/4LOT15 884/4427/11959 49,107 3,358,538 0.0 3,021.6 139.1 80 P1/1LOT80 221/1124/1858 75 981 0.0 1,455.0 1.2 P1/2LOT40 442/2225/5005 47,819 1,125,153 0.0 2,782.2 18.3 P1/1LOT20+1LOT60 442/2225/5005 17,652 315,810 0.0 2,185.0 7.4 P1/1LOT20+2LOT30 663/3326/8372 104,49 5 7,006,803 0.0 3,623.2 220.8 100 P1/1LOT100 221/1124/1858 27,578 295,301 0.0 2,030.0 4.0 P1/2LOT50 442/2225/5005 1,544 588,788 0.0 2,823.7 12.8 P1/4LOT25 884/4427/11959 40,646 5,071,307 0.0 5,131.2 236.5 P1/2LOT25+1LOT50 663/3326/8372 46,179 4,404,857 0.0 3,631.2 144.9 Table 5.S8 – Numerical results of the production schedules. Instance Int. variables/cont. variables/ Constraints Nodes Iterations LP relaxation Gap (%) Objective CPU time (sec) Inst1 884/4669/9350 1,256,627 96,031,323 52,768.9 0.01 48,438.8 1,474 Inst11) 884/4669/9350 26,558 2,875,997 52,768.9 4.41 47,773.4 98 Inst22) 1724/9121/18233 480,471 40,955,822 52,779.1 3.32 49,441.4 3,672 Inst21) 1724/9121/18233 7,617 1,291,875 52,779.1 4.90 49,130.5 80 Inst32) 3448/18069/52036 70,560 10,987,254 52,738.9 5,34 48,754.7 3,623 1) Stopping criterion is the integrality gap of 5%.; 2) Stopping criterion is the time limit of 3,600 seconds.
152 Moniz, S. References Amaro, A., & Barbosa-Póvoa, A. (2008a). Planning and scheduling of industrial supply chains with reverse flows: A real pharmaceutical case study. Computers & Chemical Engineering, 32, 2606-2625. Amaro, A., & Barbosa-Póvoa, A. (2008b). Supply chain management with optimal scheduling. Industrial & engineering chemistry research, 47, 116-132. ANSI/ISA-88. (1995). Batch control part 1, models and terminology, (see also IEC 61512-01). Research Triangle Park, NC: ISA. ANSI/ISA-95. (2000). Enterprise-Control System Integration. Part 1: Models and terminology.: ISA. Applequist, G., Samikoglu, O., Pekny, J., & Reklaitis, G. (1997). Issues in the use, design and evolution of process scheduling and planning systems. ISA Transactions, 36, 81-121. Barbosa-Povoa, A. P. (2007). A critical review on the design and retrofit of batch plants. Computers & Chemical Engineering, 31, 833-855. Barbosa-Povoa, A. P., & Macchietto, S. (1994). Detailed design of multipurpose batch plants. Computers & Chemical Engineering, 18, 1013-1042. Bassett, M., Dave, P., Doyle, F., Kudva, G., Pekny, J., Reklaitis, G., Subrahmanyam, S., Miller, D., & Zentner, M. (1996). Perspectives on model based integration of process operations. Computers & Chemical Engineering, 20, 821-844. Castro, P., Barbosa-Povoa, A., & Matos, H. (2001). An improved RTN continuous-time formulation for the short-term scheduling of multipurpose batch plants. Industrial & engineering chemistry research, 40, 2059-2068. Castro, P., Barbosa-Povoa, A. P., & Matos, H. A. (2003). Optimal periodic scheduling of batch plants using RTN-based discrete and continuous-time formulations: A case study approach. Industrial & engineering chemistry research, 42, 3346-3360. Castro, P. M., & Grossmann, I. E. (2005). New continuous-time MILP model for the short-term scheduling of multistage batch plants. Industrial & engineering chemistry research, 44, 9175-9190. Castro, P. M., Harjunkoski, I., & Grossmann, I. E. (2009). Optimal short-term scheduling of large-scale multistage batch plants. Industrial and Engineering Chemistry Research, 48, 11002-11016. Engell, S., & Harjunkoski, I. (2012). Optimal operation: Scheduling, advanced control and their integration. Computers & Chemical Engineering. Erdirik-Dogan, M., & Grossmann, I. E. (2008). Slot-based formulation for the short-term scheduling of multistage, multiproduct batch plants with sequence-dependent changeovers. Industrial & engineering chemistry research, 47, 1159-1183. Erdirik-Dogan, M., Grossmann, I. E., & Wassick, J. (2008). Short-term scheduling of batch plants with parallel reactors forming mobile workgroups. Industrial & engineering chemistry research, 47, 6070-6080. Floudas, C. A., & Lin, X. (2004). Continuous-time versus discrete-time approaches for scheduling of chemical processes: a review. Computers & Chemical Engineering, 28, 2109-2129. Grossmann, I. (2005). Enterprise‐wide optimization: A new frontier in process systems engineering. AIChE Journal, 51, 1846-1857.
5 Paper 3: A Solution Methodology for Scheduling Problems in Batch Plants 153 Grossmann, I. E., Caballero, J. A., & Yeomans, H. (1999). Mathematical programming approaches to the synthesis of chemical process systems. Korean Journal of Chemical Engineering, 16, 407-426. Harjunkoski, I., & Grossmann, I. E. (2001). A decomposition approach for the scheduling of a steel plant production. Computers & Chemical Engineering, 25, 1647-1660. Harjunkoski, I., Nyström, R., & Horch, A. (2009). Integration of scheduling and control—Theory or practice? Computers & Chemical Engineering, 33, 1909- 1918. Harjunkoski, I., Saliba, S., & Biondi, M. (2011). Production Optimization and Scheduling across a Steel Plant. In (Vol. 29, pp. 920-924). Henning, G. P. (2009). Production scheduling in the process industries: current trends, emerging challenges and opportunities. Computer Aided Chemical Engineering, 27, 23-28. Ierapetritou, M., & Floudas, C. (1998). Effective continuous-time formulation for shortterm scheduling. 1. Multipurpose batch processes. Industrial & engineering chemistry research, 37, 4341-4359. Janak, S. L., Lin, X., & Floudas, C. A. (2004). Enhanced continuous-time unit-specific event-based formulation for short-term scheduling of multipurpose batch processes: Resource constraints and mixed storage policies. Industrial & engineering chemistry research, 43, 2516-2533. Kallrath, J. (2005). Solving planning and design problems in the process industry using mixed integer and global optimization. Annals of Operations Research, 140, 339- 373. Klatt, K.-U., & Marquardt, W. (2009). Perspectives for process systems engineering— Personal views from academia and industry. Computers & Chemical Engineering, 33, 536-550. Kondili, E., Pantelides, C., & Sargent, R. (1993). A general algorithm for short-term scheduling of batch operations--I. MILP formulation. Computers & Chemical Engineering, 17, 211-227. Kopanos, G. M., Méndez, C. A., & Puigjaner, L. (2010). MIP-based decomposition strategies for large-scale scheduling problems in multiproduct multistage batch plants: A benchmark scheduling problem of the pharmaceutical industry. European Journal of Operational Research, 207, 644-655. Li, J., Xiao, X., Tang, Q., & Floudas, C. A. (2012). Production Scheduling of a Large- Scale Steelmaking Continuous Casting Process via Unit-Specific Event-Based Continuous-Time Models: Short-Term and Medium-Term Scheduling. Industrial & engineering chemistry research, 51, 7300-7319. Li, Z., & Ierapetritou, M. (2008). Process scheduling under uncertainty: Review and challenges. Computers & Chemical Engineering, 32, 715-727. Maravelias, C. T. (2012). General framework and modeling approach classification for chemical production scheduling. AIChE Journal. Maravelias, C. T., & Grossmann, I. E. (2003). New general continuous-time state-task network formulation for short-term scheduling of multipurpose batch plants. Industrial & engineering chemistry research, 42, 3056-3074. Maravelias, C. T., & Sung, C. (2009). Integration of production planning and scheduling: Overview, challenges and opportunities. Computers & Chemical Engineering, 33, 1919-1930.