Changeset 3036


Ignore:
Timestamp:
May 10, 2020 3:38:16 PM (2 months ago)
Author:
unxusr
Message:

C interface: query conflict graph from Cbc_Model

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Cbc_C_Interface.cpp

    r3035 r3036  
    14081408  return model->solver_->getNumElements() +
    14091409    tmpNZCols + tmpNZRows;
     1410}
     1411
     1412const void *Cbc_conflictGraph( Cbc_Model *model ) {
     1413  return model->solver_->getCGraph();
     1414}
     1415
     1416/** @brief Updates (or creates, if first time) the conflict graph
     1417 *
     1418 * @param model problem object
     1419 **/
     1420void Cbc_updateConflictGraph( Cbc_Model *model ) {
     1421  model->solver_->checkCGraph();
    14101422}
    14111423
  • trunk/src/Cbc_C_Interface.h

    r3035 r3036  
    703703Cbc_isInteger(Cbc_Model *model, int i);
    704704
     705/** @brief Returns the conflict graph of the model
     706 *
     707 * Returns the conflict graph of the model, if it returns NULL or
     708 * if problem modifications were made, you may want to call Cbc_updateConflictGraph
     709 *
     710 * @param model problem object
     711 * @return a CoinConflictGraph object
     712 **/
     713CBCSOLVERLIB_EXPORT const void *CBC_LINKAGE Cbc_conflictGraph( Cbc_Model *model );
     714
     715/** @brief Updates (or creates, if first time) the conflict graph
     716 *
     717 * @param model problem object
     718 **/
     719CBCSOLVERLIB_EXPORT void CBC_LINKAGE Cbc_updateConflictGraph( Cbc_Model *model );
     720
    705721/** \name Routines to load and save problems from disk
    706722*/
Note: See TracChangeset for help on using the changeset viewer.