GOBNILP  f164d83
Data Structures | Macros | Functions
gobnilp.c File Reference

Main entry point for the program. More...

#include <string.h>
#include <scip/cons_countsols.h>
#include "probdata_bn.h"
#include "utils.h"
Include dependency graph for gobnilp.c:

Data Structures

struct  CLA_info
 Information gathered by parsing command line arguments. More...
 

Macros

#define DEFAULT_GOBNILP_PARAMS_FILE   "gobnilp.set"
 The default file from which to attempt to read parameters. More...
 

Functions

int main (int argc, char **argv)
 Main function which starts the solution of the BN learning problem. More...
 
static void parseArguments (int argc, char **argv, char *keys, char **values)
 Parses the command line arguments. More...
 
static void readCommandLineArgs (CLA_info *cla_info, int argc, char **argv)
 Reads the command line arguments and stores information . More...
 
static void set_cla (CLA_info *cla_info)
 Sets default values for values which can bet set on the command line. More...
 

Detailed Description

Main entry point for the program.

This file contains only general information about the sequence that operations should be performed in. Much of what is in this file should be applicable to ILP problems in general, not just Bayesian network learning. Functions that are more specific to BN learning are found in probdata_bn.c .

Macro Definition Documentation

◆ DEFAULT_GOBNILP_PARAMS_FILE

#define DEFAULT_GOBNILP_PARAMS_FILE   "gobnilp.set"

The default file from which to attempt to read parameters.

Referenced by set_cla().

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ parseArguments()

static void parseArguments ( int  argc,
char **  argv,
char *  keys,
char **  values 
)
static

Parses the command line arguments.

Parameters
argcThe number of command line arguments.
argvThe command line arguments.
keysThe keys extracted from the command line arguments.
valuesThe values extracted from the command line arguments.

Referenced by readCommandLineArgs().

◆ readCommandLineArgs()

static void readCommandLineArgs ( CLA_info cla_info,
int  argc,
char **  argv 
)
static

Reads the command line arguments and stores information .

Parameters
cla_infoCommand line argument information to be updated.
argcThe number of command line arguments.
argvThe command line arguments.
Returns
SCIP_OKAY if reading succeeded or an error otherwise.

References CLA_info::exitbeforefirstsolve, CLA_info::frequencyfile, CLA_info::inputformat, CLA_info::parameterfile, parseArguments(), and CLA_info::verblevel.

Referenced by main().

Here is the call graph for this function:

◆ set_cla()

static void set_cla ( CLA_info cla_info)
static

Sets default values for values which can bet set on the command line.

Parameters
cla_infoCommand line argument information to be initialised.

References DEFAULT_GOBNILP_PARAMS_FILE, CLA_info::exitbeforefirstsolve, CLA_info::frequencyfile, CLA_info::inputformat, CLA_info::parameterfile, and CLA_info::verblevel.

Referenced by main().