Skip to content

Commit 43e48b1

Browse files
authored
Merge pull request #123 from e2nIEE/feature/fix_pages
updated gh-pages push action.
2 parents e1e7ce3 + c3a1e5c commit 43e48b1

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

.github/workflows/documentation.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ jobs:
1616
- name: Install Dependencies
1717
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
1818
- name: Build and Deploy
19+
run: julia --project=docs docs/make.jl
1920
env:
2021
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
22-
run: julia --project=docs docs/make.jl
22+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
23+
- name: Upload to gh-pages
24+
uses: peaceiris/actions-gh-pages@v4
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./docs/build
28+
publish_branch: gh-pages

docs/src/develop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Base.find_package("PandaModels")
8080
In develop-mode you need to add the following dependencies:
8181

8282
optimization environment:
83-
* [JuMP.jl](https://github.com/JuliaOpt/JuMP.jl)
83+
* [JuMP.jl](https://github.com/jump-dev/JuMP.jl)
8484

8585
infrastructure-based packages:
8686
* [InfrastructureModels.jl](https://github.com/lanl-ansi/InfrastructureModels.jl)
@@ -124,7 +124,7 @@ Pkg.resolve()
124124

125125
#### Gurobi Installation:
126126

127-
To use [Gurobi](https://www.gurobi.com/), download and install from [Gurobi Download Center](https://www.gurobi.com/downloads/), then get the license, activate it and add its path to the local PATH environment variables by following the steps from [Gurobi License Center](https://www.gurobi.com/downloads/licenses/).
127+
To use [Gurobi](https://www.gurobi.com/), download and install from [Gurobi Download Center](https://www.gurobi.com/downloads/), then get the license, activate it and add its path to the local PATH environment variables by following the steps from [Gurobi License Center](https://portal.gurobi.com/iam/licenses/list).
128128

129129
!!! note "Linux Users"
130130
for `linux` users: open `.bashrc` file with , e.g., `nano .bashrc` in your home folder and add:

docs/src/index.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ CurrentModule = PandaModels
1010

1111
As the figure below illustrates, with the help of **PandaModels**, **pandapower** and **PowerModels.jl** are connected in a functional way. The pandapower-PowerModels (PM-PP) converter enables conversion from the **pandapower** format to the **PowerModels** format. After the optimization in **PowerModels**, the PP-PM converter transforms the optimization results back to the original **pandapower** grid model, which can be used for further analysis. In addition to the existing **PowerModels** optimization models, **pandamodels** enables adding custom optimization models. Presently, reactive power optimizations can be down with **pandamodels** to maintain voltage setpoints, maintain reactive power setpoints, and minimize active power losses.
1212

13-
![Alt text](/pic/schema_pandamodels.jpg?raw=true "Optional Title")
14-
1513
## Installation
1614

1715
### Install Julia
18-
If you are not yet using Julia, install it. Note that you need a version that is supported PowerModels, PyCall and pyjulia for the interface to work. Currently, [Julia 1.5](https://julialang.org/downloads/) is the most recent stable version of Julia that supports all these packages.
16+
If you are not yet using Julia, install it. Note that you need a version that is supported PowerModels, PyCall and pyjulia for the interface to work. Currently, [Julia 1.10](https://julialang.org/downloads/) is the most recent stable version of Julia that supports all these packages.
1917

20-
You don't necessarily need a Julia IDE if you are using PowerModels through pandapower, but it might help for debugging to install an IDE such as [Juno](http://docs.junolab.org/latest/man/installation). Also, [PyCharm](https://www.jetbrains.com/pycharm/) has a Julia Plugin.
18+
You don't necessarily need a Julia IDE if you are using PowerModels through pandapower, but it might help for debugging to install an IDE such as [Juno](https://docs.junolab.org/latest/man/installation/). Also, [PyCharm](https://www.jetbrains.com/pycharm/) has a Julia Plugin.
2119

22-
Add the Julia binary folder (e.g. /Julia-1.5.0/bin) to the [system variable PATH](https://www.computerhope.com/issues/ch000549.htm) Providing the path is correct, you can now enter the `Julia` prompt by executing:
20+
Add the Julia binary folder (e.g. /Julia-1.10.0/bin) to the system variable PATH providing the path is correct, you can now enter the `Julia` prompt by executing:
2321

2422
```bash
2523
$ julia
@@ -66,6 +64,6 @@ Otherwise, the package will be automatically installed in pandapower environment
6664

6765
## Acknowledgements
6866

69-
This package has been developed as part of the De­part­ment of En­er­gy Ma­nage­ment and Power Sys­tem Ope­ra­ti­on [(e²n)](https://www.uni-kassel.de/eecs/en/faculties/energy-management-and-power-system-operation/home), University of Kassel and Fraunhofer Institute for Energy Economics and Energy System Technology [(IEE)](https://www.iee.fraunhofer.de/en.html).
67+
This package has been developed as part of the De­part­ment of En­er­gy Ma­nage­ment and Power Sys­tem Ope­ra­ti­on [(e²n)](https://www.uni-kassel.de/eecs/en/sections/sustainable-electrical-energy-systems/home.html), University of Kassel and Fraunhofer Institute for Energy Economics and Energy System Technology [(IEE)](https://www.iee.fraunhofer.de/en.html).
7068

7169
The developers thank [Carleton Coffrin](https://www.coffrin.com/), the primary developer of [PowerModels.jl](https://lanl-ansi.github.io/PowerModels.jl/stable/), for his support.

docs/src/model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Finally, you need to add `run_pandamodels_<your_model>` function into export lis
1919

2020
## Application of New optimization Model in pandapower
2121

22-
Please check [here](https://github.com/e2nIEE/pandapower/blob/develop/tutorials/new_optimization_model_pandamodels.ipynb) to find out how call the new model in pandapower.
22+
Please check [here](https://github.com/e2nIEE/pandapower/blob/develop/tutorials/run_powermodels_custom.jl) to find out how call the new model in pandapower.

docs/src/quickguide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ net = nw.example_simple()
5454
pp.runpm_ac_opf(net)
5555
```
5656

57-
for more details about the settings please see [here](https://pandapower.readthedocs.io/en/latest/opf/pandamodels.html#usage), also the detailed tutorial is available in [Tutorials](@ref).
57+
for more details about the settings please see [here](https://pandapower.readthedocs.io/en/latest/opf/pandamodels.html#usage).

test/call_pandamodels.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@test isapprox(result["objective_lb"], -Inf)
1919
@test isapprox(result["objective"], 0.000453688; atol = 1e-8)
20-
@test result["solve_time"] > 0.0
20+
@test result["solve_time"] >= 0.0
2121

2222
end
2323

@@ -36,7 +36,7 @@
3636
end
3737
end
3838
@test isapprox(result["objective_lb"], -Inf)
39-
@test result["solve_time"] > 0.0
39+
@test result["solve_time"] >= 0.0
4040
end
4141

4242
@testset "case_pflex: cigre mv" begin
@@ -54,7 +54,7 @@
5454
end
5555
end
5656
@test isapprox(result["objective_lb"], -Inf)
57-
@test result["solve_time"] > 0.0
57+
@test result["solve_time"] >= 0.0
5858
end
5959

6060
@testset "case_multi_qflex: cigre mv" begin
@@ -83,7 +83,7 @@
8383
# end
8484
# end
8585

86-
@test result["solve_time"] > 0.0
86+
@test result["solve_time"] >= 0.0
8787
end
8888

8989
@testset "case_ploss: cigre mv" begin
@@ -100,7 +100,7 @@
100100
for (i, content) in params[:target_branch]) < 0.07
101101

102102
@test isapprox(result["objective_lb"], -Inf)
103-
@test result["solve_time"] > 0.0
103+
@test result["solve_time"] >= 0.0
104104
end
105105

106106

0 commit comments

Comments
 (0)