Page 1 Open-Source Software for Interfacing and Support of Large-scale Embedded Nonlinear Optimization Roscoe A. Bartlett

Slides:



Advertisements
Similar presentations
Page 1 APP + Trilinos Integration Status, Opportunities, and Challenges Roscoe A. Bartlett Department of Optimization.
Advertisements

1 Approved for unlimited release as SAND C Verification Practices for Code Development Teams Greg Weirs Computational Shock and Multiphysics.
Problem Uncertainty quantification (UQ) is an important scientific driver for pushing to the exascale, potentially enabling rigorous and accurate predictive.
Network and Grid Computing –Modeling, Algorithms, and Software Mo Mu Joint work with Xiao Hong Zhu, Falcon Siu.
Efficient Methodologies for Reliability Based Design Optimization
MOOCHO and TSFCore object-oriented software and interfaces for the development of optimization and other advanced abstract numerical algorithms Roscoe.
Interval-based Inverse Problems with Uncertainties Francesco Fedele 1,2 and Rafi L. Muhanna 1 1 School of Civil and Environmental Engineering 2 School.
Page - 1 Rocketdyne Propulsion & Power Role of EASY5 in Integrated Product Development Frank Gombos Boeing Canoga Park, CA.
FY07 ASC Vertical Integration Milestone Overview, Lessons Learned, and Next Steps Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
MS17 A Case Study on the Vertical Integration of Trilinos Solver Algorithms with a Production Application Code Organizer: Roscoe A. Bartlett Sandia National.
LTE Review (September 2005 – January 2006) January 17, 2006 Daniel M. Dunlavy John von Neumann Fellow Optimization and Uncertainty Estimation (1411) (8962.
Page 1 Trilinos Software Engineering Technologies and Integration Capability Area Overview Roscoe A. Bartlett Trilinos Software Engineering Technologies.
Page 1 Trilinos Software Engineering Technologies and Integration Capability Area Overview Roscoe A. Bartlett Department.
Are their more appropriate domain-specific performance metrics for science and engineering HPC applications available then the canonical “percent of peak”
Continuation Methods for Performing Stability Analysis of Large-Scale Applications LOCA: Library Of Continuation Algorithms Andy Salinger Roger Pawlowski,
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
Trilinos: From a User’s Perspective Russell Hooper Nov. 7, 2007 SAND P Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
Report on Sensitivity Analysis Radu Serban Keith Grant, Alan Hindmarsh, Steven Lee, Carol Woodward Center for Applied Scientific Computing, LLNL Work performed.
A Framework for Distributed Model Predictive Control
PyTrilinos: A Python Interface to Trilinos Bill Spotz Sandia National Laboratories Reproducible Research in Computational Geophysics August 31, 2006.
Page 1 Trilinos Software Engineering Technologies and Integration Capability Area Overview Roscoe A. Bartlett Department.
Page 1 Trilinos Software Engineering Technologies and Integration Numerical Algorithm Interoperability and Vertical Integration –Abstract Numerical Algorithms.
1 Using the PETSc Parallel Software library in Developing MPP Software for Calculating Exact Cumulative Reaction Probabilities for Large Systems (M. Minkoff.
Computing a posteriori covariance in variational DA I.Gejadze, F.-X. Le Dimet, V.Shutyaev.
Large-Scale Stability Analysis Algorithms Andy Salinger, Roger Pawlowski, Ed Wilkes Louis Romero, Rich Lehoucq, John Shadid Sandia National Labs Albuquerque,
Bill Walster June 15, 2006 Computing with Intervals Recent Developments.
Page 1 Embedded Sensitivities and Optimization From Research to Applications Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation Sandia.
Page 1 Software Life-cycle and Integration Issues for CS&E R&D Software and Experiences from Trilinos (Part II, Integration Issues) Roscoe A. Bartlett.
Page 1 Trilinos Release Improvement Issues Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation Trilinos.
Strategic Goals: To align the many efforts at Sandia involved in developing software for the modeling and simulation of physical systems (mostly PDEs):
1 ModelEvaluator Scalable, Extendable Interface Between Embedded Nonlinear Analysis Algorithms and Applications Roscoe A. Bartlett Department of Optimization.
Sensitivities and Optimization: Going Beyond the Forward Solve (to Enable More Predictive Simulations) Roscoe A. Bartlett Department of Optimization &
Efficient Integration of Large Stiff Systems of ODEs Using Exponential Integrators M. Tokman, M. Tokman, University of California, Merced 2 hrs 1.5 hrs.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
Strategies for Solving Large-Scale Optimization Problems Judith Hill Sandia National Laboratories October 23, 2007 Modeling and High-Performance Computing.
Solvers Made Easy (to use and use together) Thyra, Stratimikos, Handles and More... Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation.
Pascucci-1 Valerio Pascucci Director, CEDMAV Professor, SCI Institute & School of Computing Laboratory Fellow, PNNL Massive Data Management, Analysis,
An Overview of the Thyra Interoperability Effort Current Status and Future Plans Roscoe A. Bartlett Department 1411: Optimization and Uncertainty Estimation.
Mathematical Models & Optimization?
Solution of a Partial Differential Equations using the Method of Lines
Danny Dunlavy, Andy Salinger Sandia National Laboratories Albuquerque, New Mexico, USA SIAM Parallel Processing February 23, 2006 SAND C Sandia.
1 1 What does Performance Across the Software Stack mean?  High level view: Providing performance for physics simulations meaningful to applications 
Akram Bitar and Larry Manevitz Department of Computer Science
Thyra from a Developer's Perspective Roscoe A. Bartlett Department 1411: Optimization and Uncertainty Estimation Sandia National Laboratories Sandia is.
1 Stratimikos Unified Wrapper to Trilinos Linear Solvers and Preconditioners Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation Sandia.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
Texas A&M University, Department of Aerospace Engineering AN EMBEDDED FUNCTION TOOL FOR MODELING AND SIMULATING ESTIMATION PROBLEMS IN AEROSPACE ENGINEERING.
Cracow Grid Workshop, November 5-6, 2001 Concepts for implementing adaptive finite element codes for grid computing Krzysztof Banaś, Joanna Płażek Cracow.
Using Thyra and Stratimikos to Build Blocked and Implicitly Composed Solver Capabilities Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation.
Trilinos Strategic (and Tactical) Planning Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United.
Daily Integration and Testing of the Development Versions of Applications and Trilinos A stronger foundation for enhanced collaboration in application.
On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements ImpactObjectives 
Photos placed in horizontal position with even amount of white space between photos and header Sandia National Laboratories is a multi-program laboratory.
Page 1 Integration Strategies for Computational Science & Engineering Software Roscoe A. Bartlett Department of Optimization.
Optimization in Engineering Design 1 Introduction to Non-Linear Optimization.
Multifidelity Optimization Using Asynchronous Parallel Pattern Search and Space Mapping Techniques Genetha Gray*, Joe Castro i, Patty Hough*, and Tony.
Algebraic Solvers in FASTMath Argonne Training Program on Extreme-Scale Computing August 2015.
Computational Fluid Dynamics - Fall 2007 The syllabus CFD references (Text books and papers) Course Tools Course Web Site:
Center for Component Technology for Terascale Simulation Software (CCTTSS) 110 April 2002CCA Forum, Townsend, TN CCA Status, Code Walkthroughs, and Demonstrations.
Quality of Service for Numerical Components Lori Freitag Diachin, Paul Hovland, Kate Keahey, Lois McInnes, Boyana Norris, Padma Raghavan.
On the Path to Trinity - Experiences Bringing Codes to the Next Generation ASC Platform Courtenay T. Vaughan and Simon D. Hammond Sandia National Laboratories.
Sandia National Laboratories is a multi-program laboratory managed and operated by Sandia Corporation, a wholly owned subsidiary of Lockheed Martin Corporation,
Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation
ModelEvaluator Scalable, Extendable Interface Between Embedded Nonlinear Analysis Algorithms and Applications Roscoe A. Bartlett Department of Optimization.
Trilinos Software Engineering Technologies and Integration
Embedded Nonlinear Analysis Tools Capability Area
Presentation transcript:

Page 1 Open-Source Software for Interfacing and Support of Large-scale Embedded Nonlinear Optimization Roscoe A. Bartlett Department of Optimization & Uncertainty Estimation Sandia National Laboratories INFORMS Annual Meeting, October 14, 2008 Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract DE-AC04-94AL C

Page 2 Computational Sciences at Sandia : PDEs and More … Chemically reacting flows Climate modeling Combustion Compressible flows Computational biology Circuit modeling Inhomogeneous fluids Materials modeling MEMS modeling Seismic imaging Shock and multiphysics Structural dynamics Heat transfer Network modeling Large-Scale Parallel Distributed Memory and Implicit Iterative Solvers are Major Themes!

Page 3 Overview of Trilinos Provides a suite of numerical solvers to support predictive simulation for Sandia’s customers => Scope has expended to include discretizations methods, … Provides a decoupled and scalable development environment to allow for algorithmic research and production capabilities => “Packages” Mostly C++ with some C, Fortran, Python … Advanced object-oriented and generic C++ … Freely available under and open-source LGPL license... Current Status Current Release Trilinos 9.0 (September 2008) Next Release Trilinos 10.0? (March 2009?) Trilinos website

Page 4 An ANA is a numerical algorithm that can be expressed abstractly solely in terms of vectors, vector spaces, linear operators, and other abstractions built on top of these without general direct data access or any general assumptions about data locality Example : Linear Conjugate Gradients scalar product defined by vector space vector-vector operations linear operator applications Scalar operations Types of operationsTypes of objects What is an abstract numerical algorithm (ANA)? Linear Conjugate Gradient Algorithm Introducing Abstract Numerical Algorithms Key Points ANAs can be very mathematically sophisticated! ANAs can be extremely reusable! Flexibility needed to achieve high performance!

Page 5 Simulation-Constrained Optimization Methods Basic Steady-State Simulation-Constrained Optimization Problem: Decoupled approach (simulation constraints always satisfied): Optimization method never “sees” the state space! Optimization method deals with the (parallel) state space and the parameter space together! Requires special globalization methods to converge to a minimum! MOOCHO (Trilinos) Two broad approaches for solving optimization problems Embedded approach (converges optimality and feasibility together):

Page 6 Motivation for Embedded Optimization Large Scale Non-Linear Programming for PDE Constrained Optimization, van Bloemen Waanders, B., Bartlett, R., Long, K., Boggs, P., and Salinger, A. Sandia Technical Report SAND , October 2002 Increasing Levels of Coupling, Derivative, and Solve Capabilities Key Point For many/some optimization problems, embedded optimization methods can be much more computationally efficient and more robust than decoupled approaches But: It is hard to get our “foot in the door” with production codes It is hard to keep a “door stop” in place once we are in … Because … Decoupled Finite-Difference Varying levels of Embedded Invasiveness Decoupled Pattern Search Level 2 = Decoupled forward sens. Level 3 = Coupled forward sens. Level 4 = Decoupled adjoint sens. Level 5 = Coupled adjoint sens. Level 6 = Coupled full-Newton

Page 7 Challenges/Barriers to Embedded Optimization Embedded Algorithms R&D with Production APPs Better Algorithms R&D! Better Production APPs! Version Control, Build, Test (incompatible dev sources, environments, tools, lack of testing, …) APP + Trilinos Dev (Bartlett et. al.) Software Infrastructure (narrow forward solvers, inflexible implementation approaches, …) Thyra ModelEvaluator (Bartlett et. al.) Derivatives Support (smoothness, accuracy, parameter derivatives, … ) AD/Sacado (Phipps and Gay) Fleeting effort #1 Fleeting effort #2 SNL APP + Trilinos Dev (Bartlett et.al.) Thyra ModelEvaluator (Bartlett et.al.) AD/Sacado (Phipps et.al.) … We are now addressing these barriers in a fundamental way to provide the foundation for sustained embedded algorithms R&D

Page 8 Example: Numerous interactions exist between layers of abstract numerical algorithms (ANAs) in a transient optimization problem Linear Solver AztecOO, Amesos, Belos, ??? Operators and Vectors Epetra, Tpetra, PETSc, ??? Nonlinear Solver NOX, PETSc, ??? Nonlinear Optimizer MOOCHO, ??? Key Points Higher level algorithms, like optimization, require a lot of interoperability Interoperability and vertical integration must be “easy” or these configurations will not be achieved in practice What is needed to solve problem? Standard interfaces to break O(N 2 ) 1-to-1 couplings Application Charon, Aria, ??? Transient Solver Rythmos, SUNDIALS, ??? Algorithm Vertical Integration for Embedded Optimization Thyra is being developed to address interoperability of ANAs by defining interfaces for: · Linear operators/vectors · Preconditioners / Linear solvers · Nonlinear models · Nonlinear solvers · Transient solvers

Page 9 Overview of Nonlinear Model Evaluator Interface Motivation: An interface for nonlinear problems is needed that will support a variety of different types of problems Nonlinear equations (and senstitivities) Stability analysis and continuation Explicit ODEs (and sensitivities) DAEs and implicit ODEs (and sensitivities) Unconstrained optimization Constrained optimization Uncertainty quantification … as well as different combinations of problem types such as: Uncertainty in transient simulations Stability of an optimum under uncertainty of a transient problem Approach: Develop a single, scalable interface to address all of these problems (Some) Input arguments: State and differential state: Parameter sub-vectors: Time (differential): (Some) Output functions: State function: Auxiliary response functions: State/state derivative operator (LinearOpWithSolve): Key Points Input and output objects strongly typed Mathematical problem loosely typed Key Point The number of combinations of different problem types is large and trying to statically type all of the combinations is not realistic

Page 10 Some Nonlinear Problems Supported by the ModelEvaluator Nonlinear equations: Stability analysis: DAEs/Implicit ODEs: Explicit ODEs: DAE/Implicit ODE Forward Sensitivities: Unconstrained Optimization: Constrained Optimization: ODE Constrained Optimization: Explicit ODE Forward Sensitivities:

Page 11 Nonlinear Algorithms and Applications : Thyra & Model Evaluator! Trilinos and non-Trilinos Preconditioner and Linear Solver Capability NOX / LOCA MOOCHO XyceCharonAriaTramontoAleph … … Key Points Provide single interface from nonlinear ANAs to applications Provides for shared, uniform access to linear solver capabilities Once an application implements support for one ANA, support for other ANAs can be added incrementally Nonlinear ANA Solvers in Trilinos Sandia Applications Rythmos Model Evaluator

Page 12 Si interstitial (I) (+2,+1,0,–1,–2) Vacancy (V) (+2,+1,0,–1,–2) VV (+1,0,–1,–2) B I (+,0,–) C I (+,0,-) VP (0,–) VB (+,0) VO (0,–) B I B (0,–) B I O (+,0) BICBIC Annihilation Defect reactions QASPR Qualification of electronic devices in hostile environments PDE semiconductor device simulation Stockpile BJT

Page 13 Steady-State Parameter Estimation with Charon/MOOCHO Minimize Current model vs. target mismatch Subject to: Steady-state semiconductor defect physic FE model Solved current matching optimization problems to calibrate model parameters against target currents MOOCHO (Bartlett) optimization solver converges simulation model and optimality at same time –Faster and more robust than black-box optimization methods –More accurate solutions Successes –Very accurate inversion of currents and model parameters for contrived “inverse” problems Challenges –Extremely difficult nonlinear solver convergences on model convergence => Opportunities for algorithm research –Inability to match experimental data => May indicate incomplete FE model

Page 14 Embedded Transient Sensitivity Computation QASPR transient current sensitivities w.r.t. reaction parameters for an irradiated semiconductor device modeled with Charon –Embedded sensitivities with AD/Sacado (Phipps) & Rythmos –Finite differences (steplen=1e-2) (optimal steplen=1e-1) –Embedded sensitivities vs. finite diff. Much more accurate and robust! 10x faster for 40 parameters! Bartlett, Roscoe, Scott Collis, Todd Coffey, David Day, Mike Heroux, Rob Hoekstra, Russell Hooper, Roger Pawlowski, Eric Phipps, Denis Ridzal, Andy Salinger, Heidi Thornquist, and Jim Willenbring. ASC Vertical Integration Milestone. SAND , Sandia National Laboratories, 2007 [

Page 15 Summary Abstract numerical algorithm (ANA) approach results in highly flexible and efficient numerical algorithms Embedded optimization support must be well assimilated with forward solver algorithms and related nonlinear analysis algorithms Standard interfaces are needed to achieve vertical integration of numerical algorithms to support embedded optimization Thyra operator/vector, linear solver etc. interfaces form foundation for interoperability of ANAs to support embedded optimization Thyra ModelEvaluator provides foundation for application and algorithmic infrastructure to support embedded optimization and related simulated- constrained analysis methods Thyra, ModelEvaluator, and ANA principles demonstrated with semi- production semiconductor simulation code (Charon)

Page 16 The End