SCIP Doxygen Documentation
Loading...
Searching...
No Matches
pub_iisfinder.h
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
4/* SCIP --- Solving Constraint Integer Programs */
5/* */
6/* Copyright (c) 2002-2026 Zuse Institute Berlin (ZIB) */
7/* */
8/* Licensed under the Apache License, Version 2.0 (the "License"); */
9/* you may not use this file except in compliance with the License. */
10/* You may obtain a copy of the License at */
11/* */
12/* http://www.apache.org/licenses/LICENSE-2.0 */
13/* */
14/* Unless required by applicable law or agreed to in writing, software */
15/* distributed under the License is distributed on an "AS IS" BASIS, */
16/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17/* See the License for the specific language governing permissions and */
18/* limitations under the License. */
19/* */
20/* You should have received a copy of the Apache-2.0 license */
21/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22/* */
23/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
25/**@file pub_iisfinder.h
26 * @ingroup PUBLICCOREAPI
27 * @brief public methods for irreducible infeasible subsystems (IIS) finders
28 * @author Mark Turner
29 */
30
31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
32
33#ifndef __SCIP_PUB_IISFINDER_H__
34#define __SCIP_PUB_IISFINDER_H__
35
36
37#include "scip/def.h"
38#include "scip/type_misc.h"
39#include "scip/type_iisfinder.h"
40#include "scip/type_cons.h"
41#include "scip/type_var.h"
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47/**@addtogroup PublicIISfinderMethods
48 *
49 * @{
50 */
51
52/** gets name of IIS finder */
53SCIP_EXPORT
54const char* SCIPiisfinderGetName(
55 SCIP_IISFINDER* iisfinder /**< IIS finder */
56 );
57
58/** gets user data of IIS finder */
59SCIP_EXPORT
61 SCIP_IISFINDER* iisfinder /**< IIS finder */
62 );
63
64/** gets description of IIS finder */
65SCIP_EXPORT
66const char* SCIPiisfinderGetDesc(
67 SCIP_IISFINDER* iisfinder /**< IIS finder */
68 );
69
70/** gets priority of IIS finder */
71SCIP_EXPORT
73 SCIP_IISFINDER* iisfinder /**< IIS finder */
74 );
75
76/** sets user data of IIS finder; user has to free old data in advance! */
77SCIP_EXPORT
79 SCIP_IISFINDER* iisfinder, /**< IIS finder */
80 SCIP_IISFINDERDATA* iisfinderdata /**< new IIS finder user data */
81 );
82
83/** gets time in seconds used in this IIS finder */
84SCIP_EXPORT
86 SCIP_IISFINDER* iisfinder /**< IIS finder */
87 );
88
89/** prints output line during IIS calculations */
90SCIP_EXPORT
92 SCIP_IIS* iis, /**< pointer to the IIS */
93 SCIP_Bool printheaders /**< whether the headers should be printed instead of the info */
94 );
95
96/**@}
97 *
98 * @addtogroup PublicInfeasibilityAnalysisMethods
99 *
100 * @{
101 */
102
103/** gets time in seconds used in the IIS calculations */
104SCIP_EXPORT
106 SCIP_IIS* iis /**< IIS */
107 );
108
109/** Gets whether the IIS subscip is currently infeasible. */
110SCIP_EXPORT
112 SCIP_IIS* iis /**< IIS data structure */
113 );
114
115/** Gets whether the IIS subscip is irreducible. */
116SCIP_EXPORT
118 SCIP_IIS* iis /**< IIS data structure */
119 );
120
121/** Gets the number of nodes in the IIS solve. */
122SCIP_EXPORT
124 SCIP_IIS* iis /**< IIS data structure */
125 );
126
127/** Sets the flag that states whether the IIS subscip is currently infeasible. */
128SCIP_EXPORT
130 SCIP_IIS* iis, /**< IIS data structure */
131 SCIP_Bool infeasible /**< The new infeasibility status of the IIS */
132 );
133
134/** Sets the flag that states whether the IIS subscip is irreducible. */
135SCIP_EXPORT
137 SCIP_IIS* iis, /**< IIS data structure */
138 SCIP_Bool irreducible /**< The new irreducible status of the IIS */
139 );
140
141/** Increments the number of nodes in the IIS solve. */
142SCIP_EXPORT
144 SCIP_IIS* iis, /**< IIS data structure */
145 SCIP_Longint nnodes /**< The number of nodes to add to the IIS */
146 );
147
148/** get the randnumgen of the IIS */
149SCIP_EXPORT
151 SCIP_IIS* iis /**< pointer to the IIS */
152 );
153
154/** get the subscip of an IIS */
155SCIP_EXPORT
157 SCIP_IIS* iis /**< pointer to the IIS */
158 );
159
160/** get the constraint in the IIS subscip corresponding to the given main constraint,
161or NULL if it was removed */
162SCIP_EXPORT
164 SCIP_IIS* iis, /**< pointer to the IIS */
165 SCIP_CONS* cons /**< constraint from the original model */
166 );
167
168/** get the variable in the IIS subscip corresponding to the given main variable,
169or NULL if it became redundant */
170SCIP_EXPORT
172 SCIP_IIS* iis, /**< pointer to the IIS */
173 SCIP_VAR* var /**< variable from the original model */
174 );
175
176/** get the varsmap of an IIS */
177SCIP_EXPORT
179 SCIP_IIS* iis /**< pointer to the IIS */
180 );
181
182/** get the conssmap of an IIS */
183SCIP_EXPORT
185 SCIP_IIS* iis /**< pointer to the IIS */
186 );
187
188/**@}
189 *
190 * @addtogroup PublicIISfinderMethods
191 *
192 * @{
193 */
194
195/** compares two IIS finders w. r. to their priority */
196SCIP_EXPORT
197SCIP_DECL_SORTPTRCOMP(SCIPiisfinderComp);
198
199/** @} */
200
201#ifdef __cplusplus
202}
203#endif
204
205#endif
common defines and data types used in all packages of SCIP
#define SCIP_Longint
Definition def.h:150
#define SCIP_Bool
Definition def.h:100
#define SCIP_Real
Definition def.h:165
#define nnodes
Definition gastrans.c:74
const char * SCIPiisfinderGetName(SCIP_IISFINDER *iisfinder)
Definition iisfinder.c:315
SCIP_IISFINDERDATA * SCIPiisfinderGetData(SCIP_IISFINDER *iisfinder)
Definition iisfinder.c:706
int SCIPiisfinderGetPriority(SCIP_IISFINDER *iisfinder)
Definition iisfinder.c:727
void SCIPiisfinderSetData(SCIP_IISFINDER *iisfinder, SCIP_IISFINDERDATA *iisfinderdata)
Definition iisfinder.c:716
void SCIPiisfinderInfoMessage(SCIP_IIS *iis, SCIP_Bool printheaders)
Definition iisfinder.c:794
SCIP_Real SCIPiisfinderGetTime(SCIP_IISFINDER *iisfinder)
Definition iisfinder.c:784
const char * SCIPiisfinderGetDesc(SCIP_IISFINDER *iisfinder)
Definition iisfinder.c:648
SCIP_RANDNUMGEN * SCIPiisGetRandnumgen(SCIP_IIS *iis)
Definition iisfinder.c:1003
void SCIPiisAddNNodes(SCIP_IIS *iis, SCIP_Longint nnodes)
Definition iisfinder.c:993
SCIP * SCIPiisGetSubscip(SCIP_IIS *iis)
Definition iisfinder.c:1012
SCIP_CONS * SCIPiisGetSubscipCons(SCIP_IIS *iis, SCIP_CONS *cons)
Definition iisfinder.c:1022
SCIP_VAR * SCIPiisGetSubscipVar(SCIP_IIS *iis, SCIP_VAR *var)
Definition iisfinder.c:1033
void SCIPiisSetSubscipIrreducible(SCIP_IIS *iis, SCIP_Bool irreducible)
Definition iisfinder.c:983
SCIP_Longint SCIPiisGetNNodes(SCIP_IIS *iis)
Definition iisfinder.c:963
SCIP_HASHMAP * SCIPiisGetConssmap(SCIP_IIS *iis)
Definition iisfinder.c:1052
SCIP_Real SCIPiisGetTime(SCIP_IIS *iis)
Definition iisfinder.c:933
SCIP_Bool SCIPiisIsSubscipInfeasible(SCIP_IIS *iis)
Definition iisfinder.c:943
void SCIPiisSetSubscipInfeasible(SCIP_IIS *iis, SCIP_Bool infeasible)
Definition iisfinder.c:973
SCIP_Bool SCIPiisIsSubscipIrreducible(SCIP_IIS *iis)
Definition iisfinder.c:953
SCIP_HASHMAP * SCIPiisGetVarsmap(SCIP_IIS *iis)
Definition iisfinder.c:1043
SCIP_VAR * var
type definitions for constraints and constraint handlers
struct SCIP_Cons SCIP_CONS
Definition type_cons.h:63
type definitions for IIS
struct SCIP_IISfinder SCIP_IISFINDER
struct SCIP_IISfinderData SCIP_IISFINDERDATA
type definitions for miscellaneous datastructures
struct SCIP_HashMap SCIP_HASHMAP
Definition type_misc.h:106
#define SCIP_DECL_SORTPTRCOMP(x)
Definition type_misc.h:189
struct SCIP_RandNumGen SCIP_RANDNUMGEN
Definition type_misc.h:127
struct Scip SCIP
Definition type_scip.h:39
type definitions for problem variables
struct SCIP_Var SCIP_VAR
Definition type_var.h:166