# Julia with Knitro

**URL:** https://discourse.julialang.org/t/julia-with-knitro/81686
**Category:** Optimization (Mathematical)
**Tags:** jump
**Created:** [May 25, 2022, 10:00pm UTC](https://discourse.julialang.org/t/julia-with-knitro/81686 "2022-05-25T22:00:20Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![Bougron](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bougron/32/210766_2.png) [@Bougron](https://discourse.julialang.org/u/Bougron)
#### Post date: [July 19, 2024, 11:53am UTC](https://discourse.julialang.org/t/julia-with-knitro/81686/21 "2024-07-19T11:53:54Z")

</div>

Sorry I’m replying very late as I’m not active in this forum, I just noticed this thread as it was linked to Knitro.jl a few days ago. It seems you are solving a MINLP problem, you should use mip\_maxtime\_cpu and mip\_maxtime\_real (all options are described in [online documentation](https://www.artelys.com/app/docs/knitro/3_referenceManual/userOptions.html)).

I’m a member of Knitro development team, do not hesitate to contact us at  
 ![support](https://global.discourse-cdn.com/julialang/original/3X/d/2/d2e20f6932d88b8c3a1e2e3b79f21ff42ca3e146.png)  
when you encounter an issue with Knitro itself. You are apparently not the first ones to get confused with this option so I will take that back internally, we should probably raise a hint when you try to use this option for a MIP problem.

Always happy to help, let me know how it goes.

---

<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 23, 2024, 12:59am UTC](https://discourse.julialang.org/t/julia-with-knitro/81686/22 "2024-07-23T00:59:41Z")

</div>

To follow up on this, I have fixed a bug in KNITRO.jl, so `set_time_limit_sec(model, 60)` should now work.

---

<div class="post-metadata">

### Author: ![daro.slai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daro.slai/32/48757_2.png) [@daro.slai](https://discourse.julialang.org/u/daro.slai)
#### Post date: [August 5, 2024, 11:54am UTC](https://discourse.julialang.org/t/julia-with-knitro/81686/23 "2024-08-05T11:54:18Z")

</div>

Hi! it works fine!

[Previous page](https://discourse.julialang.org/t/julia-with-knitro/81686.md?page=1)
