Changeset 2241


Ignore:
Timestamp:
Jan 5, 2017 11:51:13 AM (21 months ago)
Author:
forrest
Message:

fix overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSolve.cpp

    r2235 r2241  
    39823982     int i;
    39833983     for (i = 0; i < CLP_PROGRESS; i++) {
    3984           objective_[i] = COIN_DBL_MAX;
     3984          objective_[i] = COIN_DBL_MAX*1.0e-50;
    39853985          infeasibility_[i] = -1.0; // set to an impossible value
    3986           realInfeasibility_[i] = COIN_DBL_MAX;
     3986          realInfeasibility_[i] = COIN_DBL_MAX*1.0e-50;
    39873987          numberInfeasibilities_[i] = -1;
    39883988          iterationNumber_[i] = -1;
     
    39903990#ifdef CLP_PROGRESS_WEIGHT
    39913991     for (i = 0; i < CLP_PROGRESS_WEIGHT; i++) {
    3992           objectiveWeight_[i] = COIN_DBL_MAX;
     3992          objectiveWeight_[i] = COIN_DBL_MAX*1.0e-50;
    39933993          infeasibilityWeight_[i] = -1.0; // set to an impossible value
    3994           realInfeasibilityWeight_[i] = COIN_DBL_MAX;
     3994          realInfeasibilityWeight_[i] = COIN_DBL_MAX*1.0e-50;
    39953995          numberInfeasibilitiesWeight_[i] = -1;
    39963996          iterationNumberWeight_[i] = -1;
     
    40014001     initialWeight_ = 0.0;
    40024002     for (i = 0; i < CLP_CYCLE; i++) {
    4003           //obj_[i]=COIN_DBL_MAX;
     4003          //obj_[i]=COIN_DBL_MAX*1.0e-50;
    40044004          in_[i] = -1;
    40054005          out_[i] = -1;
     
    42924292     for (i = 0; i < CLP_PROGRESS; i++) {
    42934293          if (model_->algorithm() >= 0)
    4294                objective_[i] = COIN_DBL_MAX;
     4294               objective_[i] = COIN_DBL_MAX*1.0e-50;
    42954295          else
    4296                objective_[i] = -COIN_DBL_MAX;
     4296               objective_[i] = -COIN_DBL_MAX*1.0e-50;
    42974297          infeasibility_[i] = -1.0; // set to an impossible value
    4298           realInfeasibility_[i] = COIN_DBL_MAX;
     4298          realInfeasibility_[i] = COIN_DBL_MAX*1.0e-50;
    42994299          numberInfeasibilities_[i] = -1;
    43004300          iterationNumber_[i] = -1;
     
    43024302#ifdef CLP_PROGRESS_WEIGHT
    43034303     for (i = 0; i < CLP_PROGRESS_WEIGHT; i++) {
    4304           objectiveWeight_[i] = COIN_DBL_MAX;
     4304          objectiveWeight_[i] = COIN_DBL_MAX*1.0e-50;
    43054305          infeasibilityWeight_[i] = -1.0; // set to an impossible value
    4306           realInfeasibilityWeight_[i] = COIN_DBL_MAX;
     4306          realInfeasibilityWeight_[i] = COIN_DBL_MAX*1.0e-50;
    43074307          numberInfeasibilitiesWeight_[i] = -1;
    43084308          iterationNumberWeight_[i] = -1;
     
    43124312#endif
    43134313     for (i = 0; i < CLP_CYCLE; i++) {
    4314           //obj_[i]=COIN_DBL_MAX;
     4314          //obj_[i]=COIN_DBL_MAX*1.0e-50;
    43154315          in_[i] = -1;
    43164316          out_[i] = -1;
     
    43744374     int i;
    43754375     for (i = 0; i < CLP_CYCLE; i++) {
    4376           //obj_[i]=COIN_DBL_MAX;
     4376          //obj_[i]=COIN_DBL_MAX*1.0e-50;
    43774377          in_[i] = -1;
    43784378          out_[i] = -1;
Note: See TracChangeset for help on using the changeset viewer.