Skip to content

Commit

Permalink
fix InexactError on conversion for HiGHS solver
Browse files Browse the repository at this point in the history
  • Loading branch information
thchr committed Aug 30, 2022
1 parent dd1c53c commit 902eb10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zarate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ end
function order_layers!(layer2nodes, is_before)
# Cunning trick: we need to go from the `before` matrix to an actual order list
# we can do this by sorting when having `lessthan` read from the `before` matrix
is_before_func(n1, n2) = Bool(value(is_before[n1][n2]))
is_before_func(n1, n2) = round(Bool, value(is_before[n1][n2]))::Bool
for layer in layer2nodes
sort!(layer; lt=is_before_func)
end
Expand Down

0 comments on commit 902eb10

Please sign in to comment.