Changeset 2459


Ignore:
Timestamp:
Dec 30, 2018 3:12:14 PM (7 weeks ago)
Author:
unxusr
Message:

access to the solution pool

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r2458 r2459  
    807807}
    808808
     809COINLIBAPI int COINLINKAGE
     810Cbc_numberSavedSolutions(Cbc_Model * model)
     811{
     812    return model->model_->numberSavedSolutions();
     813}
     814
     815COINLIBAPI const double * COINLINKAGE
     816Cbc_savedSolution(Cbc_Model * model, int whichSol)
     817{
     818    return model->model_->savedSolution(whichSol);
     819}
    809820
    810821COINLIBAPI const double * COINLINKAGE
  • trunk/Cbc/src/Cbc_C_Interface.h

    r2458 r2459  
    571571    Cbc_getColSolution(Cbc_Model * model)
    572572    ;
     573
     574    /** @brief Best known bound on the optimal objective value
     575     *
     576     * @param model problem object
     577     * @return best possible cost (lower bound)
     578     **/
     579    COINLIBAPI double COINLINKAGE
     580    Cbc_getBestPossibleObjValue(Cbc_Model * model)
     581    ;
     582
     583    /** @brief Best integer feasible solution
     584     *
     585     * Best integer feasible solution or NULL if no integer feas sol found
     586     *
     587     * @param model problem object
     588     * @return vector with the best solution found or NULL if no feasible solution was found
     589     **/
     590    COINLIBAPI double*  COINLINKAGE
     591    Cbc_bestSolution(Cbc_Model * model)
     592    ;
     593
     594    /** @brief number of integer feasible solution saved
     595     *
     596     * @param model problem object
     597     * @return number of saved solutions
     598     **/
     599    COINLIBAPI int COINLINKAGE
     600    Cbc_numberSavedSolutions(Cbc_Model * model)
     601    ;
     602
     603
     604    /** @brief Vector with the i-th saved solution
     605     *
     606     * @param model problem object
     607     * @param whichSol index of the solution to be retrieved
     608     * @return vector with integer feasible solution
     609     **/
     610    COINLIBAPI const double * COINLINKAGE
     611    Cbc_savedSolution(Cbc_Model * model, int whichSol)
     612    ;
    573613   
    574614    /** @brief Queries vector of reduced costs
     
    650690    COINLIBAPI double COINLINKAGE
    651691    Cbc_getObjValue(Cbc_Model * model)
    652     ;
    653     /** Best known bound on the optimal objective value */
    654     COINLIBAPI double COINLINKAGE
    655     Cbc_getBestPossibleObjValue(Cbc_Model * model)
    656     ;
    657     /** Best integer feasible solution or NULL if no integer feas sol found */
    658     COINLIBAPI double*  COINLINKAGE
    659     Cbc_bestSolution(Cbc_Model * model)
    660692    ;
    661693    /** Number of nodes explored in B&B tree */
Note: See TracChangeset for help on using the changeset viewer.