Result index of attribute

As I mentioned here: Constraints that do not work together - #4 by odow, 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