Skip to content

exanauts/ExaModelsPower.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExaModelsPower.jl

ExaModelsPower.jl is an optimal power flow models using ExaModels.jl

Usage

Static optimal power flow

using ExaModelsPower, MadNLP, MadNLPGPU, CUDA

model, vars = opf_model(
    "pglib_opf_case118_ieee.m";
    backend = CUDABackend()
)
result = madnlp(model; tol=1e-6)

Security-constrained optimal power flow

model, vars = scopf_model(
    "pglib_opf_case118_ieee.m"; contingencies = [1,2],
    backend = CUDABackend()
)
result = madnlp(model; tol=1e-6) # currently failing

Multi-period optimal power flow

model, vars = mpopf_model(
    "pglib_opf_case118_ieee.m", # static network data
    "/home/sshin/git/ExaModels_Multiperiod/data/case118_onehour_168.Pd", # dynamic load data
    "/home/sshin/git/ExaModels_Multiperiod/data/case118_onehour_168.Qd"; # dynamic load data
    backend = CUDABackend()
)
result = madnlp(model; tol=1e-6)

About

Optimal power flow models with ExaModels.jl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages