# Current status with callbacks

**URL:** <https://discourse.julialang.org/t/current-status-with-callbacks/29942>\
**Category:** Optimization (Mathematical)\
**Created:** [October 15, 2019, 2:13pm UTC](https://discourse.julialang.org/t/current-status-with-callbacks/29942 "2019-10-15T14:13:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![blegat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blegat/32/217090_2.png) [@blegat](https://discourse.julialang.org/u/blegat)\
**Post date:** [October 15, 2019, 3:06pm UTC](https://discourse.julialang.org/t/current-status-with-callbacks/29942/3 "2019-10-15T15:06:28Z")

</div>

You can try Gurobi callbacks with [https://github.com/JuliaOpt/Gurobi.jl/pull/258](https://github.com/JuliaOpt/Gurobi.jl/pull/258)  
To use the Gurobi-specific callback with JuMP v0.19 or v0.20, do

```julia
using JuMP
model = direct_model(Gurobi.Optimizer())
...
MOI.set(model, Gurobi.CallbackFunction(), (cb_data, cb_where) -> begin
    ...
end)
optimize!(model)

```

---

_[View the full topic](https://discourse.julialang.org/t/current-status-with-callbacks/29942)._
