Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 28, 2023
1 parent d652b48 commit b921fcf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/opf-obj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ end

@testset "jump model objective type" begin
pm = instantiate_model(data, ACPPowerModel, build_opf)

@test JuMP.objective_function(pm.model) == JuMP.AffExpr(0.0)
# would be good to add a test like this one in a future version where the NL expression can be accessed with a public API
#@test isa(JuMP._nlp_objective_function(pm.model), JuMP.MOI.Nonlinear.Expression)
@test JuMP.objective_function(pm.model) == JuMP.NonlinearExpr
end

@testset "opf objective" begin
Expand Down

0 comments on commit b921fcf

Please sign in to comment.