Scippy

SCIP

Solving Constraint Integer Programs

cmain.c File Reference

Detailed Description

Main file for capacitated facility location example.

Author
Stephen J. Maher

This the file contains the main() main function of the projects. This includes all the default plugins of SCIP and the once which belong to that projects. After that is starts the interactive shell of SCIP or processes the shell arguments if given.

Definition in file cmain.c.

#include <stdio.h>
#include "scip/scip.h"
#include "scip/scipshell.h"
#include "scip/scipdefplugins.h"
#include "scip/cons_benders.h"
#include "scip/cons_benderslp.h"
#include "scip/benders_default.h"
#include "reader_scflp.h"

Go to the source code of this file.

Functions

static SCIP_RETCODE runShell (int argc, char **argv, const char *defaultsetname)
 
int main (int argc, char **argv)
 

Function Documentation

◆ runShell()

static SCIP_RETCODE runShell ( int  argc,
char **  argv,
const char *  defaultsetname 
)
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
defaultsetnamename of default settings file

Definition at line 39 of file cmain.c.

References BMScheckEmptyMemory, NULL, SCIP_CALL, SCIP_OKAY, SCIP_PARAMSETTING_OFF, SCIPcreate(), SCIPfree(), SCIPincludeDefaultPlugins(), SCIPincludeReaderScflp(), SCIPprocessShellArguments(), SCIPsetIntParam(), SCIPsetPresolving(), SCIPsetSeparating(), and TRUE.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 89 of file cmain.c.

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