1
Iterator Model Iterator Model Sandia Software Enabling Extreme-Scale Uncertainty Quantification Michael Eldred, Bert Debusschere, Kenny Chowdhary, John Jakeman, Habib Najm, Cosmin Safta, Khachik Sargsyan 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, for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000. www.quest-scidac.org Applications: DAKOTA (dakota.sandia.gov ) is a C++ application that provides a variety of non-intrusive algorithms for design optimization, model calibration, uncertainty quantification, global sensitivity analysis, parameter studies, and solution verification. It can be used as either a stand-alone application or as a set of library services, and supports multiple levels of parallelism for scalability on both capability and capacity HPC resources. • Contact: [email protected] DAKOTA Input File Environment Method Model: Variables, Interface, Responses DAKOTA Output Files Raw data (all Var & QoI sets) Sensitivity info Statistics on QoI Optimal solutions CALORE thermal analysis ALEGRA shock physics SALINAS structural dynam Premo high speed flow (your code here) Code Input Code Output DAKOTA Parameters File {Var1 = 123.4} {Var2 = -33.3}, etc. Use APREPRO/DPREPRO to insert Var-values into code input file User-supplied automatic post-processing of code output data into QoI values DAKOTA executes sim_code_script to launch a simulation job DAKOTA Results File 999.888 QoI1 777.666 QoI2, etc. DAKOTA Executable Sensitivity Analysis, Optimization, Uncertainty Quantification, Parameter Estimation Intrusive and non-intrusive (quadrature) approaches for PCE stochastic Galerkin projection Full and sparse quadrature approaches Markov Chain Monte Carlo library for Bayesian inference Bayesian Compressive Sensing Karhunen-Loève expansions Sensitivity analysis Core libraries in C++ Examples and postprocessing tools in Python Fully functional Python interface planned for Fall 2014 release Process of quantifying the effect of uncertainties typically includes: (Global) sensitivity analysis: identification of input set with greatest influence on output QoIs Uncertainty characterization: model or infer from observable data; parametric/non-parametric/KDE Uncertainty propagation: input distributions output QoI distributions Decision making: model validation, prediction, design under uncertainty SNL software tools within QUEST support a range of: UQ studies: sensitivity analysis, uncertainty propagation, statistical inference Environments: rapid prototyping in production computing in compiled interpreted languages languages on parallel platforms Intrusion: embedded linked black box An interoperable set of tools that can be tailored: DAKOTA + QUESO/GPMSA + PCE/SC/GP emulators Production deployment of stable capabilities in frameworks Close collaboration of SAPs with library developers for custom capabilities Meta-iteration and recursion: control of multiple iterators and models Coordination: Nested Layered Cascaded Concurrent Adaptive/Interactive Parallelism: Asynch local Message passing Master-slave/dynamic Peer/static Peer/dynamic Hybrid Variables Model: Design continuous discrete range discrete sets Aleatory Uncertain continuous discrete range discrete sets Epistemic Uncertain continuous discrete range discrete sets State continuous discrete range discrete sets Application system fork direct grid Approximation global polynomial 1/2/3, NN, kriging, MARS, RBF multipoint – TANA3 local – Taylor series multifidelity ROM Functions objectives constraints least sq. terms generic Responses Interface LHS/MC Iterator Optimizer COLINY NPSOL DOT OPT++ LeastSq DACE Vector MultiD List DDACE CCD/BB UQ Reliability IntEst/Evid JEGA CONMIN NLSSOL NL2SOL QMC/CVT Gradients numerical analytic Hessians numerical analytic quasi NLPQL Center PCE/SC ParamStudy GN JAGUAR Defense, Science, and Energy Applications UQ Capabilities: SAP Highlight: Integration of Albany/Dakota/Trilinos for PISCEES Sampling methods Random: LHS, MC, Incremental Importance: IS, AIS, MMAIS Adaptive: Morse-Smale et al. Reliability methods Local: MV, AMV, AMV+, AMV 2 +, TANA-3, FORM, SORM Global: EGRA, GPAIS, POF Darts Stochastic expansion methods Polynomial chaos: projection, regression (see Algs poster) Stochastic collocation: tensor & sparse; nodal & hierarchical Epistemic methods Interval estimation: local, global, mixed-integer Dempster-Shafer Bayesian methods QUESO, GPMSA, DREAM Emulator-based MCMC: PCE, SC, GP Random field inference (PISCEES at bottom) Meta-iteration and recursion Mixed aleatory-epistemic UQ Design / calibration under uncertainty Optimization & Least Squares: Hybrid: Sequential, Embedded, Collaborative Surrogate-based: Local, Global, EGO Concurrent: Pareto, Multi-start Mixed integer: Parallel branch & bound Nesting with UQ: Mixed aleatory-epistemic: IVP, SOP, DSTE Design & calibration under uncertainty Uncertainty of optima UQTk (www.sandia.gov/UQToolkit ) is an LGPL open source library of functions for characterization and propagation of uncertainty in computational models. Mainly relies on spectral Polynomial Chaos Expansions (PCEs) for representing random variables and stochastic processes Complementary to production tools, UQTk targets: Rapid prototyping Algorithmic research Outreach: Tutorials / Educational Contact: Bert Debusschere: [email protected] Capabilities: UQTk components can be combined as needed into an end-to-end UQ workflow: Surrogate construction sensitivity analysis parameter inference PCE construction forward propagation Bayesian compressive sensing used in climate modeling for surrogate construction and dimensionality reduction of land, atmosphere and cloud models (CSSEF, ACME, Multiscale Earth Models, ACES4GCM) UQ workflows set up in multiple SciDAC partnership projects: e.g. UQ in Xolotl (PSI) Development of lecture material and hands-on exercises for UQ tutorials Nationally and Internationally Inference of Combustion Model Parameters ASC CASL CSSEF Black box simulation interfacing (alternative: library service) !"#$ 2 nd order Legendre-Uniform PC surrogate obtained with Bayesian regression from formation energies computed with MD Input to Xolotl, which computes cluster dissociation rates in plasma-surface interactions ASCR UQ Greenland surface ice velocity Karhunen-Loève expansion (KLE): Assume analytic spatial covariance kernel (squared exponential) for random field: and integrate over domain for modes. Length scale (L) balances feature resolution vs. # KLE modes. First 5 KLE modes (95% energy): Dimension reduced inference: Mismatch = sum sq of surface velocity discrepancy PCE formed for mismatch over uniform prior distributions for isotropic sparse grid lev = 3 MCMC on PCE with 100k samples, 1 st 10k discarded C ( r 1 , r 2 ) = e ( r 1 r 2 ) 2 / L 2 Truth Reconstructed Posterior KLE coeffs 1 0.8 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 1 0 1000 2000 3000 4000 5000 6000 7000 Mode 1 range of j # samples 1 0.8 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 1 0 500 1000 1500 2000 2500 3000 3500 4000 4500 Mode 2 range of j # samples Uncertainty Quantification in Xolotl 5 th order Legendre-Uniform PC surrogate for an ignition time model, as a function of activation energy and pre- exponential (top left) Derivative of the surrogate (bottom left) Both the surrogate and its derivative obtained with UQTk Used in optimization to get better initial guess for MCMC Used to accelerate likelihood computation in MCMC Iterator Model Iterator Sub-Iterator Nested Model Sub-Model Iterator Model Iterator Truth Model Surrogate Model QUEST/DAKOTA FASTMath/Trilinos/RBGen PISCEES/FELIX Support for this work was provided through the Scientific Discovery through Advanced Computing (SciDAC) project funded by the U.S. Department of Energy, Office of Science, Advanced Scientific Computing Research. www.sandia.gov

DAKOTA UQTk · DAKOTA (dakota.sandia.gov) is a C++ application that provides a variety of non-intrusive algorithms for design optimization, model calibration, uncertainty quantification,

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DAKOTA UQTk · DAKOTA (dakota.sandia.gov) is a C++ application that provides a variety of non-intrusive algorithms for design optimization, model calibration, uncertainty quantification,

Iterator Model

Iterator Model

Sandia Software Enabling Extreme-Scale Uncertainty Quantification Michael Eldred, Bert Debusschere, Kenny Chowdhary, John Jakeman, Habib Najm, Cosmin Safta, Khachik Sargsyan

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, for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000.

www.quest-scidac.org

Applications:

DAKOTA (dakota.sandia.gov) is a C++ application that provides a variety of non-intrusive algorithms for design optimization, model calibration, uncertainty quantification, global sensitivity analysis, parameter studies, and solution verification. It can be used as either a stand-alone application or as a set of library services, and supports multiple levels of parallelism for scalability on both capability and capacity HPC resources.

•  Contact: [email protected]

DAKOTA Input File • Environment • Method • Model: Variables,

Interface, Responses

DAKOTA Output Files • Raw data (all Var & QoI sets) • Sensitivity info • Statistics on QoI • Optimal solutions

CALORE !thermal analysis!ALEGRA !shock physics!SALINAS !structural dynam!Premo !high speed flow! (your code here)!

Code Input

Code Output

DAKOTA Parameters File {Var1 = 123.4} {Var2 = -33.3}, etc.

Use APREPRO/DPREPRO to insert Var-values into code input file

User-supplied automatic post-processing of code output data into QoI values

DAKOTA executes sim_code_script

to launch a simulation job

DAKOTA Results File 999.888 QoI1 777.666 QoI2, etc.

DAKOTA Executable Sensitivity Analysis,

Optimization, Uncertainty Quantification, Parameter

Estimation

•  Intrusive and non-intrusive (quadrature) approaches for PCE stochastic Galerkin projection •  Full and sparse quadrature approaches

•  Markov Chain Monte Carlo library for Bayesian inference •  Bayesian Compressive Sensing •  Karhunen-Loève expansions •  Sensitivity analysis •  Core libraries in C++ •  Examples and postprocessing tools in Python •  Fully functional Python interface planned for Fall 2014 release

Process of quantifying the effect of uncertainties typically includes: •  (Global) sensitivity analysis: identification of input set with greatest influence on output QoIs •  Uncertainty characterization: model or infer from observable data; parametric/non-parametric/KDE •  Uncertainty propagation: input distributions à output QoI distributions •  Decision making: model validation, prediction, design under uncertainty

SNL software tools within QUEST support a range of: •  UQ studies: sensitivity analysis, uncertainty propagation, statistical inference •  Environments: rapid prototyping in production computing in compiled

interpreted languages languages on parallel platforms •  Intrusion: embedded linked black box

An interoperable set of tools that can be tailored: •  DAKOTA + QUESO/GPMSA + PCE/SC/GP emulators •  Production deployment of stable capabilities in frameworks •  Close collaboration of SAPs with library developers for custom capabilities

Meta-iteration and recursion: control of multiple iterators and models Coordination:

Nested!Layered!Cascaded!Concurrent!Adaptive/Interactive

Parallelism: Asynch local!Message passing! Master-slave/dynamic! Peer/static! Peer/dynamic!Hybrid!

Variables Model:

Design!continuous !discrete range!!discrete sets

Aleatory Uncertain!continuous!!discrete range!!discrete sets!

Epistemic Uncertain!continuous!!discrete range!!discrete sets!

State !continuous !discrete range!!discrete sets

Application!system !fork !direct!grid

Approximation!global! !polynomial 1/2/3, NN,! !kriging, MARS, RBF!multipoint – TANA3 !local – Taylor series!multifidelity!!ROM!

Functions objectives constraints least sq. terms generic

Responses Interface

LHS/MC

Iterator

Optimizer

COLINY NPSOL DOT OPT++

LeastSq DACE

Vector MultiD

List

DDACE CCD/BB

UQ

Reliability IntEst/Evid

JEGA CONMIN

NLSSOL NL2SOL QMC/CVT

Gradients numericalanalytic!

Hessians numericalanalytic quasi NLPQL

Center PCE/SC ParamStudy

GN

JAGUAR

Defense, Science, and Energy Applications

UQ Capabilities:

SAP Highlight: Integration of Albany/Dakota/Trilinos for PISCEES

•  Sampling methods •  Random: LHS, MC, Incremental •  Importance: IS, AIS, MMAIS •  Adaptive: Morse-Smale et al.

•  Reliability methods •  Local: MV, AMV, AMV+, AMV2+, TANA-3, FORM, SORM •  Global: EGRA, GPAIS, POF Darts

•  Stochastic expansion methods •  Polynomial chaos: projection, regression (see Algs poster) •  Stochastic collocation: tensor & sparse; nodal & hierarchical

•  Epistemic methods •  Interval estimation: local, global, mixed-integer •  Dempster-Shafer

•  Bayesian methods •  QUESO, GPMSA, DREAM •  Emulator-based MCMC: PCE, SC, GP •  Random field inference (PISCEES at bottom)

•  Meta-iteration and recursion •  Mixed aleatory-epistemic UQ •  Design / calibration under uncertainty

Optimization & Least Squares:!!Hybrid: Sequential, Embedded, Collaborative"!Surrogate-based: Local, Global, EGO"!Concurrent: Pareto, Multi-start"!Mixed integer: Parallel branch & bound"!!

Nesting with UQ:!!Mixed aleatory-epistemic: IVP, SOP, DSTE"!Design & calibration under uncertainty !!Uncertainty of optima

UQTk (www.sandia.gov/UQToolkit) is an LGPL open source library of functions for characterization and propagation of uncertainty in computational models. •  Mainly relies on spectral Polynomial Chaos Expansions (PCEs) for

representing random variables and stochastic processes •  Complementary to production tools, UQTk targets:

•  Rapid prototyping •  Algorithmic research •  Outreach: Tutorials / Educational

•  Contact: Bert Debusschere: [email protected] Capabilities:

•  UQTk components can be combined as needed into an end-to-end UQ workflow: •  Surrogate construction è sensitivity analysis è parameter inference è PCE construction è forward

propagation •  Bayesian compressive sensing used in climate modeling for surrogate construction and dimensionality

reduction of land, atmosphere and cloud models (CSSEF, ACME, Multiscale Earth Models, ACES4GCM) •  UQ workflows set up in multiple SciDAC partnership projects: e.g. UQ in Xolotl (PSI)

•  Development of lecture material and hands-on exercises for UQ tutorials •  Nationally and Internationally

Inference of Combustion Model Parameters ASC CASL CSSEF

Black box simulation interfacing (alternative: library service)

!"#$%

•  2nd order Legendre-Uniform PC surrogate obtained with Bayesian regression from formation energies computed with MD

•  Input to Xolotl, which computes cluster dissociation rates in plasma-surface interactions

ASCR UQ

Greenland surface ice velocity

Karhunen-Loève expansion (KLE):

Assume analytic spatial covariance kernel (squared exponential) for random field: and integrate over domain for modes. Length scale (L) balances feature resolution vs. # KLE modes.

First 5 KLE modes (95% energy):

Dimension reduced inference: •  Mismatch = sum sq of surface velocity discrepancy •  PCE formed for mismatch over uniform prior

distributions for isotropic sparse grid lev = 3 •  MCMC on PCE with 100k samples, 1st 10k discarded C(r1, r2 ) = e

−(r1−r2 )2 /L2

Truth Reconstructed

Posterior KLE coeffs

−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 10

1000

2000

3000

4000

5000

6000

7000Mode 1

range of j

# sa

mpl

es

−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 10

500

1000

1500

2000

2500

3000

3500

4000

4500Mode 2

range of j

# sa

mpl

es

Uncertainty Quantification in Xolotl

•  5th order Legendre-Uniform PC surrogate for an ignition time model, as a function of activation energy and pre-exponential (top left)

•  Derivative of the surrogate (bottom left)

•  Both the surrogate and its derivative obtained with UQTk

•  Used in optimization to get better initial guess for MCMC

•  Used to accelerate likelihood computation in MCMC

Iterator Model

Iterator Sub-Iterator

Nested Model

Sub-Model

Iterator Model

Iterator

Truth Model

Surrogate Model

QUEST/DAKOTA

FASTMath/Trilinos/RBGen

PISCEES/FELIX

Support for this work was provided through the Scientific Discovery through Advanced Computing (SciDAC) project funded by the U.S. Department of Energy, Office of Science, Advanced Scientific Computing Research.

www.sandia.gov