Skip to content

Commit

Permalink
debug mode only (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon authored Aug 3, 2023
1 parent 5550728 commit 0b55046
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/time_tracking_lmo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ function FrankWolfe.compute_extreme_point(lmo::TimeTrackingLMO, d; kwargs...)
cleanup_solver(lmo.lmo.o)
v = FrankWolfe.compute_extreme_point(lmo.lmo, d; kwargs)

if !is_linear_feasible(lmo, v)
@debug "Vertex not linear feasible $(v)"
@assert is_linear_feasible(lmo, v)
@debug begin
if !is_linear_feasible(lmo, v)
@debug "Vertex not linear feasible $(v)"
end
end
v[lmo.int_vars] = round.(v[lmo.int_vars])

Expand Down

0 comments on commit 0b55046

Please sign in to comment.