Download MUS COD II

Transcript
Contents
1 Introduction
4
2 Multistage Optimal Control Problems in
2.1 Transition between Model Stages . . . .
2.2 Interior Point and Path Constraints . . .
2.3 The Objective Function . . . . . . . . .
2.4 Least Squares Objective Contributions .
DAE
. . . .
. . . .
. . . .
. . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
3 The
3.1
3.2
3.3
3.4
3.5
3.6
Direct Multiple Shooting Method
Piecewise Control Discretization . . . . . . . . . . . . . . . . .
Multiple Shooting State Parametrization . . . . . . . . . . . .
Discretization of Bounds, Interior Point and Path Constraints
Discretization of Least Squares Terms . . . . . . . . . . . . . .
The resulting Nonlinear Programming Problem . . . . . . . .
The SQP Algorithm . . . . . . . . . . . . . . . . . . . . . . .
4 The
4.1
4.2
4.3
4.4
software package MUSCOD-II
Installation Steps for a UNIX/Linux System
Making Changes to the Installation . . . . .
Compiler Warnings . . . . . . . . . . . . . .
Compatibility of Compilation Flags . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
5
5
6
6
.
.
.
.
.
.
7
7
8
8
10
10
11
.
.
.
.
12
13
18
20
20
5 How to set up a problem
21
5.1 Running an existing problem from the test set . . . . . . . . . . . . . . . . . . . 21
5.2 Setting up a new problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6 The Model Source File
22
6.1 The parts of the model - dynamic equations, constraints, and objective functions 22
6.2 Putting the model together - the model definition function . . . . . . . . . . . . 25
7 Data and Options
7.1 Data and the DAT File . . . . . . . . . . . . . . . .
7.2 Keywords Defining the Optimal Control Problem .
7.3 Keywords Selecting Dynamically Loadable Modules
7.4 Keywords Setting Algorithmic Options . . . . . . .
7.5 Keywords Setting Output Options . . . . . . . . . .
7.6 Keywords for Visualization . . . . . . . . . . . . . .
7.7 The Command Line . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
27
28
30
34
35
37
37
38
8 Dynamically Loadable Modules
8.1 SQP Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.2 ODE/DAE Solvers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.3 Computation of the Hessian . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
42
42
43
2
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.