Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametric system of ODEs #201

Open
FacuRoffet99 opened this issue May 14, 2023 · 1 comment
Open

Parametric system of ODEs #201

FacuRoffet99 opened this issue May 14, 2023 · 1 comment

Comments

@FacuRoffet99
Copy link

I have a system with one input (t), two outputs (x and y) and two parameters (a and w):

def ode_system(x, y, t): 
    return [diff(x,t)-(a*x - w*y - x*(x**2 + y**2)), diff(y,t)-(a*y + w*x - y*(x**2 + y**2))]

Currently, I have to train a network every time I want to change the value of the parameters. Is there a way to parameterize the NN in such a way that it can predict the solution for multiple values of the parameters at the same time?

Thank you!

@shuheng-liu
Copy link
Member

Hi @FacuRoffet99 , here's an example of how to solve what we call a bundle of solutions. Make sure you have the latest version of the library (v0.6.2 or higher)

https://colab.research.google.com/drive/1L9NGeLoDONWmCr_tZkjIJziF3yo1OJHE?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants