# Nonconvex JuMP model to DictModel cannot see constraints

**URL:** https://discourse.julialang.org/t/nonconvex-jump-model-to-dictmodel-cannot-see-constraints/111485
**Category:** Optimization (Mathematical)
**Tags:** question
**Created:** [March 11, 2024, 8:15pm UTC](https://discourse.julialang.org/t/nonconvex-jump-model-to-dictmodel-cannot-see-constraints/111485 "2024-03-11T20:15:57Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)
#### Post date: [March 11, 2024, 11:40pm UTC](https://discourse.julialang.org/t/nonconvex-jump-model-to-dictmodel-cannot-see-constraints/111485/3 "2024-03-11T23:40:15Z")

</div>

> [@rtapia](#):
>
> `@constraint jump_model sum(x) <= 1`

Found the bug. For some reason, Nonconvex only supports named JuMP constraints! This is not intentional and I will try to fix it. But a workaround is:

```julia
@constraint jump_model c1 sum(x) <= 1

```

---

_[View the full topic](https://discourse.julialang.org/t/nonconvex-jump-model-to-dictmodel-cannot-see-constraints/111485)._
