Main

The following files are a Simulink example of dynamic estimation and dynamic optimization. Separate blocks run the estimation and control algorithms for Model Predictive Control (MPC) with constrained nonlinear programming.
~~http://www.youtube.com/watch?v~~=~~Oae-S5AzZCk&feature~~=~~share&list~~=PLLBUgWXdTBDjVLQVMnT80y6m_97XNhBZv~~&index~~=~~20~~
~~<iframe width~~=~~"560" height~~=~~"315" src~~=~~"//www.youtube.com/embed/Oae-S5AzZCk?rel~~=~~0" frameborder="0" allowfullscreen></iframe>~~

(:html:)

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

(:htmlend:)

* [[Attach:dynopt.zip|Download Excel, MATLAB, and Python Files for Dynamic Parameter Estimation (dynopt.zip)]]

----

!!! Estimation and Control with APM in Simulink

* [[Attach:apm_simulink.zip|Download APM Simulink Files (zip)]]

* [[Attach:dynamic_data.zip|Download Dynamic Simulation Files (zip)]]

## Dynamic Optimization for Engineering Design

## Main.DynamicOptimization History

Hide minor edits - Show changes to output

Changed line 58 from:

* [[~~Attach~~:~~blood_glucose_optimal_control~~.~~zip~~|Download Exothermic Reactor Files]]

to:

* [[http://apmonitor.com/do/index.php/Main/NonlinearControl|Download Exothermic Reactor Files with Video Solutions]]

Added lines 50-58:

----

!!! Reduce Pollution from an Exothermic Reactor

The objective is to reduce the concentration of the pollution from an exothermic reactor without exceeding an upper temperature limit. Python, MATLAB, and Simulink simulations are available for download at the link below.

Attach:cstr.png

* [[Attach:blood_glucose_optimal_control.zip|Download Exothermic Reactor Files]]

!!! Reduce Pollution from an Exothermic Reactor

The objective is to reduce the concentration of the pollution from an exothermic reactor without exceeding an upper temperature limit. Python, MATLAB, and Simulink simulations are available for download at the link below.

Attach:cstr.png

* [[Attach:blood_glucose_optimal_control.zip|Download Exothermic Reactor Files]]

Added lines 21-22:

This 5 minute tutorial gives step-by-step instructions on how to simulate dynamic systems. Dynamic systems may have differential and algebraic equations (DAEs) or just differential equations (ODEs) that cause a time evolution of the response. The tutorial covers the same problem in both MATLAB and Python.

Added lines 33-34:

This next tutorial covers how to simulate changing inputs over a time horizon with a dynamic model. The inputs change at regular intervals, causing a time varying response in the output. The same simulation is produced in both MATLAB and Python.

Added lines 43-52:

!!! Insulin Injection Optimization for Diabetic Blood Glucose Regulation

Attach:blood_glucose_optimal_control.png

* [[Attach:blood_glucose_optimal_control.pdf|Blood Glucose Presentation]]

* [[Attach:blood_glucose_optimal_control.zip|Download Blood Glucose Simulink Files]]

----

Attach:blood_glucose_optimal_control.png

* [[Attach:blood_glucose_optimal_control.pdf|Blood Glucose Presentation]]

* [[Attach:blood_glucose_optimal_control.zip|Download Blood Glucose Simulink Files]]

----

Added lines 54-55:

The following files are a Simulink example of dynamic estimation and dynamic optimization. Separate blocks run the estimation and control algorithms for Model Predictive Control (MPC) with constrained nonlinear programming.

Changed line 14 from:

to:

<iframe width="560" height="315" src="//www.youtube.com/embed/Oae-S5AzZCk?list=PLLBUgWXdTBDjVLQVMnT80y6m_97XNhBZv" frameborder="0" allowfullscreen></iframe>

Changed line 14 from:

to:

http://www.youtube.com/watch?v=Oae-S5AzZCk&feature=share&list=PLLBUgWXdTBDjVLQVMnT80y6m_97XNhBZv&index=20

Added lines 12-15:

(:html:)

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

(:htmlend:)

Added lines 10-11:

* [[Attach:dynopt.zip|Download Excel, MATLAB, and Python Files for Dynamic Parameter Estimation (dynopt.zip)]]

Changed line 33 from:

!!! Estimation and Control with ~~APM in Simulink~~

to:

!!! Simulink Estimation and Control with APM

Added lines 30-35:

----

!!! Estimation and Control with APM in Simulink

* [[Attach:apm_simulink.zip|Download APM Simulink Files (zip)]]

Changed lines 13-15 from:

!!! Introduction to Dynamic Modeling with MATLAB

*[[Attach:dynamic_sim_~~MATLAB~~.zip|Download MATLAB Simulation Files (zip)]]

*

to:

!!! Introduction to Dynamic Modeling with MATLAB and Python

* [[Attach:dynamic_sim_demo.zip|Download MATLAB and Python Simulation Files (zip)]]

* [[Attach:dynamic_sim_demo.zip|Download MATLAB and Python Simulation Files (zip)]]

Changed lines 13-16 from:

!!! ~~Simulate~~ Dynamic ~~Data~~

*[[Attach:dynamic_~~data~~.zip|Download ~~Dynamic~~ Simulation Files (zip)]]

*

to:

!!! Introduction to Dynamic Modeling with MATLAB

* [[Attach:dynamic_sim_MATLAB.zip|Download MATLAB Simulation Files (zip)]]

(:html:)

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

(:htmlend:)

----

!!! Simulate Dynamic Data with Python and MATLAB

* [[Attach:dynamic_sim_MATLAB.zip|Download MATLAB Simulation Files (zip)]]

(:html:)

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

(:htmlend:)

----

!!! Simulate Dynamic Data with Python and MATLAB

Changed line 6 from:

In order to apply dynamic optimization methods we must have a dynamic model to optimize. Obtaining a good dynamic model of the design problem is the most important step. A static model is often developed first and can often be augmented to include dynamic elements that relate how the system evolves with time. In this section we discuss some modeling concepts for dynamic systems that can help you develop models for optimization. We also discuss the formulation ~~of data file~~, ~~objectives, ~~and ~~constraints~~.

to:

In order to apply dynamic optimization methods we must have a dynamic model to optimize. Obtaining a good dynamic model of the design problem is the most important step. A static model is often developed first and can often be augmented to include dynamic elements that relate how the system evolves with time. In this section we discuss some modeling concepts for dynamic systems that can help you develop models for optimization. We also discuss the formulation objectives, constraints, and dynamic data sets.

Added lines 14-15:

* [[Attach:dynamic_data.zip|Download Dynamic Simulation Files (zip)]]

Added lines 1-34:

(:title Dynamic Optimization for Engineering Design:)

(:keywords mathematical modeling, dynamic, nonlinear, optimization, engineering optimization, interior point, active set, differential, algebraic, modeling language, university course:)

(:description Dynamic optimization uses differential and algebraic equations to solve systems that have a time-varying component. Using dynamic models opens the analysis to systems that may not be stationary or at steady-state.:)

!!! Introduction

In order to apply dynamic optimization methods we must have a dynamic model to optimize. Obtaining a good dynamic model of the design problem is the most important step. A static model is often developed first and can often be augmented to include dynamic elements that relate how the system evolves with time. In this section we discuss some modeling concepts for dynamic systems that can help you develop models for optimization. We also discuss the formulation of data file, objectives, and constraints.

!!! Fitting Physical Models to Experimental Data

Dynamic models are often constructed with physical models and tuned with experimental data. Physical models are based on the underlying physical principles that govern the problem and result from expressions such as a force or momentum balance and may include quantities such as velocity, acceleration, and position. Other quantities of interest may include anything that changes with respect to time such as reactor composition, temperature, mole fraction, etc. Models likely contain both physical and experimental elements. We will discuss how to reconcile experimental data with the physical model through parameter estimation. A final activity will be to use the physical model to then optimize a particular objective.

----

!!! Simulate Dynamic Data

<iframe width="560" height="315" src="http://www.youtube.com/embed/-3FaZEfu7vE?rel=0" frameborder="0" allowfullscreen></iframe>

----

(: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 = 'http://' + 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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

(:htmlend:)

(:keywords mathematical modeling, dynamic, nonlinear, optimization, engineering optimization, interior point, active set, differential, algebraic, modeling language, university course:)

(:description Dynamic optimization uses differential and algebraic equations to solve systems that have a time-varying component. Using dynamic models opens the analysis to systems that may not be stationary or at steady-state.:)

!!! Introduction

In order to apply dynamic optimization methods we must have a dynamic model to optimize. Obtaining a good dynamic model of the design problem is the most important step. A static model is often developed first and can often be augmented to include dynamic elements that relate how the system evolves with time. In this section we discuss some modeling concepts for dynamic systems that can help you develop models for optimization. We also discuss the formulation of data file, objectives, and constraints.

!!! Fitting Physical Models to Experimental Data

Dynamic models are often constructed with physical models and tuned with experimental data. Physical models are based on the underlying physical principles that govern the problem and result from expressions such as a force or momentum balance and may include quantities such as velocity, acceleration, and position. Other quantities of interest may include anything that changes with respect to time such as reactor composition, temperature, mole fraction, etc. Models likely contain both physical and experimental elements. We will discuss how to reconcile experimental data with the physical model through parameter estimation. A final activity will be to use the physical model to then optimize a particular objective.

----

!!! Simulate Dynamic Data

<iframe width="560" height="315" src="http://www.youtube.com/embed/-3FaZEfu7vE?rel=0" frameborder="0" allowfullscreen></iframe>

----

(: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 = 'http://' + 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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

(:htmlend:)