[CHiPPS] Is This A Bug?
化高峰
shimuxi at gmail.com
Sat Feb 25 08:29:41 EST 2012
Your Honor Processors,
I am puzzled by some code I found in
Alps/src/AlpsSearchStrategy.h line 82-84 and in
Alps/src/AlpsSearchStrategy.cpp line 55-58
There are comment in AlpsSearchStrategy.h
/** This returns true if the quality of the subtree y is better
(the less the better) than that the subtree x. */
virtual bool compare(AlpsSubTree * x, AlpsSubTree * y);
While in AlpsSearchStrategy.cpp
bool
AlpsTreeSelectionBest::compare(AlpsSubTree * x, AlpsSubTree * y)
{
return (x->getQuality() < y->getQuality());
}
obviously it will return true if x is better than y, is this
conflicted to AlpsSearchStrategy.h?
Because I can`t find where the compare() is called, so I can`t make
sure if it is a bug.
Could explain it to me? Thank you very much!
Best Wishes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/chipps/attachments/20120225/e3ecbf5d/attachment.html>
More information about the CHiPPS
mailing list