Changeset 3037


Ignore:
Timestamp:
May 11, 2020 1:08:55 PM (2 months ago)
Author:
forrest
Message:

fix not set complaints

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CbcHeuristicDive.cpp

    r2922 r3037  
    371371  PseudoReducedCost *candidate = new PseudoReducedCost[numberIntegers];
    372372  double *random = new double[numberIntegers];
     373  for (int i=0;i<numberIntegers;i++) {
     374    candidate[i].var = 0x7fffffff;
     375    candidate[i].pseudoRedCost = COIN_DBL_MAX;
     376  }
    373377
    374378  int maxNumberAtBoundToFix = static_cast< int >(floor(percentageToFix_ * numberIntegers));
  • trunk/src/CbcHeuristicFPump.cpp

    r2922 r3037  
    26132613  int nn = 10 + static_cast< int >(v);
    26142614  int nnv = 0;
    2615   int *list = new int[nn];
    2616   double *val = new double[nn];
    2617   for (i = 0; i < nn; i++)
     2615  int *list = new int[nn+1];
     2616  double *val = new double[nn+1];
     2617  for (i = 0; i <= nn; i++)
    26182618    val[i] = .001;
     2619  memset(list,0,(nn+1)*sizeof(int));
    26192620
    26202621  const double *rowLower = solver->getRowLower();
Note: See TracChangeset for help on using the changeset viewer.