File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,14 @@ mutable struct Lexicographic <: AbstractAlgorithm
24
24
rtol:: Vector{Float64}
25
25
all_permutations:: Bool
26
26
27
- function Lexicographic ()
27
+ function Lexicographic (; all_permutations:: Union{Nothing,Bool} = nothing )
28
+ if all_permutations != = nothing
29
+ @warn (
30
+ " The `all_permutations` argument to `Lexicographic` was " *
31
+ " removed in v1.0. Set the `MOA.LexicographicAllPermutations()` " *
32
+ " option to `$all_permutations ` instead." ,
33
+ )
34
+ end
28
35
return new (Float64[], default (LexicographicAllPermutations ()))
29
36
end
30
37
end
Original file line number Diff line number Diff line change @@ -167,6 +167,13 @@ function test_vector_of_variables_objective()
167
167
return
168
168
end
169
169
170
+ function test_warn_all_permutations ()
171
+ @test_logs (:warn ,) MOA. Lexicographic (; all_permutations = true )
172
+ @test_logs (:warn ,) MOA. Lexicographic (; all_permutations = false )
173
+ @test_logs MOA. Lexicographic ()
174
+ return
175
+ end
176
+
170
177
end
171
178
172
179
TestLexicographic. run_tests ()
You can’t perform that action at this time.
0 commit comments