SlideShare a Scribd company logo
1 of 40
1
Real-Time Optimization (RTO)
• In previous chapters we have emphasized control system
performance for disturbance and set-point changes.
• Now we will be concerned with how the set points are
specified.
• In real-time optimization (RTO), the optimum values of the set
points are re-calculated on a regular basis (e.g., every hour or
every day).
• These repetitive calculations involve solving a constrained,
steady-state optimization problem.
• Necessary information:
1. Steady-state process model
2. Economic information (e.g., prices, costs)
3. A performance Index to be maximized (e.g., profit) or
minimized (e.g., cost).
Note: Items # 2 and 3 are sometimes referred to as an
economic model.
Chapter
19
2
Process Operating Situations That Are Relevant to
Maximizing Operating Profits Include:
1. Sales limited by production.
2. Sales limited by market.
3. Large throughput.
4. High raw material or energy consumption.
5. Product quality better than specification.
6. Losses of valuable or hazardous components through
waste streams.
Chapter
19
Common Types of Optimization Problems
1. Operating Conditions
• Distillation column reflux ratio
• Reactor temperature
2. Allocation
• Fuel use
• Feedstock selection
3. Scheduling
• Cleaning (e.g., heat exchangers)
• Replacing catalysts
• Batch processes
Chapter
19
3
Chapter
19
1. Measurement
and Actuation
2. Saf ety , Env ironment
and Equipment
Protection
3a. Regulatory
Control
4. Real-Time
Optimization
5. Planning and
Scheduling
Process
3b. Multiv ariable
and Constraint
Control
(days-months)
(< 1 second)
(< 1 second)
(seconds-minutes)
(minutes-hours)
(hours-days)
Figure 19.1 Hierarchy of
process control activities.
4
5
BASIC REQUIREMENTS IN REAL-TIME
OPTIMIZATION
Chapter
19
 
19-1
(
(
  



 


s s r r
s r
s s
r r
P F V F C OC
P
F V
F C
OC
where: operating profit/time
sum of productflowrate) x (product value)
sumof feedflowrate) x (unitcost)
= operating costs/time
s
r
Both the operating and economic models typically will
include constraints on:
1. Operating Conditions
2. Feed and Production Rates
3. Storage and Warehousing Capacities
4. Product Impurities
Objective Function:
6
The Interaction Between Set-point Optimization
and Process Control
Example: Reduce Process Variability
• Excursions in chemical composition => off-spec
products and a need for larger storage capacities.
• Reduction in variability allows set points to be moved
closer to a limiting constraint, e.g., product quality.
Chapter
19
Chapter
19
7
8
The Formulation and Solution
of RTO Problems
1. The economic model: An objective function to
be maximized or minimized, that includes costs
and product values.
2. The operating model: A steady-state process
model and constraints on the process
variables.
Chapter
19
9
The Formulation and Solution
of RTO Problems
Table 19.1 Alternative Operating Objectives for a Fluidized
Catalytic Cracker
Chapter
19
1. Maximize gasoline yield subject to a specified feed rate.
2. Minimize feed rate subject to required gasoline production.
3. Maximize conversion to light products subject to load and
compressor/regenerator constraints.
4. Optimize yields subject to fixed feed conditions.
5. Maximize gasoline production with specified cycle oil
production.
6. Maximize feed with fixed product distribution.
7. Maximize FCC gasoline plus olefins for alkylate.
Selection of Processes for RTO
Sources of Information for the Analysis:
1. Profit and loss statements for the plant
• Sales, prices
• Manufacturing costs etc.
2. Operating records
• Material and energy balances
• Unit efficiencies, production rates, etc.
Categories of Interest:
1. Sales limited by production
• Increases in throughput desirable
• Incentives for improved operating conditions and schedules.
2. Sales limited by market
• Seek improvements in efficiency.
• Example: Reduction in manufacturing costs (utilities, feedstocks)
3. Large throughput units
• Small savings in production costs per unit are greatly magnified.
Chapter
19
10
11
The Formulation and Solution
of RTO Problems
• Step 1. Identify the process variables.
• Step 2. Select the objective function.
• Step 3. Develop the process model and constraints.
• Step 4. Simplify the model and objective function.
• Step 5. Compute the optimum.
• Step 6. Perform sensitivity studies.
Example 19.1
Chapter
19
11
12
Chapter
19
13
Chapter
19
UNCONSTRAINED OPTIMIZATION
• The simplest type of problem
• No inequality constraints
• An equality constraint can be eliminated by variable
substitution in the objective function.
14
Single Variable Optimization
• A single independent variable maximizes (or
minimizes) an objective function.
• Examples:
1. Optimize the reflux ratio in a distillation column
2. Optimize the air/fuel ratio in a furnace.
• Typical Assumption: The objective function f (x) is
unimodal with respect to x over the region of the
search.
– Unimodal Function: For a maximization (or
minimization) problem, there is only a single
maximum (or minimum) in the search region.
Chapter
19
Chapter
19
15
Different Types of Objective Functions
One Dimensional Search Techniques
Selection of a method involves a trade-off between
the number of objective function evaluations
(computer time) and complexity.
1. "Brute Force" Approach
Small grid spacing (x) and evaluate f(x) at each grid
point  can get close to the optimum but very
inefficient.
2. Newton’s Method
Chapter
19
1
( )
( ).
( )
( )





 

k
k k
k
f x
f x
f x
x x
f x
Exampl
It is based on the necessary condion for optimality: =0.
Find a minimum of Newton's method gives,
e:
16
1. Fit a quadratic polynomial, f (x) = a0+a1x+a2x2, to three
data points in the interval of uncertainty.
• Denote the three points by xa, xb, and xc , and the
corresponding values of the function as fa, fb, and fc.
2. Find the optimum value of x for this polynomial:
Chapter
19 3. Quadratic Polynomial fitting technique
     
     
 
2 2 2 2 2 2
1
* 19 8
2
    
 
    
b c a c a b a b c
b c a c a b a b c
x x f x x f x x f
x
x x f x x f x x f
4. Evaluate f (x*) and discard the x value that has the
worst value of the objective function. (i.e., discard
either xa, xb, or xc ).
5. Choose x* to serve as the new, third point.
6. Repeat Steps 1 to 5 until no further improvement in
f (x*) occurs.
17
18
Case 1: The maximum lies in (x2, b).
Case 2: The maximum lies in (x1, x3).
Chapter
19
Equal Interval Search: Consider two cases
Multivariable Unconstrained Optimization
• Computational efficiency is important when N is large.
• "Brute force" techniques are not practical for problems with
more than 3 or 4 variables to be optimized.
• Typical Approach: Reduce the multivariable optimization
problem to a series of one dimensional problems:
(1) From a given starting point, specify a search direction.
(2) Find the optimum along the search direction, i.e., a
one-dimensional search.
(3) Determine a new search direction.
(4) Repeat steps (2) and (3) until the optimum is located
• Two general categories for MV optimization techniques:
(1) Methods requiring derivatives of the objective function.
(2) Methods that do not require derivatives.
Chapter
19
   
V
1 2 N
f f x ,x ,...,x
x =
19
Constrained Optimization Problems
• Optimization problems commonly involve equality
and inequality constraints.
• Nonlinear Programming (NLP) Problems:
a. Involve nonlinear objective function (and possible
nonlinear constraints).
b. Efficient off-line optimization methods are available
(e.g., conjugate gradient, variable metric).
c. On-line use? May be limited by computer execution
time and storage requirements.
• Quadratic Programming (QP) Problems:
a. Quadratic objective function plus linear equality and
inequality constraints.
b. Computationally efficient methods are available.
• Linear Programming (QP) Problems:
a. Both the objective function and constraints are
b. Solutions are highly structured and can be rapidly obtain
Chapter
19
20
Chapter
19
• Most LP applications involve more than two
variables and can involve 1000s of variables.
• So we need a more general computational
approach, based on the Simplex method.
• There are many variations of the Simplex method.
• One that is readily available is the Excel Solver.
Recall the basic features of LP problems:
• Linear objective function
• Linear equality/inequality constraints
LP Problems (continued)
21
Linear Programming (LP)
• Has gained widespread industrial acceptance for on-line
optimization, blending etc.
• Linear constraints can arise due to:
1. Production limitation: e.g. equipment limitations, storage
limits, market constraints.
2. Raw material limitation
3. Safety restrictions: e.g. allowable operating ranges for
temperature and pressures.
4. Physical property specifications: e.g. product quality
constraints when a blend property can be calculated as
an average of pure component properties:





n
1
i
i
iP
y
P
Chapter
19
22
5. Material and Energy Balances
- Tend to yield equality constraints.
- Constraints can change frequently, e.g. daily or hourly.
• Effect of Inequality Constraints
- Consider the linear and quadratic objective functions on
the next page.
- Note that for the LP problem, the optimum must lie on one
or more constraints.
• Solution of LP Problems
- Simplex Method
- Examine only constraint boundaries
- Very efficient, even for large problems
Chapter
19
23
24
Linear Programming Concepts
• For a linear process model,
y=Ku (19-18)
Chapter
19
Chapter
19
25
Chapter
19
26
Chapter
19
27
Chapter
19
28
Chapter
19
29
Chapter
19
30
Chapter
19
31
Chapter
19
32
Chapter
19
33
Chapter
19
34
Chapter
19
35
Chapter
19
36
37
QUADRATIC AND NONLINEAR
PROGRAMMING
• The most general optimization problem occurs when both the
objective function and constraints are nonlinear, a case
referred to as nonlinear programming (NLP).
• The leading constrained optimization methods include:
1. Quadratic programming
2. Generalized reduced gradient
3. Successive quadratic programming (SQP)
4. Successive linear programming (SLP)
Chapter
19
38
Quadratic Programming
• A quadratic programming problem minimizes a quadratic function
of n variables subject to m linear inequality or equality constraints.
• In compact notation, the quadratic programming problem is
Chapter
19
   
 
1
19 31
2
0 19 32
Minimize
Subject to
T T
f x c x x Qx
Ax b
x
  

 
where c is a vector (n x 1), A is an m x n matrix, and Q is a
symmetric n x n matrix.
39
Nonlinear Programming
Chapter
19
a) Constrained optimum: The optimum value of the profit is obtained
when x=xa. Implementation of an active constraint is straight-
forward; for example, it is easy to keep a valve closed.
b) Unconstrained flat optimum: In this case the profit is insensitive
to the value of x, and small process changes or disturbances do
not affect profitability very much.
c) Unconstrained sharp optimum: A more difficult problem for
implementation occurs when the profit is sensitive to the value of x.
If possible, we may want to select a different input variable for
which the corresponding optimum is flatter so that the operating
range can be wider.
Chapter
19
Nonlinear Programming (NLP) Example
- nonlinear objective function
- nonlinear constraints
40

More Related Content

Similar to Chapter_19 (3-7-05).ppt

Vcs slides on or 2014
Vcs slides on or 2014Vcs slides on or 2014
Vcs slides on or 2014
Shakti Ranjan
 
NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...
NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...
NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...
Modelon
 

Similar to Chapter_19 (3-7-05).ppt (20)

Ch02.ppt
Ch02.pptCh02.ppt
Ch02.ppt
 
Supply Chain Management - Optimization technology
Supply Chain Management - Optimization technologySupply Chain Management - Optimization technology
Supply Chain Management - Optimization technology
 
Mba i ot unit-1.1_linear programming
Mba i ot unit-1.1_linear programmingMba i ot unit-1.1_linear programming
Mba i ot unit-1.1_linear programming
 
Vcs slides on or 2014
Vcs slides on or 2014Vcs slides on or 2014
Vcs slides on or 2014
 
Mathematical Optimisation - Fundamentals and Applications
Mathematical Optimisation - Fundamentals and ApplicationsMathematical Optimisation - Fundamentals and Applications
Mathematical Optimisation - Fundamentals and Applications
 
Teori produksi perusahaan
Teori produksi perusahaanTeori produksi perusahaan
Teori produksi perusahaan
 
Portfolio Planning
Portfolio PlanningPortfolio Planning
Portfolio Planning
 
NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...
NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...
NONLINEAR MODEL PREDICTIVE CONTROL FOR OPERATION OF A POST COMBUSTION ABSORPT...
 
Training Module on Electricity Market Regulation - SESSION 3 - Price Regulation
Training Module on Electricity Market Regulation - SESSION 3 - Price RegulationTraining Module on Electricity Market Regulation - SESSION 3 - Price Regulation
Training Module on Electricity Market Regulation - SESSION 3 - Price Regulation
 
Chapter one introduction optimization
Chapter one  introduction optimizationChapter one  introduction optimization
Chapter one introduction optimization
 
QA CHAPTER II.pptx
QA CHAPTER II.pptxQA CHAPTER II.pptx
QA CHAPTER II.pptx
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
U1 p2 breakeven analysis
U1 p2 breakeven analysisU1 p2 breakeven analysis
U1 p2 breakeven analysis
 
Unit 1 - Optimization methods.pptx
Unit 1 - Optimization methods.pptxUnit 1 - Optimization methods.pptx
Unit 1 - Optimization methods.pptx
 
Lecture-30-Optimization.pptx
Lecture-30-Optimization.pptxLecture-30-Optimization.pptx
Lecture-30-Optimization.pptx
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
6 data envelopment_analysis
6 data envelopment_analysis6 data envelopment_analysis
6 data envelopment_analysis
 
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
 
Thermodynamic optimization of
Thermodynamic optimization ofThermodynamic optimization of
Thermodynamic optimization of
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS Publications
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 

Chapter_19 (3-7-05).ppt

  • 1. 1 Real-Time Optimization (RTO) • In previous chapters we have emphasized control system performance for disturbance and set-point changes. • Now we will be concerned with how the set points are specified. • In real-time optimization (RTO), the optimum values of the set points are re-calculated on a regular basis (e.g., every hour or every day). • These repetitive calculations involve solving a constrained, steady-state optimization problem. • Necessary information: 1. Steady-state process model 2. Economic information (e.g., prices, costs) 3. A performance Index to be maximized (e.g., profit) or minimized (e.g., cost). Note: Items # 2 and 3 are sometimes referred to as an economic model. Chapter 19
  • 2. 2 Process Operating Situations That Are Relevant to Maximizing Operating Profits Include: 1. Sales limited by production. 2. Sales limited by market. 3. Large throughput. 4. High raw material or energy consumption. 5. Product quality better than specification. 6. Losses of valuable or hazardous components through waste streams. Chapter 19
  • 3. Common Types of Optimization Problems 1. Operating Conditions • Distillation column reflux ratio • Reactor temperature 2. Allocation • Fuel use • Feedstock selection 3. Scheduling • Cleaning (e.g., heat exchangers) • Replacing catalysts • Batch processes Chapter 19 3
  • 4. Chapter 19 1. Measurement and Actuation 2. Saf ety , Env ironment and Equipment Protection 3a. Regulatory Control 4. Real-Time Optimization 5. Planning and Scheduling Process 3b. Multiv ariable and Constraint Control (days-months) (< 1 second) (< 1 second) (seconds-minutes) (minutes-hours) (hours-days) Figure 19.1 Hierarchy of process control activities. 4
  • 5. 5 BASIC REQUIREMENTS IN REAL-TIME OPTIMIZATION Chapter 19   19-1 ( (           s s r r s r s s r r P F V F C OC P F V F C OC where: operating profit/time sum of productflowrate) x (product value) sumof feedflowrate) x (unitcost) = operating costs/time s r Both the operating and economic models typically will include constraints on: 1. Operating Conditions 2. Feed and Production Rates 3. Storage and Warehousing Capacities 4. Product Impurities Objective Function:
  • 6. 6 The Interaction Between Set-point Optimization and Process Control Example: Reduce Process Variability • Excursions in chemical composition => off-spec products and a need for larger storage capacities. • Reduction in variability allows set points to be moved closer to a limiting constraint, e.g., product quality. Chapter 19
  • 8. 8 The Formulation and Solution of RTO Problems 1. The economic model: An objective function to be maximized or minimized, that includes costs and product values. 2. The operating model: A steady-state process model and constraints on the process variables. Chapter 19
  • 9. 9 The Formulation and Solution of RTO Problems Table 19.1 Alternative Operating Objectives for a Fluidized Catalytic Cracker Chapter 19 1. Maximize gasoline yield subject to a specified feed rate. 2. Minimize feed rate subject to required gasoline production. 3. Maximize conversion to light products subject to load and compressor/regenerator constraints. 4. Optimize yields subject to fixed feed conditions. 5. Maximize gasoline production with specified cycle oil production. 6. Maximize feed with fixed product distribution. 7. Maximize FCC gasoline plus olefins for alkylate.
  • 10. Selection of Processes for RTO Sources of Information for the Analysis: 1. Profit and loss statements for the plant • Sales, prices • Manufacturing costs etc. 2. Operating records • Material and energy balances • Unit efficiencies, production rates, etc. Categories of Interest: 1. Sales limited by production • Increases in throughput desirable • Incentives for improved operating conditions and schedules. 2. Sales limited by market • Seek improvements in efficiency. • Example: Reduction in manufacturing costs (utilities, feedstocks) 3. Large throughput units • Small savings in production costs per unit are greatly magnified. Chapter 19 10
  • 11. 11 The Formulation and Solution of RTO Problems • Step 1. Identify the process variables. • Step 2. Select the objective function. • Step 3. Develop the process model and constraints. • Step 4. Simplify the model and objective function. • Step 5. Compute the optimum. • Step 6. Perform sensitivity studies. Example 19.1 Chapter 19 11
  • 13. 13 Chapter 19 UNCONSTRAINED OPTIMIZATION • The simplest type of problem • No inequality constraints • An equality constraint can be eliminated by variable substitution in the objective function.
  • 14. 14 Single Variable Optimization • A single independent variable maximizes (or minimizes) an objective function. • Examples: 1. Optimize the reflux ratio in a distillation column 2. Optimize the air/fuel ratio in a furnace. • Typical Assumption: The objective function f (x) is unimodal with respect to x over the region of the search. – Unimodal Function: For a maximization (or minimization) problem, there is only a single maximum (or minimum) in the search region. Chapter 19
  • 15. Chapter 19 15 Different Types of Objective Functions
  • 16. One Dimensional Search Techniques Selection of a method involves a trade-off between the number of objective function evaluations (computer time) and complexity. 1. "Brute Force" Approach Small grid spacing (x) and evaluate f(x) at each grid point  can get close to the optimum but very inefficient. 2. Newton’s Method Chapter 19 1 ( ) ( ). ( ) ( )         k k k k f x f x f x x x f x Exampl It is based on the necessary condion for optimality: =0. Find a minimum of Newton's method gives, e: 16
  • 17. 1. Fit a quadratic polynomial, f (x) = a0+a1x+a2x2, to three data points in the interval of uncertainty. • Denote the three points by xa, xb, and xc , and the corresponding values of the function as fa, fb, and fc. 2. Find the optimum value of x for this polynomial: Chapter 19 3. Quadratic Polynomial fitting technique               2 2 2 2 2 2 1 * 19 8 2             b c a c a b a b c b c a c a b a b c x x f x x f x x f x x x f x x f x x f 4. Evaluate f (x*) and discard the x value that has the worst value of the objective function. (i.e., discard either xa, xb, or xc ). 5. Choose x* to serve as the new, third point. 6. Repeat Steps 1 to 5 until no further improvement in f (x*) occurs. 17
  • 18. 18 Case 1: The maximum lies in (x2, b). Case 2: The maximum lies in (x1, x3). Chapter 19 Equal Interval Search: Consider two cases
  • 19. Multivariable Unconstrained Optimization • Computational efficiency is important when N is large. • "Brute force" techniques are not practical for problems with more than 3 or 4 variables to be optimized. • Typical Approach: Reduce the multivariable optimization problem to a series of one dimensional problems: (1) From a given starting point, specify a search direction. (2) Find the optimum along the search direction, i.e., a one-dimensional search. (3) Determine a new search direction. (4) Repeat steps (2) and (3) until the optimum is located • Two general categories for MV optimization techniques: (1) Methods requiring derivatives of the objective function. (2) Methods that do not require derivatives. Chapter 19     V 1 2 N f f x ,x ,...,x x = 19
  • 20. Constrained Optimization Problems • Optimization problems commonly involve equality and inequality constraints. • Nonlinear Programming (NLP) Problems: a. Involve nonlinear objective function (and possible nonlinear constraints). b. Efficient off-line optimization methods are available (e.g., conjugate gradient, variable metric). c. On-line use? May be limited by computer execution time and storage requirements. • Quadratic Programming (QP) Problems: a. Quadratic objective function plus linear equality and inequality constraints. b. Computationally efficient methods are available. • Linear Programming (QP) Problems: a. Both the objective function and constraints are b. Solutions are highly structured and can be rapidly obtain Chapter 19 20
  • 21. Chapter 19 • Most LP applications involve more than two variables and can involve 1000s of variables. • So we need a more general computational approach, based on the Simplex method. • There are many variations of the Simplex method. • One that is readily available is the Excel Solver. Recall the basic features of LP problems: • Linear objective function • Linear equality/inequality constraints LP Problems (continued) 21
  • 22. Linear Programming (LP) • Has gained widespread industrial acceptance for on-line optimization, blending etc. • Linear constraints can arise due to: 1. Production limitation: e.g. equipment limitations, storage limits, market constraints. 2. Raw material limitation 3. Safety restrictions: e.g. allowable operating ranges for temperature and pressures. 4. Physical property specifications: e.g. product quality constraints when a blend property can be calculated as an average of pure component properties:      n 1 i i iP y P Chapter 19 22
  • 23. 5. Material and Energy Balances - Tend to yield equality constraints. - Constraints can change frequently, e.g. daily or hourly. • Effect of Inequality Constraints - Consider the linear and quadratic objective functions on the next page. - Note that for the LP problem, the optimum must lie on one or more constraints. • Solution of LP Problems - Simplex Method - Examine only constraint boundaries - Very efficient, even for large problems Chapter 19 23
  • 24. 24 Linear Programming Concepts • For a linear process model, y=Ku (19-18) Chapter 19
  • 37. 37 QUADRATIC AND NONLINEAR PROGRAMMING • The most general optimization problem occurs when both the objective function and constraints are nonlinear, a case referred to as nonlinear programming (NLP). • The leading constrained optimization methods include: 1. Quadratic programming 2. Generalized reduced gradient 3. Successive quadratic programming (SQP) 4. Successive linear programming (SLP) Chapter 19
  • 38. 38 Quadratic Programming • A quadratic programming problem minimizes a quadratic function of n variables subject to m linear inequality or equality constraints. • In compact notation, the quadratic programming problem is Chapter 19       1 19 31 2 0 19 32 Minimize Subject to T T f x c x x Qx Ax b x       where c is a vector (n x 1), A is an m x n matrix, and Q is a symmetric n x n matrix.
  • 39. 39 Nonlinear Programming Chapter 19 a) Constrained optimum: The optimum value of the profit is obtained when x=xa. Implementation of an active constraint is straight- forward; for example, it is easy to keep a valve closed. b) Unconstrained flat optimum: In this case the profit is insensitive to the value of x, and small process changes or disturbances do not affect profitability very much. c) Unconstrained sharp optimum: A more difficult problem for implementation occurs when the profit is sensitive to the value of x. If possible, we may want to select a different input variable for which the corresponding optimum is flatter so that the operating range can be wider.
  • 40. Chapter 19 Nonlinear Programming (NLP) Example - nonlinear objective function - nonlinear constraints 40