Grid Explorer
One PureScript analysis, compiled twice: to Python, where it drives pandapower, and to Julia, where it drives PowerModels.jl. Checks hold the two to the same answers.
Python
Pythia, with pandapower
N-1 is one call to pandapower’s own routine, and pandapower takes most of its time.
The Python demo
Julia
Jurist, with PowerModels.jl
N-1 is a loop in PureScript. The solver is so quick that the PureScript takes most of the time.
The Julia demo
| Python | Julia | |
|---|---|---|
| One power flow on case30 | about 9 ms | about 0.4 ms |
| N-1, 42 power flows, over HTTP | 0.40 s | 0.12 s |
| From start to the first answer | 0.84 s | 2.52 s |
| Binding, PureScript + foreign lines | 44 + 434 | 349 + 95 |
How the two are held to the same answersor try it in your browser, nothing to install: The Relays
Grid Explorer, a Hylograph exhibit. Source on GitHub. Pythia. Jurist.