Ignore:
Timestamp:
May 8, 2019 6:35:04 AM (5 months ago)
Author:
unxusr
Message:

option to store maps for fast search of column/row names in C API

File:
1 edited

Legend:

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

    r2572 r2573  
    4040COINLIBAPI int COINLINKAGE
    4141Cbc_setProblemName(Cbc_Model *model, const char *array);
     42
     43/** @brief activates/deactivates name indexes
     44 *
     45 * @param model problem object
     46 * @param store: 1 maintain indexes of column and constraints names for searching indexes, 0 not
     47 **/
     48COINLIBAPI void COINLINKAGE
     49Cbc_storeNameIndexes(Cbc_Model *model, char _store);
     50
     51/** @brief searches columns by name and returns its index
     52 *
     53 * call Cbc_storeNameIndexes to enable search by name
     54 *
     55 * @param model problem object
     56 * @param name column (variable) name
     57 * @return column index or -1 if not found
     58 **/
     59COINLIBAPI int COINLINKAGE
     60Cbc_getColNameIndex(Cbc_Model *model, const char *name);
     61
     62/** @brief searches rows by name and returns its index
     63 *
     64 * call Cbc_storeNameIndexes to enable search by name
     65 *
     66 * @param model problem object
     67 * @param name row (constraint) name
     68 * @return row index or -1 if not found
     69 **/
     70COINLIBAPI int COINLINKAGE
     71Cbc_getRowNameIndex(Cbc_Model *model, const char *name);
    4272
    4373/** @brief Creates a new column
Note: See TracChangeset for help on using the changeset viewer.