PowerModels.jl icon indicating copy to clipboard operation
PowerModels.jl copied to clipboard

Provide nicer displays for GenericPowerModel

Open yeesian opened this issue 6 years ago • 3 comments

They are currently not terminal-friendly for interactive usage.

yeesian avatar Jan 29 '19 02:01 yeesian

How would this be different than the print_summary function?

ccoffrin avatar Jan 29 '19 03:01 ccoffrin

print_summary is for the network data dictionary. I imagine they could be the same, but perhaps users might be interested in a more compact display, and see model specific information (e.g. number of variables/constraints/etc) based on the formulation of the GenericPowerModel too?

Currently

network_data = PowerModels.parse_file(case3file)

looks nice in the terminal (since it renders as a Julia Dict), but

pm = build_generic_model(network_data, ACPPowerModel, PowerModels.post_opf)

clobbers the terminal screen (when rendering pm.data).

yeesian avatar Jan 29 '19 03:01 yeesian

Good point. Something more summative would be preferable in that case.

ccoffrin avatar Jan 29 '19 04:01 ccoffrin