I have faced a little weird problem when I use Cplex to solve my test problem. Basically, some of my data are float numbers up to three decimal numbers (For instance, 0.627). But, when I print out the model using the exportModel
command, I noticed that Cplex converts all the float numbers to numbers with much more degree of precision (For example, 0.627 to 0.626999974250793). As a result of this, Cplex gives me the wrong optimal solution. I'd be grateful if you could let me know what is the cause of this error and how I can prevent this convergence?
I should note that I use Concert technology C++.