Changeset 2240


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

fix overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.16/Clp/src/ClpSolve.cpp

    r2217 r2240  
    39573957     int i;
    39583958     for (i = 0; i < CLP_PROGRESS; i++) {
    3959           objective_[i] = COIN_DBL_MAX;
     3959          objective_[i] = COIN_DBL_MAX*1.0e-50;
    39603960          infeasibility_[i] = -1.0; // set to an impossible value
    3961           realInfeasibility_[i] = COIN_DBL_MAX;
     3961          realInfeasibility_[i] = COIN_DBL_MAX*1.0e-50;
    39623962          numberInfeasibilities_[i] = -1;
    39633963          iterationNumber_[i] = -1;
     
    39653965#ifdef CLP_PROGRESS_WEIGHT
    39663966     for (i = 0; i < CLP_PROGRESS_WEIGHT; i++) {
    3967           objectiveWeight_[i] = COIN_DBL_MAX;
     3967          objectiveWeight_[i] = COIN_DBL_MAX*1.0e-50;
    39683968          infeasibilityWeight_[i] = -1.0; // set to an impossible value
    3969           realInfeasibilityWeight_[i] = COIN_DBL_MAX;
     3969          realInfeasibilityWeight_[i] = COIN_DBL_MAX*1.0e-50;
    39703970          numberInfeasibilitiesWeight_[i] = -1;
    39713971          iterationNumberWeight_[i] = -1;
     
    39763976     initialWeight_ = 0.0;
    39773977     for (i = 0; i < CLP_CYCLE; i++) {
    3978           //obj_[i]=COIN_DBL_MAX;
     3978          //obj_[i]=COIN_DBL_MAX*1.0e-50;
    39793979          in_[i] = -1;
    39803980          out_[i] = -1;
     
    42674267     for (i = 0; i < CLP_PROGRESS; i++) {
    42684268          if (model_->algorithm() >= 0)
    4269                objective_[i] = COIN_DBL_MAX;
     4269               objective_[i] = COIN_DBL_MAX*1.0e-50;
    42704270          else
    4271                objective_[i] = -COIN_DBL_MAX;
     4271               objective_[i] = -COIN_DBL_MAX*1.0e-50;
    42724272          infeasibility_[i] = -1.0; // set to an impossible value
    4273           realInfeasibility_[i] = COIN_DBL_MAX;
     4273          realInfeasibility_[i] = COIN_DBL_MAX*1.0e-50;
    42744274          numberInfeasibilities_[i] = -1;
    42754275          iterationNumber_[i] = -1;
     
    42774277#ifdef CLP_PROGRESS_WEIGHT
    42784278     for (i = 0; i < CLP_PROGRESS_WEIGHT; i++) {
    4279           objectiveWeight_[i] = COIN_DBL_MAX;
     4279          objectiveWeight_[i] = COIN_DBL_MAX*1.0e-50;
    42804280          infeasibilityWeight_[i] = -1.0; // set to an impossible value
    4281           realInfeasibilityWeight_[i] = COIN_DBL_MAX;
     4281          realInfeasibilityWeight_[i] = COIN_DBL_MAX*1.0e-50;
    42824282          numberInfeasibilitiesWeight_[i] = -1;
    42834283          iterationNumberWeight_[i] = -1;
     
    42874287#endif
    42884288     for (i = 0; i < CLP_CYCLE; i++) {
    4289           //obj_[i]=COIN_DBL_MAX;
     4289          //obj_[i]=COIN_DBL_MAX*1.0e-50;
    42904290          in_[i] = -1;
    42914291          out_[i] = -1;
     
    43494349     int i;
    43504350     for (i = 0; i < CLP_CYCLE; i++) {
    4351           //obj_[i]=COIN_DBL_MAX;
     4351          //obj_[i]=COIN_DBL_MAX*1.0e-50;
    43524352          in_[i] = -1;
    43534353          out_[i] = -1;
Note: See TracChangeset for help on using the changeset viewer.