cocoto / glpk-online

Html interface for GLPK.js solver
https://cocoto.github.io/glpk-online/
GNU General Public License v2.0
12 stars 6 forks source link

Use <pre> for log and solver output #9

Closed ojdo closed 4 years ago

ojdo commented 4 years ago

Just a suggestion: for consistency with the terminal usage, a fixed-width font would preserve any ascii-art or simply formatted tabular output within the solver output. I heavily make use of that for simple text tables, e.g.:

printf{t in time}:
    "%2i:\t%6g\t%6g\t%5g | %5g\t%5g\t%5g\n", 
    t, demand[t], supply[t], electricity_price[t], 
    storage_level[t], energy_purchase[t], energy_sold[t];
cocoto commented 4 years ago

Good idea, thank you for your contribution