# Setting Knitro options

**URL:** https://discourse.julialang.org/t/setting-knitro-options/51637
**Category:** Optimization (Mathematical)
**Created:** [December 10, 2020, 11:41pm UTC](https://discourse.julialang.org/t/setting-knitro-options/51637 "2020-12-10T23:41:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Arega\_Getaneh](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)
#### Post date: [December 10, 2020, 11:41pm UTC](https://discourse.julialang.org/t/setting-knitro-options/51637/1 "2020-12-10T23:41:11Z")

</div>

I am using Knitro solver for MPEC problem. However, while solving, the solver exited before reaching the optimal decision and the information reads as ` EXIT: Problem appears to be unbounded. Iterate is feasible and objective magnitude > objrange`. I checked the Knitro documentation how to solve `objrange` and they do not have example code how to fix the problem for JuMP. I appreciate any suggestion with the same experience.

---

<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: [December 11, 2020, 12:33am UTC](https://discourse.julialang.org/t/setting-knitro-options/51637/2 "2020-12-11T00:33:21Z")

</div>

This almost certainly means your problem is unbounded (the default for `objrange` is `1e20`).

However, you can set solver-specific options like

```nohighlight
model = Model(KNITRO.Optimizer)
set_optimizer_attribute(model, "objrange", 1e20)

```
