GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
weights.h
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
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-2026 Operations Research, RWTH Aachen University */
10/* Zuse Institute Berlin (ZIB) */
11/* */
12/* Licensed under the Apache License, Version 2.0 (the "License"); */
13/* you may not use this file except in compliance with the License. */
14/* You may obtain a copy of the License at */
15/* */
16/* http://www.apache.org/licenses/LICENSE-2.0 */
17/* */
18/* Unless required by applicable law or agreed to in writing, software */
19/* distributed under the License is distributed on an "AS IS" BASIS, */
20/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
21/* See the License for the specific language governing permissions and */
22/* limitations under the License. */
23/* */
24/* You should have received a copy of the Apache-2.0 license */
25/* along with GCG; see the file LICENSE. If not visit gcg.or.rwth-aachen.de.*/
26/* */
27/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28
29/**@file weights.h
30 * @brief weight class for graphs
31 * @author Martin Bergner
32 */
33
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35
36#ifndef WEIGHTS_H_
37#define WEIGHTS_H_
38#include "objscip/objscip.h"
39
40namespace gcg {
41
43{
44protected:
45 int varweight; /**< weight of a variable vertex */
46 int vbinary; /**< weight of a binary variable vertex */
47 int vcontinous; /**< weight of a continuous variable vertex */
48 int vinteger; /**< weight of an integer variable vertex */
49 int vimplint; /**< weight of an implicit integer variable vertex */
50 int consweight; /**< weight of a constraint vertex */
51
52public:
53 Weights(
54 int varweight_,
55 int vbinary_,
56 int vcontinous_,
57 int vinteger_,
58 int vimplint_,
59 int consweight_
60 );
61 Weights();
62
63 virtual ~Weights();
64 int calculate(SCIP_CONS* cons) const;
65 int calculate(SCIP_VAR* var) const;
66};
67
68} /* namespace gcg */
69#endif /* WEIGHTS_H_ */
int vcontinous
Definition weights.h:47
int vbinary
Definition weights.h:46
int vinteger
Definition weights.h:48
int vimplint
Definition weights.h:49
int calculate(SCIP_CONS *cons) const
Definition weights.cpp:74
int varweight
Definition weights.h:45
int consweight
Definition weights.h:50
Weights(int varweight_, int vbinary_, int vcontinous_, int vinteger_, int vimplint_, int consweight_)
Definition weights.cpp:40
SCIP_VAR * var
struct SCIP_Cons SCIP_CONS
struct SCIP_Var SCIP_VAR