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 ...
) |
|
Should this be an independent package? Looks like there is nothing restricting the logger to either NLPModels and stats |
|
It could also be great to have the |
|
Just a link to keep track of when discussing this: https://github.com/bjack205/SolverLogging.jl |
|
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? |
Uh oh!
There was an error while loading. Please reload this page.
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, ...), wherekeyhas to aStringbut value can beStringfor formatting strings, e.g."%8.1e"Typefor default types, e.g.,IntSymbolfor specific formats, e.g.:Rplusfor positive real (?)solver(value, ...)in ordersolver(key => value, ...)and default to missing whatever is not there.All reactions