Skip to content

Commit a0cdf3f

Browse files
committed
fix coverage again
1 parent 56193e3 commit a0cdf3f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Argmax/Argmax.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function ArgmaxBenchmark(; instance_dim::Int=10, nb_features::Int=5, seed=nothin
4040
return ArgmaxBenchmark(instance_dim, nb_features, model)
4141
end
4242

43-
Utils.is_minimization_problem(::ArgmaxBenchmark) = false
43+
function Utils.is_minimization_problem(::ArgmaxBenchmark)
44+
return false
45+
end
4446

4547
"""
4648
$TYPEDSIGNATURES

src/Argmax2D/Argmax2D.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function Argmax2DBenchmark(; nb_features::Int=5, seed=nothing, polytope_vertex_r
4444
return Argmax2DBenchmark(nb_features, model, polytope_vertex_range)
4545
end
4646

47-
Utils.is_minimization_problem(::Argmax2DBenchmark) = false
47+
function Utils.is_minimization_problem(::Argmax2DBenchmark)
48+
return false
49+
end
4850

4951
maximizer(θ; instance, kwargs...) = instance[argmax(dot(θ, v) for v in instance)]
5052

0 commit comments

Comments
 (0)