SCIP Doxygen Documentation
 
Loading...
Searching...
No Matches
cmain.c File Reference

Detailed Description

main file for GMI cut example

Author
Marc Pfetsch

Definition in file cmain.c.

#include <scip/scip.h>
#include <scip/scipdefplugins.h>
#include "sepa_gmi.h"

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 SCIP_RETCODE readParams ( SCIP * scip,
const char * filename )
static

reads parameters

Parameters
scipSCIP data structure
filenameparameter file name, or NULL

Definition at line 38 of file cmain.c.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPfileExists(), SCIPinfoMessage(), and SCIPreadParams().

Referenced by runSCIP().

◆ fromCommandLine()

static SCIP_RETCODE fromCommandLine ( SCIP * scip,
const char * filename )
static

starts SCIP

Parameters
scipSCIP data structure
filenameinput file name

Definition at line 64 of file cmain.c.

References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPprintBestSol(), SCIPprintStatistics(), SCIPreadProb(), and SCIPsolve().

Referenced by runSCIP().

◆ interactive()

static SCIP_RETCODE interactive ( SCIP * scip)
static

starts user interactive mode

Parameters
scipSCIP data structure

Definition at line 99 of file cmain.c.

References SCIP_CALL, SCIP_OKAY, and SCIPstartInteraction().

Referenced by fromAmpl(), processArguments(), runSCIP(), and SCIPprocessShellArguments().

◆ runSCIP()

static SCIP_RETCODE runSCIP ( int argc,
char ** argv )
static

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

Definition at line 112 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
argcnumber of arguments from the shell
argvarray of shell arguments

Definition at line 182 of file cmain.c.

References runSCIP(), SCIP_OKAY, and SCIPprintError().