GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
solver_mip.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 solver_mip.h
30 * @brief mip solver for pricing problems
31 * @author Gerald Gamrath
32 * @ingroup PRICINGSOLVERS
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_SOLVER_MIP_H__
38#define GCG_SOLVER_MIP_H__
39
40#include "scip/scip.h"
41#include "gcg/gcg.h"
42
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48/** creates the mip solver for pricing problems and includes it in GCG */
51 GCG* gcg /**< GCG data structure */
52);
53
54/** get the status of the pricing problem */
57 SCIP* pricingprob /**< pricing problem SCIP data structure */
58);
59
60/** extracts ray from a subproblem used to solve a pricing problem pricing problem (or directly from the pricing problem if no subproblem is specified) */
63 GCG* gcg, /**< GCG data structure */
64 SCIP* pricingprob, /**< pricing problem SCIP data structure */
65 SCIP* subproblem, /**< SCIP data structure that contains the actual solution (if NULL pricingprob will be used) */
66 SCIP_HASHMAP* varmap, /**< mapping of pricingprob vars to subproblem vars (can be NULL if subproblem is NULL) */
67 int probnr, /**< problem number */
68 GCG_COL** newcol /**< column pointer to store new column */
69);
70
71/** transforms feasible solutions of a subproblem used to solve a pricing problem pricing problem into columns (or directly of the pricing problem if no subproblem is specified) */
74 GCG* gcg, /**< GCG data structure */
75 SCIP* pricingprob, /**< pricing problem SCIP data structure */
76 SCIP* subproblem, /**< SCIP data structure that contains the actual solution (if NULL pricingprob will be used) */
77 SCIP_HASHMAP* varmap, /**< mapping of pricingprob vars to subproblem vars (can be NULL if subproblem is NULL) */
78 int probnr, /**< problem number */
79 SCIP_Bool checksols /**< should solutions be checked extensively */
80);
81
82#ifdef __cplusplus
83}
84#endif
85
86
87#endif
#define GCG_EXPORT
Definition def.h:59
#define SCIP_Bool
GCG interface methods.
GCG_PRICINGSTATUS getPricingstatus(SCIP *pricingprob)
Definition solver_mip.c:592
SCIP_RETCODE GCGincludeSolverMip(GCG *gcg)
Definition solver_mip.c:730
SCIP_RETCODE createColumnFromRay(GCG *gcg, SCIP *pricingprob, SCIP *subproblem, SCIP_HASHMAP *varmap, int probnr, GCG_COL **newcol)
Definition solver_mip.c:521
SCIP_RETCODE getColumnsFromPricingprob(GCG *gcg, SCIP *pricingprob, SCIP *subproblem, SCIP_HASHMAP *varmap, int probnr, SCIP_Bool checksols)
Definition solver_mip.c:652
struct Gcg GCG
Definition type_gcg.h:44
struct GCG_Col GCG_COL
Definition type_gcgcol.h:44
struct SCIP_HashMap SCIP_HASHMAP
enum GCG_PricingStatus GCG_PRICINGSTATUS
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP