Skip to content

Commit e8d8059

Browse files
committed
fix
1 parent 282f51f commit e8d8059

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ end
77
include("testBundleAdjustmentModels.jl")
88
include("testBundleAdjustmentAllocations.jl")
99

10+
# https://github.com/JuliaSmoothOptimizers/NLPModelsTest.jl/blob/src/dercheck.jl#L43
1011
function jacobian_residual_check(
1112
nlp::AbstractNLSModel;
1213
x::AbstractVector = nlp.meta.x0,
@@ -45,5 +46,6 @@ end
4546

4647
@testset "Test derivative Jacobian of residual" begin
4748
nls = BundleAdjustmentModel("problem-49-7776-pre")
49+
x = 10 * [-(-1.0)^i for i = 1:nls.meta.nvar]
4850
@test length(jacobian_residual_check(nls)) == 0
4951
end

0 commit comments

Comments
 (0)