Skip to content

Commit 711ae40

Browse files
committed
larger threshold
1 parent a1e3981 commit 711ae40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/IndependentSet.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ mis_tropical_tensor = solve(problem, SizeMax())
151151

152152
mis_compactify!(mis_tropical_tensor)
153153

154-
# It will eliminate some entries having no contribution to the MIS size when embeding this local graph into a larger one.
154+
# It will eliminate some entries having no contribution to the MIS size when embeding this local graph into a larger one.

src/bounding.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function backward_tropical(mode, ixs, @nospecialize(xs::Tuple), iy, @nospecializ
2424
niy = ixs[i]
2525
if mode isa AllConfigs
2626
mask = zeros(Bool, size(xs[i]))
27-
# here, we set a threshold `1e-15` to avoid round off errors.
28-
mask .= inv.(einsum(EinCode(nixs, niy), nxs, size_dict)) .<= xs[i] .* Tropical(largest_k(mode)-1+1e-15)
27+
# here, we set a threshold `1e-12` to avoid round off errors.
28+
mask .= inv.(einsum(EinCode(nixs, niy), nxs, size_dict)) .<= xs[i] .* Tropical(largest_k(mode)-1+1e-12)
2929
push!(masks, mask)
3030
elseif mode isa SingleConfig
3131
A = zeros(eltype(xs[i]), size(xs[i]))

0 commit comments

Comments
 (0)