Code Monkey home page Code Monkey logo

rare_event_simulation's Introduction

Rare event simulation algorithms

This repository contains python implementations of three simulation methods used in reliability analysis/rare event simulation:

  1. iCE: improved cross-entropy method (single Gaussian and Gaussian mixture biasing densities)
  2. SIS: sequential importance sampling (adaptive pCN algorithm as MCMC)
  3. SuS: subset simulation (adaptive pCN algorithm as MCMC)
  4. iCEred: improved cross-entropy method with failure-informed dimension reduction (single Gaussian). The paper is currently on review; a pre-print can be found in https://arxiv.org/pdf/2006.05496.pdf

For the methods 1,2,3, the target example is a 1D diffusion equation. The conductivity parameter is a log-normal random field which is represented with the KL expansion. The flux is also random and modeled as a Gaussian random variable.

  • main_example.py is the running file
  • ODE.py defines the problem and solves the diffusion equation
  • eigenpairs_solvers.py implements the Nyström method for the solution of the KL eigenvalue problem, and also the analytical solution for the exponential kernel (e.g. Matérn with \nu=0.5)

For the method 4, there are 2 basic examples that are used in the original manuscript.

Any suggestions, corrections or improvements are kindly accepted :-)

rare_event_simulation's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.