Scippy

SCIP

Solving Constraint Integer Programs

heur_undercover.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-2017 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file heur_undercover.h
17  * @ingroup PRIMALHEURISTICS
18  * @brief Undercover primal heuristic for MINLPs
19  * @author Timo Berthold
20  * @author Ambros Gleixner
21  *
22  * The undercover heuristic is designed for mixed-integer nonlinear programs and tries to fix a subset of variables such
23  * as to make each constraint linear or convex. For this purpose it solves a binary program to automatically determine
24  * the minimum number of variable fixings necessary. As fixing values, we use values from the LP relaxation, the NLP
25  * relaxation, or the incumbent solution.
26  */
27 
28 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
29 
30 #ifndef __SCIP_HEUR_UNDERCOVER_H__
31 #define __SCIP_HEUR_UNDERCOVER_H__
32 
33 #include "scip/scip.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /** creates the undercover primal heuristic and includes it in SCIP
40  *
41  * @ingroup PrimalHeuristicIncludes
42  */
43 extern
45  SCIP* scip /**< SCIP data structure */
46  );
47 
48 /**@addtogroup PRIMALHEURISTICS
49  *
50  * @{
51  */
52 
53 /** computes a minimal set of covering variables */
54 extern
56  SCIP* scip, /**< SCIP data structure */
57  int* coversize, /**< size of the computed cover */
58  SCIP_VAR** cover, /**< pointer to store the variables (of the original SCIP) in the computed cover
59  * (should be ready to hold SCIPgetNVars(scip) entries) */
60  SCIP_Real timelimit, /**< time limit */
61  SCIP_Real memorylimit, /**< memory limit */
62  SCIP_Real objlimit, /**< objective limit: upper bound on coversize */
63  SCIP_Bool globalbounds, /**< should global bounds on variables be used instead of local bounds at focus node? */
64  SCIP_Bool onlyconvexify, /**< should we only fix/dom.red. variables creating nonconvexity? */
65  SCIP_Bool coverbd, /**< should bounddisjunction constraints be covered (or just copied)? */
66  char coveringobj, /**< objective function of the covering problem ('b'ranching status,
67  * influenced nonlinear 'c'onstraints/'t'erms, 'd'omain size, 'l'ocks,
68  * 'm'in of up/down locks, 'u'nit penalties, constraint 'v'iolation) */
69  SCIP_Bool* success /**< feasible cover found? */
70  );
71 
72 /* @} */
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
SCIP_RETCODE SCIPcomputeCoverUndercover(SCIP *scip, int *coversize, SCIP_VAR **cover, SCIP_Real timelimit, SCIP_Real memorylimit, SCIP_Real objlimit, SCIP_Bool globalbounds, SCIP_Bool onlyconvexify, SCIP_Bool coverbd, char coveringobj, SCIP_Bool *success)
SCIP_RETCODE SCIPincludeHeurUndercover(SCIP *scip)
#define SCIP_Bool
Definition: def.h:61
#define SCIP_Real
Definition: def.h:135
SCIP callable library.