Skip to content

Commit 02248f6

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents 179b8b4 + 9533831 commit 02248f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+192
-221
lines changed

src/scip/benders.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,6 @@ SCIP_RETCODE SCIPbendersActivate(
28722872
SCIP_CALL( SCIPpqueueInsert(benders->subprobqueue, benders->solvestat[i]) );
28732873
}
28742874

2875-
28762875
if( SCIPsetFindEventhdlr(set, NODESOLVED_EVENTHDLR_NAME) == NULL )
28772876
{
28782877
/* adding an eventhandler for updating the lower bound when the root node is solved. */
@@ -6204,7 +6203,7 @@ void SCIPbendersRemoveSubproblems(
62046203

62056204
/** returns the main auxiliary variable that is used the subproblem objective function. */
62066205
SCIP_VAR* SCIPbenderGetMasterAuxiliaryVar(
6207-
SCIP_BENDERS* benders /**< Benders' decomposition */
6206+
SCIP_BENDERS* benders /**< Benders' decomposition */
62086207
)
62096208
{
62106209
assert(benders != NULL);

src/scip/benderscut_int.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ SCIP_RETCODE createBenderscutData(
115115
SCIP_CALL( SCIPallocBlockMemoryArray(scip, &benderscutdata->subprobconstant, benderscutdata->nsubproblems) );
116116
SCIP_CALL( SCIPallocBlockMemoryArray(scip, &benderscutdata->firstcut, benderscutdata->nsubproblems) );
117117

118-
119118
for( i = 0; i < benderscutdata->nsubproblems; i++ )
120119
{
121120
benderscutdata->subprobconstant[i] = benderscutdata->cutconstant;

src/scip/benderscut_nogood.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static
8484
void checkSubproblemValidity(
8585
SCIP_BENDERS* benders, /**< the benders' decomposition structure */
8686
SCIP_BENDERSCUT* benderscut /**< the benders' decomposition cut method */
87-
)
87+
)
8888
{
8989
SCIP_BENDERSCUTDATA* benderscutdata;
9090
int nmastervars;

src/scip/branch_relpscost.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,6 @@ SCIP_Real cdfProbability(
902902
return 0.0;
903903
else
904904
return zeroprob + (1.0 - zeroprob) * (1.0 - pow(mingain / proposedgain, rate));
905-
906905
}
907906
else if(distributioncdf == EXPONENTIALDISTRIBUTION)
908907
{
@@ -930,7 +929,6 @@ SCIP_Real expectedTreeSize(
930929
int distributioncdf /**< distribution type (PARETODISTRIBUTION, EXPONENTIALDISTRIBUTION, LOGNORMALDISTRIBUTION) */
931930
)
932931
{
933-
934932
SCIP_Real ptotal = 0.0;
935933
SCIP_Real totalimprovedtree = 0.0;
936934

@@ -1760,7 +1758,6 @@ SCIP_RETCODE execRelpscost(
17601758

17611759
for( i = 0; continueStrongBranchingLookahead(scip, i, ninitcands, lookahead, maxlookahead, nbdchgs, nbdconflicts, maxbdchgs, maxnsblpiterations) && continueStrongBranchingTreeSizeEstimation(scip, branchruledata, lookahead, maxlookahead); ++i )
17621760
{
1763-
17641761
SCIP_Real down;
17651762
SCIP_Real up;
17661763
SCIP_Real downgain;

src/scip/certificate.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,6 @@ SCIP_RETCODE SCIPcertificatePrintMirCut(
20822082
}
20832083
SCIP_CALL( SCIPhashmapInsertLong(certificate->rowdatahash, SCIProwGetRowExact(row), certificate->indexcounter - 1) );
20842084

2085-
20862085
SCIP_CALL( SCIPcertificateFreeAggrInfo(set, certificate, lp, aggrinfo, row) );
20872086
SCIP_CALL( SCIPcertificateFreeMirInfo(set, certificate, lp, mirinfo, row) );
20882087

@@ -3385,7 +3384,7 @@ SCIP_RETCODE SCIPcertificatePrintCutoffConflictingBounds(
33853384
ubindex = SCIPvarGetUbCertificateIndexLocal(var);
33863385
}
33873386
assert( SCIPrationalIsGT(lb, ub) );
3388-
SCIP_CALL(SCIPrationalCreateBuffer(SCIPbuffer(scip), &lowerbound));
3387+
SCIP_CALL( SCIPrationalCreateBuffer(SCIPbuffer(scip), &lowerbound) );
33893388

33903389
SCIPcertificatePrintProofMessage(certificate, "BoundConflict%d ", certificate->indexcounter);
33913390
SCIPcertificatePrintProofMessage(certificate, "G ");

src/scip/certificate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ SCIP_RETCODE SCIPcertificatePrintGlobalBound(
457457

458458
/* prints information for constraint to certificate file */
459459
SCIP_RETCODE SCIPconsPrintCertificateExactLinear(
460-
SCIP* scip, /**< SCIP data structure */
461-
SCIP_CONS* cons /**< constraint */
460+
SCIP* scip, /**< SCIP data structure */
461+
SCIP_CONS* cons /**< constraint */
462462
);
463463

464464
/** returns the index of the given constraint in the certificate */

src/scip/conflict_dualproofanalysis.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ SCIP_RETCODE proofsetAddAggrrow(
313313
proofset->certificateline = (SCIP_Longint)aggrrow->certificateline;
314314
}
315315

316-
317316
return SCIP_OKAY;
318317
}
319318

@@ -993,8 +992,8 @@ SCIP_RETCODE createAndAddProofcons(
993992
SCIP_RATIONAL** coefs_exact;
994993
SCIP_VAR** consvars;
995994

996-
SCIP_CALL(SCIPrationalCreateBuffer(SCIPbuffer(set->scip), &lhs_exact));
997-
SCIP_CALL(SCIPrationalCreateBuffer(SCIPbuffer(set->scip), &rhs_exact));
995+
SCIP_CALL( SCIPrationalCreateBuffer(SCIPbuffer(set->scip), &lhs_exact) );
996+
SCIP_CALL( SCIPrationalCreateBuffer(SCIPbuffer(set->scip), &rhs_exact) );
998997
SCIPrationalSetNegInfinity(lhs_exact);
999998
SCIPrationalSetReal(rhs_exact, rhs);
1000999
SCIP_CALL( SCIPrationalCreateBufferArray(SCIPbuffer(set->scip), &coefs_exact, nnz) );

src/scip/conflict_graphanalysis.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2523,7 +2523,6 @@ SCIP_RETCODE conflictAddBound(
25232523
SCIP_Real relaxedbd /**< relaxed bound */
25242524
)
25252525
{
2526-
25272526
SCIP_Bool success;
25282527

25292528
assert(SCIPvarIsActive(var));

src/scip/conflict_resolution.c

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,6 @@ SCIP_RETCODE MirReduction(
14791479
SCIP_CALL( SCIPcalcMIR(set->scip, refsol, POSTPROCESS, BOUNDSWITCH, USEVBDS, FALSE, FIXINTEGRALRHS, NULL, NULL,
14801480
MINFRAC, MAXFRAC, 1.0, aggrrow, cutcoefs, &cutrhs, cutinds, &cutnnz, NULL, NULL, &cutislocal, &success) );
14811481

1482-
14831482
if( success )
14841483
{
14851484
assert(!cutislocal);
@@ -1745,7 +1744,7 @@ SCIP_RETCODE slackReducingContinuousBdchgQueue(
17451744
if( SCIPpqueueNElems(conflict->continuousbdchgqueue) != 0 )
17461745
SCIPpqueueClear(conflict->continuousbdchgqueue);
17471746

1748-
/** For a row of the form ax >= b, we can add all continuous bound changes before inferbdchgidx that reduce the slack
1747+
/* For a row of the form ax >= b, we can add all continuous bound changes before inferbdchgidx that reduce the slack
17491748
* for each continuous variable x_k with coefficient a_k:
17501749
* - a_k > 0: then add bound changes (if not already present). Uses SCIPvarGetUbchgInfo() to get the latest
17511750
* bound change used in the slack of row.
@@ -2040,7 +2039,7 @@ SCIP_RETCODE SCIPconflictAddConflictCon(
20402039

20412040
boundtype = conflictrow->vals[idx] > 0.0 ? SCIP_BOUNDTYPE_LOWER : SCIP_BOUNDTYPE_UPPER;
20422041

2043-
/** Since the conflictrow is in the form a*x >= b:
2042+
/* Since the conflictrow is in the form a*x >= b:
20442043
* For integer variables:
20452044
* coef > 0: The lower bound change is equal to ceil(lhs / coef)
20462045
* coef < 0: The upper bound change is equal to floor(lhs / coef)
@@ -2181,7 +2180,6 @@ SCIP_Real computeScaleReason(
21812180

21822181
scale = REALABS( coefconf / coefreas );
21832182
return scale;
2184-
21852183
}
21862184

21872185
/** compute the resolved conflict row resolvedrow = row1 + scale * row2 */
@@ -2622,7 +2620,7 @@ SCIP_RETCODE getConflictRow(
26222620
SCIP_CALL( computeSlack(set, vars, conflictrow, currbdchginfo, NULL, NULL) );
26232621
}
26242622

2625-
/** The conflict row might not be infeasible.
2623+
/* The conflict row might not be infeasible.
26262624
* This may not be true is if the conflict is found by some non-linear propagation argument:
26272625
* - by a negated clique in the knapsack constraint handler
26282626
* - by propagating a ranged row with a gcd argument
@@ -2688,7 +2686,6 @@ SCIP_RETCODE executeResolutionStep(
26882686
if( !(*successresolution) )
26892687
return SCIP_OKAY;
26902688

2691-
26922689
SCIP_CALL( computeSlack(set, vars, resolvedconflictrow, currbdchginfo, fixbounds, fixsides) );
26932690

26942691
/* return if the reduction is off */
@@ -2807,7 +2804,6 @@ SCIP_RETCODE executeResolutionStep(
28072804
residx, successresolution) );
28082805

28092806
SCIP_CALL( computeSlack(set, vars, resolvedconflictrow, currbdchginfo, fixbounds, fixsides) );
2810-
28112807
}
28122808
}
28132809
}
@@ -2939,7 +2935,6 @@ SCIP_RETCODE addConflictRows(
29392935

29402936
if( SCIPsetIsLT(set, conflictrowtoadd->coefquotient, set->conf_maxcoefquot) )
29412937
{
2942-
29432938
SCIP_Bool success;
29442939

29452940
SCIP_CALL( SCIPconflictAddConflictCon(conflict, blkmem, set, stat, transprob, origprob, tree, reopt,
@@ -3104,14 +3099,14 @@ SCIP_RETCODE conflictAnalyzeResolution(
31043099
SCIP_CALL( SCIPsetAllocBufferArray(set, &fixsides, nvars) );
31053100
SCIP_CALL( SCIPsetAllocBufferArray(set, &fixbounds, nvars) );
31063101

3107-
/** set value in fixsides to 0 to indicate that a variable is not fixed
3102+
/* set value in fixsides to 0 to indicate that a variable is not fixed
31083103
* if a variable is set at an upper bound, then the value is 1
31093104
* if a variable is set at a lower bound, then the value is -1
31103105
*/
31113106
for( i = 0; i < nvars; ++i )
31123107
fixsides[i] = 0;
31133108

3114-
/** main loop:
3109+
/* main loop:
31153110
* --------------------------------
31163111
* - we start with the initial conflict row and the first bound change to
31173112
* resolve
@@ -3222,7 +3217,7 @@ SCIP_RETCODE conflictAnalyzeResolution(
32223217

32233218
SCIPdebug(printConflictRow(conflictrow, set, vars, RESOLVED_CONFLICT_ROWTYPE));
32243219

3225-
/** A positive slack means that the conflict row is not infeasible anymore.
3220+
/* A positive slack means that the conflict row is not infeasible anymore.
32263221
* Unfortunately we cannot guarrante that the slack becomes zero after reducing
32273222
* the reason (even if we have only binary variables).
32283223
* Two issues are non-linear propagations, e.g.
@@ -3325,8 +3320,8 @@ SCIP_RETCODE conflictAnalyzeResolution(
33253320

33263321
nconstoadd = (set->conf_resfuiplevels > 0) ? MIN(set->conf_resfuiplevels, conflict->nconflictrows) : conflict->nconflictrows;
33273322

3328-
SCIP_CALL(addConflictRows(conflict, blkmem, set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
3329-
eventfilter, cliquetable, nconstoadd, nconss, nconfvars));
3323+
SCIP_CALL( addConflictRows(conflict, blkmem, set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
3324+
eventfilter, cliquetable, nconstoadd, nconss, nconfvars) );
33303325
}
33313326

33323327
freeConflictResources(conflict, blkmem, set, fixbounds, fixsides);

src/scip/cons_cumulative.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ struct SCIP_ConshdlrData
218218

219219
SCIP_DECL_SOLVECUMULATIVE((*solveCumulative)); /**< method to use a single cumulative condition */
220220

221-
222221
/* statistic values which are collected if SCIP_STATISTIC is defined */
223222
#ifdef SCIP_STATISTIC
224223
SCIP_Longint nlbtimetable; /**< number of times the lower bound was tightened by the time-table propagator */
@@ -310,8 +309,8 @@ int inferInfoToInt(
310309
/** rounds real to int and maps for large absolute values */
311310
static
312311
int boundedConvertRealToInt(
313-
SCIP* scip, /**< scip data structure */
314-
SCIP_Real real /**< double bound to convert */
312+
SCIP* scip, /**< scip data structure */
313+
SCIP_Real real /**< double bound to convert */
315314
)
316315
{
317316
int maxval;
@@ -8500,7 +8499,7 @@ SCIP_RETCODE createCapacityRestriction(
85008499
}
85018500

85028501
SCIP_CALL( SCIPflushRowExtensions(scip, row) );
8503-
SCIPdebug( SCIP_CALL(SCIPprintRow(scip, row, NULL)) );
8502+
SCIPdebug( SCIP_CALL( SCIPprintRow(scip, row, NULL) ) );
85048503

85058504
if( consdata->demandrowssize == 0 )
85068505
{
@@ -8984,7 +8983,7 @@ SCIP_RETCODE createCapacityRestrictionIntvars(
89848983
}
89858984

89868985
SCIP_CALL( SCIPflushRowExtensions(scip, row) );
8987-
SCIPdebug( SCIP_CALL(SCIPprintRow(scip, row, NULL)) );
8986+
SCIPdebug( SCIP_CALL( SCIPprintRow(scip, row, NULL) ) );
89888987

89898988
SCIP_CALL( SCIPaddRow(scip, row, TRUE, cutoff) );
89908989

0 commit comments

Comments
 (0)