Also sorry if this is intended/unavoidable behaviour or if I'm just misinformed (not very experienced with optimization).
For the real problem I am interested in a feasible solution even though it is not optimal so I ran into the issue because I only checked the primal status.
I guess it is enough to look at the termination status to determine that the solver considered the problem infeasible and only look at the primal status if not infeasible.
Sorry if this is the wrong place for this.
MWE with a constraint that 10 binary variables shall add up to 11:
Also sorry if this is intended/unavoidable behaviour or if I'm just misinformed (not very experienced with optimization).
For the real problem I am interested in a feasible solution even though it is not optimal so I ran into the issue because I only checked the primal status.
I guess it is enough to look at the termination status to determine that the solver considered the problem infeasible and only look at the primal status if not infeasible.