Skip to content

Commit

Permalink
Fix incorrect number type in test_highs_optimization (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 3, 2024
1 parent 80a0fc9 commit 048f6e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1526,10 +1526,10 @@ function test_highs_feasibility()
end

function test_highs_optimization()
model = MOI.Utilities.Model{Float64}()
model = MOI.Utilities.Model{Int}()
x, _ = MOI.add_constrained_variable(model, MOI.Integer())
MOI.add_constraint(model, x, MOI.Interval(1.0, 10.0))
MOI.set(model, MOI.ObjectiveFunction{typeof(x)}(), x)
MOI.add_constraint(model, x, MOI.Interval(1, 10))
MOI.set(model, MOI.ObjectiveFunction{MOI.VariableIndex}(), x)
MOI.set(model, MOI.ObjectiveSense(), MOI.MAX_SENSE)
solver = MiniZinc.Optimizer{Int}("highs")
index_map, _ = MOI.optimize!(solver, model)
Expand Down

0 comments on commit 048f6e4

Please sign in to comment.