Skip to content

Commit

Permalink
disable unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed Apr 20, 2023
1 parent 311108c commit bb4f02b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cbc/src/CbcNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4088,7 +4088,7 @@ int CbcNode::chooseDynamicBranch(CbcModel *model, CbcNode *lastNode,
}
}
} else if (model->rootSymmetryInfo() && kColumn >=0) {
CbcObject *obj = (dynamic_cast< CbcBranchingObject * >(branch_))->object();
//CbcObject *obj = (dynamic_cast< CbcBranchingObject * >(branch_))->object();
int returnCode =
model->rootSymmetryInfo()->changeBounds(kColumn,
saveLower,saveUpper,
Expand Down
22 changes: 13 additions & 9 deletions Cbc/src/CbcSymmetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ CbcSymmetry::changeBounds(int iColumn, double * saveLower,
// OK is all same or one fixed to 0 and rest same
int oddOne = -1;
int nOdd = 0;
int first = i;
//int first = i;
marked[i] = 1;
whichMarked[nMarked++] = i;
int j = orbit[i];
Expand Down Expand Up @@ -676,7 +676,7 @@ CbcSymmetry::fixSome(int iColumn, double * columnLower,
// OK is all same or one fixed to 0 and rest same
int oddOne = -1;
int nOdd = 0;
int first = i;
//int first = i;
marked[i] = 1;
whichMarked[nMarked++] = i;
int j = orbit[i];
Expand Down Expand Up @@ -771,7 +771,7 @@ CbcSymmetry::changeBounds(double *saveLower,
// OK is all same or one fixed to 0 and rest same
int oddOne = -1;
int nOdd = 0;
int first = i;
//int first = i;
marked[i] = 1;
whichMarked[nMarked++] = i;
int j = orbit[i];
Expand Down Expand Up @@ -870,7 +870,7 @@ CbcSymmetry::changeBounds2(double *saveLower,
// OK is all same or one fixed to 0 and rest same
int oddOne = -1;
int nOdd = 0;
int first = i;
//int first = i;
marked[i] = 1;
whichMarked[nMarked++] = i;
int j = orbit[i];
Expand Down Expand Up @@ -949,7 +949,7 @@ CbcSymmetry::worthBranching(const double *columnLower, const double *columnUpper
int * originalUpper = whichOrbit_ + numberColumns_;
int * marked = originalUpper + numberColumns_;
int * whichMarked = marked + numberColumns_;
int * save = whichOrbit_+4*numberColumns_;
//int * save = whichOrbit_+4*numberColumns_;
memset(marked,0,numberColumns_*sizeof(int));
for (int iPerm = 0;iPerm < numberPermutations_;iPerm++) {
if (!permutations_[iPerm].numberPerms)
Expand All @@ -965,7 +965,7 @@ CbcSymmetry::worthBranching(const double *columnLower, const double *columnUpper
// OK is all same or one fixed to 0 and rest same
int oddOne = -1;
int nOdd = 0;
int first = i;
//int first = i;
marked[i] = 1;
whichMarked[nMarked++] = i;
int j = orbit[i];
Expand Down Expand Up @@ -1059,7 +1059,7 @@ CbcSymmetry::orbitalFixing2(OsiSolverInterface * solver)
// OK is all same or one fixed to 0 and rest same
int oddOne = -1;
int nOdd = 0;
int first = i;
//int first = i;
marked[i] = 1;
whichMarked[nMarked++] = i;
int j = orbit[i];
Expand Down Expand Up @@ -1165,7 +1165,7 @@ void CbcSymmetry::setupSymmetry(CbcModel * model)
for (iRow = 0; iRow < numberRows; iRow++) {
for (CoinBigIndex j = rowStart[iRow];
j < rowStart[iRow] + rowLength[iRow]; j++) {
int jColumn = column[j];
//int jColumn = column[j];
double value = elementByRow[j];
if (value != 1.0)
num_affine++;
Expand Down Expand Up @@ -1216,7 +1216,7 @@ void CbcSymmetry::setupSymmetry(CbcModel * model)
for (iRow = 0; iRow < numberRows; iRow++) {
for (CoinBigIndex j = rowStart[iRow];
j < rowStart[iRow] + rowLength[iRow]; j++) {
int jColumn = column[j];
//int jColumn = column[j];
double value = elementByRow[j];
if (value == 1.0) {
numberElements += 2;
Expand Down Expand Up @@ -2377,7 +2377,9 @@ void CbcOrbitalBranchingObject::print()
*/
int CbcOrbitalBranchingObject::compareOriginalObject(const CbcBranchingObject *brObj) const
{
#ifndef NDEBUG
const CbcOrbitalBranchingObject *br = dynamic_cast< const CbcOrbitalBranchingObject * >(brObj);
#endif
assert(!br);
abort();
return 0;
Expand All @@ -2394,7 +2396,9 @@ int CbcOrbitalBranchingObject::compareOriginalObject(const CbcBranchingObject *b
CbcRangeCompare
CbcOrbitalBranchingObject::compareBranchingObject(const CbcBranchingObject *brObj, const bool replaceIfOverlap)
{
#ifndef NDEBUG
const CbcOrbitalBranchingObject *br = dynamic_cast< const CbcOrbitalBranchingObject * >(brObj);
#endif
assert(!br);
abort();
return CbcRangeDisjoint;
Expand Down

0 comments on commit bb4f02b

Please sign in to comment.