# JuMP : how to read a lp problem from file (lp FORMAT) with variables names?

**URL:** <https://discourse.julialang.org/t/jump-how-to-read-a-lp-problem-from-file-lp-format-with-variables-names/133008>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump\
**Created:** [October 9, 2025, 12:50pm UTC](https://discourse.julialang.org/t/jump-how-to-read-a-lp-problem-from-file-lp-format-with-variables-names/133008 "2025-10-09T12:50:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [October 9, 2025, 6:59pm UTC](https://discourse.julialang.org/t/jump-how-to-read-a-lp-problem-from-file-lp-format-with-variables-names/133008/2 "2025-10-09T18:59:58Z")

</div>

So “Names registered in the model: none” means that we didn’t store anything in `object_dictionary(model)`, so you can’t do, for example, `model[:x]`.

But variable and constraint names are read, so you can do `variable_by_name(model, "x")`.

To display the solution, you could do:

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

```

---

_[View the full topic](https://discourse.julialang.org/t/jump-how-to-read-a-lp-problem-from-file-lp-format-with-variables-names/133008)._
