Originally posted by: SystemAdmin
Dear colleagues,
I have an issue concerning CPLEX precision in number representation (I work with Concert Library, C++). Basically, the question is: Which is the smallest positive number than can be represented with a variable of type ILOFLOAT? I mean, does CPLEX works with them as floats or as doubles? Is there something better than ILOFLOAT?
Now, more details: I have a linear model where I work with probabilities and products of these probabilities (products of two, three,..., up to let's say 30 of them). This probabilities are of the order of 0.05. My concern comes from the fact that, after having solved the model, I get the solution with 30 decimal figures, but from the 12 on, they are zero (that is, I have variables with value 0 where I know it must 10^-12). On the other hand, when I compute products with doubles (not in a model, just C++), I have no problem in getting accurately values of the order of 10^-90.
I do not know if I have explained myself clearly enough. Thank you for any insight in this question.
Kind regards,
Sergio.
PS: Transforming the probabilities with logarithms/exponentials is something out of the question because it would break the linearity of my model.
#CPLEXOptimizers#DecisionOptimization