Ignore:
Timestamp:
Jul 21, 2013 5:05:45 AM (6 years ago)
Author:
forrest
Message:

more options, copy statistics structure analysis
start coding of "switch" variables i.e. badly scaled ints or hi/lo
changes to allow more influence on small branch and bound
changes to get correct printout with threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristicRINS.cpp

    r1899 r1943  
    325325#endif
    326326            }
    327             //printf("%d integers have same value\n",nFix);
     327            if (solutionValue==-COIN_DBL_MAX) {
     328              // return fixings in betterSolution
     329              const double * colLower = newSolver->getColLower();
     330              const double * colUpper = newSolver->getColUpper();
     331              for (int iColumn = 0; iColumn < numberColumns; iColumn++) {
     332                if (colLower[iColumn]==colUpper[iColumn])
     333                  betterSolution[iColumn]=colLower[iColumn];
     334                else
     335                  betterSolution[iColumn]=COIN_DBL_MAX;
     336              }
     337              delete newSolver;
     338              return 0;
     339            }
     340            //printf("RINS %d integers have same value\n",nFix);
    328341            returnCode = smallBranchAndBound(newSolver, numberNodes_, betterSolution, solutionValue,
    329342                                             model_->getCutoff(), "CbcHeuristicRINS");
Note: See TracChangeset for help on using the changeset viewer.