Solver Logger (what do we want) #20
Replies: 5 comments 13 replies
-
Some initial ideas: we could imagine something in this vein to define the headers and rows at the same time: columns = Dict(
:name => Dict(:header => "name", :format => "%8s"),
:time => Dict(:header => "time", :format => "%6.2f"),
:objective => Dict(:header => "objective", :format => "%9.2e"),
:kkt => Dict(:header => "kkt", :format => "%7.1e"),
# ... etc ...
) I see two improvements that should be relatively easy:
Regarding 1, we should be able to override default formats and write something like columns = Dict(
:name => Dict(:header => "name", :format => DEFAULT_STRING_FMT),
:time => Dict(:header => "time", :format => DEFAULT_TIME_FMT),
:objective => Dict(:header => "objective", :format => OBJECTIVE_FMT),
:kkt => Dict(:header => "kkt", :format => RESIDUAL_FMT),
:solver_specific_value => Dict(:header => "whatever", :format => "%5d"), # override default formats
# ... etc ...
) |
Beta Was this translation helpful? Give feedback.
-
Should this be an independent package? Looks like there is nothing restricting the logger to either NLPModels and stats |
Beta Was this translation helpful? Give feedback.
-
It could also be great to have the |
Beta Was this translation helpful? Give feedback.
-
Just a link to keep track of when discussing this: https://github.com/bjack205/SolverLogging.jl |
Beta Was this translation helpful? Give feedback.
-
Hi all, as a user, I wonder whether there is a way to customize the formats ("%8.1e", "%04d", etc) within the current version of the logger in SolverCore.jl? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. This discussion is related to the Solver refactor. What do we want from the logger?
I'm imagining something like this:
What should the constructor be and what should the values be?
Checklist:
Some initial thought:
SolverTools(key => value, ...)
, wherekey
has to aString
but value can beString
for formatting strings, e.g."%8.1e"
Type
for default types, e.g.,Int
Symbol
for specific formats, e.g.:Rplus
for positive real (?)solver(value, ...)
in ordersolver(key => value, ...)
and default to missing whatever is not there.Beta Was this translation helpful? Give feedback.
All reactions