/home/coin/SVN-release/OS-2.0.0/Bonmin/src/Interfaces/BonStrongBranchingSolver.cpp

Go to the documentation of this file.
00001 // Copyright (C) 2007, 2008 International Business Machines
00002 // Corporation and others.  All Rights Reserved.
00003 //
00004 // Author:  Andreas Waechter      2007-08-20    IBM
00005 //
00006 
00007 #include "BonStrongBranchingSolver.hpp"
00008 
00009 namespace Bonmin {
00010 
00011 StrongBranchingSolver::StrongBranchingSolver(OsiTMINLPInterface * tminlp_interface)
00012 {
00013   jnlst_ = tminlp_interface->solver()->journalist();
00014   DBG_ASSERT(IsValid(jnlst_));
00015   options_ = tminlp_interface->solver()->options();
00016   DBG_ASSERT(IsValid(options_));
00017   reg_options_ = tminlp_interface->solver()->roptions();
00018   DBG_ASSERT(IsValid(reg_options_));
00019 
00020   options_->GetIntegerValue("bb_log_level", bb_log_level_, "bonmin.");
00021 }
00022 
00023 StrongBranchingSolver::StrongBranchingSolver(const StrongBranchingSolver & rhs)
00024 {
00025   jnlst_ = rhs.jnlst_;
00026   options_ = rhs.options_;
00027   reg_options_ = rhs.reg_options_;
00028   bb_log_level_ = rhs.bb_log_level_;
00029 }
00030 
00031 StrongBranchingSolver &
00032 StrongBranchingSolver::operator=(const StrongBranchingSolver & rhs)
00033 {
00034   if (this != &rhs) {
00035     jnlst_ = rhs.jnlst_;
00036     options_ = rhs.options_;
00037     reg_options_ = rhs.reg_options_;
00038     bb_log_level_ = rhs.bb_log_level_;
00039   }
00040   return *this;
00041 }
00042 
00043 StrongBranchingSolver::~StrongBranchingSolver ()
00044 {}
00045 
00046 }/* Ends Bonmin's namespace.*/

Generated on Mon Aug 3 03:02:18 2009 by  doxygen 1.4.7