struct VarOrderLt

1     struct VarOrderLt {
2         const vec<double>&  activity;
3         bool operator () (Var x, Var y) const { return activity[x] > activity[y]; }
4         VarOrderLt(const vec<double>&  act) : activity(act) { }
5     };
1 Heap<VarOrderLt>    order_heap;       // A priority queue of variables ordered with respect to the variable activity.

 

posted on 2020-10-12 18:39  QzZq  阅读(89)  评论(0)    收藏  举报

导航