Code Monkey home page Code Monkey logo

nls_pde's Introduction

Project C++ - Implementation of a PDE solver and Application to the Black-Scholes model

C++ Project - M2 203 - Sofia BELARBI - Nicolas DE COSTER - Louis MABILEAU

Our project consists of the following files (code sources and/or headers):

  • main.cpp : Enter the different input parameters to BS solver and launch it.
  • matrix.cpp & matrix.hpp : Class that builds the custom matrix container and all the function needed to acces, manipulate and change the data in it (fill, operator, transpose ...).
  • PDE_solver.cpp & PDE_solver.hpp : Class that builds and computes the whole grid (every points in it) in order to return a single solution (price) in the end. We can enter any paramter we want (a, b, c, d) and choose to specify or not the boundary conditions. The pricer can be recovered for any point in time t and for any price - S0 in particular.
  • BS_solver.cpp & BS_solver.h : Class that inherits from PDE _solver but that return a price within the simple BS framework with financial input parameters ( volatility, rate) as well as the associated greeks.
  • TridiagExtended.cpp & TridiagExtended.h : Class that holds the matrix of our system. It is used to comput a "custom tridiaginal matrix" (with two elements added) The mathematical theory is specified in the associated report.
  • Payoff.cpp & Payoff.h : Class that is used to generate the payoffs of standard and/or custom financial products such as options. We implemented the payoff generator for Calls and Puts. If you wish to generate a custom payoff, you can enter in argument of the Payoff class constructor your vector of payoff.

nls_pde's People

Contributors

johanmabille avatar sofiabelarbi avatar nicolas-de-coster avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

sofiabelarbi

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.