diff options
author | Arnur Nigmetov <anigmetov@lbl.gov> | 2022-04-09 17:33:15 -0700 |
---|---|---|
committer | Arnur Nigmetov <anigmetov@lbl.gov> | 2022-04-09 17:33:15 -0700 |
commit | 8fbae1d789b3c9d7e9b079284c85489d8dcd7e65 (patch) | |
tree | c884ea100a702c7a6cb1cef083168ed59d7e0f31 /wasserstein/include/auction_oracle_kdtree_restricted.hpp | |
parent | e62d16d7b1c42163de7b21ab74a780c3c1cf8e45 (diff) |
Major cleanupupstream/latest
Diffstat (limited to 'wasserstein/include/auction_oracle_kdtree_restricted.hpp')
-rw-r--r-- | wasserstein/include/auction_oracle_kdtree_restricted.hpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/wasserstein/include/auction_oracle_kdtree_restricted.hpp b/wasserstein/include/auction_oracle_kdtree_restricted.hpp index f0e7ac6..e86a5d5 100644 --- a/wasserstein/include/auction_oracle_kdtree_restricted.hpp +++ b/wasserstein/include/auction_oracle_kdtree_restricted.hpp @@ -270,7 +270,6 @@ IdxValPair<Real_> AuctionOracleKDTreeRestricted<Real_, PointContainer_>::get_opt // and vice versa. size_t best_item_idx { k_invalid_index }; - size_t second_best_item_idx { k_invalid_index }; size_t best_diagonal_item_idx { k_invalid_index }; Real best_item_value; Real second_best_item_value; @@ -297,17 +296,14 @@ IdxValPair<Real_> AuctionOracleKDTreeRestricted<Real_, PointContainer_>::get_opt best_item_idx = proj_item_idx; best_item_value = proj_item_value; second_best_item_value = best_diagonal_item_value_; - second_best_item_idx = best_diagonal_item_idx; } else if (proj_item_value < second_best_diagonal_item_value_) { best_item_idx = best_diagonal_item_idx; best_item_value = best_diagonal_item_value_; second_best_item_value = proj_item_value; - second_best_item_idx = proj_item_idx; } else { best_item_idx = best_diagonal_item_idx; best_item_value = best_diagonal_item_value_; second_best_item_value = second_best_diagonal_item_value_; - second_best_item_idx = second_best_diagonal_item_idx_; } } else { // for normal bidder get 2 best items among non-diagonal points from |