# Modeling large dense LP with jump

**URL:** <https://discourse.julialang.org/t/modeling-large-dense-lp-with-jump/2557>\
**Category:** Optimization (Mathematical)\
**Created:** [March 9, 2017, 10:01am UTC](https://discourse.julialang.org/t/modeling-large-dense-lp-with-jump/2557 "2017-03-09T10:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre-Louis\_Poirion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pierre-louis_poirion/32/19257_2.png) [@Pierre-Louis\_Poirion](https://discourse.julialang.org/u/Pierre-Louis_Poirion)\
**Post date:** [March 9, 2017, 10:01am UTC](https://discourse.julialang.org/t/modeling-large-dense-lp-with-jump/2557/1 "2017-03-09T10:01:18Z")

</div>

Hi

I am solve large dense LP (10^5 variables almost all coeff are non-zero) with jump and cplex.  
Now i am modeling the problem with the matrix:  
@constraint(m, A\*x==b)  
But it takes some time to create the model.

Is there some tips to optimize the model creation in JuMP ?

Thanks  
PL

---

<div class="post-metadata">

**Author:** ![miles.lubin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miles.lubin/32/279_2.png) [@miles.lubin](https://discourse.julialang.org/u/miles.lubin)\
**Post date:** [March 9, 2017, 10:29pm UTC](https://discourse.julialang.org/t/modeling-large-dense-lp-with-jump/2557/2 "2017-03-09T22:29:30Z")

</div>

JuMP is designed for sparse problems and uses sparse data structures. There will always be some unnecessary overhead for modeling dense problems. You’re welcome to profile the JuMP code to find the bottleneck, but you may be better served by using the [`linprog`](http://mathprogbasejl.readthedocs.io/en/latest/linprog.html) function directly from MathProgBase.

For more technical details, see a [previous discussion](https://github.com/JuliaOpt/JuMP.jl/issues/969).
