|
33 | 33 | end |
34 | 34 |
|
35 | 35 | @testset "No constraint" begin |
36 | | - for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(), |
| 36 | + @testset "$adtype" for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(), |
37 | 37 | AutoFiniteDiff(), AutoModelingToolkit(), AutoSparseForwardDiff(), |
38 | 38 | AutoSparseReverseDiff(), AutoSparse(AutoZygote()), AutoModelingToolkit(true, true), AutoMooncake()] |
39 | 39 | optf = OptimizationFunction(rosenbrock, adtype) |
|
71 | 71 | end |
72 | 72 |
|
73 | 73 | @testset "One constraint" begin |
74 | | - for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(), |
| 74 | + @testset "$adtype" for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(), |
75 | 75 | AutoFiniteDiff(), AutoModelingToolkit(), AutoSparseForwardDiff(), |
76 | 76 | AutoSparseReverseDiff(), AutoSparse(AutoZygote()), AutoModelingToolkit(true, true), AutoMooncake()] |
77 | 77 | cons = (res, x, p) -> (res[1] = x[1]^2 + x[2]^2 - 1.0; return nothing) |
|
92 | 92 | end |
93 | 93 |
|
94 | 94 | @testset "Two constraints" begin |
95 | | - for adtype in [AutoForwardDiff(), AutoZygote(), AutoReverseDiff(), |
| 95 | + @testset "$adtype" for adtype in [AutoForwardDiff(), AutoZygote(), AutoReverseDiff(), |
96 | 96 | AutoFiniteDiff(), AutoModelingToolkit(), AutoSparseForwardDiff(), |
97 | 97 | AutoSparseReverseDiff(), AutoSparse(AutoZygote()), AutoModelingToolkit(true, true), AutoMooncake()] |
98 | 98 | function con2_c(res, x, p) |
|
0 commit comments