@@ -5519,11 +5519,11 @@ SCIP_RETCODE multiAggregateBinvar(
5519
5519
{
5520
5520
SCIP_Bool redundant ;
5521
5521
5522
- SCIPdebugMsg (scip , "aggregating %s = 1 - %s\n" , SCIPvarGetName (vars [pos ]), SCIPvarGetName (vars [nvars - pos - 1 ]));
5523
-
5524
5522
/* perform aggregation on variables resulting from a set-packing constraint */
5525
5523
SCIP_CALL ( SCIPaggregateVars (scip , vars [pos ], vars [nvars - pos - 1 ], 1.0 , 1.0 , 1.0 , infeasible , & redundant , aggregated ) );
5526
- assert (* infeasible || * aggregated );
5524
+
5525
+ if ( * aggregated )
5526
+ SCIPdebugMsg (scip , "aggregated %s = 1 - %s\n" , SCIPvarGetName (vars [pos ]), SCIPvarGetName (vars [nvars - pos - 1 ]));
5527
5527
5528
5528
return SCIP_OKAY ;
5529
5529
}
@@ -5832,8 +5832,6 @@ SCIP_RETCODE removeDoubleAndSingletonsAndPerformDualpresolve(
5832
5832
5833
5833
if ( nuplocks == 1 && objval <= 0 )
5834
5834
{
5835
- SCIPdebugMsg (scip , "dualpresolve, aggregating %s + %s = 1, in set-packing constraint %s\n" , SCIPvarGetName (var ), SCIPvarGetName (consdata -> vars [1 ]), SCIPconsGetName (cons ));
5836
-
5837
5835
/* perform aggregation on variables resulting from a set-packing constraint */
5838
5836
SCIP_CALL ( SCIPaggregateVars (scip , var , consdata -> vars [1 ], 1.0 , 1.0 , 1.0 , & infeasible , & redundant , & aggregated ) );
5839
5837
@@ -5843,11 +5841,14 @@ SCIP_RETCODE removeDoubleAndSingletonsAndPerformDualpresolve(
5843
5841
break ;
5844
5842
}
5845
5843
5846
- assert (aggregated );
5847
- ++ (* naggrvars );
5844
+ if ( aggregated )
5845
+ {
5846
+ SCIPdebugMsg (scip , "dualpresolve, aggregated %s + %s = 1, in set-packing constraint %s\n" , SCIPvarGetName (var ), SCIPvarGetName (consdata -> vars [1 ]), SCIPconsGetName (cons ));
5847
+ ++ (* naggrvars );
5848
5848
5849
- SCIP_CALL ( SCIPdelCons (scip , cons ) );
5850
- ++ (* ndelconss );
5849
+ SCIP_CALL ( SCIPdelCons (scip , cons ) );
5850
+ ++ (* ndelconss );
5851
+ }
5851
5852
5852
5853
continue ;
5853
5854
}
@@ -5863,8 +5864,6 @@ SCIP_RETCODE removeDoubleAndSingletonsAndPerformDualpresolve(
5863
5864
5864
5865
if ( nuplocks == 1 && objval <= 0 )
5865
5866
{
5866
- SCIPdebugMsg (scip , "dualpresolve, aggregating %s + %s = 1, in set-packing constraint %s\n" , SCIPvarGetName (var ), SCIPvarGetName (consdata -> vars [0 ]), SCIPconsGetName (cons ));
5867
-
5868
5867
/* perform aggregation on variables resulting from a set-packing constraint */
5869
5868
SCIP_CALL ( SCIPaggregateVars (scip , var , consdata -> vars [0 ], 1.0 , 1.0 , 1.0 , & infeasible , & redundant , & aggregated ) );
5870
5869
@@ -5873,11 +5872,15 @@ SCIP_RETCODE removeDoubleAndSingletonsAndPerformDualpresolve(
5873
5872
* cutoff = TRUE;
5874
5873
break ;
5875
5874
}
5876
- assert (aggregated );
5877
- ++ (* naggrvars );
5878
5875
5879
- SCIP_CALL ( SCIPdelCons (scip , cons ) );
5880
- ++ (* ndelconss );
5876
+ if ( aggregated )
5877
+ {
5878
+ SCIPdebugMsg (scip , "dualpresolve, aggregated %s + %s = 1, in set-packing constraint %s\n" , SCIPvarGetName (var ), SCIPvarGetName (consdata -> vars [0 ]), SCIPconsGetName (cons ));
5879
+ ++ (* naggrvars );
5880
+
5881
+ SCIP_CALL ( SCIPdelCons (scip , cons ) );
5882
+ ++ (* ndelconss );
5883
+ }
5881
5884
5882
5885
continue ;
5883
5886
}
@@ -5887,8 +5890,6 @@ SCIP_RETCODE removeDoubleAndSingletonsAndPerformDualpresolve(
5887
5890
{
5888
5891
SCIP_Bool redundant ;
5889
5892
5890
- SCIPdebugMsg (scip , "aggregating %s + %s = 1, in set-partition constraint %s\n" , SCIPvarGetName (consdata -> vars [0 ]), SCIPvarGetName (consdata -> vars [1 ]), SCIPconsGetName (cons ));
5891
-
5892
5893
/* perform aggregation on variables resulting from a set-partitioning constraint */
5893
5894
SCIP_CALL ( SCIPaggregateVars (scip , consdata -> vars [0 ], consdata -> vars [1 ], 1.0 , 1.0 , 1.0 , & infeasible , & redundant , & aggregated ) );
5894
5895
@@ -5898,11 +5899,14 @@ SCIP_RETCODE removeDoubleAndSingletonsAndPerformDualpresolve(
5898
5899
break ;
5899
5900
}
5900
5901
5901
- assert (aggregated );
5902
- ++ (* naggrvars );
5902
+ if ( aggregated )
5903
+ {
5904
+ SCIPdebugMsg (scip , "aggregated %s + %s = 1, in set-partition constraint %s\n" , SCIPvarGetName (consdata -> vars [0 ]), SCIPvarGetName (consdata -> vars [1 ]), SCIPconsGetName (cons ));
5905
+ ++ (* naggrvars );
5903
5906
5904
- SCIP_CALL ( SCIPdelCons (scip , cons ) );
5905
- ++ (* ndelconss );
5907
+ SCIP_CALL ( SCIPdelCons (scip , cons ) );
5908
+ ++ (* ndelconss );
5909
+ }
5906
5910
5907
5911
continue ;
5908
5912
}
0 commit comments