Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/algorithms/Dichotomy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function test_vector_of_variables_objective()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.add_constraint(model, sum(1.0 * xi for xi in x), MOI.GreaterThan(1.0))
MOI.optimize!(model)
MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
return
end

Expand Down
9 changes: 9 additions & 0 deletions test/algorithms/DominguezRios.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,15 @@ function test_issue_105()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.optimize!(model)
@test MOI.get(model, MOI.ResultCount()) == 6
y = [MOI.get(model, MOI.ObjectiveValue(i)) for i in 1:6]
@test sort!(y) == [
[2380.0, 81.0, 18.0],
[2440.0, 78.0, 18.0],
[2500.0, 75.0, 18.0],
[2560.0, 72.0, 18.0],
[2620.0, 69.0, 18.0],
[2680.0, 66.0, 18.0],
]
return
end

Expand Down
2 changes: 1 addition & 1 deletion test/algorithms/EpsilonConstraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function test_vector_of_variables_objective()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.add_constraint(model, sum(1.0 * xi for xi in x), MOI.GreaterThan(1.0))
MOI.optimize!(model)
MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
return
end

Expand Down
2 changes: 1 addition & 1 deletion test/algorithms/Hierarchical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function test_vector_of_variables_objective()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.add_constraint(model, sum(1.0 * xi for xi in x), MOI.GreaterThan(1.0))
MOI.optimize!(model)
MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
return
end

Expand Down
9 changes: 9 additions & 0 deletions test/algorithms/KirlikSayin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,15 @@ function test_issue_105()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.optimize!(model)
@test MOI.get(model, MOI.ResultCount()) == 6
y = [MOI.get(model, MOI.ObjectiveValue(i)) for i in 1:6]
@test sort!(y) == [
[2380.0, 81.0, 18.0],
[2440.0, 78.0, 18.0],
[2500.0, 75.0, 18.0],
[2560.0, 72.0, 18.0],
[2620.0, 69.0, 18.0],
[2680.0, 66.0, 18.0],
]
return
end

Expand Down
2 changes: 1 addition & 1 deletion test/algorithms/Lexicographic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function test_vector_of_variables_objective()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.add_constraint(model, sum(1.0 * xi for xi in x), MOI.GreaterThan(1.0))
MOI.optimize!(model)
MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
return
end

Expand Down
9 changes: 9 additions & 0 deletions test/algorithms/TambyVanderpooten.jl
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,15 @@ function test_issue_105()
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.optimize!(model)
@test MOI.get(model, MOI.ResultCount()) == 6
y = [MOI.get(model, MOI.ObjectiveValue(i)) for i in 1:6]
@test sort!(y) == [
[2380.0, 81.0, 18.0],
[2440.0, 78.0, 18.0],
[2500.0, 75.0, 18.0],
[2560.0, 72.0, 18.0],
[2620.0, 69.0, 18.0],
[2680.0, 66.0, 18.0],
]
return
end

Expand Down
Loading