Skip to content

Commit 61d2865

Browse files
authored
Fix missing line in test_objective.jl (#1432)
1 parent fe19bbf commit 61d2865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Test/test_objective.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function test_objective_ObjectiveFunction_constant(
9595
x = MOI.add_variable(model)
9696
f = MOI.ScalarAffineFunction([MOI.ScalarAffineTerm(2.0, x)], 1.0)
9797
MOI.set(model, obj_attr, f)
98+
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
9899
c = MOI.add_constraint(model, MOI.SingleVariable(x), MOI.GreaterThan(1.0))
99100
_test_model_solution(
100101
model,

0 commit comments

Comments
 (0)