Model Predictive Control of an Integrated Continuous Pharmaceutical

Jump to Control-Relevant Process Modeling - This section describes two modeling approaches to obtain a linear time-invariant description of the plant-...
0 downloads 9 Views 835KB Size
Subscriber access provided by CORNELL UNIVERSITY LIBRARY

Full Paper

Model Predictive Control of an Integrated Continuous Pharmaceutical Manufacturing Pilot Plant Ali Mesbah, Joel Paulson, Richard Lakerveld, and Richard D. Braatz Org. Process Res. Dev., Just Accepted Manuscript • Publication Date (Web): 17 May 2017 Downloaded from http://pubs.acs.org on May 17, 2017

Just Accepted “Just Accepted” manuscripts have been peer-reviewed and accepted for publication. They are posted online prior to technical editing, formatting for publication and author proofing. The American Chemical Society provides “Just Accepted” as a free service to the research community to expedite the dissemination of scientific material as soon as possible after acceptance. “Just Accepted” manuscripts appear in full in PDF format accompanied by an HTML abstract. “Just Accepted” manuscripts have been fully peer reviewed, but should not be considered the official version of record. They are accessible to all readers and citable by the Digital Object Identifier (DOI®). “Just Accepted” is an optional service offered to authors. Therefore, the “Just Accepted” Web site may not include all articles that will be published in the journal. After a manuscript is technically edited and formatted, it will be removed from the “Just Accepted” Web site and published as an ASAP article. Note that technical editing may introduce minor changes to the manuscript text and/or graphics which could affect content, and all legal disclaimers and ethical guidelines that apply to the journal pertain. ACS cannot be held responsible for errors or consequences arising from the use of information contained in these “Just Accepted” manuscripts.

Organic Process Research & Development is published by the American Chemical Society. 1155 Sixteenth Street N.W., Washington, DC 20036 Published by American Chemical Society. Copyright © American Chemical Society. However, no copyright claim is made to original U.S. Government works, or works produced by employees of any Commonwealth realm Crown government in the course of their duties.

Page 1 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

Model Predictive Control of an Integrated Continuous Pharmaceutical Manufacturing Pilot Plant† Ali Mesbah,∗,‡ Joel A. Paulson,‡ Richard Lakerveld,¶ and Richard D. Braatz§ ‡Department of Chemical and Biomolecular Engineering, 201 Gilman Hall, University of California, Berkeley, CA 94720 ¶Department of Chemical and Biomolecular Engineering, The Hong Kong University of Science and Technology, Clear Water Bay, Kowloon, Hong Kong §Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA 02139, USA E-mail: [email protected]

Abstract This paper considers the model predictive control (MPC) of critical quality attributes (CQAs) of products in an end-to-end continuous pharmaceutical manufacturing pilot plant, which was designed and constructed at the Novartis-MIT Center for Continuous Manufacturing. Feedback control is crucial for achieving the stringent regulatory requirements on CQAs of pharmaceutical products in the presence of process uncertainties and disturbances. To this end, a key challenge arises from complex plantwide dynamics of the integrated process units in a continuous pharmaceutical process, †

A preliminary version of this manuscript was presented at the American Control Conference in Chicago, Illinois held on July 1–3, 2015. ∗ AM is the corresponding author: phone +1 510-642-7998, fax +1 510-642-4778

1 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

i.e., dynamical interactions between several process units. This paper presents two plant-wide MPC designs for the end-to-end continuous pharmaceutical manufacturing pilot plant using the quadratic matrix control algorithm. The plant-wide MPC designs are based on different modeling approaches – subspace identification and linearization of nonlinear differential-algebraic equations that yield, respectively, linear low-dimensional and high-dimensional state-space models for the plant-wide dynamics. The closed-loop performance of the plant-wide MPC designs is evaluated using a nonlinear plant simulator equipped with a stabilizing control layer. The closedloop simulation results demonstrate that the plant-wide MPC systems can facilitate effective regulation of CQAs and flexible process operation in the presence of uncertainties in reaction kinetics, persistent drifts in efficiency of filtration units, temporary disturbances in purity of intermediate compounds, and setpoint changes. The plantwide MPC allows for incorporating quality-by-design considerations into the control problem through input and output constraints to ensure regulatory compliant process operation. Keywords: Continuous pharmaceutical manufacturing; Plant-wide control; Model predictive control; Subspace identification

Introduction In recent years, there has been a growing interest in the pharmaceutical industry to adopt more sophisticated synthesis and manufacturing approaches. 1,2 The paradigm shift from conventional batch pharmaceutical manufacturing to continuous manufacturing is driven by demands for enhanced sustainability, reliability, and cost-effectiveness, as well as to enable the implementation of novel synthesis pathways. 3 Integrated continuous manufacturing (ICM) offers new avenues for substantially reducing the environmental footprint, manufacturing times, and costs compared to existing batch pharmaceutical processes. 4–6 In addition, ICM creates opportunities for increased use of online monitoring (i.e., process analytical

2 ACS Paragon Plus Environment

Page 2 of 33

Page 3 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

technology 7 ) for online feedback control to achieve consistently high-quality product in the presence of process uncertainties and disturbances by taking corrective actions before the product goes off-spec. Online feedback control is an alternative to the so-called design space strategy in pharmaceutical manufacturing. 8,9 A design space is defined as the multidimensional space of critical process parameters (CPPs) – input variables and process parameters – that have been demonstrated to result in acceptable critical quality attributes (CQAs) of the product. The design space strategy is to operate the CPPs within the design space, and possibly use the design space to inform feedforward control actions for counteracting measured process variations. Such a strategy enables robust process operation, in that known process variations within the design space (due to uncertainties and disturbances) can be accounted for without feedback control. 10 However, the establishment of a high-dimensional design space for ICM processes can be expensive. Also, interactions between several process units connected through a network of mass and energy streams can result in very little flexibility in process operation, with a design space that is practically too small to operate within. 11 On the other hand, when the product CQAs are monitored in real time, feedback control can be applied to keep the CQAs within their admissible limits by actively manipulating CPPs to counteract process variations. As such, feedback control can enable more robust and flexible process operation compared to the design space strategy. Feedback control of a continuous pharmaceutical manufacturing plant requires handling the complex plant-wide dynamics of the integrated process units. Advanced control of isolated process units (e.g., crystallizers, thin-film processing units, granulation units, compaction units, etc.) in pharmaceutical processes has been extensively investigated (e.g., see Refs. 12–18 and the references therein). On the other hand, the shift from batch processing to ICM critically hinges on harnessing the multivariable dynamics of a plant that is composed of several interconnected units with recycle, bypass, and heat streams. The dynamic interactions between various process units in an ICM process can significantly increase

3 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

the complexity of the plant-wide dynamics, possibly leading to a poor performance of decentralized control systems. This necessitates design of plant-wide control strategies that can systematically account for the complex plant-wide dynamics of the integrated process units, so that the stringent regulatory requirements on the CQAs of the end product can be effectively realized in the presence of process uncertainties and disturbances. This article investigates plant-wide control of an end-to-end integrated continuous pharmaceutical manufacturing pilot plant, which was designed and constructed at the NovartisMIT Center for Continuous Manufacturing. The ICM pilot plant includes chemical synthesis, purification, formulation, and tableting for manufacturing a pharmaceutical product from start (synthesis of intermediate compounds) to finish (molded tablets in final dosage form) in a fully continuous mode. 19 The dynamics of the pilot plant are described by a nonlinear plant simulator 20 , consisting of nearly 8,000 state variables∗ . This work uses the model predictive control (MPC) strategy 21 to design two plant-wide control systems for the ICM pilot plant. MPC is the most widely applied approach for advanced control of complex dynamical systems due to its ability to systematically deal with the multivariable dynamics of systems with multiple inputs and outputs, system constraints, and competing sets of control objectives. The plant-wide MPC systems are designed using the quadratic dynamic matrix control (QDMC) algorithm 22 , which relies on an input-output description of plant-wide dynamics. The input-output framework of QDMC is independent of the state dimension and therefore can alleviate the prohibitive on-line computational cost. As such, QDMC can be implemented for real-time control of ICM plants with high state dimension since they have a relatively small number of inputs (CPPs) and outputs (CQAs). In addition, QDMC enables incorporating output constraints into the control problem, which is particularly important for online control of pharmaceutical manufacturing since any quality-by-design considerations (i.e., CQAs) can be explicitly addressed in the plant-wide MPC system. This article extends our previous work on plant-wide MPC of the ICM pilot plant 23 by ∗

Certain features of the plant simulator (e.g., recycle streams, online PAT sensors) were not implemented in the real ICM pilot plant.

4 ACS Paragon Plus Environment

Page 4 of 33

Page 5 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

considering two different modeling approaches (thereby, two plant-wide MPC designs) for obtaining a linear time-invariant (LTI) approximation of the nonlinear plant dynamics. In the first modeling approach, subspace identification 24 is adopted to identify a low-dimensional state-space description for the plant dynamics using input/output data (generated by the plant simulator) around some desired steady-state operating condition. Alternatively, in the second modeling approach, the model equations (i.e., a set of nonlinear differential algebraic equations, DAEs) are linearized around the steady-state operating condition to arrive at a high-dimensional state-space model based on first principles. Both modeling approaches are validated against predictions of the nonlinear plant simulator. The developed LTI models of the plant-wide dynamics are then used to characterize the finite step response (FSR) dynamics of the pilot plant, based on which the plant-wide QDMC systems are designed. To formulate the control problem, a dynamic sensitivity analysis is performed using the plant simulator to identify the inputs that have the largest influence on the plant-wide dynamics relevant to control of the ICM pilot plant. The closed-loop performance of both plant-wide QDMC systems is evaluated on the nonlinear plant simulator, which is equipped with a basic stabilizing control layer. Various operating scenarios, including uncertainties in reaction kinetics, persistent drifts in efficiency of filtration units, temporary disturbances in purity of intermediate compounds, and setpoint changes, are considered to demonstrate the operational versatility of the plant-wide QDMC systems for the ICM pilot plant under study. In addition, the performance of the plant-wide QDMC systems is compared against that of a plant-wide regulatory control system presented in Ref. 25. The structure of the article is as follows. The integrated continuous pharmaceutical manufacturing pilot plant is first presented. This is followed by the description of the datadriven and first-principles modeling approaches adopted for obtaining a LTI representation for the nonlinear plant-wide dynamics using the existing plant simulator. The formulation of the plant-wide MPC problem for the ICM plant is outlined next, which is followed by the simulation results of the plant-wide QDMC and regulatory control systems for various

5 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Page 6 of 33

EtOAc SP

S2

SP

LC

Aq1 FC

Org1

R1

1 2

M1

P3

C1 LC

CC

3

SP

SP

C2 LC

SP

W1

S1

M2

P1

D1

P2

LC

SP

H2O

P4 EtOAc HEP EtOH/EtOAc EtOAc

M3

S3

M4

R2

S4

P6

C3 LC

LC

SP

C4 LC

W2

LC

P7

HCl

Org2

SP

P8

D2

P5

LC

SP

NaOH C4H4O4

P9

EtOH/EtOAc EtOAc Aq2

EtOAc EtOAc

M5

SiO2

S5

S6

E1

MD Tablet

PEG

Figure 1: Integrated continuous pharmaceutical manufacturing pilot plant equipped with a stabilizing control layer. R reactor, S separator, C crystallizer, M mixer, W washing/filtering unit, D dilution tank, E extruder, MD molding unit, P pump, CC concentration control, FC flow control, LC level control, SP setpoint. operating scenarios.

6 ACS Paragon Plus Environment

Page 7 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

Process Description A schematic representation of the integrated continuous pharmaceutical manufacturing pilot plant is depicted in Figure 1 (see Refs. 19,26 for a detailed description). The target active pharmaceutical ingredient (API) is aliskiren hemifumarate (compound 6 in Figure 2), which is synthesized from aliskiren (intermediate compound 5). The process consists of several units for synthesis and purification of intermediates and the API, followed by a series of downstream units in which excipients are added to the API and tablets are formed. The process starts with mixing the intermediate compound 1 with amine 2 and acid catalyst 3 (see Figure 2), which is then fed to a tubular reactor (R1) to produce the intermediate compound 4. Water and ethyl acetate (EtOAc) are added to the reactor outlet stream to solubilize the reagents and to cool the mixture (M2). The two-phase stream is separated in a membrane-based liquid-liquid separator (S1), from which an aqueous-phase stream (Aq1) containing 2 and 3 is purged. The outlet stream of S1 (containing 1 and 4) is fed into a two-stage, mixed suspension, mixed product removal (MSMPR) crystallization unit (C1 and C2) to crystallize the intermediate compound 4 by antisolvent heptane (HEP) addition and cooling. The crystallization slurry is then fed into a continuous filter (W1) to wash and filter crystals with ethanol (EtOH) and EtOAc to remove mother liquor. The permeate stream of the filter unit W1 contains a substantial amount of reactant 1 and, therefore, is recycled back to reactor R1. A flash evaporator (S2) is used to remove EtOAc from the recycled stream. A fraction of the material in the recycle loop is purged (Org1) to avoid excessive buildup of impurities (i.e., reaction byproducts). The purified crystals of the intermediate compound 4 in the outlet stream of W1 are diluted with EtOAc in a dilution tank (D1) to adjust the concentration of 4 for the second reaction (i.e., 4 to 5 in Figure 2). The slurry of compound 4 in EtOAc is mixed with aqueous hydrogen chloride, and fed into a tubular reactor (R2) to perform acid-catalyzed removal of the Boc protecting group (Boc=tert-butoxycarbonyl) from 4. The reactor outlet stream, which contains the second intermediate compound 5, is quenched with sodium hydroxide 7 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

(NaOH) to neutralize the acid catalyst. The two-phase mixture is then separated in a decanter (S3), from which the aqueous phase (Aq2) is purged. The organic-phase stream containing compound 5 is passed through an adsorption column (S4) to remove the traces of water. The API 6 is formed in a reactive crystallization step (C3), in which fumaric acid reacts with the second intermediate compound 5. The API is initially synthesized in the first MSMPR vessel (C3), and the yield is further increased in a second MSMPR vessel (C4). The API crystals are purified in a combined washing and filtration unit (W2), similar to W1, and then fed into a dilution tank (D2) to adjust the concentration of the API wet cake by adding EtOAc. Prior to tablet formulation, the first excipient (SiO2 ) is added to the crystal slurry to improve the flowabilty of the needle-shaped API crystals. This is followed by two drying steps. The bulk of EtOAc is evaporated in a double drum dryer (S5) and, subsequently, the traces of the solvent are removed in a screw dryer (S6). The dried powder is then mixed with polyethylene glycol (PEG) to improve the stability of the final tablets. The powder mixture is conveyed to an extruder (E1), which is coupled to a molding unit (MD) that forms tablets with a defined geometry. At the end of the process, the solvent content, total impurity content, and API dosage of the final tablets are measured using a near infrared instrument. In addition, the production rate of the tablets is measured. In this study, the potential CPPs consist of flow rates of all the inlet reactant, solvent, and excipient streams to the process. The API dosage and total impurity content constitute the CQAs of the manufactured tablets. The ICM pilot plant depicted in Figure 1 is equipped with a stabilizing control layer to maintain sufficient holdup in each vessel. The stabilizing control layer consists of proportionalonly level controllers (LC), which regulate the outlet flow rate from the vessel using a pump (P). In addition, a control loop is established to reject disturbances in the recycle stream to reactor R1. An in-line measurement instrument is used in the outlet stream of the reactor to measure the concentration of the reaction effluents to control the concentration of the

8 ACS Paragon Plus Environment

Page 8 of 33

Page 9 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

O

1

2

O

3

HO NH2

O

O

O O NH2

NHBoc O

4 O

OH NH2

NH

O NHBoc

Aq. HCl EtOAc

O

O

O O OH

5 O

OH

NH2

O

OH

NH2

NH

O

O O

O

6

O

OH O

O

O

NH2

NH

NH2

O

. 1/2 OH

O

OH O

Figure 2: Synthetic reactions from intermediate 1 to active pharmaceutical ingredient 6. byproducts recycled back to R1. The concentration is controlled by cascade control of the flow rate of the purge stream (Org1), where the manipulated variable of a concentration controller (CC) serves as the setpoint of a flow controller (FC) implemented on the purge stream (see Ref. 25 for the design of the stabilizing control layer).

Control-relevant Process Modeling This section describes two modeling approaches to obtain a linear time-invariant description of the plant-wide dynamics in terms of a state-space model that can be used for designing the plant-wide MPC. A plant simulator is utilized to simulate the nonlinear dynamics of the end-to-end integrated continuous pharmaceutical manufacturing pilot plant. 20 The plant simulator is developed in the JACOBIAN simulation platform (RES Group, Inc.) based on first-principles models, i.e., species mass, energy, momentum and other conservation equations and rate expressions that describe physicochemical phenomena such as chemical reaction and crystallization kinetics, and washing/filtration characteristics. The stabilizing control layer depicted in Figure 1 is incorporated into the plant simulator.

9 ACS Paragon Plus Environment

Page 10 of 33

Stream 1 Stream 2 Stream 3 Stream H O

0.6

2

0.4

Stream EtOAc Stream HEP Stream EtOH/EtOAc Stream EtOAc Stream HCL Stream NaOH Stream C4H4O4

0.2 0 −0.2

Stream EtOH/EtOAc Stream EtOAc Stream SiO2

−0.4

Stream PEG

−0.6 −0.8 0

50

100

150 Time (hr)

200

250

300

(a) API dosage

Normalized Impurity Content

1

Stream 1 Stream 2 Stream 3 Stream H2O

0.5

Stream EtOAc Stream HEP Stream EtOH/EtOAc Stream EtOAc Stream HCL Stream NaOH Stream C4H4O4

0

Stream EtOH/EtOAc Stream EtOAc Stream SiO2

−0.5

Stream PEG

−1 0

50

100

150 Time (hr)

200

250

300

(b) Total impurity content 0.6 Normalized Production Rate

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Normalized API Dosage

Organic Process Research & Development

Stream 1 Stream 2 Stream 3 Stream H2O

0.4

Stream EtOAc Stream HEP Stream EtOH/EtOAc Stream EtOAc Stream HCL Stream NaOH Stream C4H4O4

0.2

Stream EtOH/EtOAc Stream EtOAc Stream SiO2

0

Stream PEG

−0.2 0

50

100

150 Time (hr)

200

250

300

(c) Production rate

Figure 3: Dynamic sensitivity analysis of the critical quality attributes with respect to the potential critical process parameters (the streams are ordered as in Figure 1).

Identification of a Low-dimensional Model System identification is the construction of models for dynamical systems from measured input/output data using statistical methods. 24 System identification is an alternative to first-principles modeling of complex systems, when the latter approach is too involved or the complexity of a first-principles model makes its use prohibitively expensive (e.g., for real-time 10 ACS Paragon Plus Environment

Page 11 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

control). An identified model is typically developed specifically for a certain application to tradeoff model complexity versus accuracy given the application requirements. In this study, the subspace identification approach (e.g., see Ref. 27) is used to obtain a low-dimensional description of the plant-wide dynamics in the form of a LTI state-space model

x(t) ˙ = Ax(t) + Bu(t) + w(t)

(1a)

y(t) = Cx(t) + Du(t) + n(t)

(1b)

where A, B, C, and D denote the system state-space matrices, t denotes time, x ∈ Rnx denotes the state variables, x˙ is the derivative of x with respect to time, u ∈ Rnu denotes the system inputs, y ∈ Rny denotes the system outputs (i.e., CQAs), w ∈ Rnx denotes the process noise, and n ∈ Rny denotes the measurement noise. Subspace identification involves two steps: (i) the model order nx and a state sequence xˆ are determined by projecting row spaces of the input/output data block Hankel matrices, and applying a singular value decomposition; and (ii) a least-squares problem is solved to obtain the state-space matrices. 28 Prior to system identification, a dynamic sensitivity analysis is preformed using the plant simulator to determine the potential CPPs (i.e., all possible inputs) to which the CQAs are most sensitive. This step identifies the CPPs within the ICM pilot plant since these manipulatable inputs have the largest influence on the plant-wide dynamics relevant to control of the CQAs. Only the CPPs are used to excite the pilot plant (i.e., plant simulator) to generate sufficiently informative input-output data for identification of a state-space model (1). When applied to experimental data, such a reduction of potential CPPs to relevant CPPs reduces experimentation times and unnecessary process perturbations during the data collection. More generally, the reduction simplifies the control system by choosing not to manipulate inputs that are unnecessary for control of the CQAs. The simulation results indicate that the flow rates of the Streams 2, 3, H2 O, and NaOH in the pilot plant (see

11 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Figure 1) have a negligible effect on the CQAs and, therefore, are not CPPs. On the other hand, even though the flow rates of the HEP and maleic acid streams have a relatively large influence on the CQA profiles, these CPPs cannot be utilized for plant-wide control due to practical considerations pertaining to the process operation (see Ref. 25). Table 1: CPPs used for plant-wide identification and control (the streams are ordered as in Figure 1). Flow rate of Stream 1 (compound 1 in Figure 2) Flow rate of Stream EtOAc Flow rate of Stream EtOH/EtOAc Flow rate of Stream EtOAc Flow rate of Stream HCl Flow rate of Stream EtOH/EtOAc Flow rate of Stream EtOAc Flow rate of Stream SiO2 Flow rate of Stream PEG

The CPPs that can be manipulated in order to control the CQAs are listed in Table 1. These CPPs, along with purity of Stream 1 that is considered as a measured disturbance, are excited in a multistep fashion to generate input/output data for identification of the plantwide dynamics. Canonical variate analysis (CVA) subspace identification 29 is used to identify an LTI state-space model of 12th order (i.e., nx = 12 in (1)). The subspace identification is performed using the MATLAB function n4sid. The predictions of the identified model are compared against an independent data set in Figure 4. These results suggest that the identified low-dimensional model provides an adequate description of the steady-state process behavior.

12 ACS Paragon Plus Environment

Page 12 of 33

Page 13 of 33

Normalized API Dosage

1.05

Identified model Linearized model Plant

1 0.95 0.9 0.85 0.8 0

100

200

300

400 Time (hr)

500

600

700

800

(a) API dosage

Normalized Impurity Content

1.1

Identified model Linearized model Plant

1

0.9

0.8

0.7 0

100

200

300

400 Time (hr)

500

600

700

800

(b) Total impurity content 1.05 Normalized Production Rate

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

Identified model Linearized model Plant

1

0.95

0.9

0.85 0

100

200

300

400 Time (hr)

500

600

700

800

(c) Production rate

Figure 4: Comparison of the identified and linearized models with respect to an independent data set generated using the plant simulator.

Linearization of the High-dimensional Plant-wide Model The plant simulator describes the plant-wide dynamics by a set of nonlinear continuous-time differential algebraic equations,

0 = F (z(t), ˙ z(t), v(t), u(t), θ),

z(0) = z0 ,

13 ACS Paragon Plus Environment

(2)

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Page 14 of 33

where z ∈ Rnz denotes the differential state variables, z˙ denotes the derivative of z with respect to time, z(0) = z0 denotes consistent initial conditions, v ∈ Rnv denotes the algebraic state variables, θ ∈ Rnθ denotes the system parameters, and F : R2nz +nv → Rnz +nv denotes the nz + nv equations describing the nonlinear system dynamics. The system state vector is  > comprised of the differential and algebraic state variables denoted by x = z > v > ∈ Rnx with nx = nz + nv and the superscript ‘>’ referring to the vector transpose. The system outputs (i.e., y ∈ Rny ) are algebraically related to x, u, and θ. Hence, y can be included in the definition of x in (2) as algebraic state variables to simplify notation. Taylor series expansion can be used to obtain an LTI state-space approximation of (2) around a steady-state operating point (e.g., Ref. 30),

M x(t) ˙ = A(x(t) − xss ) + B(u(t) − uss ),

(3)

with the subscript ‘ss’ being the steady-state solution (i.e., x(∞) = xss that satisfies (2) given u(∞) = uss , z(∞) ˙ = 0, and θ). The system matrices in (3) are defined by "

# ∂F M= 0nx ×nv ∂ z˙ ss " # ∂F ∂F A=− ∂z ss ∂v ss ∂F B=− ∂u

(4a) (4b) (4c)

ss

where



∂F ∂α ss

denotes the Jacobian of the function F with respect to the variable α evaluated

at the steady state such that the ij th element is the partial derivative of Fi with respect to αj , and 0nx ×nv denotes a zero matrix of size nx by nv . The state-space model (3) is high dimensional with 7613 state variables (nz = 6087 and nv = 1526). The system inputs consists of the CPPs listed in Table 1 (nu = 9). The system matrices (4) are derived efficiently using the automatic differentiation feature of DAEPACK 31 , which takes a Fortran-based system model as input and generates the Jaco14 ACS Paragon Plus Environment

Page 15 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

bian matrices of the model. A Fortran version of (2) was generated using a code generation patch to the JACOBIAN simulation platform, in which the plant simulator is implemented. The consistent initial conditions for the high-dimensional state-space model are obtained by solving the sparse linear set of equations in (3) at t = 0:    ∂F ∂F ve0  ∂F u0 − ze0   = Be ∂v ss ∂ z˙ ss z˙ ∂z ss | {z } 0 | {z }



Ainitial

(5)

binitial

where x e denotes the deviation variable form of x (i.e., x e = x − xss ) and x0 denotes the initial condition of x (i.e., x0 := x(t = 0)). For the given initial inputs u e0 and set of differential state values ze0 , (5) is solved to determine the remaining unknowns ve0 and z˙0 . In this study, the stiff differential-algebraic equation solver ode15s in MATLAB is used to solve (3) with the consistent initial conditions given by (5). The predictions of the state-space model (3) are shown in Figure 4. The high-dimensional model can adequately predict the dynamics of the nonlinear plant simulator. The simulation results suggest that the high-dimensional model (locally) describes the transient dynamics more accurately than the identified low-dimensional model. The first-principles nature of the linearized model leads to more accurate representation of process dynamics at the expense of computational complexity due to the significantly larger state dimension.

Plant-wide Model Predictive Control The quadratic dynamic matrix control (QDMC) algorithm is used to design a plant-wide MPC system for the ICM pilot plant. 22 QDMC is particularly advantageous for ICM processes as the optimization that is solved online is independent of the state dimension of the original model (3). As listed in Table 1, the process has nine CPPs that can be used as manipulated variables (i.e., control inputs). Let uk ∈ R9 denote a vector of these values at sampling time k. The 15 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Page 16 of 33

control objective is to regulate the API dosage and production rate of the manufactured tablets to follow desired setpoint trajectories in the presence of process uncertainties and disturbances, while ensuring that the total impurity content of the tablets remains below an admissible threshold. These three quantities define the CQAs of the system, which are stacked into vector yk ∈ R3 yk = [API(tk ), PR(tk ), IMP(tk )]> ,

where API(t) is the API dosage at time t, PR(t) is the production rate at time t, and IMP(t) is the impurity content at time t, and tk = t0 + kδt is the actual time corresponding to index k for a fixed sampling time δt. Using the finite step response (FSR) model of length N (see Figure 5) of the form PN −1 Si ∆uk−i + SN (uk−N − uss ), which can be computed by simulating a unit yk = yss + i=1 step on either (1) or (3), we can predict the future evolution of the CQAs at time k + l, 0 < l < N as a function of the future CPP moves:

yk+l|k =

l X

Si ∆uk+l−i|k

(effect of future moves)

(6)

i=1 N −1 X

+ yss +

Si ∆uk+l−i|k + SN (uk+l−N − uss )

(effect of past moves)

i=l+1

+ dk+l|k

(predicted disturbances)

where Si is the ith unit step response coefficient matrix of the system and ∆uk = uk − uk−1 . Writing this in matrix-vector form for l = 1, 2, . . . , Np results in 





0 yk+1|k











 yk+1|k     ∆uk|k   dk+1|k   .   .     .  ..  ..  =  ..  + G   +  ..  .                 0 yk+Np |k yk+N ∆u d k+Nc −1|k k+Np |k p |k

16 ACS Paragon Plus Environment

(7)

s1

s2

sN

sk

s3

0

u

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

y

Page 17 of 33

Discrete Time Index, k

Figure 5: Finite step response model. where Np is the prediction horizon, Nc is the control horizon (after which the input moves are set to zero ∆uk+j|k = 0 for all j ≥ Nc ), G is the dynamic matrix 



0 0  S1  S S1 0  2  ..  .. ...  . .  G=  Sj Sj−1 Sj−2   . .. ..  .. . .   SNp sNp −1 SNp −2 0 and yk+l|k = yss +

PN −1

i=l+1

···

0

0

··· ...

0

0

...

...

···

···

Sj−Nc +1 .. .

···

· · · SNp −Nc +1

       ,       

Si ∆uk+l−i|k + SN (uk+l−N − uss ) is the contribution to yk+l|k due to

past input moves (sometimes referred to as the ‘free response’ of the system). The future disturbances, which represent unmodeled effects to the plant, are not known to the controller such that they must be estimated. QDMC uses the ‘additive disturbance method’ in which 0 dk|k = ykmeas − yk|k is estimated based on the current feedback measurement of the CQAs,

denoted by ykmeas , and the predicted disturbance is assumed to be equal to the present value into the future, i.e., dk+i+1|k = dk+i|k for all i ≥ 0. This rule has been shown to be optimal for systems with integrated disturbances. 32

17 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Page 18 of 33

The optimal control problem to be solved at each sampling time k is defined as Np −1

min

∆uk|k ,...,∆uk+Nc −1

X

(yk+i+1|k − ySP )> Wy (yk+i+1|k − ySP ) + ∆u> k+i|k Wu ∆uk+i|k ,

(8a)

i=0

subject to: FSR prediction equations (7), 0.8uss ≤ uk+i|k ≤ 1.2uss , i = 0, . . . , Nc − 1,   0 0 1 yk+i+1|k ≤ IMPmax , i = 0, . . . , Np − 1,

(8b) (8c) (8d)

where uss is the steady-state input value and IMPmax = 1.08IMPss is the maximum allowed impurity content equal to 8% of its steady state value. The objective function (8a) penalizes deviations from the predicted CQAs and their respective desired setpoint ySP and future changes in the inputs. These terms are weighted by user-chosen matrices Wy and Wu that should be tuned to achieve the best possible performance. Equations (8b) represent the model predictions of the CQAs as a function of future input moves. Equations (8c) are input constraints that force the CPPs to stay within chosen bounds and (8d) are constraints on the impurity content. This optimization can be formulated as a convex quadratic program that can efficiently be solved to global optimality using interior point or active set methods (see Ref. 22 for further details). The output weight matrix Wy in the objective function is selected such that the API dosage more effectively follows its respective setpoint trajectory than the production rate. This difference is importance is because the API dosage is the primary CQA of the manufactured tablets, which cannot be compromised due to stringent regulatory requirements. The impurity content requirements of tablets are addressed through an output constraint that should be fulfilled at all times (8d). Hence, the degrees of freedom of the process (i.e., CPPs) can be exploited intelligently to achieve the desired API dosage (and with lesser importance the desired production rate), while satisfying the impurity content limit of tablets during the process operation. In addition, (8) enables incorporating the QbD considerations into the control problem through input constraints to ensure regulatory compliant process operation. 18 ACS Paragon Plus Environment

Page 19 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

Past

Future

Setpoint

y(k+1) y(k)

u(k+Nc-1)

Δu(k) Δu(k+1) k k+1

k+NC -1

k+Np

Prediction Horizon

Figure 6: Receding-horizon implementation of the plant-wide QDMC system. The plant-wide QDMC system is implemented in a receding-horizon mode, as illustrated in Figure 6, which requires online solution of the optimal control problem (8) over the control horizon Nc at every time instant k. Online measurements of the CQAs are used to continuously update the prediction model at each sampling time instant through the disturbance update rule. This measurement feedback addresses the effects of uncertainties and disturbances on optimal process operation. The solution of (8) is sequences of input values ∆u?k|k , . . . , ∆u?k+Nc −1|k . Only the first element uk = uk−1 + ∆u?k|k is applied to the ICM pilot plant. Once new CQA measurements become available at the sampling time instant k +1, the prediction horizon shifts one sample ahead, and the optimization procedure is repeated. The receding-horizon implementation of the control system partly mitigates performance degradation due to model imperfections and process disturbances.

Results and Discussion This section presents the closed-loop simulation results of the plant-wide model predictive control of the integrated continuous pharmaceutical manufacturing pilot plant under various scenarios pertaining to process uncertainties and disturbances. Two plant-wide QDMC systems are designed by using the low-dimensional identified model (1) and the high-dimensional 19 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

linearized model (3) to obtain the finite step response models in the optimal control problem (8). The plant-wide QDMC systems based on the low-dimensional identified and highdimensional linearized models are labeled as SS-MPC and LM-MPC, respectively. The closed-loop simulation results are obtained by applying the optimal control inputs to the nonlinear plant simulator. The CQAs are sampled every 5 min, and are fed back to the control systems to update the prediction model. The performance of the plant-wide QDMC systems is compared to that of a plant-wide regulatory control system that consists of multiloop proportional-integral controllers (see Ref. 25). The plant-wide QDMC and regulatory control systems are mounted on top of a stabilizing control layer integrated into the plant simulator to ensure stable process operation. The simulation results also include an openloop case, where only the stabilizing control layer is used. In what follows, the normalized CQA profiles are obtained by normalizing the actual CQA values with respect to the desired steady-state CQA values.

Parametric Uncertainties in Reaction Kinetics To investigate the effect of parametric uncertainties on plant-wide control of the ICM pilot plant, a gradual change in synthesis of the intermediate and API compounds in reactors R1 and R2 (see Figure 1) is induced by defining the reaction kinetics as    1 − 0.005t, if t < 20

kR1,1 (t) = 0  kR1,1  0.90,

if t ≥ 20

   1 + 0.01t, if t < 100

kR2,2 (t) = 0  kR2,2  2.0,

if t ≥ 100

20 ACS Paragon Plus Environment

Page 20 of 33

Page 21 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

where kR1,1 and kR2,2 denote the rate constants for the intermediate and API compound 0 0 synthesis reactions, respectively (see Tables 1 and 2 in 20 ), and kR1,1 and kR2,2 denote the

nominal values of the rate constants. Figure 7 depicts the closed-loop simulation results for the plant-wide QDMC and regulatory control systems, as well the open-loop case where only the stabilizing control layer is used for level control. As can be seen, in the open-loop case with no active control the ICM pilot plant cannot be retained at the desired steady-state operating condition in the presence of process uncertainties (i.e., the normalized API dosage and production rate profiles do not remain at 1.0 in Figures 7a and 7b, respectively). In addition, the impurity level violates its maximum admissible level in the open-loop case, leading to production of off-spec tablets. This observation calls for active control of the ICM pilot plant so as to be able to fulfill the stringent regulatory requirements for the CQAs of the manufactured tablets. The simulation results indicate the ability of plant-wide MPC in effectively dealing with process uncertainties, as the API dosage and production rate profiles can follow the setpoint trajectories closely (i.e., the normalized profiles remain close to 1.0). Figure 7a shows that both plant-wide QDMC systems with the underlying low-dimensional identified model (SSMPC) and the high-dimensional linearized model (LM-MPC) outperform the regulatory control system in terms of maintaining the desired API dosage specification. The improved product quality is due to the ability of MPC to deal with multivariable dynamics of the ICM pilot plant, while multiloop PID controllers cannot accomplish this systematically. Although the improvement gained in the API dosage setpoint tracking is approximately 1% using the plant-wide QDMC systems as compared to the plant-wide regulatory control system, the difference is significant in pharmaceutical manufacturing since the CQAs of the tablets cannot be compromised. Figure 7c clearly shows the ability of plant-wide MPC in constraint handling (i.e., circumventing violation of the maximum admissible impurity level). Note that the plant-wide regulatory control system maintains the impurity level at some pre-specified value using a PI controller (see Ref. 25) and, therefore, the impurity level profile remains at

21 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

1.0. However, by explicitly incorporating the CQA constraints into the control framework, plant-wide MPC systems are able to systematically exploit the extra degrees of freedom of the process to more effectively achieve the regulatory requirements for the other CQAs (e.g., the API dosage in this scenario).

Persistent Disturbance in Filtration Units The effect of persistent disturbances on plant-wide control of the ICM pilot plant is investigated by persistently decreasing the washing efficiency in the filtration units W1 and W2 (see Figure 1) as    exp(−0.002t), if t < 200

KW,2 (t) KW,1 (t) = = 0 0  KW,1 KW,2  0.70,

if t ≥ 200

0 0 where KW,1 and KW,2 are the nominal values for the wash factor in the filtration units W1

and W2, respectively (Ref. 20). The closed-loop simulation results are depicted in Figure 8. The plant-wide QDMC systems (especially SS-MPC) are seen to lead to effective tracking of the setpoint trajectories and, therefore, enable operation of the ICM pilot plant around the desired steady-state operating point effectively in the presence of persistent disturbances. The plant-wide QDMC system with the low-dimensional identified model (SS-MPC) slightly outperforms the plant-wide regulatory control system in terms of achieving smoother setpoint tracking. Yet again, open-loop control with the stabilizing control layer results in a substantial degradation of the CQAs of tablets due to significant and persistent process disturbances.

22 ACS Paragon Plus Environment

Page 22 of 33

Page 23 of 33

Normalized API Dosage

1.04 Open-loop Control Regulatory Control SS-MPC LM-MPC

1.02 1 0.98 0.96 0.94

0

50

100

150 200 Time (hr)

250

300

350

(a) API dosage

Normalized Production Rate

1.04 Open-loop Control Regulatory Control SS-MPC LM-MPC

1.02 1 0.98 0.96 0.94

0

50

100

150 200 Time (hr)

250

300

350

(b) Production rate 1.15

Normalized Impurity Level

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

1.1

Open-loop Control Regulatory Control SS-MPC LM-MPC

Maximum Admissible Impurity

1.05 1 0.95 0.9 0

50

100

150

200

250

300

350

Time (hr)

(c) Total impurity content

Figure 7: Closed-loop control of the ICM pilot plant with the plant-wide MPC and regulatory control systems in the presence of parametric uncertainties in the intermediate and API synthesis reaction kinetics (reactors R1 and R2 in Figure 1). Two plant-wide QDMC systems based on the low-dimensional identified model (SS-MPC) and the high-dimensional linearized model (LM-MPC) are designed. The performance of the plant-wide control systems is compared to that of an open-loop control case, in which only the stabilizing control layer is in place.

23 ACS Paragon Plus Environment

Organic Process Research & Development

Normalized API Dosage

1.02 Open-loop Control Regulatory Control SS-MPC LM-MPC

1.01 1 0.99 0.98 0.97 0.96 0.95

0

50

100

150 200 Time (hr)

250

300

350

(a) API dosage 1.01 Normalized Production Rate

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Page 24 of 33

1 Open-loop Control Regulatory Control SS-MPC LM-MPC

0.99 0.98 0.97 0.96

0

50

100

150 200 Time (hr)

250

300

350

(b) Production rate

Figure 8: Closed-loop control of the ICM pilot plant using the plant-wide MPC and regulatory control systems in the presence of persistence disturbance in the filtration units (filter units W1 and W2 in Figure 1). Two plant-wide QDMC systems based on the lowdimensional identified model (SS-MPC) and the high-dimensional linearized model (LMMPC) are designed. The performance of the plant-wide control systems is compared to that of an open-loop control case, in which only the stabilizing control layer is in place.

Temporary Disturbance in Purity Level of Intermediate Compound The purity level of the intermediate compound 1 (stream 1 in Figure 1) is changed, i.e.

x1 (t) =

   0.975, if 50 ≤ t ≤ 200   0.99,

otherwise

to investigate the ability of the plant-wide control systems to deal with temporary disturbances. The closed-loop simulation results indicate that the plant-wide QDMC systems

24 ACS Paragon Plus Environment

Page 25 of 33

Normalized API Dosage

1.04

Open-loop Control Regulatory Control SS-MPC LM-MPC

1.02 1 0.98 0.96 0.94 0.92

0

50

100

150 200 Time (hr)

250

300

350

(a) API dosage 1.04 Normalized Production Rate

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

Open-loop Control Regulatory Control SS-MPC LM-MPC

1.02 1 0.98 0.96 0.94

0

50

100

150 200 Time (hr)

250

300

350

(b) Production rate

Figure 9: Closed-loop control of the ICM pilot plant using the plant-wide MPC and regulatory control systems in the presence of temporary disturbance in the purity level of the intermediate compound 1 (stream 1 in Figure 1). Two plant-wide QDMC systems based on the low-dimensional identified model (SS-MPC) and the high-dimensional linearized model (LM-MPC) are designed. The performance of the plant-wide control systems is compared to that of an open-loop control case, in which only the stabilizing control layer is in place. outperform the plant-wide regulatory control system, in particular for the API dosage setpoint tracking (see Figure 9). Both SS-MPC and LM-MPC enable maintaining the API dosage tightly at the desired setpoint in the presence of feed impurities, which is important in industrial-scale pharmaceutical manufacturing as it requires robust fulfillment of the regulatory requirements for CQAs in terms of coping with process changes and disturbances.

25 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Step Increase in Production Rate The ability of the plant-wide control systems in dealing with setpoint changes is evaluated by changing the production rate setpoint by 5% (see Figure 10b, setpoint change starts at 100 hours). As can be seen in Figure 10a, the plant-wide QDMC systems enable tracking the API dosage setpoint trajectory more closely than the plant-wide regulatory control system. In addition, the plant-wide QDMC systems lead to faster transition dynamics to the new setpoint, as shown in Figure 10b. The plant-wide MPC results in production of less off-spec tablets during the production rate setpoint change and, therefore, offers more flexibility in operation of the ICM pilot plant.

Conclusions This article presents two plant-wide MPC systems for an end-to-end continuous pharmaceutical manufacturing pilot plant built at the Novartis-MIT Center for Continuous Manufacturing. Two modeling approaches – subspace identification and linearization of the plant-wide model in the form of a set of nonlinear DAEs – are investigated to obtain a linear low-dimensional and high-dimensional representation of the nonlinear plant dynamics, respectively. The quadratic dynamic matrix control algorithm is applied for designing an input-output control framework for the plant-wide MPC of the integrated continuous manufacturing pilot plant, independent of the plant state dimension. The subspace identification method can be straightforwardly applied to derive a loworder, data-driven model of an ICM process when a sufficient amount of informative data can be generated through perturbations of the CPPs during process operation. In the simulations, no noticeable control performance loss was incurred using the low-order subspace model for the ICM process at hand. In practice, however, excessive perturbations may be required during the identification experiments required for developing an accurate subspace model, resulting in a large amount of off-spec material. An alternative to subspace

26 ACS Paragon Plus Environment

Page 26 of 33

Page 27 of 33

Normalized API Dosage

1.02 Regulatory Control SS-MPC LM-MPC

1.01

1

0.99

0.98

0

50

100

150 200 Time (hr)

250

300

350

(a) API dosage 1.1 Normalized Production Rate

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

Regulatory Control SS-MPC LM-MPC

1.05

1

0.95

0

50

100

150 200 Time (hr)

250

300

350

(b) Production rate

Figure 10: Dynamic response of the ICM pilot plant to a 5% step increase in production rate introduced at 100 hours. The pilot plant is in closed-loop operation with the plantwide MPC and regulatory control systems. Two plant-wide QDMC systems based on the low-dimensional identified model (SS-MPC) and the high-dimensional linearized model (LMMPC) are designed. identification is to develop a process model based on first principles independent of plant experimentation, e.g., first-principles models built and validated using laboratory-scale data. Since first-principles models of ICMs are generally nonlinear and computationally expensive for use for online control, the process models can be linearized using Taylor series and then directly converted to an efficient input-output model for use in the QDMC algorithm. The closed-loop simulation case studies indicate that the plant-wide MC controllers designed using the linearization-based and subspace modeling approaches lead to comparable closed-loop performance for various operating scenarios pertaining to process uncertainties, disturbances, and setpoint changes in the ICM process under study. Since both modeling approaches re27 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

quire, respectively, a detailed set of model equations or enough informative process data, the choice of the modeling approach in practice hinges on the availability of process data or first-principles process models for a given application. Irrespective of the modeling approach, this paper demonstrates that plant-wide MPC facilitates effective regulation of CQAs and flexible process operation in the presence of process uncertainties and disturbances of different nature. In addition, plant-wide MPC enables incorporating the QbD considerations into the control formulation through input and output constraints to ensure regulatory compliant process operation. As such, the control design can explicitly address the stringent regulatory requirements in the pharmaceutical industry.

Acknowledgments Financial support from Novartis is acknowledged.

References (1) Leuenberger, H. New trends in the production of pharmaceutical granules: Batch versus continuous processing. Pharmaceutical Research 2001, 52, 289–296. (2) Suresh, P.; Basu, P. Improving pharmaceutical product development and manufacturing: Impact on cost of drug development and cost of goods sold of pharmaceuticals. Journal of Pharmaceutical Innovation 2008, 3, 175–187. (3) Poechlauer, P.; Manley, J.; Broxterman, R.; Gregertsen, B.; Ridemark, M. Continuous processing in the manufacture of active pharmaceutical ingredients and nished dosage forms: An industry perspective. Organic Process Research & Development 2013, 16, 1586–1590. (4) Roberge, D. M.; Zimmermann, B.; Rainone, F.; Gottsponer, M.; Eyholzer, M.; Kockmann, N. Microreactor technology and continuous processes in the fine chemical and 28 ACS Paragon Plus Environment

Page 28 of 33

Page 29 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

pharmaceutical industry: Is the revolution underway? Organic Process Research & Development 2008, 12, 905–910. (5) Benaskar, F.; Ben-Abdelmoumen, A.; Patil, N. G.; Rebrov, E. V.; Meuldijk, J.; Hulshof, L. A.; Hessel, V.; Krtschill, U.; Schouten, J. C. Cost analysis for a continuously operated fine chemicals production plant at 10 kg/day using a combination of microprocessing and microwave heating. Journal of Flow Chemistry 2011, 1, 74–89. (6) Schaber, S. D.; Gerogiorgis, D. I.; Ramachandran, R.; Evans, J. M. B.; Barton, P. I. Economic analysis of integrated continuous and batch pharmaceutical manufacturing: A case study. Industrial Engineering & Chemistry Research 2011, 50, 10083–10092. (7) Wu, H.; Khan, M. A.; Hussain, A. S. Process control perspective for process analytical technology: Integration of chemical engineering practice into semiconductor and pharmaceutical industries. Chemical Engineering Communications 2007, 194, 760–779. (8) Lionberger, R. A.; Lee, S. L.; Lee, L.; Raw, A.; Yu, L. X. Quality by design: Concepts for ANDAs. The AAPS Journal 2008, 10, 268–275. (9) Kishida, M.; Braatz, R. D. Skewed structured singular value-based approach for the construction of design spaces: Theory and applications. IET Control Theory & Applications 2014, 8, 1321–1327. (10) Yu, L. X. Pharmaceutical quality by design: Product and process development, understanding, and control. Pharmaceutical Research 2008, 25, 781–791. (11) Harinath, E.; Foguth, L. C.; Braatz, R. D. A robust dual-mode MPC approach to ensuring critical quality attributes in Quality-by-Design. Proceedings of the American Control Conference. 2016; pp 2041–2046. (12) Wang, F. Y.; Ge, X. Y.; Balliu, N.; Cameron, I. T. Optimal control and operation of drum granulation processes. Chemical Engineering Science 2006, 61, 257–267. 29 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

(13) Hsu, S. H.; Reklaitis, G. V.; Venkatasubramanian, V. Modeling and control of roller compaction for pharmaceutical manufacturing. Part II: Control system design. Journal of Pharmaceutical Innovation 2010, 5, 24–36. (14) Mesbah, A.; Landlust, J.; Huesman, A. E. M.; Kramer, H. J. M.; Jansens, P. J.; Van den Hof, P. M. J. A model-based control framework for industrial batch crystallization processes. Chemical Engineering Research and Design 2010, 88, 1223–1233. (15) Ramachandran, R.; Arjunan, J.; Chaudhury, A.; Ierapetritou, M. G. Model-based control-loop performance of a continuous direct compaction process. Journal of Pharmaceutical Innovation 2011, 6, 249–263. (16) Nagy, Z. K.; Braatz, R. D. Advances and new directions in crystallization control. Annual Review of Chemical and Biomolecular Engineering 2012, 3, 55–75. (17) Mesbah, A.; Nagy, Z. K.; Huesman, A. E. M.; Kramer, H. J. M.; den Hof, P. M. J. V. Nonlinear Model-based Control of a Semi-industrial Batch Crystallizer using a Population Balance Modeling Framework. IEEE Transactions on Control Systems Technology 2012, 20, 1188–1201. (18) Mesbah, A.; Versypt, A. N. F.; Zhu, X.; Braatz, R. D. Nonlinear Model-based Control of Thin-film Drying for Continuous Pharmaceutical Manufacturing. Industrial & Engineering Chemistry Research 2014, 53, 7447–7460. (19) Mascia, S.; Heider, P. L.; Zhang, H.; Lakerveld, R.; Benyahia, B.; Barton, P. I.; Braatz, R. D.; Cooney, C. L.; Evans, J. M. B.; Jamison, T. F.; Jensen, K. F.; Myerson, A. S.; Trout, B. L. End-to-end continuous manufacturing of pharmaceuticals: Integrated synthesis, purification, and final dosage formation. Angewandte Chemie International Edition 2013, 52, 12359–12363. (20) Benyahia, B.; Lakerveld, R.; Barton, P. I. A plant-wide dynamic model of a continuous

30 ACS Paragon Plus Environment

Page 30 of 33

Page 31 of 33

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

Organic Process Research & Development

pharmaceutical process. Industrial Engineering & Chemistry Research 2012, 51, 15393– 15421. (21) Morari, M.; Lee, J. H. Model predictive control: Past, present and future. Computers & Chemical Engineering 1999, 23, 667–682. (22) Garcia, C. E.; Morshedi, A. M. Quadratic programming solution of dynamic matrix control (QDMC). Chemical Engineering Communications 1986, 46, 73–87. (23) Mesbah, A.; Paulson, J. A.; Lakerveld, R.; Braatz, R. D. Plant-wide model predictive control for a continuous pharmaceutical process. Proceedings of the American Control Conference. 2015; pp 4301–4307. (24) Ljung, L. System Identification: Theory for the User ; Prentice Hall PRC: Piscataway, New Jersey, 1999. (25) Lakerveld, R.; Benyahia, B.; Braatz, R. D.; Barton, P. I. Model-based design of a plantwide control strategy for a continuous pharmaceutical pilot plant. AIChE Journal 2013, 59, 3671–3685. (26) Heider, P. L.; Born, S. C.; Basak, S.; Benyahia, B.; Lakerveld, R.; Zhang, H.; Hogan, R.; Buchbinder, L.; Wolfe, A.; Mascia, S.; B., E. J. M.; F., J. T.; F., J. K. Development of a multi-step synthesis and workup sequence for an integrated, continuous manufacturing process of a pharmaceutical. Organic Process Research & Development 2014, 18, 402– 409. (27) Qin, S. J. An overview of subspace identification. Computers & Chemical Engineering 2006, 30, 1502–1513. (28) van Overschee, P.; Moor, B. L. D. Subspace Identification for Linear Systems: Theory – Implementation – Applications; Kluwer Academic Publishers: Norwell, Massachusetts, 1996. 31 ACS Paragon Plus Environment

Organic Process Research & Development

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

(29) Larimore, W. E. Canonical variate analysis in identification, filtering and adaptive control. Proceedings of the IEEE Conference on Decision and Control. 1990; pp 596– 604. (30) Bequette, B. W. Process Control: Modeling, Design, and Simulation; Prentice Hall Professional: Piscataway, New Jersey, 2003. (31) Tolsma, J.; Barton, P. I. DAEPACK: An open modeling environment for legacy models. Industrial & Engineering Chemistry Research 2000, 39, 1826–1839. (32) Lee, J. H. Robust Inferential Control: A Methodology for Control Structure Selection and Inferential Control System Design in the Presence of Model/Plant Mismatch. Ph.D. thesis, California Institute of Technology, Pasadena, California, 1990.

32 ACS Paragon Plus Environment

Page 32 of 33

Page 33 of 33

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 31 32 33 34 35 36 37 38 39 40 41

Organic Process Research & Development

ACS Paragon Plus Environment