Scippy

SCIP

Solving Constraint Integer Programs

nlhdlr_convex.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-2022 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 nlhdlr_convex.h
17  * @ingroup NLHDLRS
18  * @brief nonlinear handlers for convex and concave expressions, respectively
19  * @author Benjamin Mueller
20  * @author Stefan Vigerske
21  */
22 
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
24 
25 #ifndef __SCIP_NLHDLR_CONVEX_H__
26 #define __SCIP_NLHDLR_CONVEX_H__
27 
28 #include "scip/scip.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /** includes convex nonlinear handler in nonlinear constraint handler
35  *
36  * @ingroup NlhdlrIncludes
37  */
38 SCIP_EXPORT
40  SCIP* scip /**< SCIP data structure */
41  );
42 
43 /** includes concave nonlinear handler in nonlinear constraint handler
44  *
45  * @ingroup NlhdlrIncludes
46  */
47 SCIP_EXPORT
49  SCIP* scip /**< SCIP data structure */
50  );
51 
52 /**@addtogroup NLHDLRS
53  * @{
54  *
55  * @name Convex and concave nonlinear handlers
56  *
57  * These nonlinear handler detect convex and concave subexpressions and provide specialized estimation functionality.
58  *
59  * @{
60  */
61 
62 /** checks whether a given expression is convex or concave w.r.t. the original variables
63  *
64  * This function uses the methods that are used in the detection algorithm of the convex nonlinear handler.
65  */
66 SCIP_EXPORT
68  SCIP* scip, /**< SCIP data structure */
69  SCIP_EXPR* expr, /**< expression */
70  SCIP_EXPRCURV curv, /**< curvature to check for */
71  SCIP_Bool* success, /**< buffer to store whether expression has curvature curv (w.r.t. original variables) */
72  SCIP_HASHMAP* assumevarfixed /**< hashmap containing variables that should be assumed to be fixed, or NULL */
73  );
74 
75 /** @}
76  * @}
77  */
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* __SCIP_NLHDLR_CONVEX_H__ */
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
SCIP_RETCODE SCIPincludeNlhdlrConvex(SCIP *scip)
SCIP_RETCODE SCIPhasExprCurvature(SCIP *scip, SCIP_EXPR *expr, SCIP_EXPRCURV curv, SCIP_Bool *success, SCIP_HASHMAP *assumevarfixed)
#define SCIP_Bool
Definition: def.h:84
SCIP_EXPRCURV
Definition: type_expr.h:48
SCIP_RETCODE SCIPincludeNlhdlrConcave(SCIP *scip)
SCIP callable library.