Skip to content

Commit

Permalink
fix domain check not triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoladicicco committed Jul 23, 2024
1 parent 1f928de commit bfe33f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,7 @@ function _step!(s)
x = _select_worse(s)
_verbose(s, "Selected x = $x")

# TODO: this if statement is currently not working, every variable is treated as integer
if get_domain(s, x) isa ContinuousDomain
if typeof(get_variable(s, x).domain) <: ContinuousDomain
# We perform coordinate descent over the variable axis
best_values, best_swap, tabu = _coordinate_descent_move!(s, x)
else
Expand Down

0 comments on commit bfe33f5

Please sign in to comment.