Changeset 2299


Ignore:
Timestamp:
Jan 21, 2018 6:05:17 AM (4 weeks ago)
Author:
forrest
Message:

for readLp and SOS

Location:
trunk/Clp/src/OsiClp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/OsiClp/OsiClpSolverInterface.cpp

    r2298 r2299  
    58585858  m.passInMessageHandler(modelPtr_->messageHandler());
    58595859  *m.messagesPointer()=modelPtr_->coinMessages();
    5860   m.readLp(filename, epsilon);
     5860  try {
     5861    m.readLp(filename, epsilon);
     5862  } catch (CoinError e) {
     5863    printf("ERROR: %s::%s, %s\n",
     5864           e.className().c_str(), e.methodName().c_str(), e.message().c_str());
     5865    return -1;
     5866  }
    58615867  freeCachedResults();
    58625868
  • trunk/Clp/src/OsiClp/OsiClpSolverInterface.hpp

    r2298 r2299  
    484484  /// Return integer type (0,1,2=optional,3=sc,4=scint)
    485485  inline int integerType(int colIndex) const
    486   { return integerInformation_[colIndex];}
     486  { return integerInformation_ ? integerInformation_[colIndex] : 0;}
    487487  /// Set integer type (0,1,2=optional,3=sc,4=scint)
    488488  inline void setIntegerType(int colIndex,int value)
Note: See TracChangeset for help on using the changeset viewer.