Detailed Description
main file for GMI cut example
Definition in file cmain.c.
Go to the source code of this file.
Functions | |
static SCIP_RETCODE | readParams (SCIP *scip, const char *filename) |
static SCIP_RETCODE | fromCommandLine (SCIP *scip, const char *filename) |
static SCIP_RETCODE | interactive (SCIP *scip) |
static SCIP_RETCODE | runSCIP (int argc, char **argv) |
int | main (int argc, char **argv) |
Function Documentation
◆ readParams()
|
static |
reads parameters
- Parameters
-
scip SCIP data structure filename parameter file name, or NULL
Definition at line 29 of file cmain.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPfileExists(), SCIPinfoMessage(), and SCIPreadParams().
Referenced by runSCIP().
◆ fromCommandLine()
|
static |
starts SCIP
- Parameters
-
scip SCIP data structure filename input file name
Definition at line 55 of file cmain.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPprintBestSol(), SCIPprintStatistics(), SCIPreadProb(), and SCIPsolve().
Referenced by runSCIP().
◆ interactive()
|
static |
starts user interactive mode
- Parameters
-
scip SCIP data structure
Definition at line 90 of file cmain.c.
References SCIP_CALL, SCIP_OKAY, and SCIPstartInteraction().
Referenced by processArguments(), runSCIP(), and SCIPprocessShellArguments().
◆ runSCIP()
|
static |
creates a SCIP instance with default plugins, evaluates command line parameters, runs SCIP appropriately, and frees the SCIP instance
- Parameters
-
argc number of shell parameters argv array with shell parameters
Definition at line 103 of file cmain.c.
References BMScheckEmptyMemory, fromCommandLine(), interactive(), NULL, readParams(), SCIP_CALL, SCIP_OKAY, SCIPcreate(), SCIPenableDebugSol(), SCIPfree(), SCIPincludeDefaultPlugins(), SCIPincludeSepaGMI(), SCIPinfoMessage(), and SCIPprintVersion().
Referenced by main().
◆ main()
int main | ( | int | argc, |
char ** | argv | ||
) |
main method starting SCIP
- Parameters
-
argc number of arguments from the shell argv array of shell arguments
Definition at line 173 of file cmain.c.
References runSCIP(), SCIP_OKAY, and SCIPprintError().