Accessing JuMP variables after reading model from file

Ok, so Discourse showed me this answer as soon as I posted: JuMP : how to read a lp problem from file (lp FORMAT) with variables names?

with Oscar’s nice solution:

solution = Dict(name(x) => value(x) for x in all_variables(model))

or use

all_constraints(model; include_variable_in_set_constraints=true)

I think this is just about ‘findability’ - possibly a good inclusion in the docs in Solutions section and/or Models.