From 06990f22b1348174ed4580e78c926b03e464b00c Mon Sep 17 00:00:00 2001 From: Florian Fontan Date: Sat, 31 Aug 2024 13:44:55 +0200 Subject: [PATCH] Disable leftover value check --- src/irregular/solution.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/irregular/solution.cpp b/src/irregular/solution.cpp index 8ef1d3eb..9e17af0d 100644 --- a/src/irregular/solution.cpp +++ b/src/irregular/solution.cpp @@ -103,13 +103,13 @@ void Solution::add_item( - (x_max_ - bin_type.x_min) * (y_max_ - bin_type.y_min); } - if (strictly_lesser(leftover_value_, 0.0)) { - write("solution_irregular.json"); - throw std::invalid_argument( - "irregular::Solution::add_item." - " Negative leftover value: " - + std::to_string(leftover_value_) + "."); - } + //if (strictly_lesser(leftover_value_, 0.0)) { + // write("solution_irregular.json"); + // throw std::invalid_argument( + // "irregular::Solution::add_item." + // " Negative leftover value: " + // + std::to_string(leftover_value_) + "."); + //} } void Solution::append(