GOBNILP
f164d83
|
Function declarations for probdata_bn.c. More...
Go to the source code of this file.
Functions | |
SCIP_RETCODE | BN_addNonRepetitionConstraint (SCIP *scip, int run) |
Adds a constraint that prevents the current best network being found again. More... | |
SCIP_RETCODE | BN_addParameters (SCIP *scip) |
Adds GOBNILP specific parameters to those recognised by SCIP. More... | |
SCIP_RETCODE | BN_doIterativePrint (SCIP *scip, MA_info *ma_info, int run) |
Prints appropriate information about each optimal solution obtained. More... | |
int | BN_getNumberOfRepeats (SCIP *scip) |
Gets the number of most likely Bayesian networks that should be found. More... | |
SCIP_RETCODE | BN_includePlugins (SCIP *scip) |
Includes all plugins needed by the problem. More... | |
SCIP_RETCODE | BN_printcountsols (SCIP *scip, char *filename) |
Prints solutions found using countsols. More... | |
SCIP_RETCODE | BN_printHeader (SCIP *scip) |
Prints a header which describes the GOBNILP and SCIP systems being used. More... | |
SCIP_RETCODE | BN_printParameters (SCIP *scip) |
Prints any of the current SCIP or GOBNILP parameters not at their default value. More... | |
SCIP_RETCODE | BN_printProblem (SCIP *scip, int run) |
Prints the current problem. More... | |
SCIP_RETCODE | BN_printScores (SCIP *scip) |
Prints the scores for the family variables in Jaakkola format. More... | |
SCIP_RETCODE | BN_readProblem (SCIP *scip, char *inputformat, char *frequencyfile, const char *filename) |
Reads in a problem from a file. More... | |
SCIP_RETCODE | BN_setParamaterDefaults (SCIP *scip) |
Sets various built-in SCIP parameters to suitable GOBNILP values. More... | |
SCIP_RETCODE | BN_suppresscols (SCIP *scip) |
Suppresses output columns according to the value of parameter gobnilp/verblevelsetcols. More... | |
Function declarations for probdata_bn.c.
SCIP_RETCODE BN_addNonRepetitionConstraint | ( | SCIP * | scip, |
int | run | ||
) |
Adds a constraint that prevents the current best network being found again.
scip | The SCIP instance being used for the optimisation. |
run | The iteration of the loop that this soilution was found on. |
References BN_addMECNonRepetitionConstraint(), MD_getParentSetData(), ParentSetData::n, ParentSetData::nParentSets, and ParentSetData::PaVars.
SCIP_RETCODE BN_addParameters | ( | SCIP * | scip | ) |
Adds GOBNILP specific parameters to those recognised by SCIP.
scip | The SCIP instance to add to the parameters to. |
References IO_addOutputParameters(), PD_addPedigreeParameters(), SC_addScoringParameters(), UT_addBoolParam(), UT_addIntParam(), UT_addLongintParam(), UT_addRealParam(), and UT_addStringParam().
Referenced by main().
SCIP_RETCODE BN_doIterativePrint | ( | SCIP * | scip, |
MA_info * | ma_info, | ||
int | run | ||
) |
Prints appropriate information about each optimal solution obtained.
scip | The SCIP instance for which the solution has been found. |
run | The iteration of the main loop that the solution was found on. |
References IO_doIterativePrint(), and MD_getParentSetData().
Referenced by main().
int BN_getNumberOfRepeats | ( | SCIP * | scip | ) |
Gets the number of most likely Bayesian networks that should be found.
scip | The SCIP inatance used for finding the networks. |
Referenced by main().
SCIP_RETCODE BN_includePlugins | ( | SCIP * | scip | ) |
Includes all plugins needed by the problem.
scip | The SCIP instance to add the plugins to. |
References DC_includeConshdlr(), HS_includePrimal(), MD_initialiseMetadata(), SCIPincludeConshdlrChordal(), SCIPincludeConshdlrCi(), SCIPincludeConshdlrLOP(), and SCIPincludeConshdlrPartialOrdering().
Referenced by main().
SCIP_RETCODE BN_printcountsols | ( | SCIP * | scip, |
char * | filename | ||
) |
Prints solutions found using countsols.
scip | The SCIP instance to print scores for. |
References IO_printcountsols(), and MD_getParentSetData().
Referenced by main().
SCIP_RETCODE BN_printHeader | ( | SCIP * | scip | ) |
Prints a header which describes the GOBNILP and SCIP systems being used.
scip | The SCIP instance that is being used. |
References IO_printHeader().
Referenced by main().
SCIP_RETCODE BN_printParameters | ( | SCIP * | scip | ) |
Prints any of the current SCIP or GOBNILP parameters not at their default value.
scip | The SCIP instance to consult the parameters of. |
References IO_printParameters().
Referenced by main().
SCIP_RETCODE BN_printProblem | ( | SCIP * | scip, |
int | run | ||
) |
Prints the current problem.
scip | The SCIP instance for which the problem should be printed. |
run | The iteration of the main loop that the problem is to be solved on. |
References IO_printProblem().
Referenced by main().
SCIP_RETCODE BN_printScores | ( | SCIP * | scip | ) |
Prints the scores for the family variables in Jaakkola format.
scip | The SCIP instance to print scores for. |
References IO_printScoresInJKLFormat(), and MD_getParentSetData().
Referenced by main().
SCIP_RETCODE BN_readProblem | ( | SCIP * | scip, |
char * | inputformat, | ||
char * | frequencyfile, | ||
const char * | filename | ||
) |
Reads in a problem from a file.
Currently supported file formats are "jak", "cip" and "dat". The one to use is determined using the -f
cmmand line argument and the filename extension. See getInputFormat() for details.
scip | The SCIP instance to read the problem in to. |
filename | The filename from which to read the problem. |
References addAdditionalConstraints(), getInputFormat(), MD_getParentSetData(), ParentSetData::n, ParentSetData::nParents, ParentSetData::nParentSets, ParentSetData::ParentSets, readProblemInCIPFormat(), readProblemInNonCIPFormat(), setBranchingPriorities(), and setSpecialProperties().
Referenced by main().
SCIP_RETCODE BN_setParamaterDefaults | ( | SCIP * | scip | ) |
Sets various built-in SCIP parameters to suitable GOBNILP values.
These values can still be overriden using the settings file.
scip | The SCIP instance the parameters relate to. |
Referenced by main().
SCIP_RETCODE BN_suppresscols | ( | SCIP * | scip | ) |
Suppresses output columns according to the value of parameter gobnilp/verblevelsetcols.
Referenced by main().