Ignore:
Timestamp:
Sep 3, 2018 9:09:44 AM (2 years ago)
Author:
forrest
Message:

coding for getting postprocessed model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcModel.hpp

    r2373 r2382  
    320320    void postProcess(CglPreProcess * process);
    321321#endif
     322    /// Returns CglPreProcess used before branch and bound
     323    inline CglPreProcess * preProcess( ) const
     324    { return preProcess_;}
     325    /// Set CglPreProcess used before branch and bound
     326    inline void setPreProcess(CglPreProcess * preProcess)
     327    { preProcess_ = preProcess;}
    322328    /// Adds an update information object
    323329    void addUpdateInformation(const CbcObjectUpdateData & data);
     
    438444    */
    439445    void analyzeObjective();
     446    /** Returns postProcessed solution in solver(called from event handler)
     447     Normally used for integer solution (not really tested otherwise)
     448    solutionType 1 is best integer so far, 0 is current solution
     449    (may not be integer) */
     450    const OsiSolverInterface * postProcessedSolver(int solutionType=1);
    440451
    441452    /**
     
    26032614    */
    26042615    CbcNodeInfo ** walkback_;
     2616    /// preProcess used before branch and bound (optional)
     2617    CglPreProcess * preProcess_;
    26052618    CbcNodeInfo ** lastNodeInfo_;
    26062619    const OsiRowCut ** lastCut_;
Note: See TracChangeset for help on using the changeset viewer.