gridoxide 0.2.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gridoxide-0.4.0/.dockerignore +10 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/Cargo.lock +19 -4
- {gridoxide-0.2.0 → gridoxide-0.4.0}/Cargo.toml +42 -4
- {gridoxide-0.2.0 → gridoxide-0.4.0}/PKG-INFO +19 -1
- gridoxide-0.4.0/TODO.md +118 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/build.rs +19 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/capi/CMakeLists.txt +1 -1
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/Cargo.toml +1 -1
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/jacobian.rs +18 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/linear/btheta.rs +103 -29
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/linear/mod.rs +3 -2
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/linear/sensitivity.rs +160 -7
- gridoxide-0.4.0/crates/gridoxide-gpu/Cargo.toml +44 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/build.rs +226 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/cuda/ip.cu +454 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/cuda/ip.h +120 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/cuda/kernels.cu +693 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/cuda/kernels.h +186 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/cuda/opf.cu +357 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/cuda/opf.h +77 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/ac.rs +381 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/cuda.rs +274 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/cudss.rs +750 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/dc.rs +1023 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/device.rs +694 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/gpu.rs +530 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/ip.rs +823 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/kkt.rs +911 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/lib.rs +67 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/newton.rs +756 -0
- gridoxide-0.4.0/crates/gridoxide-gpu/src/uniform.rs +305 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/Cargo.toml +3 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/mod.rs +35 -0
- gridoxide-0.4.0/crates/gridoxide-sparse/src/ldlt.rs +837 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/lib.rs +1 -0
- gridoxide-0.4.0/docker/gpu/Dockerfile +63 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/getting_started/python.md +2 -2
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/opf/index.md +46 -2
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/reference/benchmarking.md +3 -0
- gridoxide-0.4.0/examples/dc_contingencies_bench.rs +53 -0
- gridoxide-0.4.0/examples/gpu_probe_dump.rs +160 -0
- gridoxide-0.4.0/examples/opf_compare.rs +234 -0
- gridoxide-0.4.0/examples/opf_point_probe.rs +120 -0
- gridoxide-0.4.0/probes/cudss_ubatch/.gitignore +3 -0
- gridoxide-0.4.0/probes/cudss_ubatch/README.md +83 -0
- gridoxide-0.4.0/probes/cudss_ubatch/explore.cpp +189 -0
- gridoxide-0.4.0/probes/cudss_ubatch/probe.cpp +456 -0
- gridoxide-0.4.0/probes/cudss_ubatch/run.sh +93 -0
- gridoxide-0.4.0/probes/cudss_ubatch/stub/cuda_runtime.h +37 -0
- gridoxide-0.4.0/probes/cudss_ubatch/stub/library_types.h +4 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/pyproject.toml +1 -1
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/README.md +18 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/gridoxide/__init__.py +10 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_ac_opf.py +15 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_dc.py +36 -0
- gridoxide-0.4.0/python/tests/test_gpu.py +261 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/README.md +122 -0
- gridoxide-0.4.0/scripts/bench/nsys_batch_breakdown.py +68 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/lib.rs +4 -1
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/ac.rs +245 -283
- gridoxide-0.4.0/src/opf/ac_kernels.rs +744 -0
- gridoxide-0.4.0/src/opf/nlp/device.rs +292 -0
- gridoxide-0.4.0/src/opf/nlp.rs +3305 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/python.rs +653 -7
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/all.rs +3 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dc_batch_test.rs +151 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/matpower_opf_test.rs +5 -6
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_ac_test.rs +149 -3
- gridoxide-0.4.0/tests/opf_gpu_test.rs +207 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_nlp_test.rs +135 -1
- gridoxide-0.2.0/src/opf/nlp.rs +0 -757
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.cargo/config.toml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/book.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/build.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/publish.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/pypi.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/python.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/release.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.github/workflows/vscode.yml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.gitignore +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/.gitmodules +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/LICENSE +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/README.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/capi/examples/powerflow.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/capi/examples/powerflow.cpp +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/capi/gridoxideConfig.cmake.in +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/cbindgen.toml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/ac_sensitivity.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/batch.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/bde.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/branch_flow.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/constrained.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/continuation/augmented.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/continuation/corrector.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/continuation/direction.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/continuation/events.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/continuation/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/dc.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/dispatch.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/injection_hessian.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/json.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/lib.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/linear/batch.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/linear/impedance.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/measurement.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/network.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/outerloop/area.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/outerloop/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/outerloop/qlimits.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/outerloop/remote.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/outerloop/slack.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/outerloop/taps.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/qv.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/ratings.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/roots.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/scenario.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/bad_data.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/batch.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/case.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/constraints.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/functional.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/iterative.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/jacobian.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/nr.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/se/observability.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/shortcircuit/fortescue.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/shortcircuit/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/shortcircuit/network.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/shortcircuit/solver.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/solver.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/switches.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/topology/bus_view.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/topology/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/topology/model.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/topology/reduction.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-core/src/types.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/build.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/block_sparse.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/PROVENANCE.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/amd/aat.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/amd/core.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/amd/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/amd/postorder.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/analyze.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/btf/maxtrans.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/btf/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/btf/strongcomp.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/factor.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/ffi_oracle.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/kernel.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/refactor.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/scale.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/solve.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/klu_native/types.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/lu.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/sparse.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/sparse_klu.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/src/sparse_pardiso.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Doc/License.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Include/amd.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Include/amd_internal.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/README.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd.f +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_1.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_2.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_aat.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_control.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_defaults.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_dump.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_info.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l1.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l2.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_aat.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_control.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_defaults.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_dump.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_info.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_order.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_post_tree.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_postorder.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_preprocess.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_l_valid.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_order.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_post_tree.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_postorder.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_preprocess.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_valid.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amd_version.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/AMD/Source/amdbar.f +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Doc/License.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Include/btf.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Include/btf_internal.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/README.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_l_maxtrans.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_l_order.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_l_strongcomp.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_maxtrans.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_order.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_strongcomp.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/BTF/Source/btf_version.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/COLAMD/Doc/License.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/COLAMD/Include/colamd.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/COLAMD/README.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/COLAMD/Source/colamd.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/COLAMD/Source/colamd_l.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/COLAMD/Source/colamd_version.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Doc/License.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Include/klu.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Include/klu_internal.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Include/klu_version.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/README.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_analyze.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_analyze_given.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_defaults.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_diagnostics.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_dump.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_extract.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_factor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_free_numeric.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_free_symbolic.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_kernel.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_analyze.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_analyze_given.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_defaults.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_diagnostics.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_dump.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_extract.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_factor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_free_numeric.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_free_symbolic.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_kernel.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_memory.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_refactor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_scale.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_solve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_sort.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_l_tsolve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_memory.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_refactor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_scale.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_solve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_sort.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_tsolve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_version.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_diagnostics.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_dump.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_extract.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_factor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_free_numeric.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_kernel.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_refactor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_scale.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_solve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_sort.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_z_tsolve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_diagnostics.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_dump.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_extract.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_factor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_free_numeric.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_kernel.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_refactor.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_scale.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_solve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_sort.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/KLU/Source/klu_zl_tsolve.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/PROVENANCE.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/SuiteSparse_config/README.txt +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/SuiteSparse_config/SuiteSparse_config.c +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/crates/gridoxide-sparse/vendor/suitesparse/SuiteSparse_config/SuiteSparse_config.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/.gitignore +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/book.toml +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/examples/README.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/examples/one-node-2ph.json +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/examples/one-node-slg.json +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/examples/pst-worked-example.crac.json +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/examples/two-bus-lmp.json +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/examples/two-bus-lmp.opf.json +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/SUMMARY.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/external_network_injection.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/index.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/node_breaker.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/phase_tap_changer_linear.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/ratio_tap_changer_table.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/shunt_conductance.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/cgmes/static_var_compensator.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/dae.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/events.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/index.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/initialization.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/input.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/models.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/smallsignal.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/dynamics/validation.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/getting_started/building.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/getting_started/c_api.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/getting_started/mcp.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/import/iidm.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/import/matpower.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/import/ucte.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/introduction.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/opf/worked_example.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/area_interchange.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/continuation.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/dc.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/distributed_slack.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/index.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/linear_impedance.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/multi_island.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/outer_loops.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/q_limits.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/qv.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/tap_control.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/powerflow/zero_impedance_branches.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/rao/index.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/rao/linear.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/rao/margins.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/rao/search.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/reference/feature_comparison.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/reference/provenance.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/reference/resources.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/sensitivity/ac.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/short_circuit/faults.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/short_circuit/index.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/short_circuit/sequence.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/short_circuit/worked_example.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/solvers/backends.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/solvers/klu.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/state_estimation/diagnostics.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/state_estimation/index.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/state_estimation/iterative.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/state_estimation/measurements.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/src/state_estimation/worked_example.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/docs/theme/custom.css +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/base_mismatch_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/bde_check.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/bench_contingency.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/bench_dc.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/bench_network.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/bench_node_breaker.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/bench_se.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/cgmes_area_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/cgmes_microgrid_be_dump.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/cpf_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/dispatch_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/doc_numbers.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/dynamics_scale.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/iidm_area_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/iidm_regulation_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/klu_scaling_stress.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/pf_profile.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/qv_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/remote_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/se_converge.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/se_profile.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/smallsignal_scale.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/switch_ceiling.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/tap_control_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/tap_deadband_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/tap_regulation_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/ucte_area_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/examples/voltage_control_probe.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/include/gridoxide.h +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/include/gridoxide.hpp +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/plans/DYNAMICS_LIBRARY_TODO.md +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/gridoxide/generate_grid.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/gridoxide/matpower.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/_pglib.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_ac_sensitivity.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_continuation.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_dc_opf.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_dispatch.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_dynamics.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_generate_grid.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_gridoxide.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_matpower.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_matpower_opf.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_node_breaker.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_qv.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_short_circuit.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_state_estimation.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/python/tests/test_tap_control.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/accuracy_case_suite.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_batch.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_gridoxide_cgmes.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_gridoxide_native.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_lightsim2grid.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_pandapower.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_pgm.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_pypowsybl.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_pypowsybl_cgmes.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_se_pgm.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/bench_veragrid.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/cases.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/cgmes_sv.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/check_cgmes_sv_consistency.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/check_dc_matpower.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/check_matpower_residual.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/convert_pandapower_case.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/cross_validate_cgmes_microgrid_be.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/generate_grid.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/iidm_reference.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/jax_oracle.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/matpower_to_pgm.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/run_case_suite.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/se_iterations.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/scripts/bench/ucte_reference.py +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/capi/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/capi/powerflow.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/capi/types.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/cgmes.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/arnoldi.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/arpack.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/dae.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/dyd.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/dyr.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/events.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/init.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/integrator.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/json.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/avr.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/gov.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/load.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/machine.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/pss.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/models/unit.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/shift.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/dynamics/smallsignal.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/iidm/dynamics.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/iidm/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/load.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/main.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/matpower.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/bnb.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/dc.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/highs.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/ipm.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/ipopt.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/opf/model.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/pgm/measurement.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/pgm/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/pgm/opf.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/pgm/se.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/pgm/shortcircuit.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/automaton.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/castor.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/costly.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/crac.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/crac_json.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/evaluate.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/limits.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/linear.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/mnec.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/parameters.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/search.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/usage.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/rao/validate.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/src/ucte.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/ac_contingency_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/ac_sensitivity_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/area_interchange_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/batch_solver_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/bde_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/block_jacobian_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/branch_flow_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/capi_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_area_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_common/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_dispatch_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_fullgrid_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_identity_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_limits_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_microgrid_be_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_microgrid_hvdc_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_microgrid_nl_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_microgrid_type1_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_microgrid_type2_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_microgrid_type3_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_minigrid_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_node_breaker_se_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_node_breaker_solve_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_node_breaker_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_powerflow_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_pst_phase_tap_changer_linear_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_pst_phase_tap_changer_table_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_realgrid_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_remote_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_smallgrid_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_smoke_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_svedala_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_tap_regulation_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_tap_table_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_voltage_base_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cgmes_voltage_control_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_continuation_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_dynamics_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_estimate_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_opf_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_qv_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_rao_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_security_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_sensitivity_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_short_circuit_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_solve_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/cli_switches_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/common/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/constrained_switch_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/continuation_events_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/continuation_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dc_powerflow_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dc_sensitivity_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/distributed_slack_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_dyd_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_dyr_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_events_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_json_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_models_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_reference_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_relay_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_ring/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_smallsignal_arpack_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_smallsignal_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/dynamics_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/iidm_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/injection_hessian_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/klu_jacobian_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/klu_native_jacobian_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/link_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/matpower_se_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/matpower_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/measurement_residual_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/multi_island_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/openrao/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_cross_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_data_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_dc_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_highs_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_ipm_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_ipopt_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_milp_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/opf_pwl_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/outer_loop_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pardiso_jacobian_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/persistent_solver_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pglib/mod.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_asym_line_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_asym_three_winding_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_asym_transformer_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_component_coverage_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_gen_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_line_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_load_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_network_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_node_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_short_circuit_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_shunt_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_source_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_three_winding_transformer_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/pgm_transformer_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/power_flow_methods_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/powerflow_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/q_limits_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/qv_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_castor_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_crac_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_cucumber_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_evaluate_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_linear_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_search_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/rao_validate_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/remote_voltage_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/se_batch_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/se_three_phase_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/state_estimation_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/tap_control_test.rs +0 -0
- {gridoxide-0.2.0 → gridoxide-0.4.0}/tests/ucte_test.rs +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# The build context of docker/gpu/Dockerfile: the sources cargo needs, not the
|
|
2
|
+
# build output, local environments or test data (the tests mount the checkout).
|
|
3
|
+
target/
|
|
4
|
+
.venv/
|
|
5
|
+
.git/
|
|
6
|
+
probes/cudss_ubatch/work/
|
|
7
|
+
tests/data/
|
|
8
|
+
docs/book/
|
|
9
|
+
editors/
|
|
10
|
+
scripts/bench/.case-cache/
|
|
@@ -670,13 +670,14 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
|
670
670
|
|
|
671
671
|
[[package]]
|
|
672
672
|
name = "gridoxide"
|
|
673
|
-
version = "0.
|
|
673
|
+
version = "0.4.0"
|
|
674
674
|
dependencies = [
|
|
675
675
|
"bindgen",
|
|
676
676
|
"cbindgen",
|
|
677
677
|
"cimoxide-model",
|
|
678
678
|
"faer",
|
|
679
679
|
"gridoxide-core",
|
|
680
|
+
"gridoxide-gpu",
|
|
680
681
|
"gridoxide-sparse",
|
|
681
682
|
"num-complex",
|
|
682
683
|
"pyo3",
|
|
@@ -688,7 +689,7 @@ dependencies = [
|
|
|
688
689
|
|
|
689
690
|
[[package]]
|
|
690
691
|
name = "gridoxide-core"
|
|
691
|
-
version = "0.
|
|
692
|
+
version = "0.4.0"
|
|
692
693
|
dependencies = [
|
|
693
694
|
"faer",
|
|
694
695
|
"gridoxide-sparse",
|
|
@@ -698,9 +699,22 @@ dependencies = [
|
|
|
698
699
|
"serde_json",
|
|
699
700
|
]
|
|
700
701
|
|
|
702
|
+
[[package]]
|
|
703
|
+
name = "gridoxide-gpu"
|
|
704
|
+
version = "0.4.0"
|
|
705
|
+
dependencies = [
|
|
706
|
+
"bindgen",
|
|
707
|
+
"cc",
|
|
708
|
+
"gridoxide",
|
|
709
|
+
"gridoxide-core",
|
|
710
|
+
"gridoxide-sparse",
|
|
711
|
+
"num-complex",
|
|
712
|
+
"rayon",
|
|
713
|
+
]
|
|
714
|
+
|
|
701
715
|
[[package]]
|
|
702
716
|
name = "gridoxide-mcp"
|
|
703
|
-
version = "0.
|
|
717
|
+
version = "0.4.0"
|
|
704
718
|
dependencies = [
|
|
705
719
|
"gridoxide",
|
|
706
720
|
"num-complex",
|
|
@@ -709,12 +723,13 @@ dependencies = [
|
|
|
709
723
|
|
|
710
724
|
[[package]]
|
|
711
725
|
name = "gridoxide-sparse"
|
|
712
|
-
version = "0.
|
|
726
|
+
version = "0.4.0"
|
|
713
727
|
dependencies = [
|
|
714
728
|
"bindgen",
|
|
715
729
|
"cc",
|
|
716
730
|
"faer",
|
|
717
731
|
"num-complex",
|
|
732
|
+
"rayon",
|
|
718
733
|
]
|
|
719
734
|
|
|
720
735
|
[[package]]
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
[workspace]
|
|
2
|
-
|
|
2
|
+
# gridoxide-gpu is an optional dependency of gridoxide (the `gpu` feature): a
|
|
3
|
+
# plain `cargo build` here builds only this root package, and the GPU crate
|
|
4
|
+
# builds without CUDA unless its `cuda` feature is on.
|
|
5
|
+
members = ["crates/gridoxide-core", "crates/gridoxide-sparse", "crates/gridoxide-gpu"]
|
|
3
6
|
|
|
4
7
|
# Shared by every crate in the workspace, so they release in lockstep.
|
|
5
8
|
[workspace.package]
|
|
6
|
-
version = "0.
|
|
9
|
+
version = "0.4.0"
|
|
7
10
|
edition = "2024"
|
|
8
11
|
repository = "https://github.com/m-mirz/gridoxide"
|
|
9
12
|
|
|
@@ -76,10 +79,13 @@ crate-type = ["cdylib", "rlib", "staticlib"]
|
|
|
76
79
|
# The sparse LU backends and the vendored SuiteSparse they build on — see
|
|
77
80
|
# crates/gridoxide-sparse. Its modules are re-exported under their old names
|
|
78
81
|
# in src/lib.rs, so `gridoxide::sparse` and the rest resolve as before.
|
|
79
|
-
gridoxide-sparse = { path = "crates/gridoxide-sparse", version = "0.
|
|
82
|
+
gridoxide-sparse = { path = "crates/gridoxide-sparse", version = "0.4.0" }
|
|
80
83
|
# The solvers — network model, power flow, state estimation, short circuit —
|
|
81
84
|
# re-exported the same way; see crates/gridoxide-core.
|
|
82
|
-
gridoxide-core = { path = "crates/gridoxide-core", version = "0.
|
|
85
|
+
gridoxide-core = { path = "crates/gridoxide-core", version = "0.4.0" }
|
|
86
|
+
# Batched AC power flow on an NVIDIA GPU, re-exported as `gridoxide::gpu`; see
|
|
87
|
+
# the `gpu` feature.
|
|
88
|
+
gridoxide-gpu = { path = "crates/gridoxide-gpu", version = "0.4.0", optional = true }
|
|
83
89
|
faer = "0.24.4"
|
|
84
90
|
num-complex = { version = "0.4.6", features = ["serde"] }
|
|
85
91
|
# Powers `crates/gridoxide-core/src/batch.rs`'s across-scenario parallelism. Not a new build cost:
|
|
@@ -279,6 +285,18 @@ opf-ipopt = ["opf", "dep:bindgen"]
|
|
|
279
285
|
# runner has ARPACK installed — the same local/manual-verification-only position
|
|
280
286
|
# `pardiso`, `opf-highs` and `opf-ipopt` are in.
|
|
281
287
|
smallsignal-arpack = ["dynamics"]
|
|
288
|
+
# Batched AC power flow on one NVIDIA GPU (crates/gridoxide-gpu, re-exported
|
|
289
|
+
# as `gridoxide::gpu`): sweeps and N-1 over cuDSS's uniform batch, every
|
|
290
|
+
# scenario stopped at its own convergence. With `python`, the bindings gain
|
|
291
|
+
# `GpuBatchSolver`. Needs cuDSS 1.0 or later (`CUDSS_DIR`), the CUDA 12
|
|
292
|
+
# toolkit with nvcc and libclang at build time — see
|
|
293
|
+
# crates/gridoxide-gpu/build.rs — and an NVIDIA GPU at run time. Not built or
|
|
294
|
+
# tested in CI, which has no GPU; the published wheel does not ship it.
|
|
295
|
+
#
|
|
296
|
+
# cuDSS is NVIDIA's proprietary library, linked dynamically from the user's
|
|
297
|
+
# install like oneMKL for `pardiso`: nothing of it is redistributed by this
|
|
298
|
+
# crate.
|
|
299
|
+
gpu = ["dep:gridoxide-gpu", "gridoxide-gpu/cuda"]
|
|
282
300
|
# Exports a C ABI (src/capi/) so a C++ project can embed gridoxide, plus the
|
|
283
301
|
# `cbindgen`-generated `include/gridoxide.h` that describes it.
|
|
284
302
|
#
|
|
@@ -301,6 +319,16 @@ capi = ["dep:cbindgen"]
|
|
|
301
319
|
name = "all"
|
|
302
320
|
path = "tests/all.rs"
|
|
303
321
|
|
|
322
|
+
[[example]]
|
|
323
|
+
name = "opf_point_probe"
|
|
324
|
+
path = "examples/opf_point_probe.rs"
|
|
325
|
+
required-features = ["opf", "matpower"]
|
|
326
|
+
|
|
327
|
+
[[example]]
|
|
328
|
+
name = "opf_compare"
|
|
329
|
+
path = "examples/opf_compare.rs"
|
|
330
|
+
required-features = ["opf", "matpower"]
|
|
331
|
+
|
|
304
332
|
[[example]]
|
|
305
333
|
name = "smallsignal_scale"
|
|
306
334
|
path = "examples/smallsignal_scale.rs"
|
|
@@ -406,3 +434,13 @@ required-features = ["cgmes"]
|
|
|
406
434
|
# session with `CARGO_PROFILE_DEV_DEBUG=true`.
|
|
407
435
|
[profile.dev]
|
|
408
436
|
debug = "line-tables-only"
|
|
437
|
+
|
|
438
|
+
[[example]]
|
|
439
|
+
name = "dc_contingencies_bench"
|
|
440
|
+
path = "examples/dc_contingencies_bench.rs"
|
|
441
|
+
required-features = ["matpower"]
|
|
442
|
+
|
|
443
|
+
[[example]]
|
|
444
|
+
name = "gpu_probe_dump"
|
|
445
|
+
path = "examples/gpu_probe_dump.rs"
|
|
446
|
+
required-features = ["matpower"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gridoxide
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Requires-Dist: numpy>=1.24 ; extra == 'matpower'
|
|
@@ -149,6 +149,24 @@ feature to use them:
|
|
|
149
149
|
- `"klu"` — links vendored SuiteSparse C directly (`--features python,klu`).
|
|
150
150
|
- `"pardiso"` — Intel oneMKL's PARDISO solver (`--features python,pardiso`, needs `MKLROOT` set).
|
|
151
151
|
|
|
152
|
+
### Batched power flow on an NVIDIA GPU
|
|
153
|
+
|
|
154
|
+
Not in the published wheel either: `GpuBatchSolver` needs a build with `--features python,gpu`, with
|
|
155
|
+
cuDSS 1.0 or later (`CUDSS_DIR`) and the CUDA 12 toolkit, or the image `docker/gpu/Dockerfile` builds. It
|
|
156
|
+
solves `solve_batch`'s scenarios (`solve_sweep`) and `solve_contingencies`' outage lists on the GPU, every scenario to
|
|
157
|
+
its own convergence, from the model's last `solve()`:
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
model = gridoxide.PowerFlowModel.from_matpower("case9241pegase.m")
|
|
161
|
+
model.solve()
|
|
162
|
+
gpu = gridoxide.GpuBatchSolver(model, capacity=1024) # keeps its analysis for every later call
|
|
163
|
+
results = gpu.solve_sweep(scenarios) # one BatchResult per scenario, as on the CPU
|
|
164
|
+
outages = gpu.solve_contingencies([[b] for b in range(model.n_branches)])
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Outages that split the network are solved on the CPU. On an A100 the GPU pays only on large networks and
|
|
168
|
+
large batches; the CPU's `solve_batch` on all cores is faster on most cases.
|
|
169
|
+
|
|
152
170
|
## State estimation
|
|
153
171
|
|
|
154
172
|
`StateEstimationModel` recovers the most likely grid state from measurements, rather than computing
|
gridoxide-0.4.0/TODO.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# GPU TODO
|
|
2
|
+
|
|
3
|
+
What is left on the GPU. Numbers are grid-bench's, in its containers, on one
|
|
4
|
+
A100 and 30 cores on 2026-11-07 at gridoxide 1dd1c96, against the stored
|
|
5
|
+
2026-10-31 results of the other tools on the same machine. gridoxide_gpu runs
|
|
6
|
+
every GPU problem there, on the local branch `gridoxide-gpu-opf`, which needs
|
|
7
|
+
a gridoxide release before it can merge. The cuDSS findings behind the batch's
|
|
8
|
+
design are in [probes/cudss_ubatch/README.md](probes/cudss_ubatch/README.md).
|
|
9
|
+
|
|
10
|
+
# AC-OPF
|
|
11
|
+
|
|
12
|
+
The oracle accepts every solved case. 1.8-2.4x faster than
|
|
13
|
+
ExaModelsPower/MadNLP from case2869_pegase up (case24464_goc 1.58 s against
|
|
14
|
+
3.63), and it solves case9241_pegase and case30000_goc, which MadNLP does not.
|
|
15
|
+
case13659_pegase stops at grid-bench's 200 iterations: it needs 207-211.
|
|
16
|
+
|
|
17
|
+
- [ ] **The inertia test's false alarms,** at 1e-8 only (at 1e-6
|
|
18
|
+
case2869_pegase takes 45, MadNLP 46). On case2869_pegase (proportional
|
|
19
|
+
start) the last 48 of 100 iterations follow a δw at an optimum already
|
|
20
|
+
reached, each a false alarm: the unpivoted `LDLᵀ` is off by exactly one
|
|
21
|
+
every time, reporting `(6757, 19486)` where a dense pivoted factorization of
|
|
22
|
+
the same matrix gives the expected `(6758, 19485)`, with the eigenvalue
|
|
23
|
+
nearest zero of `D K D` at 5.6e-7, far above rounding. What needs curing is
|
|
24
|
+
the factorization, not the test. Tried and worse: raising δc (1e-7 takes
|
|
25
|
+
that case from 131 iterations to 69 from flat but fails case13659_pegase,
|
|
26
|
+
1e-6 fails more); keeping the δw = 0 step if its curvature is positive, with
|
|
27
|
+
inertia off by one or two (case118_ieee__api never ends, at 1e-6 too); the
|
|
28
|
+
same only at μ ≤ 1e-7 and `inf_pr` ≤ 1e-4 (all solve, but 3489 iterations
|
|
29
|
+
become 3596 over 68 runs at 1e-8, case2869_pegase 131 to 103 from flat and
|
|
30
|
+
98 to 220 from proportional). faer's intranode pivoted `LBLᵀ` did not cure it
|
|
31
|
+
(92 iterations; 78 against 68 from flat).
|
|
32
|
+
- [ ] **case13659_pegase over grid-bench's 200 iterations.** Not false alarms:
|
|
33
|
+
the inertia is off by hundreds to over a thousand, at μ = 0.1 with `inf_pr`
|
|
34
|
+
about 25 and `inf_du` about 1e5, and 130 of 208 iterations carry a δw of 1e4
|
|
35
|
+
to 1e9, at steps of about 1e-3.
|
|
36
|
+
- [ ] **The rest of the iteration gap.** case10000_goc takes 81 iterations
|
|
37
|
+
(IPOPT 82, MadNLP 63), case19402_goc 70 (62), case10480_goc 66 (60).
|
|
38
|
+
Candidates are IPOPT's adaptive barrier and MadNLP's relaxed equalities.
|
|
39
|
+
- [ ] **cuDSS's analysis**, once a solve: most of the first iteration's 0.64 s
|
|
40
|
+
on case24464_goc, as much as all the other iterations (0.69 s at 12.4 ms).
|
|
41
|
+
Reuse it across solves of the same network, or hand cuDSS a reordering
|
|
42
|
+
without nested dissection's cost.
|
|
43
|
+
- [ ] **The setup around the iterations,** about 0.4 s of case24464_goc's
|
|
44
|
+
1.6: scaling, the patterns, `DeviceInteriorPoint::new`, each solve anew. Not
|
|
45
|
+
yet broken down.
|
|
46
|
+
- [ ] **Fewer cuDSS solves.** 4.75 an iteration, 1.65 ms each without
|
|
47
|
+
deterministic mode, nearly half of an iteration. Fewer refinement rounds
|
|
48
|
+
bought only 4-5% and moved paths; try cuDSS's own iterative refinement.
|
|
49
|
+
- [ ] **Small cases.** The device costs case14_ieee and case118_ieee 12 ms
|
|
50
|
+
(0.68x and 0.78x the host's vectors, even on case300_ieee). A fallback by
|
|
51
|
+
size would keep the host's times there.
|
|
52
|
+
- [ ] **HyKKT on the device.** Its CG and residuals run on the host. Only
|
|
53
|
+
worth it if it beats the augmented system once they do not.
|
|
54
|
+
|
|
55
|
+
# Batch power flow
|
|
56
|
+
|
|
57
|
+
The oracle accepts every scenario of every case, which no other GPU tool
|
|
58
|
+
there manages. What is left to be faster is N-1.
|
|
59
|
+
|
|
60
|
+
- **Sweeps:** ahead of gpusim2grid on all of them, 1.35-2.8x on `#sweep-1k` and
|
|
61
|
+
`#sweep-10k`, and of lightsim2grid from 1000 scenarios up. Against gridoxide
|
|
62
|
+
on 30 CPU threads: 1.6-2.5x on the transmission cases' large sweeps,
|
|
63
|
+
0.97-1.1x on mvlv10616's, 0.4-1.2x on 100 scenarios. case9241pegase's 10k
|
|
64
|
+
takes 0.59 ms a scenario, 0.47 of it the solve (NVIDIA's target: 0.5).
|
|
65
|
+
- **How:** one factorization for a sweep's first step, a solve with a column per
|
|
66
|
+
scenario, and `chord_steps=12, chord_below=0.9` on those factors before
|
|
67
|
+
Newton (`scripts/bench/README.md`, section 11). mvlv10616's scenarios leave
|
|
68
|
+
the chord steps at once, and gain only the first step.
|
|
69
|
+
- **N-1:** 0.54-0.70x gridoxide's CPU on 200 outages and 0.90-1.01x on
|
|
70
|
+
`#n1-full`. gpusim2grid is about 1.5x faster on `#n1-full`, and the oracle
|
|
71
|
+
rejects it on all three.
|
|
72
|
+
- **Power flow and DC:** ahead of gpusim2grid and ExaPF on all 13 power-flow
|
|
73
|
+
cases and of ToOp on all 7 DC ones; ahead of gridoxide's CPU on power flow
|
|
74
|
+
from case1354pegase up.
|
|
75
|
+
- **Where the time goes** (Nsight Systems, `scripts/bench/README.md`, section
|
|
76
|
+
11): cuDSS is 87-92% of the device's work and 73-83% of the wall time,
|
|
77
|
+
factorization 51-58% of the device's work and the triangular solves 33-41%.
|
|
78
|
+
|
|
79
|
+
- [ ] **Profile `#n1-full`,** where the GPU trails most at scale, then the
|
|
80
|
+
tail of a 10k sweep, when few scenarios are still active: a masked step
|
|
81
|
+
still costs 9-12% of a full one.
|
|
82
|
+
- [ ] **Keep the batch full.** As scenarios converge, refill their slots
|
|
83
|
+
instead of finishing each chunk before starting the next. A refilled slot
|
|
84
|
+
needs a masked `FACTORIZATION`. Only if the tail's profile asks for it.
|
|
85
|
+
- [ ] **Mixed precision.** Factor in FP32 and keep the mismatch in FP64. An
|
|
86
|
+
experiment, kept only if the oracle accepts it.
|
|
87
|
+
|
|
88
|
+
# Beyond batch power flows
|
|
89
|
+
|
|
90
|
+
The device solves AC sweeps, AC and DC N-1, DC sweeps, single AC and DC power
|
|
91
|
+
flows and the AC-OPF. Everything else is CPU only. `GpuBatchSolver` and
|
|
92
|
+
`GpuDcSolver` have the same calls: `solve_single`, `solve_sweep`,
|
|
93
|
+
`solve_contingencies`.
|
|
94
|
+
|
|
95
|
+
- [ ] **A linear start for AC.** The CPU's `start="linear"` has no device
|
|
96
|
+
counterpart; every scenario starts from the last `solve()`. A DC solve per
|
|
97
|
+
scenario on the device would give it one.
|
|
98
|
+
|
|
99
|
+
# Settled
|
|
100
|
+
|
|
101
|
+
Measured, and not to be tried again without a reason:
|
|
102
|
+
|
|
103
|
+
- **The batch's cuDSS settings on the AC-OPF:** no gain, `kkt::CudssSolver`
|
|
104
|
+
keeps the defaults. Six levels are 5-21% slower, multiblock within 5%, 12
|
|
105
|
+
levels within 4% either way, AMD about twice as slow.
|
|
106
|
+
- **Factor reuse in the batch:** `reuse_below=0.1` is 3-12% slower than none,
|
|
107
|
+
its extra Newton steps outweighing the factorizations it saves.
|
|
108
|
+
- **cuDSS 0.8.0:** 1.75-3.7x cheaper per system than 1.0.0, but NaN in a
|
|
109
|
+
uniform batch.
|
|
110
|
+
- **DC sweeps on the GPU:** slower than `DcBatchSolver` on 30 threads (45 ms
|
|
111
|
+
against 12 on case1354pegase, 290 against 94 on case9241pegase).
|
|
112
|
+
- **The batch's host round trip and own kernels:** about 0.1 ms of a
|
|
113
|
+
65-254 ms step, and 3-5% of the device's work.
|
|
114
|
+
- **FMA in `kernels.cu`:** the device residual takes `K` as assembled, without
|
|
115
|
+
FMA; dropping FMA alone moved `case118_ieee__api` from 83 iterations to 382
|
|
116
|
+
(CPU: 50). The Newton step's kernels keep it.
|
|
117
|
+
- **`matches` on HyKKT's matrix:** its pattern moves with the rows it counts
|
|
118
|
+
as equalities, so `fixed_pattern` cannot skip it.
|
|
@@ -12,6 +12,25 @@ fn main() {
|
|
|
12
12
|
arpack::build();
|
|
13
13
|
#[cfg(feature = "capi")]
|
|
14
14
|
capi::build();
|
|
15
|
+
#[cfg(feature = "gpu")]
|
|
16
|
+
gpu::build();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/// Puts cuDSS's and the CUDA runtime's library directories on the run path
|
|
20
|
+
/// of this package's artifacts, the Python extension among them, when the
|
|
21
|
+
/// `gpu` feature is enabled. gridoxide-gpu links them, but its run path
|
|
22
|
+
/// reaches only its own tests and examples; it hands the directories on as
|
|
23
|
+
/// `DEP_CUDSS_LIB_DIRS` (see crates/gridoxide-gpu/build.rs). An image that
|
|
24
|
+
/// moves the libraries elsewhere sets `LD_LIBRARY_PATH` instead.
|
|
25
|
+
#[cfg(feature = "gpu")]
|
|
26
|
+
mod gpu {
|
|
27
|
+
pub fn build() {
|
|
28
|
+
let dirs = std::env::var("DEP_CUDSS_LIB_DIRS")
|
|
29
|
+
.expect("gridoxide-gpu's build script sets DEP_CUDSS_LIB_DIRS with its `cuda` feature");
|
|
30
|
+
for dir in dirs.split(':') {
|
|
31
|
+
println!("cargo:rustc-link-arg=-Wl,-rpath,{dir}");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
15
34
|
}
|
|
16
35
|
|
|
17
36
|
/// Generates `include/gridoxide.h` from the C ABI in `src/capi/`, only when
|
|
@@ -12,7 +12,7 @@ categories = ["science", "simulation"]
|
|
|
12
12
|
license = "Apache-2.0"
|
|
13
13
|
|
|
14
14
|
[dependencies]
|
|
15
|
-
gridoxide-sparse = { path = "../gridoxide-sparse", version = "0.
|
|
15
|
+
gridoxide-sparse = { path = "../gridoxide-sparse", version = "0.4.0" }
|
|
16
16
|
faer = "0.24.4"
|
|
17
17
|
num-complex = { version = "0.4.6", features = ["serde"] }
|
|
18
18
|
# The batch solvers — power flow's and state estimation's — run scenarios
|
|
@@ -389,6 +389,24 @@ impl JacobianPattern {
|
|
|
389
389
|
&self.entries
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
+
/// The fill's first pass, for a device that runs it itself: each
|
|
393
|
+
/// non-slack row bus with its `Y[i][i]`, owning slots `4d..4d + 4`
|
|
394
|
+
/// (H, N, M, L).
|
|
395
|
+
pub fn diag_slots(&self) -> &[(u32, Complex<f64>)] {
|
|
396
|
+
&self.diag
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/// Each off-diagonal `(i, k)` pair with `Y[i][k]`, pair `p` owning slots
|
|
400
|
+
/// `4 · diag_slots().len() + 4p ..` (H, N, M, L).
|
|
401
|
+
pub fn pair_slots(&self) -> &[(u32, u32, Complex<f64>)] {
|
|
402
|
+
&self.pairs
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/// The fill's second pass: the slot each entry copies, in entry order.
|
|
406
|
+
pub fn slot_sources(&self) -> &[u32] {
|
|
407
|
+
&self.src
|
|
408
|
+
}
|
|
409
|
+
|
|
392
410
|
/// Writes this iteration's Jacobian values into `values`, which is
|
|
393
411
|
/// resized to [`len`](Self::len) and otherwise fully overwritten.
|
|
394
412
|
///
|
|
@@ -434,6 +434,20 @@ pub fn dc_power_flow(
|
|
|
434
434
|
DcSolver::new(buses, lines, transformers, opts).solve(buses)
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
+
/// One island's reduced system `B θ = rhs`, handed to
|
|
438
|
+
/// [`DcSolver::solve_with`]'s solver.
|
|
439
|
+
#[derive(Clone, Debug)]
|
|
440
|
+
pub struct DcSystem<'a> {
|
|
441
|
+
/// The island's index in [`DcSolution::islands`].
|
|
442
|
+
pub island: usize,
|
|
443
|
+
/// Its unknowns (the non-reference buses), the rows of `rhs` in order.
|
|
444
|
+
pub unknown: &'a [usize],
|
|
445
|
+
pub rhs: Vec<f64>,
|
|
446
|
+
/// Whether `DcSolver` could factor its `B`; one it could not is
|
|
447
|
+
/// singular, and `solve` reports it so.
|
|
448
|
+
pub factored: bool,
|
|
449
|
+
}
|
|
450
|
+
|
|
437
451
|
/// [`dc_power_flow`] split where the network's state stops mattering: `new`
|
|
438
452
|
/// does everything the topology and the reference buses decide (the branch
|
|
439
453
|
/// reduction, the islands, each island's unknowns and the factorization of
|
|
@@ -529,15 +543,68 @@ impl DcSolver {
|
|
|
529
543
|
/// Solves for `buses`' injections, writing angles back as
|
|
530
544
|
/// [`dc_power_flow`] does.
|
|
531
545
|
pub fn solve(&self, buses: &mut [Bus]) -> DcSolution {
|
|
546
|
+
self.solve_with(buses, |systems| {
|
|
547
|
+
systems
|
|
548
|
+
.iter()
|
|
549
|
+
.map(|sys| {
|
|
550
|
+
self.islands[sys.island]
|
|
551
|
+
.1
|
|
552
|
+
.as_ref()
|
|
553
|
+
.and_then(|f| f.solve(&sys.rhs))
|
|
554
|
+
})
|
|
555
|
+
.collect()
|
|
556
|
+
})
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/// As [`solve`](Self::solve), with the reduced systems solved by
|
|
560
|
+
/// `solve_all` rather than by this solver's own factorizations: given
|
|
561
|
+
/// every island's [`DcSystem`] (those with a reference bus and at least
|
|
562
|
+
/// one unknown), it returns each one's angles in the same order, `None`
|
|
563
|
+
/// for one it could not solve (reported as
|
|
564
|
+
/// [`Singular`](DcIslandStatus::Singular)). Everything else, the
|
|
565
|
+
/// right-hand sides and the flows, residual and pickups from the angles,
|
|
566
|
+
/// is `solve`'s. gridoxide-gpu solves all of them in one device solve.
|
|
567
|
+
pub fn solve_with(
|
|
568
|
+
&self,
|
|
569
|
+
buses: &mut [Bus],
|
|
570
|
+
solve_all: impl FnOnce(&[DcSystem<'_>]) -> Vec<Option<Vec<f64>>>,
|
|
571
|
+
) -> DcSolution {
|
|
532
572
|
assert_eq!(
|
|
533
573
|
buses.len(),
|
|
534
574
|
self.n,
|
|
535
575
|
"a DcSolver solves the network it was built for"
|
|
536
576
|
);
|
|
537
577
|
let branches = &self.branches;
|
|
538
|
-
let reduced_pos = &self.reduced_pos;
|
|
539
578
|
mark_unreferenced_islands(buses, &self.classified);
|
|
540
579
|
|
|
580
|
+
let mut systems = Vec::new();
|
|
581
|
+
for (ci, c) in self.classified.iter().enumerate() {
|
|
582
|
+
let unknown = &self.islands[ci].0;
|
|
583
|
+
if matches!(c.verdict, Verdict::NoReferenceBus) || unknown.is_empty() {
|
|
584
|
+
continue;
|
|
585
|
+
}
|
|
586
|
+
systems.push(DcSystem {
|
|
587
|
+
island: ci,
|
|
588
|
+
unknown,
|
|
589
|
+
rhs: self.rhs(ci, buses),
|
|
590
|
+
factored: self.islands[ci].1.is_some(),
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
let solutions = solve_all(&systems);
|
|
594
|
+
assert_eq!(
|
|
595
|
+
solutions.len(),
|
|
596
|
+
systems.len(),
|
|
597
|
+
"one solution per reduced system"
|
|
598
|
+
);
|
|
599
|
+
let mut theta_of: Vec<Option<Vec<f64>>> = vec![None; self.classified.len()];
|
|
600
|
+
for (sys, theta) in systems.iter().zip(solutions) {
|
|
601
|
+
assert!(
|
|
602
|
+
theta.as_ref().is_none_or(|t| t.len() == sys.unknown.len()),
|
|
603
|
+
"one angle per unknown"
|
|
604
|
+
);
|
|
605
|
+
theta_of[sys.island] = theta;
|
|
606
|
+
}
|
|
607
|
+
|
|
541
608
|
let mut branch_p = vec![0.0; self.n_branches];
|
|
542
609
|
let mut max_residual: f64 = 0.0;
|
|
543
610
|
let mut islands = Vec::with_capacity(self.classified.len());
|
|
@@ -553,38 +620,12 @@ impl DcSolver {
|
|
|
553
620
|
continue;
|
|
554
621
|
}
|
|
555
622
|
|
|
556
|
-
let
|
|
623
|
+
let unknown = &self.islands[ci].0;
|
|
557
624
|
let m = unknown.len();
|
|
558
625
|
|
|
559
626
|
let mut solved = true;
|
|
560
627
|
if m > 0 {
|
|
561
|
-
|
|
562
|
-
for (r, &i) in unknown.iter().enumerate() {
|
|
563
|
-
rhs[r] = dc_injection(&buses[i]);
|
|
564
|
-
}
|
|
565
|
-
for &pos in &self.island_branches[ci] {
|
|
566
|
-
let br = &branches[pos];
|
|
567
|
-
let (rf, rt) = (reduced_pos[br.from], reduced_pos[br.to]);
|
|
568
|
-
// φ: the phase shift is constant, so it lives on the RHS and
|
|
569
|
-
// `B` stays symmetric. See the module doc.
|
|
570
|
-
let shift_p = br.b * br.shift;
|
|
571
|
-
if rf != NOT_UNKNOWN {
|
|
572
|
-
rhs[rf] += shift_p;
|
|
573
|
-
// A reference's known angle also moves to the RHS:
|
|
574
|
-
// subtracting `B_ij θ_j = −b θ_j` adds `+b θ_j`.
|
|
575
|
-
if rt == NOT_UNKNOWN {
|
|
576
|
-
rhs[rf] += br.b * buses[br.to].voltage_ang;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
if rt != NOT_UNKNOWN {
|
|
580
|
-
rhs[rt] -= shift_p;
|
|
581
|
-
if rf == NOT_UNKNOWN {
|
|
582
|
-
rhs[rt] += br.b * buses[br.from].voltage_ang;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
match factor.as_ref().and_then(|f| f.solve(&rhs)) {
|
|
628
|
+
match theta_of[ci].take() {
|
|
588
629
|
Some(theta) => {
|
|
589
630
|
for (r, &i) in unknown.iter().enumerate() {
|
|
590
631
|
buses[i].voltage_ang = theta[r];
|
|
@@ -656,6 +697,39 @@ impl DcSolver {
|
|
|
656
697
|
ignored_branches: self.ignored_branches.clone(),
|
|
657
698
|
}
|
|
658
699
|
}
|
|
700
|
+
|
|
701
|
+
/// Island `ci`'s right-hand side: its unknowns' injections, with each
|
|
702
|
+
/// phase shift and each reference's known angle moved over.
|
|
703
|
+
fn rhs(&self, ci: usize, buses: &[Bus]) -> Vec<f64> {
|
|
704
|
+
let (branches, reduced_pos) = (&self.branches, &self.reduced_pos);
|
|
705
|
+
let unknown = &self.islands[ci].0;
|
|
706
|
+
let mut rhs = vec![0.0; unknown.len()];
|
|
707
|
+
for (r, &i) in unknown.iter().enumerate() {
|
|
708
|
+
rhs[r] = dc_injection(&buses[i]);
|
|
709
|
+
}
|
|
710
|
+
for &pos in &self.island_branches[ci] {
|
|
711
|
+
let br = &branches[pos];
|
|
712
|
+
let (rf, rt) = (reduced_pos[br.from], reduced_pos[br.to]);
|
|
713
|
+
// φ: the phase shift is constant, so it lives on the RHS and
|
|
714
|
+
// `B` stays symmetric. See the module doc.
|
|
715
|
+
let shift_p = br.b * br.shift;
|
|
716
|
+
if rf != NOT_UNKNOWN {
|
|
717
|
+
rhs[rf] += shift_p;
|
|
718
|
+
// A reference's known angle also moves to the RHS:
|
|
719
|
+
// subtracting `B_ij θ_j = −b θ_j` adds `+b θ_j`.
|
|
720
|
+
if rt == NOT_UNKNOWN {
|
|
721
|
+
rhs[rf] += br.b * buses[br.to].voltage_ang;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
if rt != NOT_UNKNOWN {
|
|
725
|
+
rhs[rt] -= shift_p;
|
|
726
|
+
if rf == NOT_UNKNOWN {
|
|
727
|
+
rhs[rt] += br.b * buses[br.from].voltage_ang;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
rhs
|
|
732
|
+
}
|
|
659
733
|
}
|
|
660
734
|
|
|
661
735
|
#[cfg(test)]
|
|
@@ -33,10 +33,11 @@ pub mod sensitivity;
|
|
|
33
33
|
|
|
34
34
|
pub use batch::{DcBatchResult, DcBatchSolver};
|
|
35
35
|
pub use btheta::{
|
|
36
|
-
DcBranch, DcIslandReport, DcIslandStatus, DcSolution, DcSolver,
|
|
36
|
+
DcBranch, DcIslandReport, DcIslandStatus, DcSolution, DcSolver, DcSystem, dc_branches,
|
|
37
|
+
dc_power_flow,
|
|
37
38
|
};
|
|
38
39
|
pub use impedance::{LinearIslandReport, LinearIslandStatus, LinearReport, linear_power_flow};
|
|
39
|
-
pub use sensitivity::{DcSensitivity, DenseMatrix};
|
|
40
|
+
pub use sensitivity::{DcContingencies, DcSensitivity, DenseMatrix};
|
|
40
41
|
|
|
41
42
|
/// Which terms the DC susceptance keeps.
|
|
42
43
|
///
|