# Resetting TimeLimit of Gurobi Optimizer

**URL:** <https://discourse.julialang.org/t/resetting-timelimit-of-gurobi-optimizer/26627>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [July 22, 2019, 12:30pm UTC](https://discourse.julialang.org/t/resetting-timelimit-of-gurobi-optimizer/26627 "2019-07-22T12:30:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 22, 2019, 1:05pm UTC](https://discourse.julialang.org/t/resetting-timelimit-of-gurobi-optimizer/26627/2 "2019-07-22T13:05:54Z")

</div>

It should be

```julia
MOI.set(m, MOI.RawParameter("TimeLimit"), 100.0);

```

but for this to work at the moment, you should checkout [https://github.com/JuliaOpt/JuMP.jl/pull/2003](https://github.com/JuliaOpt/JuMP.jl/pull/2003), [MOI](https://github.com/JuliaOpt/MathOptInterface.jl) master and [https://github.com/JuliaOpt/Gurobi.jl/pull/216/](https://github.com/JuliaOpt/Gurobi.jl/pull/216/). It should work with JuMP v0.20.

In JuMP v0.19, you can hack your way around with

```julia
Gurobi.setparam!(backend(m).optimizer.model.inner, "TimeLimit", 100.0)

```

---

_[View the full topic](https://discourse.julialang.org/t/resetting-timelimit-of-gurobi-optimizer/26627)._
