GOBNILP  f164d83
cons_ci.h
Go to the documentation of this file.
1 
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3  * GOBNILP Copyright (C) 2012-2017 James Cussens, Mark Bartlett *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 3 of the *
8  * License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13  * General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, see *
17  * <http://www.gnu.org/licenses>. *
18  * *
19  * Additional permission under GNU GPL version 3 section 7 *
20  * *
21  * If you modify this Program, or any covered work, by linking or *
22  * combining it with SCIP (or a modified version of that library), *
23  * containing parts covered by the terms of the ZIB Academic License, *
24  * the licensors of this Program grant you additional permission to *
25  * convey the resulting work. *
26  * *
27  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28 
35 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36 
37 #ifndef __SCIP_CONS_CI_H__
38 #define __SCIP_CONS_CI_H__
39 
40 
41 #include "scip/scip.h"
42 #include "parent_set_data.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
49 extern
50 SCIP_RETCODE SCIPincludeConshdlrCi(
51  SCIP* scip
52 );
53 
58 extern
59 SCIP_RETCODE SCIPcreateConsCi(
60  SCIP* scip,
61  SCIP_CONS** cons,
62  const char* name,
63  int nvars, /* number of variables in the constraint */
64  SCIP_VAR** vars, /* array of variables in the constraint */
65  int* ch, /* ch[i] is the child variable associated with vars[i] */
66  int* npa, /* npa[i] is the number of parents in the parent set associatd with vars[i] */
67  int** pa, /* pa[i] is the parent set associated with vars[i] */
68  int* a, /* the set a */
69  int n_a, /* size of set a */
70  int* b, /* the set b */
71  int n_b, /* size of set b */
72  int* s, /* the set s */
73  int n_s, /* size of set s */
74  SCIP_Bool initial,
76  SCIP_Bool separate,
78  SCIP_Bool enforce,
80  SCIP_Bool check,
82  SCIP_Bool propagate,
84  SCIP_Bool local,
86  SCIP_Bool modifiable,
89  SCIP_Bool dynamic,
92  SCIP_Bool removable,
94  SCIP_Bool stickingatnode
97 );
98 
104 /* extern */
105 /* SCIP_RETCODE SCIPcreateConsBasicCi( */
106 /* SCIP* scip, /\**< SCIP data structure *\/ */
107 /* SCIP_CONS** cons, /\**< pointer to hold the created constraint *\/ */
108 /* const char* name, /\**< name of constraint *\/ */
109 /* int nvars, /\**< number of variables in the constraint *\/ */
110 /* SCIP_VAR** vars, /\**< array with variables of constraint entries *\/ */
111 /* SCIP_Real* coefs, /\**< array with coefficients of constraint entries *\/ */
112 /* SCIP_Real lhs, /\**< left hand side of constraint *\/ */
113 /* SCIP_Real rhs /\**< right hand side of constraint *\/ */
114 /* ); */
115 
116 #ifdef __cplusplus
117 }
118 #endif
119 
120 #endif
Function and type declarations for parent_set_data.c.
SCIP_RETCODE SCIPincludeConshdlrCi(SCIP *scip)
creates the handler for ci constraints and includes it in SCIP
Definition: cons_ci.c:1708
SCIP_RETCODE SCIPcreateConsCi(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, int *ch, int *npa, int **pa, int *a, int n_a, int *b, int n_b, int *s, int n_s, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
creates and captures a ci constraint
Definition: cons_ci.c:1774