Scippy

SCIP

Solving Constraint Integer Programs

scipshell.h File Reference

Detailed Description

SCIP command line interface.

Author
Tobias Achterberg

Definition in file scipshell.h.

#include "scip/def.h"
#include "scip/type_retcode.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPprocessShellArguments (SCIP *scip, int argc, char **argv, const char *defaultsetname)
 
SCIP_RETCODE SCIPrunShell (int argc, char **argv, const char *defaultsetname)
 

Function Documentation

◆ SCIPprocessShellArguments()

SCIP_RETCODE SCIPprocessShellArguments ( SCIP scip,
int  argc,
char **  argv,
const char *  defaultsetname 
)

evaluates command line parameters and runs SCIP appropriately in the given SCIP instance

Parameters
scipSCIP data structure
argcnumber of shell parameters
argvarray with shell parameters
defaultsetnamename of default settings file

Definition at line 148 of file scipshell.c.

References FALSE, fromCommandLine(), interactive(), NULL, readParams(), SCIP_Bool, SCIP_CALL, SCIP_CALL_FINALLY, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddDialogInputLine(), SCIPfclose(), SCIPfeof(), SCIPfgets(), SCIPfopen(), SCIPinfoMessage(), SCIPprintBuildOptions(), SCIPprintExternalCodes(), SCIPprintSysError(), SCIPprintVersion(), SCIPsetMessagehdlrLogfile(), SCIPsetMessagehdlrQuiet(), SCIPstartInteraction(), and TRUE.

Referenced by main(), runSCIP(), runShell(), and SCIPrunShell().

◆ SCIPrunShell()

SCIP_RETCODE SCIPrunShell ( int  argc,
char **  argv,
const char *  defaultsetname 
)

creates a SCIP instance with default plugins, evaluates command line parameters, runs SCIP appropriately, and frees the SCIP instance

Parameters
argcnumber of shell parameters
argvarray with shell parameters
defaultsetnamename of default settings file

Definition at line 354 of file scipshell.c.

References BMScheckEmptyMemory, NULL, SCIP_CALL, SCIP_OKAY, SCIPcreate(), SCIPenableDebugSol(), SCIPfree(), SCIPincludeDefaultPlugins(), and SCIPprocessShellArguments().

Referenced by main().