Optimization of Process Flowsheets S,S&L Chapter 24 T&S Chapter 12 Terry A. Ring CHEN 5253.

Slides:



Advertisements
Similar presentations
Optimality conditions for constrained local optima, Lagrange multipliers and their use for sensitivity of optimal solutions.
Advertisements

Linear Programming Problem
Nonlinear Programming McCarl and Spreen Chapter 12.
What is GAMS?. While they are not NLP solvers, per se, attention should be given to modeling languages like: GAMS- AIMMS-
Introduction to Algorithms
Optimization. f(x) = 0 g i (x) = 0 h i (x)
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Optimization Introduction & 1-D Unconstrained Optimization
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Lecture 8 – Nonlinear Programming Models Topics General formulations Local vs. global solutions Solution characteristics Convexity and convex programming.
Optimality conditions for constrained local optima, Lagrange multipliers and their use for sensitivity of optimal solutions Today’s lecture is on optimality.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Optimization in Engineering Design 1 Lagrange Multipliers.
CES 514 – Data Mining Lecture 8 classification (contd…)
ENGR 351 Numerical Methods Instructor: Dr. L.R. Chevalier
1 Real-Time Optimization (RTO) In previous chapters we have emphasized control system performance for disturbance and set-point changes. Now we will be.
Constrained Optimization Rong Jin. Outline  Equality constraints  Inequality constraints  Linear Programming  Quadratic Programming.
Nonlinear Optimization Review of Derivatives Models with One Decision Variable Unconstrained Models with More Than One Decision Variable Models with Equality.
Ch. 9: Direction Generation Method Based on Linearization Generalized Reduced Gradient Method Mohammad Farhan Habib NetLab, CS, UC Davis July 30, 2010.
Tier I: Mathematical Methods of Optimization
Introduction to Optimization (Part 1)
Linear Programming Chapter 13 Supplement.
Real-Time Optimization (RTO) In previous chapters we have emphasized control system performance for load and set-point changes. Now we will be concerned.
1. Problem Formulation. General Structure Objective Function: The objective function is usually formulated on the basis of economic criterion, e.g. profit,
Chapter 11 Nonlinear Programming
1 Chapter 8 Nonlinear Programming with Constraints.
Nonlinear Programming (NLP) Operation Research December 29, 2014 RS and GISc, IST, Karachi.
Mid Term Review Terry A. Ring CH EN 5253 Design II.
L4 Graphical Solution Homework See new Revised Schedule Review Graphical Solution Process Special conditions Summary 1 Read for W for.
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.
Chapter 7 Introduction to Linear Programming
1 1 Slide © 2005 Thomson/South-Western Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization.
1 University of Palestine Operations Research ITGD4207 WIAM_H-Whba Dr. Sana’a Wafa Al-Sayegh 2 nd Semester
Nonlinear Programming Models
Optimization unconstrained and constrained Calculus part II.
L8 Optimal Design concepts pt D
1 Ref: Seider et al, Product and process design principles, 2 nd ed., Chapter 4, Wiley, 2004.
1 Optimization of LNG plants: Challenges and strategies Magnus G. Jacobsen Sigurd Skogestad ESCAPE-21, May 31, 2011 Porto Carras, Chalkidiki, Greece.
Chapter 4 Sensitivity Analysis, Duality and Interior Point Methods.
3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.
Calculus-Based Optimization AGEC 317 Economic Analysis for Agribusiness and Management.
Linear Programming Chapter 9. Interior Point Methods  Three major variants  Affine scaling algorithm - easy concept, good performance  Potential.
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters.
1 Introduction Optimization: Produce best quality of life with the available resources Engineering design optimization: Find the best system that satisfies.
Searching a Linear Subspace Lecture VI. Deriving Subspaces There are several ways to derive the nullspace matrix (or kernel matrix). ◦ The methodology.
1 Introduction to Linear Programming Linear Programming Problem Linear Programming Problem Problem Formulation Problem Formulation A Simple Maximization.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
An Introduction to Linear Programming
deterministic operations research
An Introduction to Linear Programming Pertemuan 4
Chapter 11 Optimization with Equality Constraints
Calculus-Based Solutions Procedures MT 235.
Constrained Optimization
Introduction to linear programming (LP): Minimization
Optimization of Process Flowsheets
1. Problem Formulation.
Chapter 3 The Simplex Method and Sensitivity Analysis
Constrained Optimization
Process Optimization.
Constrained Optimization – Part 1
PRELIMINARY MATHEMATICS
Outline Unconstrained Optimization Functions of One Variable
Linear Programming Problem
Constrained Optimization – Part 1
Constrained Optimization
CH EN 5253 – Process Design II
What are optimization methods?
Calculus-Based Optimization AGEC 317
Constraints.
Presentation transcript:

Optimization of Process Flowsheets S,S&L Chapter 24 T&S Chapter 12 Terry A. Ring CHEN 5253

OBJECTIVES On completion of this course unit, you are expected to be able to: –Formulate and solve a linear program (LP) –Formulate a nonlinear program (NLP) to optimize a process using equality and inequality constraints –Be able to optimize a process using Aspen/ProMax beginning with the results of a steady-state simulation Data/ModelAnalysisTools/Optimization Calculators/SimpleSolver or Advanced Solver/

Degrees of Freedom Over Specified Problem –Fitting Data –N variables >>N equations Equally Specified Problem –Units in Flow sheet –N variables =N equations Under Specified Problem –Optimization –N variables <<N equations

Optimization Number of Decision Variables –N D =N variables -N equations Objective Function is optimized with respect to N D Variables –Minimize Cost –Maximize Investor Rate of Return Subject To Constraints –Equality Constraints Mole fractions add to 1 –Inequality Constraints Reflux ratio is larger than R min –Upper and Lower Bounds Mole fraction is larger than zero and smaller than 1

PRACTICAL ASPECTS Design variables, need to be identified and kept free for manipulation by optimizer –e.g., in a distillation column, reflux ratio specification and distillate flow specification are degrees of freedom, rather than their actual values themselves Design variables should be selected AFTER ensuring that the objective function is sensitive to their values –e.g., the capital cost of a given column may be insensitive to the column feed temperature Do not use discrete-valued variables in gradient-based optimization as they lead to discontinuities in f(d)

Optimization Feasible Region –Unconstrained Optimization No constraints –Uni-modal –Multi-modal –Constrained Optimization Constraints –Slack –Binding

Modality Multimodal Unimodal –(X 1 & X 2 <0)

Stationary Points Maximum number of solutions –N s = πN Degree of partial differential Equation Local Extrema –Maxima –Minima Saddle points Extrema at infinity –Example df/dx 1 = 3 rd order polynomial df/dx 2 = 2 nd order polynomial df/dx 3 = 4 th order polynomial N s =24

LINEAR PROGRAMING (LP) equality constraints inequality constraints objective function w.r.t. design variables The N D design variables, d, are adjusted to minimize f{x} while satisfying the constraints

EXAMPLE LP – GRAPHICAL SOLUTION A refinery uses two crude oils, with yields as below. Volumetric YieldsMax. Production Crude #1Crude #2(bbl/day) Gasoline70316,000 Kerosene692,400 Fuel Oil246012,000 The profit on processing each crude is: $2/bbl for Crude #1 and $1.4/bbl for Crude #2. a)What is the optimum daily processing rate for each grade? b)What is the optimum if 6,000 bbl/day of gasoline is needed?

EXAMPLE LP –SOLUTION (Cont’d) Step 1. Identify the variables. Let x 1 and x 2 be the daily production rates of Crude #1 and Crude #2. maximize Step 2. Select objective function. We need to maximize profit: Step 3. Develop models for process and constraints. Only constraints on the three products are given: Step 4. Simplification of model and objective function. Equality constraints are used to reduce the number of independent variables (N D = N V – N E ). Here N E = 0.

EXAMPLE LP –SOLUTION (Cont’d) Step 5. Compute optimum. a)Inequality constraints define feasible space. Feasible Space

EXAMPLE LP –SOLUTION (Cont’d) Step 5. Compute optimum. b)Constant J contours are positioned to find optimum. J = 10,000 J = 20,000 J = 27,097 x 1 = 0, x 2 = 19,355 bbl/day

EXAMPLE LP – GRAPHICAL SOLUTION A refinery uses two crude oils, with yields as below. Volumetric YieldsMax. Production Crude #1Crude #2(bbl/day) Gasoline70316,000 Kerosene692,400 Fuel Oil246012,000 The profit on processing each crude is: $2/bbl for Crude #1 and $1.4/bbl for Crude #2. a)What is the optimum daily processing rate for each grade? 19,355 bbl/d b)What is the optimum if 6,000 bbl/day of gasoline is needed? 0.7*x *x 2 =6,000, equality constraint added 0.31*19,355=6,000

Solving for a Recycle Loop Newton-Raphson –Solving for a root –F(x i )=0 Optimization –Minimize/Maximize w.r.t. N D variables (d) s.t. constraints –F(x i ) = 0, G(x i ) 0

Minimizef{x} w.r.t d Subject to:c{x} = 0 g{x}  0 x L  x  x U SUCCESSIVE QUADRATIC PROGRAMMING The NLP to be solved is: 1. Definition of slack variables: 2. Formation of Lagrangian: Lagrange multipliers Kuhn-Tucker multipliers

SUCCESSIVE QUADRATIC PROGRAMMING 2. Formation of Lagrangian: 3. At the minimum: Complementary slackness equations: either g i = 0 (constraint active) or i = 0 (g i < 0, constraint slack) Jacobian matrices

OPTIMIZATION ALGORITHM x* x* w{d, x * } Tear equations: h{d, x*} = x* - w{d, x*} = 0, w(d,x*) is a Tear Stream

Minimizef{x, d} w.r.t d Subject to: h{x *, d} = x * - w{x *, d} = 0 c{x, d} = 0 g{x}  0 x L  x  x U OPTIMIZATION ALGORITHM equality constraints inequality constraints objective function design variables tear equations inequality constraints

REPEATED SIMULATION Minimizef{x, d} w.r.t d S.t.h{x *, d} = x * - w{x *, d} = 0 c{x, d} = 0 g{x}  0 x L  x  x U Sequential iteration of w and d (tear equations are converged each master iteration).

INFEASIBLE PATH APPROACH (SQP) Minimizef{x, d} w.r.t. d S.t.h{x *, d} = x * - w{x *, d} = 0 c{x, d} = 0 g{x}  0 x L  x  x U Both w and d are adjusted simultaneously, with normally only one iteration of the tear equations.

COMPROMISE APPROACH (SQP) Minimizef{x, d} w.r.t. d S.t.h{x *, d} = x * - w{x *, d} = 0 c{x, d} = 0 g{x}  0 x L  x  x U Tear equations converged loosely for each master iteration Wegstein’s method

Simple Methods of Flow Sheet Optimization Golden Section Method τ=

Golden Section Problem Replace CW HX and Fired Heater 1 Heat Exchanger Optimize w.r.t T LGO,out PV=(S-C)+i*C TCI S=0, C=$3.00 /MMBTU in Fired Heater C TCI = f( HX Area )

Golden Section Result Min Annual Cost of HX –C A =C s (Q)+i m C TCI (A(ΔT app ))

Aspen Optimization Use Design I Aspen File MeOH Distillation-4.bkp Optimize DSTWU column V=D*(R+1) Minimize V w.r.t. R s.t. R≥R min