# \#lazy-constraint

**URL:** https://discourse.julialang.org/tag/lazy-constraint/998.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Gurobi lazy constraint issue](https://discourse.julialang.org/t/gurobi-lazy-constraint-issue/113969)

<div class="topic-metadata">

**Author:** [@marouane-f](https://discourse.julialang.org/u/marouane-f)\
**Replies:** 15\
**Last updated:** [May 11, 2024, 12:21am UTC](https://discourse.julialang.org/t/gurobi-lazy-constraint-issue/113969 "2024-05-11T00:21:34Z")

</div>

Hi, I’m implementing a MIP cut generation algorithm on JuMP+Gurobi using MOI.LazyConstraintCallback. Theoretically, the algorithm is correct. However, running tests on a large batch of instances and cross-checking with…

---

## [How to pass a constraint as Lazy with Gurobi?](https://discourse.julialang.org/t/how-to-pass-a-constraint-as-lazy-with-gurobi/110294)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 5\
**Last updated:** [February 19, 2024, 5:57pm UTC](https://discourse.julialang.org/t/how-to-pass-a-constraint-as-lazy-with-gurobi/110294 "2024-02-19T17:57:50Z")

</div>

I want to pass a constraint as Lazy in the beginning of my JuMP model. Note that I do not want it to be a lazy constraint called in a Callback. How am I supposed to do it? The corresponding Gurobi parameter is: It …

---

## [Callback jump MOI interface lazy constraints are not cutting the solution properly](https://discourse.julialang.org/t/callback-jump-moi-interface-lazy-constraints-are-not-cutting-the-solution-properly/79227)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 10:50pm UTC](https://discourse.julialang.org/t/callback-jump-moi-interface-lazy-constraints-are-not-cutting-the-solution-properly/79227 "2022-04-08T22:50:50Z")

</div>

Hey there, can anyone please help me? I am trying to solve a combinatorial optimization problem through lazy constraints using Gurobi as Solver. Bellow a code of my presets and variables: model = Model(Gurobi.Optimizer…
