BonStrongBranchingSolver.cpp
Go to the documentation of this file.
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 
8 
9 namespace Bonmin {
10 
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 
24 {
25  jnlst_ = rhs.jnlst_;
26  options_ = rhs.options_;
29 }
30 
33 {
34  if (this != &rhs) {
35  jnlst_ = rhs.jnlst_;
36  options_ = rhs.options_;
39  }
40  return *this;
41 }
42 
44 {}
45 
46 }/* Ends Bonmin's namespace.*/
Ipopt::SmartPtr< Ipopt::OptionsList > options_
This class is the base class for a solver that can be used in BonOsiSolverInterface to perform the st...
Ipopt::SmartPtr< Ipopt::Journalist > journalist()
Get a pointer to a journalist.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions()
Get a pointer to RegisteredOptions (generally used to add new ones)
This is class provides an Osi interface for a Mixed Integer Linear Program expressed as a TMINLP (so ...
bool IsValid(const OSSmartPtr< U > &smart_ptr)
Definition: OSSmartPtr.hpp:465
const Bonmin::TNLPSolver * solver() const
virtual ~StrongBranchingSolver()
Destructor.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > reg_options_
const char * prefix() const
Default Constructor.
StrongBranchingSolver & operator=(const StrongBranchingSolver &rhs)
Assignment operator.
Ipopt::SmartPtr< const Ipopt::OptionsList > options() const
Get the options (for getting their values).
Ipopt::SmartPtr< Ipopt::Journalist > jnlst_
StrongBranchingSolver()
Default Constructor, forbiden for some reason.