Changeset 504


Ignore:
Timestamp:
Feb 15, 2011 9:31:50 AM (9 years ago)
Author:
stefan
Message:

MS compiler does not know rint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/heuristics/CouenneIterativeRounding.cpp

    r488 r504  
    537537        for (int i = 0; i < nNlp; ++i){
    538538          if (model_->isInteger(i)){
    539             tmpSolution[i] = rint(tmpSolution[i]);
     539            tmpSolution[i] = floor(tmpSolution[i]+0.5);
    540540            cinlp_->setColLower(i, tmpSolution[i]);
    541541            cinlp_->setColUpper(i, tmpSolution[i]);
     
    839839      for (int i = 0; i < nNlp; ++i){
    840840        if (model_->isInteger(i)){
    841           tmpSolution[i] = rint(tmpSolution[i]);
     841          tmpSolution[i] = floor(tmpSolution[i]+0.5);
    842842          cinlp_->setColLower(i, tmpSolution[i]);
    843843          cinlp_->setColUpper(i, tmpSolution[i]);
Note: See TracChangeset for help on using the changeset viewer.