@@ -185,8 +185,6 @@ struct SCIP_ConsData
185
185
unsigned int removedfixings :1 ; /**< are all fixed variables removed from the constraint? */
186
186
unsigned int changed :1 ; /**< was constraint changed since last aggregation round in preprocessing? */
187
187
unsigned int normalized :1 ; /**< is the constraint in normalized form? */
188
- unsigned int upgradetried :1 ; /**< was the constraint already tried to be upgraded? */
189
- unsigned int upgraded :1 ; /**< is the constraint upgraded and will it be removed after preprocessing? */
190
188
unsigned int coefsorted :1 ; /**< are the constraint's variables sorted? */
191
189
unsigned int merged :1 ; /**< are the constraint's equal variables already merged? */
192
190
unsigned int cliquesadded :1 ; /**< were the cliques of the constraint already extracted? */
@@ -213,16 +211,13 @@ struct SCIP_EventData
213
211
struct SCIP_ConshdlrData
214
212
{
215
213
SCIP_EVENTHDLR * eventhdlr ; /**< event handler for bound change events */
216
- SCIP_EXLINCONSUPGRADE * * linconsupgrades ; /**< linear constraint upgrade methods for specializing linear constraints */
217
214
SCIP_RATIONAL * maxaggrnormscale ; /**< maximal allowed relative gain in maximum norm for constraint aggregation
218
215
* (0.0: disable constraint aggregation) */
219
216
SCIP_RATIONAL * maxcardbounddist ; /**< maximal relative distance from current node's dual bound to primal bound compared
220
217
* to best node's dual bound for separating knapsack cardinality cuts */
221
218
SCIP_RATIONAL * mingainpernmincomp ; /**< minimal gain per minimal pairwise presolving comparisons to repeat pairwise comparison round */
222
219
SCIP_RATIONAL * maxeasyactivitydelta ;/**< maximum activity delta to run easy propagation on linear constraint
223
220
* (faster, but numerically less stable) */
224
- int linconsupgradessize ;/**< size of linconsupgrade array */
225
- int nlinconsupgrades ; /**< number of linear constraint upgrade methods */
226
221
int tightenboundsfreq ; /**< multiplier on propagation frequency, how often the bounds are tightened */
227
222
int maxrounds ; /**< maximal number of separation rounds per node (-1: unlimited) */
228
223
int maxroundsroot ; /**< maximal number of separation rounds in the root node (-1: unlimited) */
@@ -370,9 +365,6 @@ SCIP_RETCODE conshdlrdataCreate(
370
365
assert (eventhdlr != NULL );
371
366
372
367
SCIP_CALL ( SCIPallocBlockMemory (scip , conshdlrdata ) );
373
- (* conshdlrdata )-> linconsupgrades = NULL ;
374
- (* conshdlrdata )-> linconsupgradessize = 0 ;
375
- (* conshdlrdata )-> nlinconsupgrades = 0 ;
376
368
(* conshdlrdata )-> naddconss = 0 ;
377
369
(* conshdlrdata )-> ncheckserrorbound = 0 ;
378
370
(* conshdlrdata )-> nabotserrorbound = 0 ;
@@ -403,8 +395,6 @@ void conshdlrdataFree(
403
395
assert (conshdlrdata != NULL );
404
396
assert (* conshdlrdata != NULL );
405
397
406
- SCIPfreeBlockMemoryArrayNull (scip , & (* conshdlrdata )-> linconsupgrades , (* conshdlrdata )-> linconsupgradessize );
407
-
408
398
SCIPrationalFreeBlock (SCIPblkmem (scip ), & (* conshdlrdata )-> maxaggrnormscale );
409
399
SCIPrationalFreeBlock (SCIPblkmem (scip ), & (* conshdlrdata )-> maxcardbounddist );
410
400
SCIPrationalFreeBlock (SCIPblkmem (scip ), & (* conshdlrdata )-> maxeasyactivitydelta );
@@ -794,8 +784,6 @@ SCIP_RETCODE consdataCreate(
794
784
(* consdata )-> removedfixings = FALSE;
795
785
(* consdata )-> changed = TRUE;
796
786
(* consdata )-> normalized = FALSE;
797
- (* consdata )-> upgradetried = FALSE;
798
- (* consdata )-> upgraded = FALSE;
799
787
(* consdata )-> indexsorted = (nvars <= 1 );
800
788
(* consdata )-> merged = (nvars <= 1 );
801
789
(* consdata )-> cliquesadded = FALSE;
@@ -3289,7 +3277,6 @@ SCIP_RETCODE chgLhs(
3289
3277
consdata -> lhsreal = SCIPrationalRoundReal (lhs , SCIP_R_ROUND_DOWNWARDS );
3290
3278
consdata -> changed = TRUE;
3291
3279
consdata -> normalized = FALSE;
3292
- consdata -> upgradetried = FALSE;
3293
3280
consdata -> rangedrowpropagated = 0 ;
3294
3281
3295
3282
/* update the lhs of the LP row */
@@ -3414,7 +3401,6 @@ SCIP_RETCODE chgRhs(
3414
3401
consdata -> rhsreal = SCIPrationalRoundReal (rhs , SCIP_R_ROUND_UPWARDS );
3415
3402
consdata -> changed = TRUE;
3416
3403
consdata -> normalized = FALSE;
3417
- consdata -> upgradetried = FALSE;
3418
3404
consdata -> rangedrowpropagated = 0 ;
3419
3405
3420
3406
/* update the rhs of the LP row */
@@ -3509,7 +3495,6 @@ SCIP_RETCODE addCoef(
3509
3495
3510
3496
consdata -> changed = TRUE;
3511
3497
consdata -> normalized = FALSE;
3512
- consdata -> upgradetried = FALSE;
3513
3498
consdata -> cliquesadded = FALSE;
3514
3499
consdata -> implsadded = FALSE;
3515
3500
consdata -> rangedrowpropagated = 0 ;
@@ -3634,7 +3619,6 @@ SCIP_RETCODE delCoefPos(
3634
3619
consdata -> presolved = FALSE;
3635
3620
consdata -> changed = TRUE;
3636
3621
consdata -> normalized = FALSE;
3637
- consdata -> upgradetried = FALSE;
3638
3622
consdata -> cliquesadded = FALSE;
3639
3623
consdata -> implsadded = FALSE;
3640
3624
consdata -> rangedrowpropagated = 0 ;
@@ -3720,7 +3704,6 @@ SCIP_RETCODE chgCoefPos(
3720
3704
consdata -> presolved = FALSE;
3721
3705
consdata -> changed = TRUE;
3722
3706
consdata -> normalized = FALSE;
3723
- consdata -> upgradetried = FALSE;
3724
3707
consdata -> cliquesadded = FALSE;
3725
3708
consdata -> implsadded = FALSE;
3726
3709
consdata -> rangedrowpropagated = 0 ;
@@ -5300,29 +5283,14 @@ SCIP_DECL_CONSEXITPRE(consExitpreExactLinear)
5300
5283
assert (scip != NULL );
5301
5284
assert (SCIPisExact (scip ) || nconss == 0 );
5302
5285
5303
- /* delete all linear constraints that were upgraded to a more specific constraint type;
5304
- * make sure, only active variables remain in the remaining constraints
5305
- */
5286
+ /* make sure, only active variables remain in the remaining constraints */
5306
5287
for ( c = 0 ; c < nconss ; ++ c )
5307
5288
{
5308
- SCIP_CONSDATA * consdata ;
5309
-
5310
5289
if ( SCIPconsIsDeleted (conss [c ]) )
5311
5290
continue ;
5312
5291
5313
- consdata = SCIPconsGetData (conss [c ]);
5314
- assert (consdata != NULL );
5315
-
5316
- if ( consdata -> upgraded )
5317
- {
5318
- SCIPerrorMessage ("exact linear constraint upgrade not implemented yet\n" );
5319
- return SCIP_ERROR ;
5320
- }
5321
- else
5322
- {
5323
- /* since we are not allowed to detect infeasibility in the exitpre stage, we dont give an infeasible pointer */
5324
- SCIP_CALL ( applyFixings (scip , conss [c ], NULL ) );
5325
- }
5292
+ /* since we are not allowed to detect infeasibility in the exitpre stage, we dont give an infeasible pointer */
5293
+ SCIP_CALL ( applyFixings (scip , conss [c ], NULL ) );
5326
5294
}
5327
5295
5328
5296
return SCIP_OKAY ;
0 commit comments