Forum Discussion
FICO
6 years agoCommunity Manager
How to increase floating point precision in Python interface
Hello, I am working on some variables that take very small values (to the order of E-8). Default settings of Xpress Python interface seems to be assuming certain values (the cutoff appears to be numb...
FICO
6 years agoCommunity Manager
Hello,
in Xpress, continuous variables can have any value, even below 1e-8. The floating point precision of all variables in the Optimizer is 64 bit (i.e. double precision). However, the tolerance on feasibility and/or integrality can be tightened so that, for example, variables lower and upper bounds are satisfied more precisely. The two controls feastol and mipsol determine by how much feasibility and integrality can be violated before a solution is deemed infeasible (or integer infeasible). These can be checked with
p.controls.feastol
p.controls.miptol
In general though, I believe your problem is of a numerical nature and it would be much better, in my opinion, to reformulate the problem so that variables can take larger values.
I hope this helps. Regards,
Pietro
