Skip to content

Commit

Permalink
changed if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
IWNMWE committed Aug 16, 2024
1 parent 4bf9b01 commit c0fb97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ensmallen_bits/agemoea/agemoea_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ inline void AGEMOEA::NormalizeFront(
else
{
normalization = 1. / hyperplane;
if (hyperplane.has_inf() || hyperplane.has_nan())
if (normalization.has_inf() || normalization.has_nan())
{
normalization = arma::max(vectorizedObjectives, 1);
}
Expand Down

0 comments on commit c0fb97a

Please sign in to comment.