Skip to content

Commit

Permalink
move comment after line
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Dec 1, 2024
1 parent 08448cb commit 5256992
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ function _minimum_distance(hx, lx)
cnt += 1
end
@constraint(model, sum(weight[i] * x[i] for i in 1:num_var) == 1)
# Ensure the model is solved and feasible
optimize!(model)
# Ensure the model is solved and feasible
is_solved_and_feasible(model) || error("Did not solve model")
opt_val = sum(value(x[i]) for i in 1:n)
return Int(opt_val)
Expand Down

0 comments on commit 5256992

Please sign in to comment.