@@ -98,31 +98,31 @@ impl<'a, M: BnbMetric> BnbIter<'a, M> {
98
98
selector : cs. clone ( ) ,
99
99
is_exclusion,
100
100
} ;
101
- println ! (
101
+ /* println!(
102
102
"\t\t(PUSH) branch={} inclusion={} lb={:?} score={:?}",
103
103
branch.selector,
104
104
!branch.is_exclusion,
105
105
branch.lower_bound,
106
106
self.metric.score(&branch.selector),
107
- ) ;
107
+ );*/
108
108
self . queue . push ( branch) ;
109
- } else {
110
- println ! (
111
- "\t \t ( REJ) branch={} inclusion={} lb={:?} score={:?}" ,
112
- cs,
113
- !is_exclusion,
114
- bound,
115
- self . metric. score( cs) ,
116
- ) ;
117
- }
118
- } else {
119
- println ! (
120
- "\t \t (NO B) branch={} inclusion={} score={:?}" ,
121
- cs,
122
- !is_exclusion,
123
- self . metric. score( cs) ,
124
- ) ;
125
- }
109
+ } /* else {
110
+ println!(
111
+ "\t\t( REJ) branch={} inclusion={} lb={:?} score={:?}",
112
+ cs,
113
+ !is_exclusion,
114
+ bound,
115
+ self.metric.score(cs),
116
+ );
117
+ }*/
118
+ } /* else {
119
+ println!(
120
+ "\t\t(NO B) branch={} inclusion={} score={:?}",
121
+ cs,
122
+ !is_exclusion,
123
+ self.metric.score(cs),
124
+ );
125
+ }*/
126
126
}
127
127
128
128
fn insert_new_branches ( & mut self , cs : & CoinSelector < ' a > ) {
@@ -143,15 +143,15 @@ impl<'a, M: BnbMetric> BnbIter<'a, M> {
143
143
if ( next. value , next. weight ) != to_ban {
144
144
break ;
145
145
}
146
- let ( index , candidate ) = exclusion_cs
146
+ let ( _index , _candidate ) = exclusion_cs
147
147
. candidates ( )
148
148
. find ( |( i, _) | * i == next_index)
149
149
. expect ( "must have index since we are planning to ban it" ) ;
150
150
if is_first_ban {
151
151
is_first_ban = false ;
152
- } else {
153
- println ! ( "banning: [{}] {:?}" , index , candidate ) ;
154
- }
152
+ } /* else {
153
+ println!("banning: [{}] {:?}", _index, _candidate );
154
+ }*/
155
155
exclusion_cs. ban ( next_index) ;
156
156
}
157
157
self . consider_adding_to_queue ( & exclusion_cs, true ) ;
0 commit comments