Changeset 2460


Ignore:
Timestamp:
Dec 31, 2018 1:04:23 PM (3 months ago)
Author:
unxusr
Message:

access to the solution pool obj

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r2459 r2460  
    817817{
    818818    return model->model_->savedSolution(whichSol);
     819}
     820
     821COINLIBAPI double COINLINKAGE
     822Cbc_savedSolutionObj(Cbc_Model * model, int whichSol)
     823{
     824    return model->model_->savedSolutionObjective(whichSol);
    819825}
    820826
  • trunk/Cbc/src/Cbc_C_Interface.h

    r2459 r2460  
    610610    COINLIBAPI const double * COINLINKAGE
    611611    Cbc_savedSolution(Cbc_Model * model, int whichSol)
     612    ;
     613
     614   
     615    /** @brief Cost of the whichSol solution
     616     *
     617     * @param model problem object
     618     * @param whichSol solution index
     619     * @return solution cost
     620     **/
     621    COINLIBAPI double COINLINKAGE
     622    Cbc_savedSolutionObj(Cbc_Model * model, int whichSol)
    612623    ;
    613624   
Note: See TracChangeset for help on using the changeset viewer.