Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metab0t/opf_benchmark
https://github.com/metab0t/opf_benchmark
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/metab0t/opf_benchmark
- Owner: metab0t
- Created: 2024-05-08T12:53:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T15:02:21.000Z (about 1 month ago)
- Last Synced: 2024-11-29T16:19:49.272Z (about 1 month ago)
- Language: MATLAB
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Install PyOptInterface:
```
pip install pyoptinterface[nlp]
pip install casadi
```Download executable of Gravity from [the link](https://github.com/metab0t/Gravity/releases), extract `acopf.exe` to this directory.
Firstly, generate json format of case files
```
mkdir json
mkdir log
julia export_case.jl
```Run Python benchmark
```
python test_driver.py --solver poi (--method rect)
python test_driver.py --solver casadi (--method rect)
```Run Julia benchmark
```
julia --project=. test_driver.jl exa
julia --project=. test_driver.jl ampl
julia --project=. test_driver.jl jump
julia --project=. test_driver.jl jump_symbolicad
```Run Gravity benchmark
```
julia --project=. test_gravity_driver.jl
```Show Result
```
python analyze_result.py
```Part of code is adapted from https://github.com/lanl-ansi/rosetta-opf.