Changeset 2145 for stable


Ignore:
Timestamp:
Feb 27, 2015 10:36:43 AM (4 years ago)
Author:
forrest
Message:

check integer from all slack (normally)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.9/Cbc/src/CbcModel.cpp

    r2106 r2145  
    1236312363        // We can switch off check
    1236412364        if ((specialOptions_&4) == 0 && (moreSpecialOptions2_&10) != 8) {
    12365             if ((specialOptions_&2) == 0 && solverCharacteristics_->warmStart()) {
     12365            // Be on safe side - unless very few integers and large
     12366            bool allSlack = (specialOptions_&2) == 0 && solverCharacteristics_->warmStart();
     12367            if (numberIntegers_*4>solver_->getNumCols()||solver_->getNumCols()<10000)
     12368              allSlack = true;
     12369            if (allSlack) {
    1236612370                /*
    1236712371                  Remove any existing warm start information to be sure there is no
     
    1241512419                //OsiHintStrength saveStrength;
    1241612420                //bool savePrintHint;
    12417                 //solver_->writeMps("infeas");
     12421                solver_->writeMpsNative("infeas.mps", NULL, NULL, 2);
    1241812422                //bool gotHint = (solver_->getHintParam(OsiDoReducePrint,savePrintHint,saveStrength));
    1241912423                //gotHint = (solver_->getHintParam(OsiDoScale,saveTakeHint,saveStrength));
     
    1264412648#if CBC_FEASIBILITY_INVESTIGATE==0
    1264512649                }
     12650#else
     12651                solver_->writeMpsNative("BFeasible.mps",NULL,NULL,2);
    1264612652#endif
    1264712653                //if (fabs(objValue-objectiveValue)>1.0e-7*fabs(objectiveValue)) {
Note: See TracChangeset for help on using the changeset viewer.