0% found this document useful (0 votes)
12 views30 pages

Dynamic Optimization in Process Operations

1. The document introduces dynamic optimization formulations for batch and continuous processes. It discusses determining optimal feed profiles to maximize production while satisfying constraints. 2. Dynamic models are constructed using systems of ordinary or algebraic differential equations. Existence and uniqueness of solutions depends on properties like Lipschitz continuity. 3. The document provides examples of dynamic optimization problems and differential equations, including tests to classify systems as ODEs or DAEs.

Uploaded by

Saxon Stanley
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views30 pages

Dynamic Optimization in Process Operations

1. The document introduces dynamic optimization formulations for batch and continuous processes. It discusses determining optimal feed profiles to maximize production while satisfying constraints. 2. Dynamic models are constructed using systems of ordinary or algebraic differential equations. Existence and uniqueness of solutions depends on properties like Lipschitz continuity. 3. The document provides examples of dynamic optimization problems and differential equations, including tests to classify systems as ODEs or DAEs.

Uploaded by

Saxon Stanley
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Advanced Process Operations

1. Introduction to Course
1.1. Dynamic Optimization Formulations

1.1.1.
t Time tf Final time
x Differential state variables u Control variables
y Algebraic state variables v Time-invariant parameters
1.2. Batch Process Optimization

1.2.1. Determine the batch duration tf and the feed rate profile F(t) to maximize the
final amount of C, while ensuring the final purity of C (w.r.t. B, C and D) over
70%, and maintaining the cooling jacket temperature Tj(t) above 15°C at all
times
1.2.2. Model-Based Optimization Approach
[Link]. Construct a mathematical model relating the control actions (flow rate)
with the states/outputs variables (concentrations, temperature)
[Link]. Determine the optimal control actions based on this model
1.2.3. Trajectory

[Link]. Optimal feed trajectory happens to be discontinuous


[Link]. Purity constraints require the feed to be turned off, otherwise it would
not reach the desired purity
1.3. Continuous Transition Optimization

1.3.1. Determine the feed rate profile F(t) to minimize the transition time between
ref ref
reference concentrations C 1 and C 2 , while keeping the cooling jacket
temperature Tj(t) above 15°C at all times
1.3.2. Trajectory

[Link]. Minimize the gap between the response and the desired set-point over
the prediction horizon, while penalizing control moves, and repeat on a
rolling horizon [tk ,tk + T]
1.4. Dynamic Model Building

1.4.1. Estimate (a subset of) the unknown parameters for the candidate model to
best fit the experimental data
1.4.2. Determine the best experimental conditions to maximize parameter precision
during parameter estimation
1.4.3. This is an optimization problem based on different states
2. Dynamic Optimization Formulations
2.1. Dynamic Optimization Problem Formulations
2.1.1. Expected to determine the time-varying and/or time-invariant inputs of a
dynamic system in order to minimize (or maximize) some performance
criterion while satisfying given physical and operational constraints
2.1.2. Main Steps of Problem Formulations
[Link]. Specification/modelling of the controlled systems
[Link].1. Manipulated variables: controls u(t )∈ R n and decisions v ∈ R n
u v
[Link].2. Response and dynamical model: states x ( t ) ∈ Rn and y ( t ) ∈ R n
x y

[Link]. Specification of a performance criterion


[Link].1. point-wise and path objectives
[Link]. Specification of physical constraints to be satisfied
[Link].1. point-wise and path constraints
2.2. Systems of Ordinary Differential Equations (ODEs)
2.2.1. ẋ ( t )=f ( x ( t ) )
2.2.2. Equations: n x
[Link]. Differential: f : R n → Rn
x x

2.2.3. Variables: n x
[Link]. Differential: x ∈ Rn x

2.2.4. Initial Conditions for ODEs


[Link]. Conditions: n x
[Link].1. ẋ ( 0 )=f ( x ( 0 ))
[Link]. Variables: 2 n x
[Link].1. x ( 0 ) , ẋ (0)
[Link]. Consistent initialization: specify exactly n x initial conditions
2.2.5. Existence of Solutions to ODEs
[Link]. A unique solution to ODEs exists locally if f is locally Lipschitz-
continuous
[Link].1. Locally refers to specified time horizon such as from t 0 → t 1 that
the problem can be solved
[Link]. For global existence, f needs to be globally Lipschitz-continuous
[Link].1. The function must be finite if not it cannot be Lipschitz-
continuous
[Link].2. Setting a bound can make it Lipschitz-continuous
2.2.6. Lipschitz continuous
[Link]. Must be defined at all areas
[Link]. Gradient (slope) is always bounded
[Link]. Not every continuous function is Lipchitz Continuous
[Link].1. Example x → √|x| is not Lipschitz continuous because at 0 it is
undefined (infinite)
2.2.7. A Simple ODE with Multiple Solutions
[Link]. Consider the following ODE: ẋ ( t )= √ x (t ) with x ( 0 )=0
[Link]. Check that all of the following trajectories are solutions of this initial
value problem
{
0 if t ≤θ
x ( t )= ( t−θ )2
otherwise
4

[Link].1.

[Link].2. At x(0)=0 the problem does not work as there are multiple
solutions possible, changing the initial condition to a real
number would fix this like x(0)=0.0001
[Link]. The height of liquid in a gravity drained tank is described by:
[Link].1. ḣ ( t )=−C √h ( t )
[Link]. Given that the tank is empty at T, i.e. h(T) = 0, determine the time t < T
at which the level was h(t)= H > 0
[Link].1. Hint: Consider reversing time as s = T – t
2.2.8. A Simple ODE with Finite Escape Time
[Link]. Workshop: Consider the following ODE: ẋ ( t )=x ( t )2, with x ( 0 )=1
[Link]. Does a solution exist locally?
[Link]. Find an expression of the ODE solutions using the method of separation
of variables, and determine the escape time

x (t ) t

∫ dx 2 ∫
= dt
x(0) x 0

[ ]
x(t)
−1
=t
x x(0)
1 1
− =t
x ( 0) x ( t )
x (0)
x ( t )=
1−x ( 0 ) t
2.3. Systems of Differential-Algebraic Equations (DAEs)
2.3.1. f ( x ( t ) , ẋ ( t ) , y ( t ) )=0
2.3.2. g ( x ( t ) , y ( t ) )=0
2.3.3. Initial conditions for DAEs:
[Link]. Conditions n x + n y
[Link].1. f ( x ( 0 ) , ẋ ( 0 ) , y ( 0 ) )=0
[Link].2. g ( x ( 0 ) , y ( 0 ) )=0
[Link]. Variables: 2 n x +n y
[Link].1. x ( 0 ) , ẋ ( 0 ) , y ( 0 )
[Link]. Consistent initialization: specify at most n x initial conditions
[Link]. Test: Can we specify arbitrary values for x ( 0 )and determine the
corresponding values of ẋ ( 0 ) and y ( 0 ) ?
[Link].1. If yes specify exactly n x initial conditions
[Link].2. If no specify fewer than n x initial conditions
2.4. Test Yourself
''
2.4.1. x 1 =−λ x 1
''
2.4.2. x 2 =−λ x 2−¿
2.4.3. x 21+ x22 =1
2.4.4. Differential states
'
[Link]. dx 1=x 1
'
[Link]. dx 2=x 2
[Link]. dx 1=− λ x1
[Link]. dx 2=− λ x2 −g
2.4.5. Algebraic State
2 2
[Link]. x 1+ x2 =1
[Link].1. Differentiate to time
' '
[Link].2. 2 x1 x 1+2 x 2 x 2=0
[Link].3. x 1 dx 1 +x 2 dx 2=0
[Link].3.1. Differentiate to time
[Link].3.2. dx 21 + x 1 dx '1 +dx 22 + x 2 dx '2=0
2 2 2 2
[Link].3.3. dx 1 +dx 2−λ x 1− λ x 2−x 2 g=0
[Link].3.4. Divide by λ
2 2
[Link].3.5. dx 1 +dx 2−x 2 g−λ=0
2.4.6. Count number of equations and variables
[Link]. 7 equations
[Link]. 9 variables
[Link]. Can supply 2 initial conditions
[Link].1. Specify x 1 and dx 1
[Link].1.1. Can use all relationships including hidden relationships
2.4.7. Index of DAE system is 3 as you need one more time differentiation to make an
ODE system
2.4.8. Dummy derivative method
[Link]. Need to introduce the same number of dummy variables as hidden
relations
'
[Link]. z 1=dx 1
'
[Link]. z 2=dx 2
[Link]. Equations
[Link].1. dx 1=x '1
'
[Link].2. dx 2=x 2
[Link].3. z 1=−λ x 1
[Link].4. z 2=−λ x 2−g
2 2
[Link].5. x 1+ x2 =1
[Link].6. x 1 dx 1 +x 2 dx 2=0
2 2
[Link].7. dx 1 +dx 2−x 2 g−λ=0
[Link]. Now there is an index 1 DAE system
2.5. Case Study of a Simple Car Control Problem
2.5.1. The motion of a car is described by the following ODEs
[Link]. ṗ ( t ) =v ( t )
[Link]. v̇ ( t )=u ( t )
2.5.2. Where states p(t) and v(t) denote position and speed and the control u(t) is the
force due to acceleration (≥0) or deceleration (≤0)
2.5.3. The optimization problem consists of driving the car from the position p 0
where it is initially parked, to its final destination p f where it is also parked,
using the least amount of fuel. The maximum speed limit is v U, and the car’s
maximal acceleration and decelaration are, respectively, uL and uU. For
simplicity, assume that the car’s instantaneous full consumption is
proportional to its squared velocity.
2.5.4. Formulate problem
[Link]. Minimize
tf

[Link].1. ∫ α v ( t )2 dt
0
[Link].2. For u ( t ) at t 0 → t f
[Link]. Subject to
[Link].1. . ṗ ( t ) =v ( t )
[Link].2. v̇ ( t )=u ( t )
[Link].3. p ( 0 )= p 0
[Link].4. v ( 0 )=0
[Link].5. p ( t f ) =p f
[Link].6. v ( t f )=0
v (t )≤ v , ∀ t ∈[0 , tf ]
U
[Link].7.
u ≤u ( t ) ≤ u , ∀ t ∈ [ 0 , t f ]
L U
[Link].8.
2.5.5. What if your minimizing travel time?
[Link]. Minimize
tf

[Link].1. t f =∫ 1dt
0
[Link].2. Takes it from an integral term to a point term
2.6. Performance Criteria in Dynamic Optimization
2.6.1. Functional used for quantitative evaluation of the system’s performance
2.6.2. Main types of Criteria
[Link]. Lagrange form
tf

[Link].1. ∂ ( u , v )=∫ l ( x ( t ) , y ( t ) , u ( t ) , v ) dt
0
[Link].2. Minimize average power consumption
[Link]. Mayer form
N
[Link].1. ∂ ( u , v )=∑ φ(x ( t k ) , y ( t k ) , v)
k=1
[Link].2. maximize final batch product purity
[Link].3. minimise prediction error compared with time-series
measurements
[Link]. Point Constraints
End point: ψ ( x ( t f ) , v ) ≤ψ
U
[Link].1.
Interior: ψ ( x ( t k ) , v ) ≤ ψ ,t k ∈ [ 0 , t f )
U
[Link].2.
[Link].3. batch process must reach at least 30% conversion after 2 hours:
x(7200) ≥ 0.3
[Link]. Path Constraints
[Link].1. κ ( x ( t ) , y ( t ) , u ( t ) , v ) ≤ κU
[Link].2. product purity must never fall below 97%: x(t) ≥ 0.97, for all t ∈
[0,tf ] - temperature must always stay between 323 K and 500 K:
323 ≤ T(t) ≤ 500, for all t ∈ [0,tf ]
2.6.3. General Dynamic Optimization Formulation

2.7. Useful Reformulation Tricks


2.7.1. Handling variable final time tf
[Link]. Consider tf time-invariant parameter and define scaled time τ ∈ [ 0,1 ]
[Link]. Replace t with tfτ and dt with tfdτ throughout
t t ∈ [ 0 ,t f ]
[Link].1. t→τ=
t f τ ∈ [ 0,1 ]

[Link].2.
v̇ ( t ) =u ( t ) }
ṗ (t )=v ( t ) ∀ t ∈ 0 ,t

tf
[ f]

2.7.2. Converting integral cost ∫ l ( x ( t ) ,u ( t ) ) dt into terminal costs


0

[Link]. Append extra differential equation ẋ n +1 ( t )=l ( x ( t ) , u ( t ) )


x

[Link]. Define ẋ n +1 ( 0 )=0 and replace integral cost with ẋ n +1 ( t f )


x x

tf tf

[Link]. ∫ ẋ n +1 ( t ) dt=∫ l ( x ( t ) , u ( t ) ) dt
x
0 0

[Link]. ẋ n +1 ( t f ) −x 0 (0)
x

Converting a path constraint κ ( x ( t ) , u ( t )) ≤ κ into a terminal constraint


U
2.7.3.
[Link]. Measure infeasibility using integrals
tf
2
∫ max {0 , κ ( x ( t ) , u (t ) ) −κU } dt ≤ 0
0

[Link].

[Link].1. Red area measures violation


[Link]. Append extra differential equation
U 2
[Link]. ẋ n +1 ( t )=max {0 , κ ( x ( t ) , u ( t ) )−κ }
x

[Link]. Set initial condition ẋ n +1 ( 0 )=0


x

[Link]. Replace path constraint with ẋ n +1 ( t f ) ≤ ϵ ≪ 1


x

[Link].1. 0 is typically not liked and can be infeasibile


2.8. Case Study of a Batch Reactor

2.8.1. Formulate a dynamic optimization problem to maximize the amount of C at a


given final time tf, by manipulating the reactor temperature, and subject to
minimum and maximum temperatures Tmin = 293 K and Tmax = 323 K,
respectively.
3. Direct Solution Methods
3.1. Workshop. Formulate a finite-dimensional approximation of the following optimal
control problem by using a piecewise-constant control parameterization on ns ≥ 1
stages:
1
min 1 [ u ( t ) ]2 dt
3.2. ∫
u (T ) 0 2

3.3. s . t . ẋ ( t ) =u (t )−x ( t )
x ( 0 ) =1. x (1 )=0
3.4. The parameterized control trajectories are given by

3.4.1. U k0 ( t ,ω k ) ≔ωk0 , ∀ t ∈
[( ) ( ))
k−1
ns
,
k
ns
, k=1 … . ns
3.4.2.
3.5. Direct Sequential Approach: Single Shooting
3.5.1. Visual Depiction of the Approach

3.5.2. Compute the cost and constraint values using numerical integration
3.5.3. Compute the cost and constraint values using numerical sensitivity
3.5.4. Gradient free methods
[Link]. Good if you only have an objective function
[Link]. Don’t like constraints or lots of decision variables
3.5.5. Gradient based methods
[Link]. Need to supply gradients to the optimization model
3.5.6. Pros and Cons
[Link]. Relatively small-scale NLP problems in the variables p=( ω1 , … , ωn , v )
s

that is nu ( N +1 ) ns +n v variables
[Link].1. Stage times can be added to the decision vector p too
[Link]. Accuracy of the state variables enforced via the error-control
mechanism of the ODE/DAE solver
[Link]. Computing the gradients using numerical sensitivity analysis is often
the dominant cost
[Link]. Feasible path method
[Link].1. The ODEs/DAEs are satisfied at each NLP iteration
[Link].2. This is computationally demanding
[Link].3. Only mildly unstable systems can be handled this way
[Link]. Strategy is one implemented in gPROMS
3.6. Direct Sequential Approach: Multiple Shooting
3.6.1. Discretization as a finite dimensional NLP through parameterization of the
control variables, with the ODEs/DAEs embedded in the NLP problem but with
state discontinuities allowed at stage times
3.6.2. Lifting of the optimization problem

3.7. Computing Gradients of State-Dependent Functions


3.7.1. State Dependent function in the Mayer form

3.8. Gradients: Forward and Adjoint Sensitivity Analysis


3.8.1. Forward Sensitivity Approach

[Link]. Size of state and state sensitivity equations (np+1) × nx


[Link]. But independent of the number of functionals n F
3.8.2. Adjoint (or reverse) Sensitivity Approach
Direct Initial Dynamic

[Link]. Size of state & adjoint equations: (n F + 1) × nx


[Link]. But, independent of the number of parameters, np
[Link]. λ is the adjoint co-state
3.9. Procedure for Forward Sensitivity Analysis
3.9.1. State and Sensitivity Numerical Integration 0→T
3.9.2. Function and Gradient Evaluation

3.9.3. Limitation is that more parameters creates more integration which gets more
complicated
3.10. Procedure for Adjoint Sensitivity Analysis
3.10.1. State Numerical Integration 0→T

3.10.2. Store state values x(t) at mesh points,


3.10.3. Adjoint Numerical Integration: T→0

3.10.4. Need to interpolate state values x(t) between mesh points


3.10.5. Function and Gradient Evaluation

3.11. The Collocation Principle


3.11.1. Consider the ordinary differential equation

3.11.2. With initial condition


3.11.3. Approximate the solution of this initial value problem (IVP) via a trial function,
most commonly a polynomial:
3.11.4. Substitution of trial function into the IVP gives residuals:

3.11.5. For an exact solution, and


3.11.6. In practice, require trial function to satisfy and at chosen
collocation points
3.11.7. Collocation points are taken at the zeroes of orthogonal polynomials

4. Methodology and Tools for Dynamic Model Building


4.1. Mathematical Models and Modelling Goals
4.1.1. General Mathematical Model Formulation

4.1.2. Equation Forms of Process Models

4.1.3. Typical Modelling Goals


[Link]. Output Prediction
[Link]. Process Control
[Link]. Process Design
4.2. Parameter Estimation as a Special Case
4.3. Comparison to “Typical” Optimization Problem

4.4. What do Dynamic Experiments Comprise?

4.4.1. Number of experiments, NE


4.4.2. Each experiment i = 1, . . . . , NE characterized by
[Link]. Operating policy
[Link].1. Overall duration
[Link].2. Initial conditions
[Link].2.1. Initial concentrations, volumes
[Link].3. Other time invariant parameters
[Link].3.1. Reactor diameter, stirrer power input
[Link].4. Control variable inputs
[Link].4.1. Feed flowrate, heat input
[Link]. Measurements
[Link].1. For each measured output variable j = 1, . . . . , NV(i):
[Link].1.1. Set of measurement times
[Link].1.2. Values of corresponding measurements
[Link].1.3. Uncertainty to which measurements are known
4.5. Sensors and Variance Models
4.5.1. A property of the measurement technique associated with the sensor
4.5.2. Often assumed to be statistically independent, but not necessarily identically
distributed
[Link]. Normally distributed with zero mean (Gaussian white noise)

[Link]. Constant Variance x-axis is measured output of y, y-axis is true value


(predicted) of y
[Link]. Heteroscedastic variance has a constant ω, y is the magnitude of the
measurement, has exponent γ
[Link].1. γ<0
[Link]. A variance model may be estimated directly from the measurements

[Link]. Varaince parameters may also be estimated with other model


parameters
4.6. Objective Functions in Parameter Estimation
4.6.1. Parameter estimation primarily aims at minimizing the discrepancy between
experimental data and model predictions
4.6.2. Weighted Least-Square Errors (LSE) Regression

[Link]. Trouble happens as outliers are given heavy weight


4.6.3. Other parameter estimation methods exist
4.7. Log-Likelihood Estimators

4.7.1. Consists of a constant term, variance term, and residual term


4.7.2. Implies weighted least-squares regression by assuming a known variance and

choosing
4.7.3. The variance and residual terms are pulling in different directions
4.8. Goodness of fit: Main Idea

4.8.1. Two sources of model prediction errors


[Link]. Pure error due to measurement noise
[Link]. Lack of fit error due to model inaccuracy
4.8.2. Are the model prediction error statistically consistent with the pure error
4.9. Goodness of fit: Statistical Assessment
4.9.1. The χ2-distribution with k degrees of freedom is the distribution of a sum of the
squares of k independent standard normal random variables

4.9.2. Goodness of Fit Test


[Link]. Is the behaviour of the model prediction error in agreement with the
(expected) measurement noise error property to a desired confidence
level (1-α)?

[Link]. 1-α is the confidence


4.9.3. Interpretation
[Link]. Failure to pass the above rest suggests a poor fit; the model needs
revising
[Link]. Beware! An incorrect sensor model or a local optimum could falsify the
test results
4.10. What is Covariance?
4.10.1. Covariance measures the joint variability of two (random) variables

[Link]. Cov(x,y)

4.10.2. Covariance of a single measurement


[Link]. Taking the expected realization of a variable minus the expected value
squared δyi
4.10.3. Covariance of any two measurements

4.10.4. Covariance of a vector of measurements


n×1 n×n
1×n

4.10.5. Case of model parameters


[Link]. Covariance of a single parameter
[Link]. Covariance between any two parameters
[Link]. Covariance of a vector of parameters

[Link].1. Taken on the middle of the ellipsoid, is a measurement between


the ratio of one axis to the other

4.11. Precision of Parameter Estimates: Statistical Inference

4.11.1. ~y → ~θ ∈arg min Φ ( θ|~


y ) , Φθ ( θ^ |~y )=0
4.11.2. ~y+ ∂ y → ~θ+∂ θ ∈arg min Φ ( θ|~ ^ θ|~
y +∂ y ) , Φθ ( θ+∂ y +∂ y ) =0
4.11.3. Φθ ¿
∂ θ ≈ [ Φθθ Φ θy ]θ^ , ~y ∂ y
−1
4.11.4.
C θ=E ( δθ ∙ δθ ) ≈ [ Φθθ Φθy ]θ^ , ~y C y [ Φ θθ Φ θy ]θ^ , ~y
T −1 −1 T
4.11.5.
4.11.6. Noise covariance matric C y =E ¿
4.11.7. Only exact for linear models

4.11.8.
4.12. Obtaining Confidence Intervals from Covariance Matrices
4.12.1. Linearized 100(1-α)% Confidence Intervals
[Link].

[Link]. t N −n 1−
θ ( α2 ) is the z(1-α) distribution which gives larger range of
Gausian
4.12.2. 100(1-α) t-value test
[Link].
[Link].1. If 0 is within this confidence interval the parameter value is
garbage
4.12.3. Linearized 100(1-α)% Confidence Region
[Link]. Large sample size-known measurement variance
[Link].1.
[Link].2. Ellipsoid gets bigger from the increase in confidence
[Link]. Small sample size- uncertain measurement variance

[Link].1.
[Link].2. Using an F test is better because it is more conservative and is
better for low confidence
4.13. Precision of Parameter Estimates: Practical Aspects
4.13.1. Failure to pass a t-test for one/several parameters suggests a flat optimum in
certain directions
[Link]. Cause: (i) low sensitivity; (ii) large correlations
[Link]. Remedy: (i) focus on a parameters subset – apply
estimability/sensitivity analysis (ii) design experiments—apply
optimal experiment design
4.13.2. A model presenting a systematic bias (e.g. χ2-test not satisfied) or a highly
nonlinear model may invalidate the statistical analysis
[Link]. Always be cautious with your conclusions

4.13.3. Likelihood-ratio Confidence Regions


[Link]. Provide a better approximation than linearized regions for nonlinear
models and/or limited measurement points – but computationally
demanding
4.14. What does an experiment consist of?

4.14.1. Formulate as an optimization problem


4.15. General idea of experiment design
4.15.1. What experiments give the best data
[Link]. Control policy, initial conditions, equipment design
[Link]. Duration, location, and number of sampling times
4.15.2. Can this be established a priori based on current knowledge
[Link]. Model structures and a priori parameters
[Link]. Data and senor properties
4.15.3. Criteria for best data
[Link]. Precise parameter estimation
[Link]. Efficient model discrimination
4.15.4. Constraints
[Link]. Control variables
[Link]. Equipment conditions
4.15.5. Iterative Procedure

[Link].
4.16. Model based design of experiments (MBDoE)
Design conditions, initial
condition, run time

4.17. Experiment Design Criteria


4.17.1. Parameter Covariance Matrix

4.17.2.
4.17.3. D-optimality
[Link]. Minimize the volume of confidence ellipsoid
1
min det C n
[Link].
u,v
[ θ] θ

4.17.4. A optimality
[Link]. Minimize the average variance of the individual parameter estimate
min 1 trace [C ]
[Link]. θ
u , v nθ
4.17.5. E optimality
[Link]. Minimizes the longest axis of confidence ellipsoids
min λ [C ]
[Link].
u , v max θ
4.17.6. Modified-E optimality
[Link]. Minimizes the ratio of longest to shortest axis of confidence ellipsoids
4.17.7. Differences in the resulting designs can be significant
4.18. Experiment Design Criteria: Covariance Matrix

4.18.1. Parameter Covariance Matrix


4.18.2. Alternative (simplified) covariance matrix

4.19. Sensitivity and Uncertainty Analysis

4.19.1. Uncertainty analysis


[Link]. Propagate factor uncertainty to quantify output uncertainty
4.19.2. Sensitivity Analysis
[Link]. Apportion the output uncertainty back into factor contributions
4.20. Derivative-based Local Sensitivity Analysis
4.20.1. Local sensitivity coefficients at θ :

[Link].
4.20.2. Average sensitivity coefficients over factor domain:

[Link].

4.20.3. Could be used for ranking the factors in order of importance


[Link]. Needs input factor normalizations, e.g. in [0,1]d
4.20.4. But does not capture factor interactions
[Link]. Could be extended to second- or higher-order derivatives
4.21. Variance-based Global Sensitivity Analysis
4.21.1. Any model M may be decomposed as follows (HDMR) (anova)

[Link].
[Link]. Impose extra conditions, e.g. nased on orthogonality for f0, fi, fi1, i2, …
4.21.2. The terms in this decomposition can be calculated recursively

4.21.3. The variance of any model M may be decomposed likewise:

4.21.4. The variance terms may be calculated recursively:

4.21.5. Sobol’ Sensitivity Indices:

4.21.6. First Order (a.k.a Main-Effect) Sensitivity Indices

[Link].
[Link]. Effect of varying θi alone, averaged over variations in other parameters
4.21.7. Total-Order Sensitivity Indices:

[Link].
[Link]. Effect of varying θi , including all variance caused by its interactions, of
any order, with any other parameters ST,i = Si + (S1,i + · · · + Si−1,i + Si,i+1 + ·
· · + Si,d) + · · · + S1,2,...,d
4.22. Sampling Strategies in Multiple Dimensions
4.22.1. Monte-Carlo integration

4.22.2. Sampling Strategy

[Link]. Low-discrepancy is more random than a regular grid but utilizes the
knowledge of previous points to create a more uniform coverage
without being too uniform
4.23. How to use the first and total order sensitivity indices

5. Optimal Control Theory


5.1. Scope and Motivation
5.1.1. Constrained NLP Problem: NCOs: KKT Conditions

Dual Feasibility

5.1.2. Constrained DO Problem NCOs


Complimentary
5.1.3. NCOs are useful to:
[Link]. Single out candidate optimal controls
[Link]. Determine the structure (arcs) of optimal controls
[Link]. Derive optimal control laws along certain arc
5.2. Basic Optimal Control Formulation

5.3. Admissible and Feasible Controls


5.3.1. Which linear space U for the time-varying controls
[Link]. Continuous controls ---- not big enough
[Link]. More generally, piecewise continuous controls:

5.4. Global and Local Optimality in Optimal Control


5.4.1. (Globally) Optimal Control (Minimize Case)
[Link]. A feasible control u* is a global minimum of the functional

[Link]. This global condition does not require a distance (or a norm) on U: the
control u* is compared to every other feasible control
5.4.2. Locally Optimal Control (Minimize Case)
[Link]. A feasible control u ∗ is a local optimum of the functional
5.5. Weak Neighborhoods in Optimal Control

5.6. Strong Neighborhoods in Optimal Control

5.7. Necessary Conditions for Optimality


5.7.1. Euler-Lagrange Optimality Conditions
stationarity Hamiltonian function
integrand
terminal

feasibility
5.8. Remarks about Euler-Lagrange Conditions
5.8.1. Complete set of necessary conditions
[Link]. 2 x nx ODEs in the state variable x(t) and adjoint variables λ(t), with
initial/terminal conditions
[Link]. Nu AEs in the variables u(t)
5.8.2. But need to solve a two-point boundary value problem
5.8.3. Same set of conditions for minimize and maximize problems (in the absence of
terminal conditions
5.8.4. Second-order (Legendre-Clebsch) Condition:

5.8.5. For autonomous problems (i.e. no explicit time dependence), the Hamiltonian
is invariant along an optimal trajectory:

5.9. Applying the Euler-Lagrange Conditions


5.10. Necessary Conditions for Optimality

5.10.1. Rest of terms remain the same


5.11. Remarks about Pontryagin Maximum Principle

5.11.1. Handles control bounds in a very natural way: boils down to solving an NLP
problem at each time along [t0, tf]
5.11.2. Control bounds give rise to a solution structure comprised of interior and

boundary arcs
5.12. Applying the Pontryagin Maximum Principle

5.12.1.
5.13. Singularity

5.13.1. H is not dependent on u


5.14. Singular Optimal Control: Definition

5.14.1. In a scalar singular control problem the stationarity condition

does not depend explicitly on the control – it cannot be


used directly to provide candidate optimal controls!
5.14.2. The system becomes a high index DAE system
5.15. Singular Optimal Control: Solution Strategy
5.15.1. The singular arc (τ1, τ2) is such that

[Link].
5.15.2. Apply successive time differentiations
5.15.3. From previous example

5.15.4. Further rules

5.16. Optimal Control with State Path Constraints


5.16.1. Notoriously difficult to solve
5.16.2. Two Main types
[Link]. Mixed state-control constraint

[Link].1.
[Link]. Pure-state constraints

[Link].1.
[Link].

Common questions

Powered by AI

Purity constraints in batch process optimization significantly influence the selection of feed rate trajectories. Specifically, to achieve the desired final product purity over 70%, it is necessary to manage the feed rate profile F(t) effectively. The optimal feed trajectory is often discontinuous, as maintaining continuous feed may fail to meet the purity requirements. In some cases, the feed must be turned off to ensure the purity levels are achieved . This illustrates how the constraints on purity directly guide the design of feed rate profiles, which are crucial for meeting the final quality specifications.

The principle of collocation assists in solving complex dynamic systems by transforming differential equations into algebraic equations that can be solved numerically. Key features include approximating the solution of an initial value problem via a trial function, most commonly a polynomial . The collocation method involves substituting this trial function into the initial value problem to create residuals and selecting collocation points at the zeroes of orthogonal polynomials . This method provides high accuracy and efficiency in solving non-linear differential equations by ensuring that the trial function satisfies the differential equation at specific points, making it a powerful tool for handling complex system dynamics.

Lipschitz continuity is crucial for ensuring the existence of solutions to Ordinary Differential Equations (ODEs). A unique solution to an ODE exists locally if the function f is locally Lipschitz-continuous, which means for a specified time horizon (e.g., from t0 to t1), the problem can be solved . For global existence, f must be globally Lipschitz-continuous, meaning the function must be finite globally. A bound may be set to achieve global Lipschitz continuity if f is not naturally so. Thus, Lipschitz continuity, by bounding the gradient (finite slope), ensures stability and existence of solutions across the specified domain . This condition helps in managing the behavior of the system across its entire operating range.

The main steps of problem formulation in dynamic optimization include the specification/modeling of the controlled systems, which involves identifying the manipulated variables (controls u(t) and decisions v) and the response and dynamical model (states x(t) and y(t)). Next is the specification of a performance criterion, which encompasses both point-wise and path objectives . Following this, there's the specification of physical constraints that must be satisfied, including both point-wise and path constraints . These steps allow for the integration of various elements of dynamic systems into an optimization framework that can manage the system effectively by considering both the performance objectives and operational constraints.

To handle systems with mild instability during optimization iterations, strategies such as the feasible path method are applied. This approach secures that the ODEs/DAEs are satisfied at each iteration, albeit being computationally demanding . This technique facilitates handling mild instability by ensuring internal system consistency and managing path constraints. However, due to its computational intensity, practical application is often limited to systems with minimal instability. Balancing it with computational feasibility involves implementing numerical sensitivity analysis to compute gradients effectively, thereby reducing computational loads while maintaining optimization accuracy . Difficulties in managing computational demand require trade-offs and often necessitate hybrid approaches that relax constraint satisfaction in early iterations, focusing detailed solutions on later stages of optimization.

Adjoint sensitivity analysis is used in optimizing control strategies by allowing the efficient computation of gradients of performance criteria with respect to large numbers of parameters. Unlike forward sensitivity analysis, where the size of state equations expands with the number of parameters, adjoint analysis keeps the problem size constant with respect to the number of parameters and instead scales with the number of functionals . This makes adjoint approaches highly advantageous for problems with more parameters, offering computational efficiency. Adjoint sensitivity analysis involves solving state equations forward and adjoint equations backward, making it particularly useful for optimizing systems where the quantity of interest depends on many parameters or where the control strategy impacts a wide range of system variables .

Parameter covariance matrices are crucial in experiment design as they provide a quantitative measure of the precision of parameter estimates. They contribute to model performance by minimizing uncertainties, enabling precise parameter estimation . The covariance matrices help in calculating confidence intervals, which reflect the reliability of the estimated parameters. By optimizing the design of experiments to minimize the volume of confidence ellipsoids using criteria like D-optimality, A-optimality, and E-optimality, researchers can enhance the robustness of parameter estimates . This ensures that the model predictions are reliable and the associated uncertainties are well-understood, fueling confidence in decision-making based on the model results.

Dynamic model building optimizes parameter estimation by constructing mathematical models that fit experimental data, allowing for precise estimation of unknown parameters . The optimal experimental conditions play a crucial role in maximizing parameter precision during estimation. This involves designing experiments that enhance the quality of data collected, thereby providing more accurate parameter estimations . The process involves an optimization problem that uses different system states to identify the best conditions that lead to reliable data for model calibration. Thus, carefully selected experimental conditions are integral to refining and validating dynamic models.

In dynamic optimization, trajectory relates to how system states or control variables evolve over time to achieve optimization goals. In batch process optimization, the trajectory might include the optimal feed rate profile, which could be discontinuous to meet purity constraints . In continuous transition optimization, trajectory involves determining a feed rate profile that minimizes transition time between different reference states or concentrations, maintaining constraints like temperature . Both cases involve calculating optimal paths that guide the process states, considering system constraints to meet final performance objectives. Thus, trajectory is essential in dynamically adapting control actions to optimize the overall system performance over time.

Control variable inputs are pivotal in the design of optimization experiments as they directly affect the process dynamics and outcomes. In determining the best data for parameter estimation, control inputs such as feed flowrate and heat input are adjusted to create experimental conditions that maximize data quality . This involves strategies like optimizing the control policy, initial conditions, and setup of the equipment design . By carefully planning these inputs, researchers can design experiments that yield data which are most informative for estimating parameters with high precision, thereby enhancing the reliability of the model . Effective design considers constraints and uses model-based experiment design methods to systematically refine these inputs.

You might also like