Skip to content

nicolossus/FYS-STK4155-Project3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 3: Solving Differential Equations with Feed-Forward Neural Network Models

This repository contains programs, material and report for project 3 in FYS-STK4155 made in collaboration between Tobias, Nicolai and Kristian.

The aim of this project is to design FFNN models suitable for solving differential equations. Traditional numerical methods and closed form solutions, when present, have been used to assess the efficiency and accuracy of the FFNN models.

The first FFNN model is employed within the TensorFlow framework to learn the initial-boundary problem given by the heat equation, a PDE with both temporal and spatial dependence. The problem formulation is scaled to the standard unity interval (0,1) in one spatial dimension. An explicit numerical scheme using Forward Euler will be used to assess the efficiency and accuracy of the FFNN model, alongside the exact solution of the problem.

A FFNN model is also employed, within the TensorFlow framework, to learn the solution to the nonlinear, coupled ODE, presented by Yi et. al in the article from Computers and Mathematics with Applications 47, 1155 (2004), which describes the state of a CTRNN model. Given a real symmetric matrix A in the source term, the temporal dynamic described by this ODE has convergence properties to the largest eigenvalue. Simply replacing A with -A yield the smallest eigenvalue. The article also states that the network should converge to a different eigenvalue if the initial vector is orthogonal to the eigenvector corresponding to the largest eigenvalue. The aim is to design a FFNN model suitable for solving this ODE, and check if it succeed in computing both the largest and smallest eigenvalue for some benchmark 3x3 and 6x6 real symmetric matrices. We will also check whether the network converges to a different eigenvalue than the largest if the initial vector is chosen to be orthogonal to the eigenvector corresponding to the largest eigenvalue.

Structure

The latex folder contains the LaTeX source for building the report, as well as figures and tables generated in the analyses.

The notebooks folder contains Jupyter notebooks used in the analyses. For details, see the notebooks readme.

The report folder contains the report rendered to PDF from the LaTeX source.

The resources folder contains project resources such as supporting material, raw data to be analysed, etc.

The src folder contains the source code. For details, see the src readme.

About

Repository for project 3 in FYS-STK4155

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages