Skip to content

Commit c23c40c

Browse files
authored
Fix
1 parent 1922dac commit c23c40c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utilities/mockoptimizer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function MOI.add_constraint(
182182
if !mock.add_con_allowed
183183
throw(MOI.AddConstraintNotAllowed{typeof(func),typeof(set)}())
184184
elseif mock.scalar_function_constant_non_zero
185-
MOI.throw_if_scalar_and_constant_not_zero(func, typeof(S))
185+
MOI.throw_if_scalar_and_constant_not_zero(func, typeof(set))
186186
end
187187
ci = MOI.add_constraint(mock.inner_model, xor_indices(func), set)
188188
return xor_index(ci)

0 commit comments

Comments
 (0)