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
2424 rtol:: Vector{Float64}
2525 all_permutations:: Bool
2626
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
2835 return new (Float64[], default (LexicographicAllPermutations ()))
2936 end
3037end
Original file line number Diff line number Diff line change @@ -167,6 +167,13 @@ function test_vector_of_variables_objective()
167167 return
168168end
169169
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+
170177end
171178
172179TestLexicographic. run_tests ()
You can’t perform that action at this time.
0 commit comments