Originally posted by: SystemAdmin
First thing I would check would be that model, objective and all things belong to model and objective come from the same environment (which must be env). I can't recall what happens when you try to mix IloEnvironments in the C++ API (Java mercifully spares me this), but I'm pretty sure it's bad, and might possibly cause premature heat death of the universe (or create politicians, or something equally disastrous).
Second thing I would do would be to look for null/uninitialized/invalid pointers, since C++ thrives on those things.
Paul
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#CPLEXOptimizers#DecisionOptimization