Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v9-minor'
Browse files Browse the repository at this point in the history
  • Loading branch information
scip-ci committed Nov 24, 2024
2 parents a3c3014 + b790625 commit 2169baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Fixed bugs
- apply same feasibility definition in PaPILO as SCIP to avoid numerical inconsistencies
- check variable cancellation in SCIPvarAddVlb() and SCIPvarAddVub() to avert wrong infeasibility
- SCIPfreeReoptSolve now also clears the partial solutions
- fixed bug in calculation of "fractionality score" for spatial branching candidates in cons_nonlinear

Unit tests
----------
Expand Down
4 changes: 3 additions & 1 deletion src/scip/cons_nonlinear.c
Original file line number Diff line number Diff line change
Expand Up @@ -6714,6 +6714,7 @@ SCIP_RETCODE collectBranchingCandidates(
cands[*ncands].expr = consdata->varexprs[i];
cands[*ncands].var = var;
cands[*ncands].auxviol = SCIPgetExprViolScoreNonlinear(consdata->varexprs[i]);
cands[*ncands].fractionality = 0.0;
++(*ncands);

/* invalidate violscore-tag, so that we do not register variables that appear in multiple constraints
Expand Down Expand Up @@ -6752,6 +6753,7 @@ SCIP_RETCODE collectBranchingCandidates(
cands[*ncands].expr = expr;
cands[*ncands].var = var;
cands[*ncands].auxviol = SCIPgetExprViolScoreNonlinear(expr);
cands[*ncands].fractionality = 0.0;
++(*ncands);
}
}
Expand Down Expand Up @@ -7169,7 +7171,7 @@ void scoreBranchingCandidates(

if( maxscore.fractionality > 0.0 )
{
cands[c].fractionality += conshdlrdata->branchfracweight * cands[c].fractionality / maxscore.fractionality;
cands[c].weighted += conshdlrdata->branchfracweight * cands[c].fractionality / maxscore.fractionality;
weightsum += conshdlrdata->branchfracweight;

ENFOLOG( SCIPinfoMessage(scip, enfologfile, " %+g*%6.2g(frac)", conshdlrdata->branchfracweight, cands[c].fractionality / maxscore.fractionality); )
Expand Down

0 comments on commit 2169baf

Please sign in to comment.