Changeset 2026


Ignore:
Timestamp:
Mar 30, 2014 12:54:14 AM (5 years ago)
Author:
mlubin
Message:

remove some unimplemented functions from C interface

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r2021 r2026  
    410410//tbd                       columnStarts,rows,elements);
    411411    if (VERBOSE > 0) printf("%s WARNING: NOT IMPLEMENTED\n", prefix);
    412 
    413     if (VERBOSE > 0) printf("%s return\n", prefix);
    414 }
    415 /* Drops names - makes lengthnames 0 and names empty */
    416 COINLIBAPI void COINLINKAGE
    417 Cbc_dropNames(Cbc_Model * /*model*/)
    418 {
    419     const char prefix[] = "Cbc_C_Interface::Cbc_dropNames(): ";
    420 //  const int  VERBOSE = 1;
    421     if (VERBOSE > 0) printf("%s begin\n", prefix);
    422 
    423 // cannot find names in Cbc, Osi, or OsiClp
    424 //tbd  model->model_->dropNames();
    425     if (VERBOSE > 0) printf("%s WARNING: NOT IMPLEMENTED\n", prefix);
    426 
    427     if (VERBOSE > 0) printf("%s return\n", prefix);
    428 }
    429 /* Copies in names */
    430 COINLIBAPI void COINLINKAGE
    431 Cbc_copyNames(Cbc_Model * /*model*/, const char * const * /*rowNamesIn*/,
    432               const char * const * /*columnNamesIn*/)
    433 {
    434     const char prefix[] = "Cbc_C_Interface::Cbc_copyNames(): ";
    435 //  const int  VERBOSE = 1;
    436     if (VERBOSE > 0) printf("%s begin\n", prefix);
    437 
    438 // cannot find names in Cbc, Osi, or OsiClp
    439     /*clean
    440       int iRow;
    441       std::vector<std::string> rowNames;
    442       int numberRows = model->model_->getNumRows();
    443       rowNames.reserve(numberRows);
    444       for (iRow=0;iRow<numberRows;iRow++) {
    445         rowNames.push_back(rowNamesIn[iRow]);
    446       }
    447 
    448       int iColumn;
    449       std::vector<std::string> columnNames;
    450       int numberColumns = model->model_->getNumCols();
    451       columnNames.reserve(numberColumns);
    452       for (iColumn=0;iColumn<numberColumns;iColumn++) {
    453         columnNames.push_back(columnNamesIn[iColumn]);
    454       }
    455       model->model_->copyNames(rowNames,columnNames);
    456     */
    457412
    458413    if (VERBOSE > 0) printf("%s return\n", prefix);
  • trunk/Cbc/src/Cbc_C_Interface.h

    r2021 r2026  
    100100                   const int * columnStarts, const int * rows,
    101101                   const double * elements);
    102     /** Drops names - makes lengthnames 0 and names empty */
    103     COINLIBAPI void COINLINKAGE
    104     Cbc_dropNames(Cbc_Model * model)
    105     ;
    106     /** Copies in names */
    107     COINLIBAPI void COINLINKAGE
    108     Cbc_copyNames(Cbc_Model * model, const char * const * rowNamesIn,
    109                   const char * const * columnNamesIn)
    110     ;
    111 
    112102    /** Fills in array with problem name  */
    113103    COINLIBAPI void COINLINKAGE
Note: See TracChangeset for help on using the changeset viewer.