# Difference in sparsity pattern caused by @NLconstraint and @constraint in JuMP

**URL:** <https://discourse.julialang.org/t/difference-in-sparsity-pattern-caused-by-nlconstraint-and-constraint-in-jump/26919>\
**Category:** Optimization (Mathematical)\
**Created:** [July 28, 2019, 10:28pm UTC](https://discourse.julialang.org/t/difference-in-sparsity-pattern-caused-by-nlconstraint-and-constraint-in-jump/26919 "2019-07-28T22:28:23Z")\
**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:** [July 29, 2019, 8:35am UTC](https://discourse.julialang.org/t/difference-in-sparsity-pattern-caused-by-nlconstraint-and-constraint-in-jump/26919/2 "2019-07-29T08:35:22Z")

</div>

That’s interesting.

Can you provide a minimal working example? (Your problem looks quite large, so can you simplify it while retaining the difference in sparsity pattern?)

If you haven’t already, you may want to read [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/difference-in-sparsity-pattern-caused-by-nlconstraint-and-constraint-in-jump/26919)._
