JuliaSmoothOptimizers / SolverTools.jl

Tools for developing nonlinear optimization solvers.
Other
26 stars 18 forks source link

Add empty values in logs #151

Closed tmigot closed 3 years ago

tmigot commented 3 years ago

Is it possible to insert empty values in log_row ?

The aim is that the empty entry would still be aligned with the other columns. This is useful, for instance, when printing logs for an algorithm that computes two different steps.

abelsiqueira commented 3 years ago

Not currently. There is no stored information about columns. I was looking into creating a logger structure to do this.

tmigot commented 3 years ago

Would it be simpler if the user gives a Val{Float64} instead of an empty Float64? Then, the function row_formatter could put the right number of spaces.

abelsiqueira commented 3 years ago

It's worth a try. I'm finishing a draft of the logger structure, so we can compare approaches.