Skip to content

Neural Port-Hamiltonian Differential Algebraic Equations

Notifications You must be signed in to change notification settings

nathan-t4/NPHDAE

Repository files navigation

Neural Port-Hamiltonian Differential Algebraic Equations

Code accompanying the paper Neural Port-Hamiltonian Differential Algebraic Equations for Compositional Learning of Electrical Networks

Setup

Setup virtual environment

    python3.11 -m venv env
    source env/bin/activate
    python3.11 -m pip install -r requirements_xxxx.txt # replace with ubuntu version

Generate the training data for the distributed generation unit:

    cd environments
    python3.11 dgu_random.py

Train the Neural Port-Hamiltonian Differential Algebraic Equation

    cd ../cyrus_experiments
    python3.11 run_training.py
    # Then enter `dgu`

About

Neural Port-Hamiltonian Differential Algebraic Equations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages