Main file for C compilation.
Definition in file main.c.
#include "scip/scip.h"
#include "scip/scipdefplugins.h"
#include "scip/scipshell.h"
#include "scip/message_default.h"
#include <string.h>
#include <unistd.h>
#include "cycplugins.h"
#include "probdata_cyc.h"
#include "reader_cyc.h"
Go to the source code of this file.
Macros | |
#define | COL_MAX_LINELEN 1024 |
Functions | |
static SCIP_RETCODE | readParams (SCIP *scip, const char *filename) |
static SCIP_RETCODE | fromCommandLine (SCIP *scip, const char *filename, const char *soluname) |
static SCIP_RETCODE | processArguments (SCIP *scip, int argc, char **argv, const char *defaultsetname) |
static SCIP_RETCODE | SCIPrunCyc (int argc, char **argv, const char *defaultsetname) |
int | main (int argc, char **argv) |
|
static |
Read the parameters from the command Line
scip | SCIP data structure |
filename | parameter file name |
Definition at line 52 of file main.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPfileExists(), SCIPinfoMessage(), and SCIPreadParams().
Referenced by processArguments().
|
static |
execute the scip-program from the command-line
scip | SCIP data structure |
filename | input file name |
soluname | input file name |
Definition at line 71 of file main.c.
References NULL, SCIP_CALL, SCIP_NOFILE, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIPinfoMessage(), SCIPprintStatistics(), SCIPreadProb(), and SCIPsolve().
Referenced by processArguments().
|
static |
process the arguments and set up the problem
scip | SCIP data structure |
argc | number of shell parameters |
argv | array with shell parameters |
defaultsetname | name of default settings file |
Definition at line 157 of file main.c.
References COL_MAX_LINELEN, FALSE, fromCommandLine(), i, interactive(), NULL, readParams(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddDialogInputLine(), SCIPfclose(), SCIPfeof(), SCIPfgets(), SCIPfopen(), SCIPinfoMessage(), SCIPprintExternalCodes(), SCIPprintSysError(), SCIPprintVersion(), SCIPsetMessagehdlrLogfile(), SCIPsetMessagehdlrQuiet(), SCIPsnprintf(), SCIPstartInteraction(), and TRUE.
Referenced by SCIPrunCyc().
|
static |
Set up the problem-structure and solve the clustering problem
argc | number of shell parameters |
argv | array with shell parameters |
defaultsetname | name of default settings file |
Definition at line 364 of file main.c.
References BMScheckEmptyMemory, NULL, processArguments(), SCIP_CALL, SCIP_OKAY, SCIPcreate(), SCIPfree(), SCIPincludeCycPlugins(), and SCIPinfoMessage().
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
main method
Definition at line 399 of file main.c.
References SCIP_OKAY, SCIPprintError(), and SCIPrunCyc().