Changeset 535


Ignore:
Timestamp:
May 7, 2007 11:54:23 PM (12 years ago)
Author:
ladanyi
Message:

switched to using smart pointers instead of cloning

Location:
trunk/Bonmin/experimental/Bcp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Bonmin/experimental/Bcp/BB_cut.cpp

    r530 r535  
    99#include "BCP_buffer.hpp"
    1010#include "BB_cut.hpp"
    11 
    12 /****************************************************************************/
    13 
    14 BB_cut* BB_cut::clone() const
    15 {
    16     return new BB_cut(dynamic_cast<const OsiRowCut&>(*this));
    17 }
    1811
    1912/****************************************************************************/
  • trunk/Bonmin/experimental/Bcp/BB_cut.hpp

    r530 r535  
    4848    /// Destructor
    4949    ~BB_cut() {}
    50 
    51     /// clone
    52     virtual BB_cut* clone() const;
    5350};
    5451
  • trunk/Bonmin/experimental/Bcp/BM.hpp

    r530 r535  
    3535    }
    3636    ~BM_node() {}
    37 
    38     virtual BM_node* clone() const {
    39         return new BM_node(*this);
    40     }
    4137
    4238    inline void pack(BCP_buffer& buf) const {
  • trunk/Bonmin/experimental/Bcp/BM_lp_branch.cpp

    r530 r535  
    7373                BCP_vec<BCP_lp_branching_object*>& cands)
    7474{
     75    bonmin_.nonlinearSolver()->getDblParam(OsiPrimalTolerance,
     76                                           brInfo.integerTolerance_);
     77   
    7578    BCP_branching_decision retCode;
    7679    OsiBranchingObject* brObj = NULL;
Note: See TracChangeset for help on using the changeset viewer.