Skip to content

Commit

Permalink
Use structural_simplify in mtk opf benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Sep 4, 2024
1 parent ab3d588 commit e3f6c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/OptimizationFrameworks/optimal_powerflow.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ function build_opf_mtk_prob(dataset)
end

optsys = ModelingToolkit.OptimizationSystem(loss, vars, [], constraints=cons, name=:rosetta)
optsys = ModelingToolkit.complete(optsys)
optsys = ModelingToolkit.structural_simplify(optsys)
u0map = [Num(k) => 0.0 for k in collect(unknowns(optsys))]
ks = collect(Num.(unknowns(optsys)))
for key in keys(ref[:bus])
Expand Down

0 comments on commit e3f6c5f

Please sign in to comment.