Skip to content

Commit 3fef4ea

Browse files
committed
misc fixes
1 parent 355fc9e commit 3fef4ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gcg/pricer_gcg.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ SCIP_RETCODE ObjPricerGcg::getStabilizedDualObjectiveValue(
23942394
{
23952395
SCIPdebugMessage(" add %g (<%s>, dualsol: %g, bnds: [%g, %g] - %g)\n",
23962396
boundval * dualsol, GCGextendedmasterconsGetName(branchextendedmasterconsdata[i]),
2397-
dualsol, lhs, rhs, GCGextendedmasterconsGetConstant(scip_, branchextendedmasterconsdata[i]));
2397+
dualsol, lhs, rhs, GCGextendedmasterconsGetConstant(gcg, branchextendedmasterconsdata[i]));
23982398
}
23992399
#endif
24002400
*stabdualval += boundval * dualsol;
@@ -5954,7 +5954,7 @@ SCIP_RETCODE GCGmasterTransOrigSolToMasterVars(
59545954
}
59555955

59565956
#ifdef SCIP_DEBUG
5957-
SCIP_CALL( SCIPtrySolFree(scip, &mastersol, TRUE, TRUE, TRUE, TRUE, TRUE, &added) );
5957+
SCIP_CALL( SCIPtrySolFree(masterprob, &mastersol, TRUE, TRUE, TRUE, TRUE, TRUE, &added) );
59585958
#else
59595959
SCIP_CALL( SCIPtrySolFree(masterprob, &mastersol, FALSE, FALSE, TRUE, TRUE, TRUE, &added) );
59605960
#endif

src/gcg/relax_gcg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3665,7 +3665,7 @@ SCIP_RETCODE GCGrelaxIncludeBranchrule(
36653665
pos = relaxdata->nbranchrules;
36663666

36673667
/* store callback functions */
3668-
SCIP_CALL( SCIPallocMemory(origprob, &(relaxdata->branchrules[pos])) ); /*lint !e866*/
3668+
SCIP_CALL( SCIPallocMemory(GCGgetOrigprob(gcg), &(relaxdata->branchrules[pos])) );
36693669
relaxdata->branchrules[pos]->branchrule = branchrule;
36703670
relaxdata->branchrules[pos]->branchactivemaster = branchactivemaster;
36713671
relaxdata->branchrules[pos]->branchdeactivemaster = branchdeactivemaster;

0 commit comments

Comments
 (0)