Skip to content

Commit 694928f

Browse files
committed
Fix
1 parent 3c068d0 commit 694928f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utilities/constraints.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ function add_scalar_constraint(model::MOI.ModelLike,
1818
func::Union{MOI.ScalarAffineFunction{T},
1919
MOI.ScalarQuadraticFunction{T}},
2020
set::MOI.AbstractScalarSet;
21-
own::Bool=false) where T
21+
own_function::Bool=false) where T
2222
set = shift_constant(set, -func.constant)
23-
if !own
23+
if !own_function
2424
func = copy(func)
2525
end
2626
func.constant = zero(T)

0 commit comments

Comments
 (0)