Skip to content

Commit 110374c

Browse files
committed
Update to latest MOI master
1 parent eeebcae commit 110374c

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

Manifest.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
4949

5050
[[MathOptInterface]]
5151
deps = ["BenchmarkTools", "LinearAlgebra", "OrderedCollections", "SparseArrays", "Test", "Unicode"]
52-
git-tree-sha1 = "bb9af760fef8eb5d0dea3823b055037cda1c8cc5"
53-
repo-rev = "od/cleverdict"
52+
git-tree-sha1 = "04a670c6706e1bb2dbb9f8832c2b39072de672b4"
53+
repo-rev = "master"
5454
repo-url = "https://github.com/JuliaOpt/MathOptInterface.jl.git"
5555
uuid = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
5656
version = "0.9.0"

test/MOI_wrapper.jl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@ const CONFIG = MOIT.TestConfig()
1212
MOIT.basic_constraint_tests(OPTIMIZER, CONFIG)
1313
MOIT.unittest(OPTIMIZER, CONFIG, [
1414
# These are excluded because GLPK does not support quadratics.
15-
"solve_qp_edge_cases", "solve_qcp_edge_cases"
15+
"solve_qp_edge_cases", "solve_qcp_edge_cases",
16+
"solve_zero_one_with_bounds_3"
1617
])
18+
@testset "solve_zero_one_with_bounds_3" begin
19+
MOI.empty!(OPTIMIZER)
20+
MOI.Utilities.loadfromstring!(OPTIMIZER,"""
21+
variables: x
22+
maxobjective: 2.0x
23+
c1: x in ZeroOne()
24+
c2: x >= 0.2
25+
c3: x <= 0.5
26+
""")
27+
MOI.optimize!(OPTIMIZER)
28+
# We test this here because the TerminationStatus is INVALID_MODEL not
29+
# INFEASIBLE.
30+
@test MOI.get(OPTIMIZER, MOI.TerminationStatus()) == MOI.INVALID_MODEL
31+
end
1732
MOIT.modificationtest(OPTIMIZER, CONFIG)
1833
end
1934

0 commit comments

Comments
 (0)