Bonmin
1.8.9
Toggle main menu visibility
Loading...
Searching...
No Matches
src
CbcBonmin
BonBabInfos.hpp
Go to the documentation of this file.
1
// (C) Copyright International Business Machines Corporation 2007
2
// All Rights Reserved.
3
// This code is published under the Eclipse Public License.
4
//
5
// Authors :
6
// Pierre Bonami, International Business Machines Corporation
7
//
8
// Date : 04/23/2007
9
10
#ifndef BonBabInfos_H
11
#define BonBabInfos_H
12
#include <stdlib.h>
13
#include "
BonAuxInfos.hpp
"
14
15
namespace
Bonmin
16
{
17
class
Bab
;
19
class
BabInfo
:
public
Bonmin::AuxInfo
20
{
21
public
:
23
BabInfo
(
int
type
);
24
26
BabInfo
(
const
OsiBabSolver
&other);
27
29
BabInfo
(
const
BabInfo
&other);
30
32
virtual
~BabInfo
();
33
35
virtual
OsiAuxInfo
*
clone
()
const
;
36
38
void
setBabPtr
(
Bab
*
babPtr
)
39
{
40
babPtr_
=
babPtr
;
41
}
42
44
Bab
*
babPtr
()
45
{
46
return
babPtr_
;
47
}
48
49
bool
hasSolution
()
const
{
50
return
bestSolution_
!= NULL;}
51
protected
:
53
Bab
*
babPtr_
;
54
};
55
}
/* End namespace.*/
56
57
#endif
BonAuxInfos.hpp
type
CoinParamType type() const
Bonmin::AuxInfo
Bonmin class for passing info between components of branch-and-cuts.
Definition
BonAuxInfos.hpp:23
Bonmin::BabInfo::BabInfo
BabInfo(const OsiBabSolver &other)
Constructor from OsiBabSolver.
Bonmin::BabInfo::~BabInfo
virtual ~BabInfo()
Destructor.
Bonmin::BabInfo::BabInfo
BabInfo(const BabInfo &other)
Copy constructor.
Bonmin::BabInfo::babPtr
Bab * babPtr()
Pointer to the branch-and-bound algorithm (to access CbcModel).
Definition
BonBabInfos.hpp:44
Bonmin::BabInfo::babPtr_
Bab * babPtr_
Pointer to branch-and-bound algorithm.
Definition
BonBabInfos.hpp:53
Bonmin::BabInfo::BabInfo
BabInfo(int type)
Default constructor.
Bonmin::BabInfo::setBabPtr
void setBabPtr(Bab *babPtr)
Set pointer to the branch-and-bound algorithm (to access CbcModel).
Definition
BonBabInfos.hpp:38
Bonmin::BabInfo::clone
virtual OsiAuxInfo * clone() const
Virtual copy constructor.
Bonmin::BabInfo::hasSolution
bool hasSolution() const
Definition
BonBabInfos.hpp:49
Bonmin::Bab
Definition
BonCbc.hpp:20
OsiAuxInfo::OsiAuxInfo
OsiAuxInfo(void *appData=NULL)
OsiBabSolver::bestSolution_
double * bestSolution_
OsiBabSolver::OsiBabSolver
OsiBabSolver(int solverType=0)
Bonmin
(C) Copyright International Business Machines Corporation 2007
Definition
BonAmplSetup.hpp:16
Generated by
1.17.0