Ignore:
Timestamp:
Feb 14, 2018 6:21:56 AM (3 years ago)
Author:
forrest
Message:

add readLp to C interface

File:
1 edited

Legend:

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

    r2039 r2363  
    355355    if (VERBOSE > 0) printf("%s return\n", prefix);
    356356    return;
     357}
     358/* Read an lp file from the given filename */
     359COINLIBAPI int COINLINKAGE
     360Cbc_readLp(Cbc_Model * model, const char *filename)
     361{
     362    const char prefix[] = "Cbc_C_Interface::Cbc_readLp(): ";
     363//  const int  VERBOSE = 2;
     364    if (VERBOSE > 0) printf("%s begin\n", prefix);
     365    if (VERBOSE > 1) printf("%s filename = '%s'\n", prefix, filename);
     366    int result = 1;
     367    result = model->model_->solver()->readLp(filename);
     368    assert(result == 0);
     369
     370    if (VERBOSE > 0) printf("%s return %i\n", prefix, result);
     371    return result;
    357372}
    358373
Note: See TracChangeset for help on using the changeset viewer.