Debian Codegraph @

Bonmin/src/Interfaces/BonStrongBranchingSolver.cpp

raw
1 // Copyright (C) 2007, 2008 International Business Machines
2 // Corporation and others. All Rights Reserved.
3 //
4 // Author: Andreas Waechter 2007-08-20 IBM
5 //
6
7 #include "BonStrongBranchingSolver.hpp"
8
9 namespace Bonmin {
10
11 StrongBranchingSolver::StrongBranchingSolver(OsiTMINLPInterface * tminlp_interface)
12 {
13 jnlst_ = tminlp_interface->solver()->journalist();
14 DBG_ASSERT(IsValid(jnlst_));
15 options_ = tminlp_interface->solver()->options();
16 DBG_ASSERT(IsValid(options_));
17 reg_options_ = tminlp_interface->solver()->roptions();
18 DBG_ASSERT(IsValid(reg_options_));
19
20 options_->GetIntegerValue("bb_log_level", bb_log_level_, tminlp_interface->prefix());
21 }
22
23 StrongBranchingSolver::StrongBranchingSolver(const StrongBranchingSolver & rhs)
24 {
25 jnlst_ = rhs.jnlst_;
26 options_ = rhs.options_;
27 reg_options_ = rhs.reg_options_;
28 bb_log_level_ = rhs.bb_log_level_;
29 }
30
31 StrongBranchingSolver &
32 StrongBranchingSolver::operator=(const StrongBranchingSolver & rhs)
33 {
34 if (this != &rhs) {
35 jnlst_ = rhs.jnlst_;
36 options_ = rhs.options_;
37 reg_options_ = rhs.reg_options_;
38 bb_log_level_ = rhs.bb_log_level_;
39 }
40 return *this;
41 }
42
43 StrongBranchingSolver::~StrongBranchingSolver ()
44 {}
45
46 }/* Ends Bonmin's namespace.*/