# Lazy constraint

**URL:** https://discourse.julialang.org/t/lazy-constraint/116650
**Category:** Optimization (Mathematical)
**Created:** [July 5, 2024, 9:38am UTC](https://discourse.julialang.org/t/lazy-constraint/116650 "2024-07-05T09:38:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ahmad88](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmad88/32/32437_2.png) [@ahmad88](https://discourse.julialang.org/u/ahmad88)
#### Post date: [July 5, 2024, 9:38am UTC](https://discourse.julialang.org/t/lazy-constraint/116650/1 "2024-07-05T09:38:09Z")

</div>

I am trying to use benders decomposition with callback, at some point I have to add a lazy constraint to a model as follows

> MOI.submit(model, MOI.LazyConstraint(cb\_data), cut)  
> What is the way if I want to remove the cut from the model?  
> Thanks

---

<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 5, 2024, 9:55am UTC](https://discourse.julialang.org/t/lazy-constraint/116650/2 "2024-07-05T09:55:32Z")

</div>

You cannot remove cuts from a callback. They must be globally valid.
