You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting the .pwf file into PowerModels.jl network data dictionary:
13
-
14
-
```julia
15
-
network_data =parse_pwf_to_powermodels(file)
16
-
```
17
-
18
-
Then you are ready to use PowerModels!
19
-
20
-
```julia
21
-
using PowerModels, Ipopt
22
-
23
-
run_ac_pf(network_data, Ipopt.Optimizer)
24
-
```
12
+
The parameter `pm` indicates if the data should be converted to the PowerModels.jl format. `add_control_data` is used to inform if additional information regarding control actions should be included in the PowerModels.jl data. For more information about Control Actions visit the ControlPowerFlow.jl [documentation](https://github.com/LAMPSPUC/ControlPowerFlow.jl)
25
13
26
14
For more information about PowerModels.jl visit the PowerModels [documentation](https://lanl-ansi.github.io/PowerModels.jl/stable/)
ifisnothing(pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["constraint_type"]) # setpoint is more restrict than bounds
ifisnothing(pm_data["bus"]["$(sub_data["control_data"]["controlled_bus"])"]["control_data"]["tap_constraint_type"]) # setpoint is more restrict than bounds
0 commit comments