@@ -17,34 +17,44 @@ const list_problems_PureJuMP = setdiff(list_problems, list_problems_not_PureJuMP
1717const SUITE = BenchmarkGroup ()
1818
1919const SAMPLES = 5
20- const EVALS = 1
20+ const EVALS = 1
2121
2222SUITE[" ADNLPProblems" ] = BenchmarkGroup ()
2323SUITE[" ADNLPProblems" ][" NLP" ] = BenchmarkGroup ()
2424SUITE[" ADNLPProblems" ][" NLP" ][" constructor" ] = BenchmarkGroup ()
2525SUITE[" ADNLPProblems" ][" NLP" ][" obj" ] = BenchmarkGroup ()
2626for pb in list_problems_ADNLPProblems
2727 problem_constructor = getproperty (OptimizationProblems. ADNLPProblems, Symbol (pb))
28- SUITE[" ADNLPProblems" ][" NLP" ][" constructor" ][pb] = @benchmarkable $ (problem_constructor)() samples= SAMPLES evals= EVALS
29- SUITE[" ADNLPProblems" ][" NLP" ][" obj" ][pb] = @benchmarkable obj (nlp, nlp. meta. x0) samples= SAMPLES evals= EVALS setup = (nlp = $ (problem_constructor)())
28+ SUITE[" ADNLPProblems" ][" NLP" ][" constructor" ][pb] =
29+ @benchmarkable $ (problem_constructor)() samples= SAMPLES evals= EVALS
30+ SUITE[" ADNLPProblems" ][" NLP" ][" obj" ][pb] =
31+ @benchmarkable obj (nlp, nlp. meta. x0) samples= SAMPLES evals= EVALS setup =
32+ (nlp = $ (problem_constructor)())
3033end
3134
3235SUITE[" ADNLPProblems" ][" NLS" ] = BenchmarkGroup ()
3336SUITE[" ADNLPProblems" ][" NLS" ][" constructor" ] = BenchmarkGroup ()
3437SUITE[" ADNLPProblems" ][" NLS" ][" obj" ] = BenchmarkGroup ()
35- list_problems_nls_ADNLPProblems = intersect (Symbol .(OptimizationProblems. meta[OptimizationProblems. meta. objtype .== :least_squares , :name ]), list_problems_ADNLPProblems)
38+ list_problems_nls_ADNLPProblems = intersect (
39+ Symbol .(OptimizationProblems. meta[OptimizationProblems. meta. objtype .== :least_squares , :name ]),
40+ list_problems_ADNLPProblems,
41+ )
3642for pb in list_problems_nls_ADNLPProblems
3743 problem_constructor = getproperty (OptimizationProblems. ADNLPProblems, Symbol (pb))
38- SUITE[" ADNLPProblems" ][" NLS" ][" constructor" ][pb] = @benchmarkable $ (problem_constructor)(use_nls = true ) samples= SAMPLES evals= EVALS
39- SUITE[" ADNLPProblems" ][" NLS" ][" obj" ][pb] = @benchmarkable obj (nlp, nlp. meta. x0) samples= SAMPLES evals= EVALS setup = (nlp = $ (problem_constructor)(use_nls = true ))
44+ SUITE[" ADNLPProblems" ][" NLS" ][" constructor" ][pb] =
45+ @benchmarkable $ (problem_constructor)(use_nls = true ) samples= SAMPLES evals= EVALS
46+ SUITE[" ADNLPProblems" ][" NLS" ][" obj" ][pb] =
47+ @benchmarkable obj (nlp, nlp. meta. x0) samples= SAMPLES evals= EVALS setup =
48+ (nlp = $ (problem_constructor)(use_nls = true ))
4049end
4150SUITE[" PureJuMP" ] = BenchmarkGroup ()
4251SUITE[" PureJuMP" ][" constructor" ] = BenchmarkGroup ()
4352SUITE[" PureJuMP" ][" obj" ] = BenchmarkGroup ()
4453for pb in list_problems_PureJuMP
45- problem_constructor = getproperty (OptimizationProblems. PureJuMP, Symbol (pb))
46- SUITE[" PureJuMP" ][" constructor" ][pb] = @benchmarkable $ (problem_constructor)() samples= SAMPLES evals= EVALS
47- SUITE[" PureJuMP" ][" obj" ][pb] = @benchmarkable obj (nlp, nlp. meta. x0) samples= SAMPLES evals= EVALS setup = (
48- nlp = MathOptNLPModel ($ (problem_constructor)())
49- )
54+ problem_constructor = getproperty (OptimizationProblems. PureJuMP, Symbol (pb))
55+ SUITE[" PureJuMP" ][" constructor" ][pb] =
56+ @benchmarkable $ (problem_constructor)() samples= SAMPLES evals= EVALS
57+ SUITE[" PureJuMP" ][" obj" ][pb] =
58+ @benchmarkable obj (nlp, nlp. meta. x0) samples= SAMPLES evals= EVALS setup =
59+ (nlp = MathOptNLPModel ($ (problem_constructor)()))
5060end
0 commit comments