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-2016 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 extern
42  SCIP* scip /**< SCIP data structure */
43  );
44 
45 /** computes a minimal set of covering variables */
46 extern
48  SCIP* scip, /**< SCIP data structure */
49  int* coversize, /**< size of the computed cover */
50  SCIP_VAR** cover, /**< pointer to store the variables (of the original SCIP) in the computed cover
51  * (should be ready to hold SCIPgetNVars(scip) entries) */
52  SCIP_Real timelimit, /**< time limit */
53  SCIP_Real memorylimit, /**< memory limit */
54  SCIP_Real objlimit, /**< objective limit: upper bound on coversize */
55  SCIP_Bool globalbounds, /**< should global bounds on variables be used instead of local bounds at focus node? */
56  SCIP_Bool onlyconvexify, /**< should we only fix/dom.red. variables creating nonconvexity? */
57  SCIP_Bool coverbd, /**< should bounddisjunction constraints be covered (or just copied)? */
58  char coveringobj, /**< objective function of the covering problem ('b'ranching status,
59  * influenced nonlinear 'c'onstraints/'t'erms, 'd'omain size, 'l'ocks,
60  * 'm'in of up/down locks, 'u'nit penalties, constraint 'v'iolation) */
61  SCIP_Bool* success /**< feasible cover found? */
62  );
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #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)
struct Scip SCIP
Definition: type_scip.h:30
#define SCIP_Bool
Definition: def.h:53
struct SCIP_Var SCIP_VAR
Definition: type_var.h:95
SCIP_RETCODE SCIPincludeHeurUndercover(SCIP *scip)
#define SCIP_Real
Definition: def.h:127
SCIP callable library.