Giter Club home page Giter Club logo

hompinn's Introduction

HomPINNs: homotopy physics-informed neural networks for solving the inverse problems of nonlinear differential equations with multiple solutions

Experiment code for "HomPINNs".

@article{hompinns,
  title={HomPINNs: homotopy physics-informed neural networks for solving the inverse problems of nonlinear differential equations with multiple solutions},
  author={Zheng, Haoyang and Huang, Yao and Huang, Ziyang and Hao, Wenrui and Lin, Guang},
  journal={Journal of Computational Physics},
  pages={112751},
  year={2024},
  publisher={Elsevier}
}

Prerequisites

Please refer to "requirement.txt"

The first example

$$\left\{\begin{aligned} &\frac{\partial ^2 u(x)}{\partial x^2}=-\lambda\left(1+ u^4\right),\ \ x\in (0,1)\\\ &{\left.\frac{\partial u(x)}{\partial x}\right |_{x=0}=\left.u(x)\right |_{x=1}=0}. \end{aligned}\right.$$

with $\lambda=1.20$

Please run:

python3 main_HomPINN.py

Results:

pred1

The second example

$$\left\{ \begin{aligned} &\frac{\partial ^2 u(x)}{\partial x^2} =u^4-\lambda u^2,\ \ x\in (0\ ,1),\\\ &\left.\frac{\partial u(x)}{\partial x}\right |_{x=0}=\left.u(x)\right |_{x=1}=0. \end{aligned}\right.$$

with $\lambda=18.00$

Please run:

python3 main_HomPINN.py --data_dir ./data/obs_ex2.mat --n_epoch 20000 --max_epoch 40000 --num_sol 3 --num_obs 100 --lr_low 1e-4 --lr_gap 0.98

Results:

pred2

Contact

Haoyang Zheng, School of Mechanical Engineering, Purdue University

Email: zheng+528 at purdue dot edu

More Aboue Me: link

hompinn's People

Contributors

haoyangzheng1996 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.