Menu

#8 Fixed a bug in IBEA

V4.5
open
Bug fixed (1)
1
2014-10-13
2014-10-13
No

A bug in IBEA has been fixed (thanks for Dimo Brockhoff for reporting it)

Discussion

  • Antonio J. Nebro

    The calcHypervolumeIndicator() method contains this piece of code:

    {
      if (a < b)
      {
         volume = calcHypervolumeIndicator(p_ind_a, null, d - 1, maximumValues, minimumValues) *
         (b - a) / r;
         volume += calcHypervolumeIndicator(p_ind_a, p_ind_b, d - 1, maximumValues, minimumValues) *
         (max - b) / r;
      }
      else
      {
         volume = calcHypervolumeIndicator(p_ind_a, p_ind_b, d - 1, maximumValues, minimumValues) *
         (max - b) / r;
      }
    }
    

    The bug is in the last sentence (the b should be a). The correct code then is:

    {
      if (a < b)
      {
         volume = calcHypervolumeIndicator(p_ind_a, null, d - 1, maximumValues, minimumValues) *
         (b - a) / r;
         volume += calcHypervolumeIndicator(p_ind_a, p_ind_b, d - 1, maximumValues, minimumValues) *
         (max - b) / r;
      }
      else
      {
         volume = calcHypervolumeIndicator(p_ind_a, p_ind_b, d - 1, maximumValues, minimumValues) *
         (max - a) / r;
      }
    }
    
     
  • Antonio J. Nebro

     

Log in to post a comment.

MongoDB Logo MongoDB