From 0b5504678397c80b4ca5b9a2db3b0e9d397b26a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Besan=C3=A7on?= Date: Thu, 3 Aug 2023 15:31:47 +0200 Subject: [PATCH] debug mode only (#141) --- src/time_tracking_lmo.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/time_tracking_lmo.jl b/src/time_tracking_lmo.jl index dbabc8743..43457da5c 100644 --- a/src/time_tracking_lmo.jl +++ b/src/time_tracking_lmo.jl @@ -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])