Skip to content

Commit

Permalink
Disable leftover value check
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Aug 31, 2024
1 parent b6e5fe2 commit 06990f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/irregular/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 06990f2

Please sign in to comment.