GOBNILP  f164d83
pedigrees.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 #ifndef __PEDIGREES_H__
33 #define __PEDIGREES_H__
34 
35 #include "parent_set_data.h"
36 #include "property_data.h"
37 #include <scip/scip.h>
38 
39 extern SCIP_Bool PD_inPedigreeMode(SCIP* scip);
40 extern SCIP_RETCODE PD_addPedigreeParameters(SCIP* scip);
41 extern SCIP_RETCODE PD_addPedigreeSpecificConstraints(SCIP* scip, ParentSetData* psd);
42 extern SCIP_RETCODE PD_assignPedigreeVariables(SCIP* scip, SCIP_SOL* sol, ParentSetData* psd, SCIP_Bool* possible);
43 extern SCIP_Bool* PD_getCurrentPedigreeVarValues(SCIP* scip);
44 extern SCIP_RETCODE PD_printSolutionPedigreeFormat(SCIP* scip, ParentSetData* psd, SCIP_Real** Scores, SCIP_Bool** selected, SCIP_Real total_score, FILE* stream, SCIP_Bool* pedvars);
45 
46 #endif
Function and type declarations for property_data.c.
SCIP_RETCODE PD_printSolutionPedigreeFormat(SCIP *scip, ParentSetData *psd, SCIP_Real **Scores, SCIP_Bool **selected, SCIP_Real total_score, FILE *stream, SCIP_Bool *pedvars)
Prints the solution as a pedigree.
Definition: pedigrees.c:1024
Function and type declarations for parent_set_data.c.
SCIP_RETCODE PD_addPedigreeSpecificConstraints(SCIP *scip, ParentSetData *psd)
Adds any constraints and variables needed for pedigree based constraints.
Definition: pedigrees.c:763
The basic data needed to record a collection of parent sets associated with a problem.
Definition: parent_set_data.h:48
SCIP_RETCODE PD_assignPedigreeVariables(SCIP *scip, SCIP_SOL *sol, ParentSetData *psd, SCIP_Bool *possible)
Tries to find values for any pedigree specific variables in a given primal solution.
Definition: pedigrees.c:979
SCIP_RETCODE PD_addPedigreeParameters(SCIP *scip)
Makes SCIP recognise parameters related to pedigree reconstruction.
Definition: pedigrees.c:124
SCIP_Bool * PD_getCurrentPedigreeVarValues(SCIP *scip)
Gets the values of the pedigree specific variables in the current solution.
Definition: pedigrees.c:333
SCIP_Bool PD_inPedigreeMode(SCIP *scip)
Determines whether the program is being run for learning pedigrees.
Definition: pedigrees.c:48