GOBNILP  f164d83
probdata_bn.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * GOBNILP Copyright (C) 2012-2017 James Cussens, Mark Bartlett *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 3 of the *
7  * License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12  * General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, see *
16  * <http://www.gnu.org/licenses>. *
17  * *
18  * Additional permission under GNU GPL version 3 section 7 *
19  * *
20  * If you modify this Program, or any covered work, by linking or *
21  * combining it with SCIP (or a modified version of that library), *
22  * containing parts covered by the terms of the ZIB Academic License, *
23  * the licensors of this Program grant you additional permission to *
24  * convey the resulting work. *
25  * *
26  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
32 /*
33 This file was created by editing the file psd_lop.h that comes with the linear ordering example
34 in SCIP
35 */
36 
37 #ifndef __BN_probdata_bn__
38 #define __BN_probdata_bn__
39 
40 #include "parent_set_data.h"
41 #include "model_averaging.h"
42 
43 
45 struct SCIP_ProbData
46 {
47  ParentSetData* psd;
48  SCIP_Real** scores;
49  SCIP_VAR*** ancestorvars;
50  SCIP_VAR**** im_vars;
52  SCIP_VAR** posvars;
53  SCIP_VAR*** totalordervars;
54  SCIP_VAR** ispa;
55  SCIP_VAR** pasize;
56  SCIP_VAR*** posind;
57  SCIP_VAR**** imsetvars;
58  SCIP_VAR** nch;
59  SCIP_VAR** isFemale;
60 };
61 
62 extern SCIP_RETCODE BN_setParamaterDefaults(SCIP* scip);
63 extern SCIP_RETCODE BN_suppresscols(SCIP* scip);
64 extern SCIP_RETCODE BN_printScores(SCIP* scip);
65 extern SCIP_RETCODE BN_printProblem(SCIP* scip, int run);
66 extern SCIP_RETCODE BN_doIterativePrint(SCIP* scip, MA_info* ma_info, int run);
67 extern SCIP_RETCODE BN_printParameters(SCIP* scip);
68 extern SCIP_RETCODE BN_printHeader(SCIP* scip);
69 extern SCIP_RETCODE BN_includePlugins(SCIP* scip);
70 extern SCIP_RETCODE BN_readProblem(SCIP* scip, char* inputformat, char* frequencyfile, const char* filename);
71 extern SCIP_RETCODE BN_addNonRepetitionConstraint(SCIP* scip, int run);
72 extern SCIP_RETCODE BN_addParameters(SCIP* scip);
73 extern int BN_getNumberOfRepeats(SCIP* scip);
74 extern SCIP_RETCODE BN_printcountsols(SCIP* scip, char* filename);
75 #endif
SCIP_RETCODE BN_addParameters(SCIP *scip)
Adds GOBNILP specific parameters to those recognised by SCIP.
Definition: probdata_bn.c:229
Function and type declarations for parent_set_data.c.
SCIP_RETCODE BN_suppresscols(SCIP *scip)
Suppresses output columns according to the value of parameter gobnilp/verblevelsetcols.
Definition: probdata_bn.c:778
SCIP_RETCODE BN_readProblem(SCIP *scip, char *inputformat, char *frequencyfile, const char *filename)
Reads in a problem from a file.
Definition: probdata_bn.c:4718
SCIP_RETCODE BN_printProblem(SCIP *scip, int run)
Prints the current problem.
Definition: probdata_bn.c:4983
SCIP_RETCODE BN_printParameters(SCIP *scip)
Prints any of the current SCIP or GOBNILP parameters not at their default value.
Definition: probdata_bn.c:5013
SCIP_RETCODE BN_doIterativePrint(SCIP *scip, MA_info *ma_info, int run)
Prints appropriate information about each optimal solution obtained.
Definition: probdata_bn.c:4998
SCIP_RETCODE BN_addNonRepetitionConstraint(SCIP *scip, int run)
Adds a constraint that prevents the current best network being found again.
Definition: probdata_bn.c:4900
The basic data needed to record a collection of parent sets associated with a problem.
Definition: parent_set_data.h:48
SCIP_RETCODE BN_setParamaterDefaults(SCIP *scip)
Sets various built-in SCIP parameters to suitable GOBNILP values.
Definition: probdata_bn.c:715
SCIP_RETCODE BN_printHeader(SCIP *scip)
Prints a header which describes the GOBNILP and SCIP systems being used.
Definition: probdata_bn.c:5026
Function declarations for model_averaging.c.
int BN_getNumberOfRepeats(SCIP *scip)
Gets the number of most likely Bayesian networks that should be found.
Definition: probdata_bn.c:4794
SCIP_RETCODE BN_printcountsols(SCIP *scip, char *filename)
Prints solutions found using countsols.
Definition: probdata_bn.c:5053
SCIP_RETCODE BN_printScores(SCIP *scip)
Prints the scores for the family variables in Jaakkola format.
Definition: probdata_bn.c:5039
SCIP_RETCODE BN_includePlugins(SCIP *scip)
Includes all plugins needed by the problem.
Definition: probdata_bn.c:204
Definition: model_averaging.h:37