Skip to content

Commit 048f6e4

Browse files
authored
Fix incorrect number type in test_highs_optimization (#89)
1 parent 80a0fc9 commit 048f6e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,10 +1526,10 @@ function test_highs_feasibility()
15261526
end
15271527

15281528
function test_highs_optimization()
1529-
model = MOI.Utilities.Model{Float64}()
1529+
model = MOI.Utilities.Model{Int}()
15301530
x, _ = MOI.add_constrained_variable(model, MOI.Integer())
1531-
MOI.add_constraint(model, x, MOI.Interval(1.0, 10.0))
1532-
MOI.set(model, MOI.ObjectiveFunction{typeof(x)}(), x)
1531+
MOI.add_constraint(model, x, MOI.Interval(1, 10))
1532+
MOI.set(model, MOI.ObjectiveFunction{MOI.VariableIndex}(), x)
15331533
MOI.set(model, MOI.ObjectiveSense(), MOI.MAX_SENSE)
15341534
solver = MiniZinc.Optimizer{Int}("highs")
15351535
index_map, _ = MOI.optimize!(solver, model)

0 commit comments

Comments
 (0)