Ignore:
Timestamp:
Aug 3, 2007 12:07:00 PM (13 years ago)
Author:
forrest
Message:

message handling and sos to CbcSolver?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcBranchActual.cpp

    r719 r720  
    352352  id_=identifier;
    353353  integerValued_ = type==1;
     354  if (integerValued_) {
     355    // check all members integer
     356    OsiSolverInterface * solver = model->solver();
     357    if (solver) {
     358      for (int i=0;i<numberMembers_;i++) {
     359        if (!solver->isInteger(which[i]))
     360          integerValued_=false;
     361      }
     362    } else {
     363      // can't tell
     364      integerValued_=false;
     365    }
     366  }
    354367  if (numberMembers_) {
    355368    members_ = new int[numberMembers_];
Note: See TracChangeset for help on using the changeset viewer.