Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix InexactError on conversion for HiGHS solver #26

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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