File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function gulf(
3535 m = min (m, 100 )
3636
3737 function F! (r, x; m = m)
38- for i = 1 : n
38+ for i = 1 : m
3939 r[i] =
4040 exp (- abs ((25 + (- 50 * log (i * one (T) / 100 ))^ (2 // 3 )) * m * i * x[2 ])^ x[3 ] / x[1 ]) -
4141 i // 100
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ include("test_utils.jl")
4545 end
4646 end
4747
48+ @testset " Test for nls_prob flag for $prob " begin
49+ nls_prob = eval (Meta. parse (" ADNLPProblems.$(prob) (use_nls = true)" ))
50+ if (typeof (nls_prob) <: ADNLPModels.ADNLSModel ) # if the nls_flag is not supported we ignore the prob
51+ test_in_place_residual (prob, nls_prob)
52+ end
53+ end
54+
4855 @testset " Test problems compatibility for $prob " begin
4956 prob_fn = eval (Meta. parse (" PureJuMP.$(prob) " ))
5057 model = prob_fn (n = ndef)
You can’t perform that action at this time.
0 commit comments