GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
type_consclassifier.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 type_consclassifier.h
30 * @ingroup TYPEDEFINITIONS
31 * @brief type definitions for constraints classifier in GCG projects
32 * @author William Ma
33 */
34
35#ifndef GCG_TYPE_CONSCLASSIFIER_H__
36#define GCG_TYPE_CONSCLASSIFIER_H__
37
38#include <scip/def.h>
39#include "scip/type_retcode.h"
40#include "gcg/type_classifier.h"
41#include "gcg/type_gcg.h"
42
44
45
46/** destructor of classifier to free classifier data (called when GCG is exiting)
47 *
48 * input:
49 * - gcg : GCG data structure
50 * - classifier : classifier data structure
51 */
52#define GCG_DECL_FREECONSCLASSIFIER(x) SCIP_RETCODE x (GCG* gcg, GCG_CONSCLASSIFIER* classifier)
53
54/**
55 * Tries to classify constraints with data of the according detprobdata and store the classification in the detprobdata
56 *
57 * input:
58 * - gcg : GCG data structure
59 * - classifier : classifier data structure
60 * - transformed : should use data from transformed detprobdata or not
61 */
62#define GCG_DECL_CONSCLASSIFY(x) SCIP_RETCODE x (GCG* gcg, GCG_CONSCLASSIFIER* consclassifier, SCIP_Bool transformed)
63
64
65#endif //GCG_TYPE_CONSCLASSIFIER_H__
type definitions for classifier in GCG project
struct GCG_ConsClassifier GCG_CONSCLASSIFIER