@@ -228,18 +228,20 @@ If a solver's `GenericExecutionStats` contains a `solver_specific` dictionary, t
228228
229229Here is an example showing how to populate `solver_specific` and place those fields in a stats table:
230230```julia
231- using ADNLPModels, DataFrames, SolverCore
232-
233- nlp = ADNLPModel(x -> sum(x .^ 2), [1.0, 1.0])
234- stats = SolverCore.GenericExecutionStats(nlp)
235- SolverCore.set_solver_specific!(stats, :isConvex, true)
236- SolverCore.set_solver_specific!(stats, :inner_iterations, 7)
237-
238- df = DataFrame(
239- solver = ["newton"],
240- status = [stats.status],
241- isConvex = [stats.solver_specific[:isConvex]],
242- inner_iterations = [stats.solver_specific[:inner_iterations]],
243- )
244- pretty_stats(stdout, df)
231+ import NLPModels: reset!
232+ using NLPModelsTest, DataFrames, SolverCore, SolverBenchmark
233+
234+ function newton(nlp)
235+ stats = GenericExecutionStats(nlp)
236+ set_solver_specific!(stats, :isConvex, true)
237+ return stats
238+ end
239+
240+ solvers = Dict(:newton => newton)
241+ problems = [NLPModelsTest.BROWNDEN()]
242+ stats = bmark_solvers(solvers, problems)
243+
244+ # Access the solver-specific column `:isConvex` for the `:newton` solver
245+ df_newton = stats[:newton]
246+ df_newton.isConvex
245247```
0 commit comments