Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
src
CbcGeneral.hpp
Go to the documentation of this file.
1
// $Id$
2
// Copyright (C) 2002, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6
// Edwin 11/10/2009-- carved out of CbcBranchActual
7
8
#ifndef CbcGeneral_H
9
#define CbcGeneral_H
10
11
#include "
CbcBranchBase.hpp
"
15
16
class
CbcGeneral
:
public
CbcObject {
17
18
public
:
19
// Default Constructor
20
CbcGeneral
();
21
25
CbcGeneral
(
CbcModel
*
model
);
26
27
// Copy constructor
28
CbcGeneral
(
const
CbcGeneral
&);
29
31
virtual
CbcObject *
clone
()
const
= 0;
32
33
// Assignment operator
34
CbcGeneral
&
operator=
(
const
CbcGeneral
&rhs);
35
36
// Destructor
37
~CbcGeneral
();
38
40
virtual
double
infeasibility
(
const
OsiBranchingInformation *info,
41
int
&
preferredWay
)
const
;
42
43
using
CbcObject::feasibleRegion;
45
virtual
void
feasibleRegion
() = 0;
46
48
virtual
CbcBranchingObject
*
createCbcBranch
(OsiSolverInterface *solver,
const
OsiBranchingInformation *info,
int
way
);
49
51
virtual
void
redoSequenceEtc
(
CbcModel
*
model
,
int
numberColumns,
const
int
*originalColumns) = 0;
52
53
protected
:
55
};
56
57
#endif
58
59
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
60
*/
CbcBranchBase.hpp
way
int way() const
model
CbcModel * model() const
Return model.
Definition
CbcObject.hpp:252
preferredWay
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.
Definition
CbcObject.hpp:258
CbcBranchingObject
Abstract branching object base class Now just difference with OsiBranchingObject.
Definition
CbcBranchingObject.hpp:51
CbcGeneral::createCbcBranch
virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
Creates a branching object.
CbcGeneral::CbcGeneral
CbcGeneral(const CbcGeneral &)
CbcGeneral::clone
virtual CbcObject * clone() const =0
Clone.
CbcGeneral::redoSequenceEtc
virtual void redoSequenceEtc(CbcModel *model, int numberColumns, const int *originalColumns)=0
Redoes data when sequence numbers change.
CbcGeneral::~CbcGeneral
~CbcGeneral()
CbcGeneral::operator=
CbcGeneral & operator=(const CbcGeneral &rhs)
CbcGeneral::CbcGeneral
CbcGeneral()
CbcGeneral::CbcGeneral
CbcGeneral(CbcModel *model)
Useful constructor Just needs to point to model.
CbcGeneral::infeasibility
virtual double infeasibility(const OsiBranchingInformation *info, int &preferredWay) const
Infeasibility - large is 0.5.
CbcGeneral::feasibleRegion
virtual void feasibleRegion()=0
This looks at solution and sets bounds to contain solution.
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
Generated by
1.17.0