The Research on Implement Technique of Automatic Differentiation Tools
- Author
- LiPing
- Advisor
- SongJunQiang
- School
- People's Liberation Army National Defense University of Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP399 In other aspects of the application
- Degree
- Master's thesis
- Year
- 2002
- Downloads
- 127
- Citations
- 2
- Automatic Differentiation
- Calculate the differential
- Tangent linear model
- Adjoint model
- Positive mode
- Inverse mode
- Differential Tools
Abstract
With the development of computing technology, computing has become the scientific theory, experimental scientific method after the third. Increasingly wide range of applications using numerical methods to solve practical problems, numerical simulation in the ocean, meteorology, space environment and other scientific and economic areas have played an important role. Many application problems need to calculate the derivative of the function, for example, the field of optimization, sensitivity analysis field, data assimilation fields. Development of numerical weather prediction models tangent linear model and adjoint model is the typical problems that demand. Automatic differentiation is a source of increased differential calculation program for technology, it has tangent linear model and adjoint model modes. Automatic differentiation method including source code conversion method and operator overloading methods. Existing automatic differentiation tools usually only deal with a differential cell differentiation, a differential unit code usually includes a fixed composition. This article studies the structure of these types of differential transformation rules, designed a general framework for automatic differentiation tool. Because of the derivative value effective, accurate calculation, driven by demand, has developed a variety of automatic differentiation tool. At present some of the more sophisticated differential line tools have to be used for tens of thousands of thousands of lines of source code automatic differentiation. This paper presents an automatic differentiation tool classification, for each type of tool gives the corresponding instance of introduction, on which several more sophisticated tools are described in detail, and its performance is analyzed. This paper focuses on the automatic differentiation tool Odyssee carried out a detailed analysis and dissection. Odyssee by the French company INRIA Sophia Antipolis research center took nearly six years to develop an automatic differentiation tool with forward and reverse differential differential ability. Odyssee derivative instruments is essentially a Ocaml language development, this in-depth understanding of this language on the basis of the code Odyssee were analyzed mainly analyzes the data type definition section of code, call the function part of the public as well as lexical analysis and parsing section. The first two parts of the entire source code on the basis, in the file that define the various data types and error processing, and many common functions to call. Lexical analysis and parsing part is divided into the input command data stream and Fortran source data stream of lexical analysis and syntax analysis, the latter part of the analysis is the focus of this article, It lexical analyzer generator grammar lexer.mll and parser generator is grammar paser.mly as the core, automatic differential transformation of Fortran source code strings transform into various grammatical unit data stream. The current technology can not fully meet the automatic differentiation application areas, such as under a different architecture compatibility issues, the need for differential does not support other languages, Odyssee paper in-depth study on the basis of its source code has been improved, so that are able to meet the current needs of the application, such as Fortran90 support.
Table of contents
Directory 4-6
Summary 6-7
ABSTRACT 7-9
Chapter Introduction 9-12 <br / > 1.1 topics background 9-10
1.2 development Status 10-11
1.3 project work 11
1.4 this structure 11 - 12
Chapter automatic differentiation theory 12-25
2.1 of the problem 12-13
2.2 code for a variety of differential method and compare 13-14
2.3 automatic differentiation of two modes 14-15
2.4 an example of automatic differentiation 15-16
2.5 multiplied by the positive mode even and inverse mode 16-18
2.5.1 even the product of the normal modes 16-17
2.5.2 multiplied by the inverse mode even 17-18 <br / > 2.6 synthetic function automatic differentiation 18-23
2.6.1 synthetic function and its calculation chart 18-19
2.6.2 automatic Differentiation positive mode 19-20
2.6.3 automatic Differentiation inverse mode 20-22
2.6.4 order derivative calculation 22-23
2.7 an inverse mode examples 23-24
2.8 Summary 24-25
Chapter automatic differentiation implementation technology 25-42
3.1 automatic differentiation method 25-27
3.1.1 source code conversion method to generate derivative code 25-26
3.1.2 operator Overloading methods to generate derivative code 26-27 <br / > 3.1.3 ST methods and OO comparison 27
3.2 automatic differentiation code conversion 27-38
3.2.1 code to transform the basic concepts 28
3.2.2 code transformations based automatic differentiation principle 28-29
3.2.3 basic differential structure of code conversion 29-38
3.3 automatic differentiation tool to achieve framework 38-41
3.4 Summary 41-42
Chapter automatic differentiation tool 42-49
4.1 automatic differentiation tool classification 42-43
4.2 automatic differentiation tool instance 43-46
4.2.1 basic tools 43-44
4.2.2 extensible tool 44-45
4.2.3 operator tools 45-46
4.2.4 comprehensive tool 46
4.2.5 symbol tools 46
4.3 several important automatic differentiation tool 46-48
4.3.1 ADIC 46-47
4.3.2 ADIFOR 47
4.3.3 ADOL-C 47
4.3.4 TAMC and TAF 47
4.3.5 Odyssee 47-48
4.3.6 Some tools comparison 48
4.4 Summary 48-49
Chapter ODYSSEE code analysis and code improvements 49-81
5.1 ODYSSEE source code programming language research 49-58
5.1.1 Ocaml language Introduction 49-55
5.1.2 Tcl / Tk tool Command Language Description 55-57 < br /> 5.1.3 Bash programming language Introduction 57-58
5.2 ODYSSEE source code structure analysis 58-76
5.2.1 user interface part of the code analysis 58-59
5.2.2 compiled script code section analyzes the main 59-60
5.2.3 Odyssee main part of the code analysis 60-76
5.3对ODYSSEE for code improvements 76-80
5.3.1 improvements to the user interface portion of the code 76
5.3.2 main program compiled script code improvements 76 - 77
5.3.3 Odyssee main program code improvements 77-80
5.4 Summary 80-81
Chapter ODYSSEE extensive functional testing 81 -87
6.1对ODYSSEE extended functionality test 81-86
6.2 Summary 86-87
Chapter VII Conclusion 87-88 <br / > Thanks 88-89
References 89-90
Related dissertations
- Studies on Key Technologies and Parallel Computing of Data Assimilation in Numerical Weather Prediction
- Tangent Adjoint Mode Technology of Chinese GRAPES Global Mode
- Application of the Conditional Nonlinear Optimal Perturbations Method in Sensitivity Analysis of the Lake Eutrophication
- Conditional Nonlinear Optimal Perturbations of a Two-Dimensional Quasigeostrophic Model with β Effect
- The Study on the Validity of the Tangent Linear Model of the Lorenz Model
- Research of Model Predictive Control in Permanent Magnet Synchronous Motors Drives
- Research on Automatic Differentiation Method of Stochastic Finite Element
- Research on Optimization Approach of Refining Process System and Its Application
- Numerical weather forecast variational assimilation adjoint model of parallel computing
- Application of automatic differentiation inexact Newton method and its promotion
- A Study on the Application of Adijoint Method for Numerical Models of Tide and Sea Temperature
- Static IO Analysis in DFT/ADG Software
- Precipitable Water Data Are Applied in the Assimilation of Numerical Model
- The Partitioned Group Correction Technique with Automatic Differentiation for Large Scale Sparse Unconstrained Optimization
- Designment of the MM5 Genetic Algorithm Assimilation System and Its Application
- Application of Nonlinear Optimization Methods to the Study of Blocking
- Research on the Legal System of Administrative Enforcement
- A Study of Application of Cloud Drift Wind Data Assimilation in MM5 Adjoint-model Assimilation System
- A Research on 4-D Variatonal Data Assimilation Based on Genetic Algorithm
- Designment of Adjoint-model Assimilation System and Its Application