Ignore:
Timestamp:
Dec 20, 2007 7:20:12 AM (13 years ago)
Author:
forrest
Message:

make useSolution work better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.0/Cbc/src/CbcModel.cpp

    r818 r844  
    94429442    int numberColumns = solver_->getNumCols();
    94439443    hotstartSolution_ = CoinCopyOfArray(solution,numberColumns);
     9444    hotstartPriorities_ = CoinCopyOfArray(priorities,numberColumns);
    94449445    for (int i=0;i<numberColumns;i++) {
     9446      if (hotstartSolution_[i]==-COIN_DBL_MAX) {
     9447        hotstartSolution_[i]=0.0;
     9448        hotstartPriorities_[i]+= 10000;
     9449      }
    94459450      if (solver_->isInteger(i))
    94469451        hotstartSolution_[i]=floor(hotstartSolution_[i]+0.5);
    94479452    }
    9448     hotstartPriorities_ = CoinCopyOfArray(priorities,numberColumns);
    94499453  }
    94509454}
Note: See TracChangeset for help on using the changeset viewer.