×
☰
Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
GCG 3.5.0
PyGCGOpt (0.1.3)
GCG
Branch-and-Price & Column Generation for Everyone
weights.h
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of the program */
4
/* GCG --- Generic Column Generation */
5
/* a Dantzig-Wolfe decomposition based extension */
6
/* of the branch-cut-and-price framework */
7
/* SCIP --- Solving Constraint Integer Programs */
8
/* */
9
/* Copyright (C) 2010-2021 Operations Research, RWTH Aachen University */
10
/* Zuse Institute Berlin (ZIB) */
11
/* */
12
/* This program is free software; you can redistribute it and/or */
13
/* modify it under the terms of the GNU Lesser General Public License */
14
/* as published by the Free Software Foundation; either version 3 */
15
/* of the License, or (at your option) any later version. */
16
/* */
17
/* This program is distributed in the hope that it will be useful, */
18
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20
/* GNU Lesser General Public License for more details. */
21
/* */
22
/* You should have received a copy of the GNU Lesser General Public License */
23
/* along with this program; if not, write to the Free Software */
24
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25
/* */
26
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27
28
/**@file weights.h
29
* @brief weight class for graphs
30
* @author Martin Bergner
31
*/
32
33
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
34
35
#ifndef WEIGHTS_H_
36
#define WEIGHTS_H_
37
#include "objscip/objscip.h"
38
39
namespace
gcg
{
40
41
class
Weights
42
{
43
protected
:
44
int
varweight
;
/**< weight of a variable vertex */
45
int
vbinary
;
/**< weight of a binary variable vertex */
46
int
vcontinous
;
/**< weight of a continuous variable vertex */
47
int
vinteger
;
/**< weight of an integer variable vertex */
48
int
vimplint
;
/**< weight of an implicit integer variable vertex */
49
int
consweight
;
/**< weight of a constraint vertex */
50
51
public
:
52
Weights
(
53
int
varweight_,
54
int
vbinary_,
55
int
vcontinous_,
56
int
vinteger_,
57
int
vimplint_,
58
int
consweight_
59
);
60
Weights
();
61
62
virtual
~Weights
();
63
int
calculate
(SCIP_CONS* cons)
const
;
64
int
calculate
(SCIP_VAR* var)
const
;
65
};
66
67
}
/* namespace gcg */
68
#endif
/* WEIGHTS_H_ */
gcg::Weights::vcontinous
int vcontinous
Definition:
weights.h:46
gcg
Definition:
class_conspartition.cpp:43
gcg::Weights
Definition:
weights.h:41
gcg::Weights::Weights
Weights()
Definition:
weights.cpp:57
gcg::Weights::~Weights
virtual ~Weights()
Definition:
weights.cpp:68
gcg::Weights::calculate
int calculate(SCIP_CONS *cons) const
Definition:
weights.cpp:73
gcg::Weights::varweight
int varweight
Definition:
weights.h:44
gcg::Weights::consweight
int consweight
Definition:
weights.h:49
gcg::Weights::vimplint
int vimplint
Definition:
weights.h:48
gcg::Weights::vbinary
int vbinary
Definition:
weights.h:45
gcg::Weights::vinteger
int vinteger
Definition:
weights.h:47
src
graph
weights.h
© 2010-2021 by Operations Research, RWTH Aachen University,
Imprint
Privacy Policy
Generated on Mon Dec 20 2021 10:25:17 for Generic Column Generation by
1.8.17