## Lecture Notes 26

## Main.LectureNotes26 History

Show minor edits - Show changes to output

Deleted lines 102-120:

----

(: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:)

Changed line 62 from:

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:

to:

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:

Added lines 6-10:

(:html:)

<iframe width="560" height="315" src="//www.youtube.com/embed/Ht1atCXPp24

?rel=0" frameborder="0" allowfullscreen></iframe>

(:htmlend:)

Changed lines 8-14 from:

to:

(:html:)

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

(:htmlend:)

* %list list-page% [[Attach:Lecture26_optimization2.pdf | Lecture 26 Handout - Nonlinear Programming]]

Added lines 9-11:

(:html:)

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

(:htmlend:)

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

(:htmlend:)

Changed lines 1-7 from:

!!! 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).

* %list list-page% [[Attach:Lecture_Closed_Loop_Transfer_Functions.pdf | Closed Loop Transfer Function Lecture Notes]]

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 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).

* %list list-page% [[Attach:Lecture_Closed_Loop_Transfer_Functions.pdf | Closed Loop Transfer Function Lecture Notes]]

Lecture 26 also

to:

!!! 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.

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.

Changed line 17 from:

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

to:

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

Changed line 23 from:

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

to:

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

Added lines 20-26:

!!!! 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 [[https://apmonitor.com/me575/index.php/Main/KuhnTucker|additional information and examples on the KKT conditions]].

(:html:)

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

(:htmlend:)

Follow this link for [[https://apmonitor.com/me575/index.php/Main/KuhnTucker|additional information and examples on the KKT conditions]].

Added lines 13-18:

!!!! Refinery Optimization with Linear Programming

(:html:)

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

(:htmlend:)

Added lines 5-6:

* %list list-page% [[Attach:Lecture_Closed_Loop_Transfer_Functions.pdf | Closed Loop Transfer Function Lecture Notes]]

Changed line 9 from:

* %list list-page% [[Attach:~~Lecture26~~_~~notes~~.pdf | Lecture~~ 26~~ Notes]]

to:

* %list list-page% [[Attach:Lecture_Optimization.pdf | Optimization Lecture Notes]]

Deleted lines 10-18:

!!!! 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 [[Main/CourseCompetencies | overall course objectives]].

Added lines 8-11:

* %list list-page% [[Attach:Lecture26_optimization1.pdf | Lecture 26 Handout - Optimization Intro]]

* %list list-page% [[Attach:Lecture26_optimization2.pdf | Lecture 26 Handout - Nonlinear Programming]]

Added lines 83-101:

----

(: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:)

Changed lines 12-13 from:

# Assignment due by the start of Lecture #27: [[Attach:sp11.pdf | SP11]

# Supplemental Excel Workbook for SP11: [[Attach:sp11.zip | SP11 Excel Workbook]

to:

# Assignment due by the start of Lecture #27: [[Attach:sp11.pdf | SP11]]

# Supplemental Excel Workbook for SP11: [[Attach:sp11.zip | SP11 Excel Workbook]]

# Supplemental Excel Workbook for SP11: [[Attach:sp11.zip | SP11 Excel Workbook]]

Added lines 1-82:

!!! 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.

* %list list-page% [[Attach:Lecture26_notes.pdf | Lecture 26 Notes]]

!!!! 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 [[Main/CourseCompetencies | 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.

Attach:frequency.png|'''Figure 1.''' The typical frequency ranges from once for process design to a minute by minute cycle for model predictive control. Sharing information between layers is a key to synergies for model development and refinement over the lifecycle of the process.

----

!! %blue%Simulation%black%

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.

----

!! %blue%Estimation%black%

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.

----

!! %blue%Control%black%

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.

----

!! %blue%Optimization%black%

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.

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.

* %list list-page% [[Attach:Lecture26_notes.pdf | Lecture 26 Notes]]

!!!! 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 [[Main/CourseCompetencies | 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.

Attach:frequency.png|'''Figure 1.''' The typical frequency ranges from once for process design to a minute by minute cycle for model predictive control. Sharing information between layers is a key to synergies for model development and refinement over the lifecycle of the process.

----

!! %blue%Simulation%black%

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.

----

!! %blue%Estimation%black%

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.

----

!! %blue%Control%black%

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.

----

!! %blue%Optimization%black%

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.