# Result index of attribute

**URL:** <https://discourse.julialang.org/t/result-index-of-attribute/87891>\
**Category:** Optimization (Mathematical)\
**Created:** [September 27, 2022, 7:36pm UTC](https://discourse.julialang.org/t/result-index-of-attribute/87891 "2022-09-27T19:36:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 27, 2022, 11:41pm UTC](https://discourse.julialang.org/t/result-index-of-attribute/87891/2 "2022-09-27T23:41:01Z")

</div>

As I mentioned here: [Constraints that do not work together - #4 by odow](https://discourse.julialang.org/t/constraints-that-do-not-work-together/87482/4), you need to check if the solver found a solution before attempting to access a primal value.

In this case, your model is probably infeasible.

Read [Debugging · JuMP](https://jump.dev/JuMP.jl/dev/tutorials/getting_started/debugging/#Debugging-an-infeasible-model)

---

_[View the full topic](https://discourse.julialang.org/t/result-index-of-attribute/87891)._
