Skip to content

Commit

Permalink
Merge branch 'bd-dev' of https://github.com/bdonnot/lightsim2grid int…
Browse files Browse the repository at this point in the history
…o bd-dev
  • Loading branch information
BDonnot committed Apr 2, 2024
2 parents 2676c62 + f3b4026 commit 82ac1bc
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ For example: `export PATH_NICSLU=/home/user/Documents/cktso`
#### Enable 03 optimization
By default, at least on ubuntu, only the "-O2" compiler flags is used. To use the O3 optimization flag, you need
to specify the `__O3_OPTIM` environment variable: `set __O3_OPTIM=1` before the compilation (so before
to specify the `__O3_OPTIM` environment variable: `set __O3_OPTIM=1` (or `$Env:__O3_OPTIM=1` in powershell) before the compilation (so before
`python3 setup.py build` or `python -m pip install -e .`)
This compilation argument will increase the compilation time, but will make the package faster.
Expand Down
118 changes: 118 additions & 0 deletions docs/benchmark_solver/windows_10_portable/ls0.8.1_glop1.9.5_py38.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
Lightsim2grid 0.8.1 and grid2op 1.9.5 (python 3.8)
====================================================

l2rpn_case14_sandbox
---------------------

Configuration:

- date: 2024-03-27 22:19 Paris, Madrid
- system: Windows 10
- OS:
- processor: AMD Ryzen 7 4800HS with Radeon Graphics
- python version: 3.8.3.final.0 (64 bit)
- numpy version: 1.21.0
- pandas version: 2.0.3
- pandapower version: 2.13.1
- grid2op version: 1.9.5
- lightsim2grid version: 0.8.1
- lightsim2grid extra information:

- klu_solver_available: True
- nicslu_solver_available: False
- cktso_solver_available: False
- compiled_march_native: True
- compiled_o3_optim: True

**NB** Due to issue with dll, cktso and nicslu could not be benchmarked

================ ====================== =================================== ============================
case14_sandbox grid2op speed (it/s) grid2op 'backend.runpf' time (ms) solver powerflow time (ms)
================ ====================== =================================== ============================
PP 48.1 14.9 5.16
GS 728 0.6 0.501
GS synch 663 0.729 0.63
NR single (SLU) 1070 0.167 0.0673
NR (SLU) 1050 0.172 0.0714
NR single (KLU) 1120 0.119 0.0212
NR (KLU) 1120 0.122 0.0237
FDPF XB (SLU) 1100 0.136 0.0393
FDPF BX (SLU) 1070 0.156 0.0572
FDPF XB (KLU) 1110 0.128 0.0293
FDPF BX (KLU) 1090 0.14 0.0424
================ ====================== =================================== ============================

Differences:

============================ ============== ============== ================
case14_sandbox (1000 iter) Δ aor (amps) Δ gen_p (MW) Δ gen_q (MVAr)
============================ ============== ============== ================
PP (ref) 0 0 0
GS 0.000122 7.63e-06 7.63e-06
GS synch 0.000122 7.63e-06 7.63e-06
NR single (SLU) 0.000122 7.63e-06 7.63e-06
NR (SLU) 0.000122 7.63e-06 7.63e-06
NR single (KLU) 0.000122 7.63e-06 7.63e-06
NR (KLU) 0.000122 7.63e-06 7.63e-06
FDPF XB (SLU) 0.000122 7.63e-06 7.63e-06
FDPF BX (SLU) 0.000122 7.63e-06 7.63e-06
FDPF XB (KLU) 0.000122 7.63e-06 7.63e-06
FDPF BX (KLU) 0.000122 7.63e-06 7.63e-06
============================ ============== ============== ================

l2rpn_neurips_2020_track2_small
---------------------------------

Configuration:

- date: 2024-03-27 22:28 Paris, Madrid
- system: Windows 10
- OS:
- processor: AMD Ryzen 7 4800HS with Radeon Graphics
- python version: 3.8.3.final.0 (64 bit)
- numpy version: 1.21.0
- pandas version: 2.0.3
- pandapower version: 2.13.1
- grid2op version: 1.9.5
- lightsim2grid version: 0.8.1
- lightsim2grid extra information:

- klu_solver_available: True
- nicslu_solver_available: False
- cktso_solver_available: False
- compiled_march_native: True
- compiled_o3_optim: True

===================== ====================== =================================== ============================
neurips_2020_track2 grid2op speed (it/s) grid2op 'backend.runpf' time (ms) solver powerflow time (ms)
===================== ====================== =================================== ============================
PP 21.2 17 6.61
GS 6.28 158 158
GS synch 26.8 36.1 35.9
NR single (SLU) 616 0.716 0.583
NR (SLU) 564 0.789 0.637
NR single (KLU) 921 0.228 0.105
NR (KLU) 901 0.245 0.122
FDPF XB (SLU) 795 0.389 0.268
FDPF BX (SLU) 783 0.414 0.293
FDPF XB (KLU) 848 0.323 0.203
FDPF BX (KLU) 838 0.34 0.222
===================== ====================== =================================== ============================

Differences:

================================= ============== ============== ================
neurips_2020_track2 (1000 iter) Δ aor (amps) Δ gen_p (MW) Δ gen_q (MVAr)
================================= ============== ============== ================
PP (ref) 0 0 0
GS 6.1e-05 3.81e-06 1.53e-05
GS synch 6.1e-05 3.81e-06 1.53e-05
NR single (SLU) 6.1e-05 0 9.54e-07
NR (SLU) 6.1e-05 0 9.54e-07
NR single (KLU) 6.1e-05 0 9.54e-07
NR (KLU) 6.1e-05 0 9.54e-07
FDPF XB (SLU) 6.1e-05 1.91e-06 1.53e-05
FDPF BX (SLU) 6.1e-05 1.91e-06 7.63e-06
FDPF XB (KLU) 6.1e-05 1.91e-06 1.53e-05
FDPF BX (KLU) 6.1e-05 1.91e-06 7.63e-06
================================= ============== ============== ================
116 changes: 116 additions & 0 deletions docs/benchmark_solver/windows_10_portable/ls0.8.1_glop1.9.6_py38.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
Lightsim2grid 0.8.1 and grid2op 1.9.6 (python 3.8)
====================================================

l2rpn_case14_sandbox
---------------------

Configuration:

- date: 2024-03-28 07:21 Paris, Madrid
- system: Windows 10
- OS:
- processor: AMD Ryzen 7 4800HS with Radeon Graphics
- python version: 3.8.3.final.0 (64 bit)
- numpy version: 1.21.0
- pandas version: 2.0.3
- pandapower version: 2.13.1
- grid2op version: 1.9.6
- lightsim2grid version: 0.8.1
- lightsim2grid extra information:

- klu_solver_available: True
- nicslu_solver_available: False
- cktso_solver_available: False
- compiled_march_native: True
- compiled_o3_optim: True

================ ====================== =================================== ============================
case14_sandbox grid2op speed (it/s) grid2op 'backend.runpf' time (ms) solver powerflow time (ms)
================ ====================== =================================== ============================
PP 49 14.6 5.09
GS 733 0.593 0.495
GS synch 653 0.716 0.611
NR single (SLU) 1060 0.168 0.0674
NR (SLU) 1050 0.172 0.0715
NR single (KLU) 1130 0.118 0.0205
NR (KLU) 1130 0.12 0.0233
FDPF XB (SLU) 1110 0.136 0.0393
FDPF BX (SLU) 1080 0.155 0.0573
FDPF XB (KLU) 1120 0.126 0.0288
FDPF BX (KLU) 1090 0.14 0.0418
================ ====================== =================================== ============================

Differences:

============================ ============== ============== ================
case14_sandbox (1000 iter) Δ aor (amps) Δ gen_p (MW) Δ gen_q (MVAr)
============================ ============== ============== ================
PP (ref) 0 0 0
GS 0.000122 7.63e-06 7.63e-06
GS synch 0.000122 7.63e-06 7.63e-06
NR single (SLU) 0.000122 7.63e-06 7.63e-06
NR (SLU) 0.000122 7.63e-06 7.63e-06
NR single (KLU) 0.000122 7.63e-06 7.63e-06
NR (KLU) 0.000122 7.63e-06 7.63e-06
FDPF XB (SLU) 0.000122 7.63e-06 7.63e-06
FDPF BX (SLU) 0.000122 7.63e-06 7.63e-06
FDPF XB (KLU) 0.000122 7.63e-06 7.63e-06
FDPF BX (KLU) 0.000122 7.63e-06 7.63e-06
============================ ============== ============== ================

l2rpn_neurips_2020_track2_small
---------------------------------

Configuration:

- date: 2024-03-28 07:28 Paris, Madrid
- system: Windows 10
- OS:
- processor: AMD Ryzen 7 4800HS with Radeon Graphics
- python version: 3.8.3.final.0 (64 bit)
- numpy version: 1.21.0
- pandas version: 2.0.3
- pandapower version: 2.13.1
- grid2op version: 1.9.6
- lightsim2grid version: 0.8.1
- lightsim2grid extra information:

- klu_solver_available: True
- nicslu_solver_available: False
- cktso_solver_available: False
- compiled_march_native: True
- compiled_o3_optim: True

===================== ====================== =================================== ============================
neurips_2020_track2 grid2op speed (it/s) grid2op 'backend.runpf' time (ms) solver powerflow time (ms)
===================== ====================== =================================== ============================
PP 21.3 16.9 6.58
GS 6.26 158 158
GS synch 26.7 36.2 36
NR single (SLU) 556 0.767 0.609
NR (SLU) 592 0.769 0.639
NR single (KLU) 803 0.256 0.114
NR (KLU) 849 0.257 0.128
FDPF XB (SLU) 717 0.416 0.278
FDPF BX (SLU) 735 0.43 0.301
FDPF XB (KLU) 708 0.367 0.215
FDPF BX (KLU) 734 0.373 0.234
===================== ====================== =================================== ============================

Differences:

================================= ============== ============== ================
neurips_2020_track2 (1000 iter) Δ aor (amps) Δ gen_p (MW) Δ gen_q (MVAr)
================================= ============== ============== ================
PP (ref) 0 0 0
GS 6.1e-05 3.81e-06 1.53e-05
GS synch 6.1e-05 3.81e-06 1.53e-05
NR single (SLU) 6.1e-05 0 9.54e-07
NR (SLU) 6.1e-05 0 9.54e-07
NR single (KLU) 6.1e-05 0 9.54e-07
NR (KLU) 6.1e-05 0 9.54e-07
FDPF XB (SLU) 6.1e-05 1.91e-06 1.53e-05
FDPF BX (SLU) 6.1e-05 1.91e-06 7.63e-06
FDPF XB (KLU) 6.1e-05 1.91e-06 1.53e-05
FDPF BX (KLU) 6.1e-05 1.91e-06 7.63e-06
================================= ============== ============== ================
Loading

0 comments on commit 82ac1bc

Please sign in to comment.