Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 12, 2024
1 parent 0a1baed commit 5aa6202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/qcqp1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function example_qcqp1(; verbose=true)
@testset "Example QCQP1" begin
@test nStatus == 0
@test objSol 936.0
@test x [0.0, 0.0, 8.0]
@test isapprox(x, [0.0, 0.0, 8.0]; atol=1e-5)
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/C_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if KNITRO.knitro_version() >= v"12.1"
KN_get_solution(kc, Ref{Cint}(), obj, C_NULL, C_NULL)
KN_free(kc)
@test status == 0
@test isapprox(obj[], 250.0 / 3.0; atol = 1e-4)
@test isapprox(obj[], 250.0 / 3.0; atol=1e-4)

# Resolve with dumped MPS file
kc = KN_new()
Expand All @@ -122,7 +122,7 @@ if KNITRO.knitro_version() >= v"12.1"
KN_get_solution(kc, Ref{Cint}(), obj, C_NULL, C_NULL)
KN_free(kc)
@test status == 0
@test isapprox(obj[], 250.0 / 3.0; atol = 1e-4)
@test isapprox(obj[], 250.0 / 3.0; atol=1e-4)
end
end

Expand Down

0 comments on commit 5aa6202

Please sign in to comment.