A Brief GAMS Tutorial For Dynamic Optimization
A Brief GAMS Tutorial For Dynamic Optimization
L. T. Biegler
Chemical Engineering Department
Carnegie Mellon University
Pittsburgh, PA
Dynamic Optimization Problem
s.t.
Differential Equations
• Conservation Laws (Mass, Energy, Momentum)
Algebraic Equations
• Constitutive Equations, Equilibrium (physical properties,
hydraulics, rate laws)
Characteristics
• Large-scale models – not easily scaled
• Sparse but no regular structure
• Direct solvers widely used
• Coarse-grained decomposition of linear algebra
Carnegie Mellon
Nonlinear Programming Formulation
Nonlinear Dynamic
Optimization Problem
Collocation on
finite Elements
Nonlinear Programming
Problem (NLP)
Carnegie Mellon
Collocation on Finite Elements
Polynomials
True solution
•" •" •"
•" •" •"
•" •" •" •"
•" •"
•"
" " " " " " " " " " " "
to ti Collocation points
tf
i
Mesh points
Finite element, i
s.t.
Carnegie Mellon
Dynamic Optimization:
Methods of Solution
Carnegie Mellon
Example: Hicks
Reactor Problem
Carnegie Mellon
Example: Hicks Reactor Problem
Carnegie Mellon
Introduction and define Sets
Carnegie Mellon
Define Sets and Conditional Sets
Carnegie Mellon
Define parameters for collocation
Carnegie Mellon
Define Variables and Equations
Carnegie Mellon
Collocation Model
Carnegie Mellon
Initialization and Solution
Carnegie Mellon