Changeset 1521


Ignore:
Timestamp:
Dec 15, 2009 9:17:20 AM (10 years ago)
Author:
pbonami
Message:

Try to fix problem with CPLEX bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.1/Bonmin/src/Interfaces/BonOsiTMINLPInterface.cpp

    r1516 r1521  
    21542154  const double * duals = getRowPrice() + 2*n;
    21552155  assert(m==getNumRows());
    2156   double infty = si.getInfinity();
     2156  double infty = DBL_MAX;//si.getInfinity();
    21572157  double nlp_infty = infty_;
    21582158 
     
    22232223    else {
    22242224      double value = jValues_[i] * getColSolution()[jCol_[i]];
    2225       rowLow[jRow_[i]] += value;
    2226       rowUp[jRow_[i]] += value;
     2225      if(rowLow[jRow_[i]] > - infty_)
     2226        rowLow[jRow_[i]] += value;
     2227      if(rowUp[jRow_[i]] < infty_)
     2228        rowUp[jRow_[i]] += value;
    22272229    }
    22282230  }
Note: See TracChangeset for help on using the changeset viewer.