## Lecture Notes 26

## Main.LectureNotes26 History

Hide minor edits - Show changes to markup

(:html:)

<div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

(:htmlend:)

Estimation is the allignment of a process model with actual process measurements. This can be accomplished by adjusting model parameters or current state estimates. For linear models, the Kalman filter is a popular choice because of low computational requirements and ease of implementation. Moving Horizon Estimation (MHE), on the other hand, is an optimization approach that better handles problems with:

Estimation is the alignment of a process model with actual process measurements. This can be accomplished by adjusting model parameters or current state estimates. For linear models, the Kalman filter is a popular choice because of low computational requirements and ease of implementation. Moving Horizon Estimation (MHE), on the other hand, is an optimization approach that better handles problems with:

(:html:) <iframe width="560" height="315" src="//www.youtube.com/embed/Ht1atCXPp24 ?rel=0" frameborder="0" allowfullscreen></iframe> (:htmlend:)

(:html:) <iframe width="560" height="315" src="//www.youtube.com/embed/VBWfDe5n7Yg?rel=0" frameborder="0" allowfullscreen></iframe> (:htmlend:)

(:html:) <iframe width="560" height="315" src="//www.youtube.com/embed/9F3Dwgo34Lc?rel=0" frameborder="0" allowfullscreen></iframe> (:htmlend:)

### Lecture 26 - Controller Transfer Functions and Optimization

Lecture 26 demonstrates the application of Transfer Functions for process controllers. A Transfer Function relates an input to output response of a system. In this case the input is the Error (SP-PV) and the response is the Controller Output (CO).

Lecture 26 also introduces concepts from optimization and model predictive control (MPC). In MPC, the model is used to predict the system outcome and drive to a specified target or trajectory. Optimization is typically a supervisory application that delivers setpoints or targets to process controllers.

### Lecture 26 - Optimization

Lecture 26 introduces concepts from optimization and model predictive control (MPC). In MPC, the model is used to predict the system outcome and drive to a specified target or trajectory. Optimization is typically a supervisory application that delivers setpoints or targets to process controllers.

<iframe width="560" height="315" src="//www.youtube.com/embed/M_mpRrGKKMo" frameborder="0" allowfullscreen></iframe>

<iframe width="560" height="315" src="//www.youtube.com/embed/M_mpRrGKKMo?rel=0" frameborder="0" allowfullscreen></iframe>

<iframe width="560" height="315" src="//www.youtube.com/embed/eaKPzb11qFw" frameborder="0" allowfullscreen></iframe>

<iframe width="560" height="315" src="//www.youtube.com/embed/eaKPzb11qFw?rel=0" frameborder="0" allowfullscreen></iframe>

#### Karush Kuhn Tucker Conditions for Assessing Optimality

(:html:) <iframe width="560" height="315" src="//www.youtube.com/embed/eaKPzb11qFw" frameborder="0" allowfullscreen></iframe> (:htmlend:)

Follow this link for additional information and examples on the KKT conditions.

#### Refinery Optimization with Linear Programming

(:html:) <iframe width="560" height="315" src="//www.youtube.com/embed/M_mpRrGKKMo" frameborder="0" allowfullscreen></iframe> (:htmlend:)

#### Homework

- Course reading for next class: 11.1 (PDC)
- Assignment due by the start of Lecture #27: SP11
- Supplemental Excel Workbook for SP11: SP11 Excel Workbook

Don't forget to write the purpose at the beginning of each homework problem. This will help you think about each problem in the context of the overall course objectives.

(:html:)

<div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

(:htmlend:)

- Assignment due by the start of Lecture #27: [[Attach:sp11.pdf | SP11]
- Supplemental Excel Workbook for SP11: [[Attach:sp11.zip | SP11 Excel Workbook]

- Assignment due by the start of Lecture #27: SP11
- Supplemental Excel Workbook for SP11: SP11 Excel Workbook

### Lecture 26 - Controller Transfer Functions and Optimization

Lecture 26 demonstrates the application of Transfer Functions for process controllers. A Transfer Function relates an input to output response of a system. In this case the input is the Error (SP-PV) and the response is the Controller Output (CO).

Lecture 26 also introduces concepts from optimization and model predictive control (MPC). In MPC, the model is used to predict the system outcome and drive to a specified target or trajectory. Optimization is typically a supervisory application that delivers setpoints or targets to process controllers.

#### Homework

- Course reading for next class: 11.1 (PDC)
- Assignment due by the start of Lecture #27: [[Attach:sp11.pdf | SP11]
- Supplemental Excel Workbook for SP11: [[Attach:sp11.zip | SP11 Excel Workbook]

Don't forget to write the purpose at the beginning of each homework problem. This will help you think about each problem in the context of the overall course objectives.

## Background on Optimization in Process Control

The areas of **simulation**, **estimation**, **control**, and **optimization** are naturally synergistic because of their reliance on process models. One key to integrating these activities is the development of software tools that can solve large-scale, complex models efficiently.

## Simulation

The objective of process simulation is to create a virtual process that can be investigated or manipulated to give desirable results. Some common objectives of simulation activities are:

- development of better designs that incorporate life cycle features of the process
- reduction of design time and engineering effort
- maximize profitability while observing environmental constraints
- ease of control and operation

Because process parameters are rarely exactly known, the design under uncertainty gives a method to address probabilities. While process simulation often provides an single answer, design under uncertainty provides aides in decision making with imperfect information.

## Estimation

Estimation is the allignment of a process model with actual process measurements. This can be accomplished by adjusting model parameters or current state estimates. For linear models, the Kalman filter is a popular choice because of low computational requirements and ease of implementation. Moving Horizon Estimation (MHE), on the other hand, is an optimization approach that better handles problems with:

- Constraints
- Nonlinear Models
- Infrequent Measurements
- Explicit Measurement Ranking
- Statistically Insignificant Noise and Outliers

Results of the estimation may also include a probability distribution of the current process state. This distribution may be in the form of a single statistical figure or as a population of probable outcomes.

## Control

Process control has evolved into a strong discipline in process systems engineering. Traditionally this has been characterized by single loop PID controllers with incremental advances that lead to advanced elements in the control system. More recently, concepts from optimization, mathematical analysis and nonlinear dynamics have played important roles in developing more efficient and superior control strategies.

### Model Predictive Control (MPC)

Developed in the late 70s, MPC has shown significant advantages over structured PID control loops and has become the most widely used multivariable control strategy in industry. This approach is a generic strategy applied to large classes of unit operations, but was developed only with linear process models (usually derived empirically). Only recently have theoretical properties of these controllers been developed. Moreover, the discovery of many interesting properties for control and identification has led to direct results in tuning and design of these control systems in industry.

### Nonlinear Control (NLC)

All processes are nonlinear and in many cases, linear model-based controllers are no longer satisfactory. To deal with this, geometric linearization strategies have been developed and lead to powerful insights in the design of control structures. Moreover, model predictive control can also be extended directly to deal with nonlinear dynamic models. Again, properties relating to the stability, robustness and performance of these controllers still need to be explored. Also, industry has had significant successes with these controllers on batch and semi-continuous processes.

## Optimization

Improvements can be found through on-line optimization of a process, scheduling of operating strategies, changeovers and interactions between different processes, and overall planning of product productions to meet market demands.

### On-line Optimization (Hourly/Daily)

With changes in pricing structures or product demands it is often advantageous to optimize steady state models on-line. This leads to processes that can adapt to daily fluctuations in inputs and uncertainties. The current challenge is to deal with dynamic models in addition to steady state cases and also to provide a tighter coupling to the process control system.

### Process Scheduling (Weekly)

Scheduling of batch and continuous processes can have a major impact on the overall profitability of a process, as well as on the timely delivery of products. Major problems include sequencing, scheduling of equipment utilization and maintenance over a planning horizon, and inventory considerations of a process. Such problems may pose difficult combinatorial optimization problems but also contribute to high payoffs. Moreover, the results of this task have a major impact on the local operation of the process, and strong interactions exist between the scheduling, design and operation of the process.

### Planning and Supply Chain Management (Yearly)

Production planning and supply chain management provide the decision support systems for the logistics in the long range operation of networks of plants, and their coordination with marketing and business considerations. These problems give rise to very large multiperiod optimization problems where a major challenge lies in the effective aggregation of more detailed scheduling and operational models.