GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
columngraph.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 columngraph.h
30 * @brief A row graph where each column is a node and columns are adjacent if they appear in a row
31 * @author Martin Bergner
32 */
33
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35
36#ifndef GCG_COLUMNGRAPH_H_
37#define GCG_COLUMNGRAPH_H_
38
39#include "graph/graph.h"
41#include "graph/matrixgraph.h"
42
43namespace gcg {
44template <class T>
46{
47private:
48 gcg::Graph<T> graph;
49
50public:
52 GCG* gcg, /**< GCG data structure */
53 Weights w /**< weights for the given graph */
54 );
55 virtual ~ColumnGraph();
56
58 GCG_DECOMP** decomp /**< decomposition structure to generate */
59 );
60
62 SCIP_CONS** conss, /**< constraints for which graph should be created */
63 SCIP_VAR** vars, /**< variables for which graph should be created */
64 int nconss_, /**< number of constraints */
65 int nvars_ /**< number of variables */
66 );
67};
68
69} /* namespace gcg */
70#endif /* GCG_COLUMNGRAPH_H_ */
SCIP_VAR * w
virtual SCIP_RETCODE createFromMatrix(SCIP_CONS **conss, SCIP_VAR **vars, int nconss_, int nvars_)
virtual SCIP_RETCODE createDecompFromPartition(GCG_DECOMP **decomp)
ColumnGraph(GCG *gcg, Weights w)
miscellaneous graph methods for structure detection
SCIP_VAR ** vars
miscellaneous matrixgraph methods for structure detection
struct SCIP_Cons SCIP_CONS
struct GCG_Decomp GCG_DECOMP
Definition type_decomp.h:45
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE
struct SCIP_Var SCIP_VAR