# Improve CBC solve time

**URL:** <https://discourse.julialang.org/t/improve-cbc-solve-time/42082>\
**Category:** Optimization (Mathematical)\
**Created:** [June 26, 2020, 12:18am UTC](https://discourse.julialang.org/t/improve-cbc-solve-time/42082 "2020-06-26T00:18:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeneralPoxter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/generalpoxter/32/17695_2.png) [@GeneralPoxter](https://discourse.julialang.org/u/GeneralPoxter)\
**Post date:** [June 26, 2020, 12:18am UTC](https://discourse.julialang.org/t/improve-cbc-solve-time/42082/1 "2020-06-26T00:18:53Z")

</div>

While watching the output of the CBC optimizer, I noticed that after a while, the optimizer would get “stuck” on a best solution, even though I set the primal tolerance and allowable gap to relatively low values.  
I also noticed that the optimizer was attempting many cuts, none of which went active.

So I was wondering:

1. How to tell the CBC optimizer where to begin looking for solutions or where to move towards when solving (since for my problem, the solutions always tended to be very near the upper bound) to avoid the issue of it getting stuck
2. How to tell the CBC optimizer to stop performing unnecessary cuts

I am using JuMP for this, and unfortunately the [documentation for the CBC interface for JuMP](https://github.com/jump-dev/Cbc.jl/blob/master/README.md) is sparse.

---

<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:** [June 26, 2020, 2:39am UTC](https://discourse.julialang.org/t/improve-cbc-solve-time/42082/2 "2020-06-26T02:39:54Z")

</div>

1. [Variables · JuMP](https://jump.dev/JuMP.jl/v0.21.1/variables/#Start-values-1)

2. You can find some Cbc parameters here: [https://projects.coin-or.org/CoinBinary/export/1059/OptimizationSuite/trunk/Installer/files/doc/cbcCommandLine.pdf](https://projects.coin-or.org/CoinBinary/export/1059/OptimizationSuite/trunk/Installer/files/doc/cbcCommandLine.pdf)

---

<div class="post-metadata">

**Author:** ![GeneralPoxter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/generalpoxter/32/17695_2.png) [@GeneralPoxter](https://discourse.julialang.org/u/GeneralPoxter)\
**Post date:** [June 26, 2020, 3:00am UTC](https://discourse.julialang.org/t/improve-cbc-solve-time/42082/3 "2020-06-26T03:00:20Z")

</div>

Nice, thanks for the references.  
Specifically for JuMP, I was able to turn cuts off with:

```julia
set_optimizer_attribute(model, "cuts", "off")

```
