Ignore:
Timestamp:
Jan 14, 2009 4:19:37 PM (11 years ago)
Author:
forrest
Message:

compiler warnings, deterministic parallel and stability

File:
1 edited

Legend:

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

    r904 r1121  
    198198  double check = COIN_INT_MAX;
    199199  for (i=0;i<numberRows;i++) {
    200     int n= (int) floor(rhs[i]+0.5);
     200    int n= static_cast<int> (floor(rhs[i]+0.5));
    201201    if (n) {
    202202      n++; // allow for 0,1... n
     
    227227    size_=COIN_INT_MAX;
    228228  else
    229     size_=(int) size;
     229    size_=static_cast<int> (size);
    230230       
    231231  int n01=0;
     
    273273    int kBit=0;
    274274    for (i=0;i<numberRows;i++) {
    275       int n= (int) floor(rhs[i]+0.5);
     275      int n= static_cast<int> (floor(rhs[i]+0.5));
    276276      if (n) {
    277277        lookup_[i]=numberActive;
     
    394394        int newRow = lookup_[i];
    395395        if (newRow>=0) {
    396           int gap=(int) (rowUpper[i]-CoinMax(0.0,rowLower[i]));
     396          int gap=static_cast<int> (rowUpper[i]-CoinMax(0.0,rowLower[i]));
    397397          lower2[newRow]=rhs_[newRow]-gap;
    398398          int numberBits = numberBits_[newRow];
     
    484484      double cost = direction * objective[i];
    485485      fixedObj += lowerValue*cost;
    486       int gap = (int) (upper[i]-lowerValue);
     486      int gap = static_cast<int> (upper[i]-lowerValue);
    487487      CoinBigIndex start = columnStart[i];
    488488      tryColumn(columnLength[i],row+start,element+start,cost,gap);
     
    522522        int newRow = lookup_[i];
    523523        if (newRow>=0) {
    524           int gap=(int) (rowUpper[i]-CoinMax(0.0,rowLower[i]));
     524          int gap=static_cast<int> (rowUpper[i]-CoinMax(0.0,rowLower[i]));
    525525          lower[newRow]=rhs_[newRow]-gap;
    526526          int numberBits = numberBits_[newRow];
     
    575575                int iRow=row[j];
    576576                double value = element[j];
    577                 int iValue = (int) value;
     577                int iValue = static_cast<int> (value);
    578578                if(iValue!=indices_[iRow]) {
    579579                  good=false;
     
    657657      int iRow=rows[j];
    658658      double value = coefficients[j];
    659       int iValue = (int) value;
     659      int iValue = static_cast<int> (value);
    660660      int newRow = lookup_[iRow];
    661661      if (newRow<0||iValue>rhs_[newRow]) {
Note: See TracChangeset for help on using the changeset viewer.