# Tree limit JuMP 0.21

**URL:** <https://discourse.julialang.org/t/tree-limit-jump-0-21/38135>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [April 24, 2020, 10:27am UTC](https://discourse.julialang.org/t/tree-limit-jump-0-21/38135 "2020-04-24T10:27:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baprata](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baprata/32/204269_2.png) [@baprata](https://discourse.julialang.org/u/baprata)\
**Post date:** [April 24, 2020, 10:27am UTC](https://discourse.julialang.org/t/tree-limit-jump-0-21/38135/1 "2020-04-24T10:27:36Z")

</div>

I am modeling an optimization problem within Julia/Atom and CPLEX. I need to control the tree limit size. What is the syntax for the tree limit in JuMP 0.21? Thanks in advance, Bruno

---

<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:** [April 27, 2020, 7:58pm UTC](https://discourse.julialang.org/t/tree-limit-jump-0-21/38135/2 "2020-04-27T19:58:45Z")

</div>

You will need to set the appropriate solve option via

```nohighlight
set_optimizer_attribute(model, "<OPTION_NAME>", limit)

```

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 27, 2020, 8:43pm UTC](https://discourse.julialang.org/t/tree-limit-jump-0-21/38135/3 "2020-04-27T20:43:43Z")

</div>

Just to complement, this depends on the solver you are using, and different from some options like `verbose/quiet` that JuMP implements a generic way of setting it for any solver, this does not have a generic way of setting (because probably not all solvers implement it).
