Skip to content

Commit

Permalink
mpl2: comment
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Apr 5, 2024
1 parent 8b07fd1 commit 6a0188c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mpl2/src/SimulatedAnnealingCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,9 @@ void SimulatedAnnealingCore<T>::attemptCentralization(const float pre_cost)
return;
}

// In order to revert the centralization, we cache the current
// location of the clusters to avoid floating-point evilness.
// In order to revert the centralization, we cache the current location
// of the clusters to avoid floating-point evilness when creating the
// x,y grid to fill the dead space by expanding mixed clusters.
std::vector<std::pair<float, float>> clusters_locations;
for (int& id : pos_seq_) {
clusters_locations.emplace_back(macros_[id].getX(), macros_[id].getY());
Expand Down

0 comments on commit 6a0188c

Please sign in to comment.