# JuMP 0.18 + CPLEX: How to force user cuts?

**URL:** <https://discourse.julialang.org/t/jump-0-18-cplex-how-to-force-user-cuts/23659>\
**Category:** Optimization (Mathematical)\
**Created:** [April 29, 2019, 4:01pm UTC](https://discourse.julialang.org/t/jump-0-18-cplex-how-to-force-user-cuts/23659 "2019-04-29T16:01:01Z")\
**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:** [April 29, 2019, 8:42pm UTC](https://discourse.julialang.org/t/jump-0-18-cplex-how-to-force-user-cuts/23659/2 "2019-04-29T20:42:38Z")

</div>

I suggest manually modifying the source until you get something that works.

Note that `CPX_USECUT_FORCE` will only guarantee that if a cut is added, it will not be purged later on in the solve. It doesn’t guarantee that the callback will be called in the first place.

I don’t think you can control when and how many times CPLEX decides to call your callback.

---

_[View the full topic](https://discourse.julialang.org/t/jump-0-18-cplex-how-to-force-user-cuts/23659)._
