Skip to content

Commit

Permalink
Merge pull request #68 from SCIP-Interfaces/rs/fix67
Browse files Browse the repository at this point in the history
fix #67
  • Loading branch information
rschwarz authored May 17, 2018
2 parents 7102fb2 + 9be9088 commit 8810e18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/csip_version.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# required version and utilities in a single location
CSIP_VERSION = "0.5.0"
CSIP_VERSION = "0.5.1"

function vn2int(vn::VersionNumber)
100*vn.major + 10*vn.minor + vn.patch
Expand Down
12 changes: 12 additions & 0 deletions test/more_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ end
@test getvalue(x) 1.0
@test getvalue(y) 1.0
end

@testset "test_#67_nlp_without_obj" begin
m = Model(solver=SCIPSolver("display/verblevel", 0))
@variable(m, -5 <= x <= 5)
@NLconstraint(m, x <= 2)

solve(m)
xval = getvalue(x)

@test xval <= 2 + 1e-4
@test xval >= -5 - 1e-4
end

0 comments on commit 8810e18

Please sign in to comment.