jump-dev / Convex.jl

A Julia package for disciplined convex programming
https://jump.dev/Convex.jl/stable/
Other
559 stars 119 forks source link

Improve `Problem` printing to indicate size/complexity #640

Closed ericphanson closed 2 months ago

ericphanson commented 2 months ago

IMO it would be useful if the printing for a Problem showed something like the total size of variables/constraints/etc. I suppose we don't really know that fully until the MOI level, but we could provide some kind of Convex.jl-level estimate by recursing the tree and counting things. In particular, I think these would be useful:

These would serve two purposes:

Ideally we could provide a relatively compact printing with this information.