Skip to content

Commit 0391d5e

Browse files
committed
try to optimize the loading
1 parent 56349dc commit 0391d5e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/test-utils.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ end
134134
ncon = OptimizationProblems.eval(Symbol(:get_, prob, :_ncon))()
135135

136136
for T in list_types
137-
nlp = if (nvar + ncon < 10000)
138-
eval(Meta.parse("ADNLPProblems.$(prob)(type=$(T))"))
139-
else
140-
eval(Meta.parse("ADNLPProblems.$(prob)(type=$T, " * simp_backend * ")"))
141-
end
137+
nlp = make_ad_nlp(prob; type = T)
142138
test_multi_precision(T, nlp)
143139
end
144140
end

0 commit comments

Comments
 (0)