Understanding Concepts of Optimization and Optimal Control with WORHP Lab

Similar documents
WORHP Lab The Graphical User Interface for Optimisation and Optimal Control

Parametric Sensitivity Analysis of NLP Problems and its Applications to Real-Time Controller Design

From Theory to Application (Optimization and Optimal Control in Space Applications)

Robotics: Science and Systems

Design optimisation of industrial robots using the Modelica multi-physics modeling language

Video 11.1 Vijay Kumar. Property of University of Pennsylvania, Vijay Kumar

ACADO TOOLKIT - AUTOMATIC CONTROL AND DYNAMIC OPTIMIZATION

Mobile Robotics. Mathematics, Models, and Methods. HI Cambridge. Alonzo Kelly. Carnegie Mellon University UNIVERSITY PRESS

Real-Time Optimization for Fast Nonlinear MPC: Algorithms, Theory, and Applications

Best Practices Workshop: Overset Meshing

Multigrid Pattern. I. Problem. II. Driving Forces. III. Solution

Optimal Control Techniques for Dynamic Walking

2D & 3D Finite Element Method Packages of CEMTool for Engineering PDE Problems

The Level Set Method. Lecture Notes, MIT J / 2.097J / 6.339J Numerical Methods for Partial Differential Equations

CFD-1. Introduction: What is CFD? T. J. Craft. Msc CFD-1. CFD: Computational Fluid Dynamics

Using efficient numerical methods in large-scale air pollution modelling

Panagiotis Tsiotras. Dynamics and Control Systems Laboratory Daniel Guggenheim School of Aerospace Engineering Georgia Institute of Technology

Solving Optimal Control Problems with ACADO Toolkit

Recent developments in simulation, optimization and control of flexible multibody systems

The goal is the definition of points with numbers and primitives with equations or functions. The definition of points with numbers requires a

HPC Algorithms and Applications

Application of Finite Volume Method for Structural Analysis

Math 225 Scientific Computing II Outline of Lectures

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

ACADO Code Generation tool

Can we quantify the hardness of learning manipulation? Kris Hauser Department of Electrical and Computer Engineering Duke University

AMS526: Numerical Analysis I (Numerical Linear Algebra)

1.2 Numerical Solutions of Flow Problems

Using RecurDyn. Contents

Introduction to ANSYS DesignXplorer

A Modified Spline Interpolation Method for Function Reconstruction from Its Zero-Crossings

ME964 High Performance Computing for Engineering Applications

Numerical schemes for Hamilton-Jacobi equations, control problems and games

Data mining with sparse grids

GEOMETRY MODELING & GRID GENERATION

arxiv: v1 [math.na] 20 Sep 2016

Contents. I The Basic Framework for Stationary Problems 1

Simulation in Computer Graphics. Particles. Matthias Teschner. Computer Science Department University of Freiburg

Approximate nonlinear explicit MPC based on reachability analysis

An introduction to mesh generation Part IV : elliptic meshing

Multiscale Methods. Introduction to Network Analysis 1

39th AIAA Aerospace Sciences Meeting and Exhibit January 8 11, 2001/Reno, NV

ACCELERATING CFD AND RESERVOIR SIMULATIONS WITH ALGEBRAIC MULTI GRID Chris Gottbrath, Nov 2016

Sung-Eui Yoon ( 윤성의 )

Flight Systems are Cyber-Physical Systems

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Data mining with sparse grids using simplicial basis functions

Numerical and theoretical analysis of shock waves interaction and reflection

Structure and Synthesis of Robot Motion

Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur

The Immersed Interface Method

Data-Driven Modeling. Scientific Computation J. NATHAN KUTZ OXPORD. Methods for Complex Systems & Big Data

smooth coefficients H. Köstler, U. Rüde

Computational Fluid Dynamics - Incompressible Flows

Dynamic Optimization in JModelica.org

Dipartimento di Ingegneria Aerospaziale Politecnico di Milano

Method of Finite Elements I

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

Euler s Methods (a family of Runge- Ku9a methods)

Realistic Animation of Fluids

Explicit MPC in Mechatronics Industry:

Numerical Methods for (Time-Dependent) HJ PDEs

CasADi tutorial Introduction

System Identification Algorithms and Techniques for Systems Biology

Clothoid Based Spline-RRT with Bézier Approximation

Higher Order Multigrid Algorithms for a 2D and 3D RANS-kω DG-Solver

Discontinuous Galerkin Sparse Grid method for Maxwell s equations

Validation of an Unstructured Overset Mesh Method for CFD Analysis of Store Separation D. Snyder presented by R. Fitzsimmons

Arizona Academic Standards

Bilevel Sparse Coding

CHARMS: A Simple Framework for Adaptive Simulation SIGGRAPH Presented by Jose Guerra

Olivier Brüls. Department of Aerospace and Mechanical Engineering University of Liège

Algorithmic Semi-algebraic Geometry and its applications. Saugata Basu School of Mathematics & College of Computing Georgia Institute of Technology.

Fluent User Services Center

Review Initial Value Problems Euler s Method Summary

Semester Final Report

Overview. 1. Ordinary Differential Equations, Algebraic Equations. 2. Block Diagrams

FOR P3: A monolithic multigrid FEM solver for fluid structure interaction

Non-holonomic Planning

3-D Wind Field Simulation over Complex Terrain

Unstructured Mesh Generation for Implicit Moving Geometries and Level Set Applications

Lecture 9: Introduction to Spline Curves

Justin Solomon MIT, Spring Numerical Geometry of Nonrigid Shapes

Modeling Skills Thermal Analysis J.E. Akin, Rice University

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

: What is Finite Element Analysis (FEA)?

Algorithms, System and Data Centre Optimisation for Energy Efficient HPC

Fast marching methods

ABOUT THE GENERATION OF UNSTRUCTURED MESH FAMILIES FOR GRID CONVERGENCE ASSESSMENT BY MIXED MESHES

Journal of Computational Physics

INTERNATIONAL JOURNAL OF CIVIL AND STRUCTURAL ENGINEERING Volume 2, No 3, 2012

Indian Institute of Technology Kanpur. Visuomotor Learning Using Image Manifolds: ST-GK Problem

Real-Time Shape Editing using Radial Basis Functions

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

PTE 519 Lecture Note Finite Difference Approximation (Model)

Numerical Resolution of optimal control problems by a Piecewise Linear continuation method

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

Large Data Analysis via Interpolation of Functions: Interpolating Polynomials vs Artificial Neural Networks

Express Introductory Training in ANSYS Fluent Workshop 04 Fluid Flow Around the NACA0012 Airfoil

An Optimization Method Based On B-spline Shape Functions & the Knot Insertion Algorithm

Transcription:

Understanding Concepts of Optimization and Optimal Control with WORHP Lab M. Knauer, C. Büskens Zentrum für Universität Bremen 6th International Conference on Astrodynamics Tools and Techniques 14 th - 17 th March 2016

Overview WORHP Lab WORHP WORHP Zen TransWORHP Introduction to GUI Definition of problem Sensitivity derivatives Usage in WORHP TransWORHP Direct methods Grid refinement Sparsity Structures MPC

Sparse NLP solver Official ESA NLP solver Parallel linear algebra 99.8% of AMPL CUTEr testset Industrial standard Interfaces to Fortran/C/Matlab Funding The WORHP Family We Optimize Really Huge Problems WORHP WORHP Zen TransWORHP Parametric sensitivity analysis Postoptimality analysis tool No computational cost Sparse OCP solver Full discretization or shooting Multiple Phases MPC Subpartner Development Funding Development Funding Development Free for academics and testing www.worhp.de

WORHP Community >600 users worldwide >150 international users

WORHP Developed at Big PC Big PC Smart phone PC Smart phone PC variables constraints

Nonlinear Optimization Problem formulation Standard formulation WORHP formulation

WORHP Lab Simplified interface to WORHP hide initialization and reverse communication from user for common tasks (e.g. data interpolation) easy access to solution Showcase for features of WORHP Industrial workshops Education (university, school)

WORHP Lab Load and set function handles Optimisation variables with box constraints, parameters Objective function MinGW Visual Studio Constraints C++ source file DLL

Smooth surfaces Minimise difference of adjacent matrix entries where some entries are fixed

WORHP Zen Impact of small perturbations on optimal solution Parametric Nonlinear Programming Sensitivity derivatives of solution Extension of sensitivity theorem of Fiacco, Robinson Eliminating NLP fractals (relaxation, regularisation) Without measurable computational cost For free: Additional sensitivity derivatives and

Sensitivity analysis in objective Change weighting parameters in objective Linear approximation of Pareto front

Sensitivity analysis in constraints Change amplitude of boundary

Mathematical Task General problem formulation of optimal control How do I have to control the motors, so that a system is brought from an initial position to a final position as good as possible without overstressing?

Mathematical Task General problem formulation of optimal control

Optimal Control Problem Standard formulation and methods Indirect Methods (First optimize, then discretize) Reformulation to a boundary value problem using necessary conditions Direct Methods (First discretize, then optimize) Reformulation to a nonlinear optimization problem by discretization

Direct Methods Numerical solution by discretization of time variable Single Shooting/Multiple Shooting Free Variables Full Discretization Free Variables Recursive integration Integration scheme as constraints Small + dense Large + sparse

Direct Methods Numerical Solution by discretization of time variable and Euler s method, e.g. High dimensional NLP problem

Euler s Method Methods of Higher Order Implicit methods for free Precision of solution Trapezoidal rule Hermite-Simpson: additional point

Parking Dynamic system States: Position x, y Orientation of car Steering angle Velocity v Controls Rate of steering angle Acceleration u Constants Gear ratio b

Parking Optimal control problem Objective: Free process time and energy consumption Boundary conditions: Halt at initial and terminal point Path constraints: Avoid (x,y) = (5,0)

Parking Solution Estimated error on grid Full discretization: Euler, Trapezoidal, Hermite Simpson Adaptive grid points Multiple shooting

Matrix Structures Automatic sparsity detection 0 1-1 other value structural zero Structure due to integration method Structure due to sparse ode system sparse path constraints

Sensitivity Analysis for Parking Result from WORHP Zen Sensitivity of gear ratio Sensitivity of initial position x

Real-Time Optimal Control Using sensitivity differentials of ode 1. Update control and state for 2. Measure deviations 3. While a. Update control and state b. Update deviation,

Real-Time Optimal Control

Tracking Problems Industrial Application Simulation environments real-time reaction to user input robot-based flight simulations Assistance systems controller to simplify handling Hexapod-Robot control=acceleration 15 state functions 7 control functions Predicted Pseudo-Tracking Optimization cycle <200 ms Task unknown in advance Task too complex for feedback controllers Crane System Tracking of user input

MPC with TransWORHP Nonlinear Model Predictive Control Finite prediction horizon Accept only first part of iterative solution

Objective: Reach target Stable final position No boundary conditions Chasing with a car MPC Prediction time: 2 seconds Accepted time: 0.5 seconds Target moves on Lissajous figure

Conclusions WORHP Family WORHP - TransWORHP - WORHP Zen - WORHP Lab Online and real-time solutions of OCP WORHP/TransWORHP < 1000 ms MPC for tracking < 100 ms Real-time correction < 1 ms Current Work. Representative examples Automatic derivatives using operator overloading 3d visualization Support of various user input devices (Joystick, Kinect) Transfer. e.g. Automotive, Logistics, Aerospace, Energy