Hello everyone, I have a problem that I can just not solve by myself. I am using CPLEX Concert in C++. The problem is, that I have some Variables which are bounded between 0 and 1, but the result still gives me negative values! The program is way too long to show you, but this is how the variables are initialized:
The variable Please let me know if you have an idea, or if I should give some more detail about the problem. I'd greatly appreciate your help, I am clueless... Best regards, Konstantin |

After solving the model, what does IloCplex::getCplexStatus() return?

Good call, Paul!

It was indeed infeasible. Just super weird that it says "Dual Simplex solved the Model" instead of saying it is infeasible. I thought it might have given me the values of the variables of the dual problem or so. Well, the hunt for the bugs goes on, haha!

Thank you, have a nice weekend!

I think Cplex does the right thing, your model is solved, the problem happens to be infeasible, but the the model is solved hence the information "Dual Simplex solved the Model" is fair enough IMO.

Since my answer wasn't an answer, perhaps you could accept your own answer to close the question?

Oh, and I agree with Bo that discovering the model is infeasible counts as solving it. I'm guilty of not checking solver status as often as I should (which is +always+), so I sympathize.