We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a0fc9 commit 048f6e4Copy full SHA for 048f6e4
test/runtests.jl
@@ -1526,10 +1526,10 @@ function test_highs_feasibility()
1526
end
1527
1528
function test_highs_optimization()
1529
- model = MOI.Utilities.Model{Float64}()
+ model = MOI.Utilities.Model{Int}()
1530
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)
+ MOI.add_constraint(model, x, MOI.Interval(1, 10))
+ MOI.set(model, MOI.ObjectiveFunction{MOI.VariableIndex}(), x)
1533
MOI.set(model, MOI.ObjectiveSense(), MOI.MAX_SENSE)
1534
solver = MiniZinc.Optimizer{Int}("highs")
1535
index_map, _ = MOI.optimize!(solver, model)
0 commit comments