Skip to content

Commit 62c4ecf

Browse files
committed
FIX: increase tol for integers conversion in switch states.
1 parent 0a1f48a commit 62c4ecf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/data_model/transformations/math2ravens.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ end
5252

5353

5454
# -------- FIX States solution from Gurobi ---- Some "state" values for switches are -1.0287133995719573e-10
55-
function _zero_tiny(x; tol=1e-9)
55+
function _zero_tiny(x; tol=1e-6)
5656
return abs(x) < tol ? 0.0 : x
5757
end
5858

59-
function _round_almost_integer(x; tol=1e-9)
59+
function _round_almost_integer(x; tol=1e-6)
6060
# Get the nearest integer to x.
6161
r = round(Int, x)
6262

0 commit comments

Comments
 (0)