Blis 0.94
Loading...
Searching...
No Matches
BlisBranchStrategyRel.h
Go to the documentation of this file.
1/*===========================================================================*
2 * This file is part of the BiCePS Linear Integer Solver (BLIS). *
3 * *
4 * ALPS is distributed under the Eclipse Public License as part of the *
5 * COIN-OR repository (http://www.coin-or.org). *
6 * *
7 * Authors: *
8 * *
9 * Yan Xu, Lehigh University *
10 * Ted Ralphs, Lehigh University *
11 * *
12 * Conceptual Design: *
13 * *
14 * Yan Xu, Lehigh University *
15 * Ted Ralphs, Lehigh University *
16 * Laszlo Ladanyi, IBM T.J. Watson Research Center *
17 * Matthew Saltzman, Clemson University *
18 * *
19 * *
20 * Copyright (C) 2001-2019, Lehigh University, Yan Xu, and Ted Ralphs. *
21 * All Rights Reserved. *
22 *===========================================================================*/
23
24
25//#############################################################################
26// NOTE: Borrow ideas from COIN/Cbc
27//#############################################################################
28
29
30#ifndef BlisBranchStrategyRel_h_
31#define BlisBranchStrategyRel_h_
32
33#include "BcpsBranchObject.h"
34#include "BcpsBranchStrategy.h"
35#include "BlisModel.h"
36
37
41
42 private:
44 BlisBranchStrategyRel& operator=(const BlisBranchStrategyRel& rhs);
45
46 protected:
47
49
50 public:
51
54 relibility_ = 1;
55 type_ = static_cast<int>(BlisBranchingStrategyReliability);
56 }
57
60 : BcpsBranchStrategy(model) {
61 relibility_ = 1;
62 type_ = static_cast<int>(BlisBranchingStrategyReliability);
63 }
64
67
70
72 void setRelibility(int rel) { relibility_ = rel; }
73
75 virtual BcpsBranchStrategy * clone() const {
76 return new BlisBranchStrategyRel(*this);
77 }
78
84 virtual int betterBranchObject(BcpsBranchObject * thisOne,
85 BcpsBranchObject * bestSoFar);
86
88 virtual int createCandBranchObjects(int numPassesLeft, double ub);
89};
90
91#endif
@ BlisBranchingStrategyReliability
Definition: Blis.h:105
Blis branching strategy.
virtual BcpsBranchStrategy * clone() const
Clone a brancing strategy.
virtual int createCandBranchObjects(int numPassesLeft, double ub)
Create a set of candidate branching objects.
BlisBranchStrategyRel(BlisModel *model, int rel)
Useful Constructor.
BlisBranchStrategyRel()
Default Constructor.
BlisBranchStrategyRel(const BlisBranchStrategyRel &)
Copy constructor.
virtual ~BlisBranchStrategyRel()
Destructor.
virtual int betterBranchObject(BcpsBranchObject *thisOne, BcpsBranchObject *bestSoFar)
Compare branching object thisOne to bestSoFar.
void setRelibility(int rel)
Set relibility.