Originally posted by: SystemAdmin
[kev82 said:]
I have my own wrapper class around the C interface to cplex which makes it much easier for me to build my models.
When I am constructing a model, I do it by row. For each variable I encounter I call CPXgetcolindex to get the index, and if it's not been created already I then create it. The issue is that for the first variable it adds there are no names at all in the problem because it has just been created with CPXcreateprob. So I get this really annoying error (1219) printed out.
Is there any way I can disable output before the call to CPXgetcolindex and then enable it again straight after, or similarly, disable the error before the call and the enable it straight after. I do not want to disable output completely, nor do I want to turn off the error checking completely.
Sorry, I'm quite new to cplex, I only got it last Tuesday so I'm having to learn a whole lot very quickly.
Thanks
#CPLEXOptimizers#DecisionOptimization