This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JuMP v0.18 | |
using PowerModels | |
using Foo | |
using Bar | |
# quick test | |
result = run_opf("network.m", ACPPowerModel, FooSolver(...)) | |
# compare formulations, keep solver constant | |
solver_1 = FooSolver(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MathOptInterface: TerminationStatusCode | |
export TerminationStatusCode | |
import MathOptInterface: ResultStatusCode | |
export ResultStatusCode | |
for status_code_enum in [TerminationStatusCode, ResultStatusCode] | |
for status_code in instances(status_code_enum) | |
@eval import MathOptInterface: $(Symbol(status_code)) | |
@eval export $(Symbol(status_code)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terminal outputs for running the following Julia code, | |
``` | |
using ThreePhasePowerModels; using SCS; scs_solver = SCSSolver(max_iters=10000) | |
mp_data = ThreePhasePowerModels.parse_file("$(Pkg.dir("ThreePhasePowerModels"))/test/data/matlab/case5_i_r_a.m") | |
result = run_tp_opf_bf(mp_data, SDPUBFPowerModel, scs_solver) | |
``` | |
Using Julia v0.6, ThreePhasePowerModels ec535c4, SCS v0.4.0. There is a notable difference in the solution on Linux and OS X. |