We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282f51f commit e8d8059Copy full SHA for e8d8059
1 file changed
test/runtests.jl
@@ -7,6 +7,7 @@ end
7
include("testBundleAdjustmentModels.jl")
8
include("testBundleAdjustmentAllocations.jl")
9
10
+# https://github.com/JuliaSmoothOptimizers/NLPModelsTest.jl/blob/src/dercheck.jl#L43
11
function jacobian_residual_check(
12
nlp::AbstractNLSModel;
13
x::AbstractVector = nlp.meta.x0,
@@ -45,5 +46,6 @@ end
45
46
47
@testset "Test derivative Jacobian of residual" begin
48
nls = BundleAdjustmentModel("problem-49-7776-pre")
49
+ x = 10 * [-(-1.0)^i for i = 1:nls.meta.nvar]
50
@test length(jacobian_residual_check(nls)) == 0
51
end
0 commit comments