Skip to content

Commit

Permalink
fix check of available bestpscand in branch_relpscost.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ambros-gleixner authored and GioniMexi committed Oct 10, 2024
1 parent f430c47 commit 6c524fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scip/branch_relpscost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,8 @@ SCIP_RETCODE execRelpscost(
for( c = 0; c < nbranchcands; ++c )
{
if( needsStrongBranching(scip, branchrule, branchcands[c], branchcandsfrac[c],
bestpscand > 0 ? branchcands[bestpscand] : NULL,
bestpscand > 0 ? branchcandsfrac[bestpscand] : 0.0,
bestpscand >= 0 ? branchcands[bestpscand] : NULL,
bestpscand >= 0 ? branchcandsfrac[bestpscand] : 0.0,
reliable, relerrorthreshold, clevel, useancpscost) )
{
useancpscost = FALSE;
Expand Down Expand Up @@ -1336,8 +1336,8 @@ SCIP_RETCODE execRelpscost(
size = MIN(downsize, upsize);

usesb = needsStrongBranching(scip, branchrule, branchcands[c], branchcandsfrac[c],
bestpscand > 0 ? branchcands[bestpscand] : NULL,
bestpscand > 0 ? branchcandsfrac[bestpscand] : 0.0,
bestpscand >= 0 ? branchcands[bestpscand] : NULL,
bestpscand >= 0 ? branchcandsfrac[bestpscand] : 0.0,
reliable, relerrorthreshold, clevel, FALSE);

/* count the number of variables that are completely uninitialized */
Expand Down

0 comments on commit 6c524fa

Please sign in to comment.