Skip to content

Commit b5d9e27

Browse files
committed
Use first representative
1 parent 81f9792 commit b5d9e27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/posteriormodel.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ namespace bayesopt
103103
return true;
104104
if( std::lexicographical_compare(this->mData.mX[j].begin(), this->mData.mX[j].end(), this->mData.mX[i].begin(), this->mData.mX[i].end()) )
105105
return false;
106-
if( this->mData.mY[i] != this->mData.mY[j] )
107-
return this->mData.mY[i] < this->mData.mY[j];
108-
return i > j;
106+
return i < j;
109107
});
110108

111109
size_t beginposition = 0;

0 commit comments

Comments
 (0)