It has often happened that after solving a MILP, my integer or binary variables are getting a value something like `4.237436454375536e-11`

or `1.0000000000008162`

or even `4.0`

. In other words even though a variable is meant to be Integer or Binary it gets real values.

I understand that probably the backend solvers (e.g. CPLEX) are using real numbers to solve the mathematical programming problem.

But since JuMP knows the model description, wouldn’t it be easy to apply a conversion of the solved variables after the backend finished calculations, so that the user directly gets something that would be more reasonable (e.g. `0`

instead of `4.237436454375536e-11`

) ?

Something like that would make it more convenient to do the metaanalysis of the solution.