Detailed Description
Main file for C compilation.
Definition in file main.c.
#include <string.h>#include "scip/scip.h"#include "scip/scipdefplugins.h"#include "scip/scipshell.h"#include "gcg/gcgplugins.h"#include "gcg/cons_decomp.h"#include "gcg/relax_gcg.h"#include "gcg/gcg.h"Go to the source code of this file.
Functions | |
| static SCIP_RETCODE | readParams (SCIP *scip, const char *filename) |
| static SCIP_RETCODE | fromCommandLine (GCG *gcg, const char *filename, const char *decname) |
| static SCIP_RETCODE | GCGprocessGCGShellArguments (GCG *gcg, int argc, char **argv, const char *defaultsetname) |
| static SCIP_RETCODE | GCGrunGCGShell (int argc, char **argv, const char *defaultsetname) |
| int | main (int argc, char **argv) |
Function Documentation
◆ readParams()
|
static |
read in parameter file
- Returns
- SCIP return code
- Parameters
-
scip SCIP data structure filename parameter file name
Definition at line 57 of file main.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPfileExists(), SCIPinfoMessage(), and SCIPreadParams().
Referenced by GCGprocessGCGShellArguments().
◆ fromCommandLine()
|
static |
runs GCG from the command line
- Returns
- SCIPreturn code
- Parameters
-
gcg GCG data structure filename input file name decname decomposition file name (or NULL)
Definition at line 76 of file main.c.
References FALSE, GCGgetOrigprob(), GCGprintStatistics(), GCGsolve(), GCGtransformProb(), NULL, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPprintBestSol(), and SCIPreadProb().
Referenced by GCGprocessGCGShellArguments().
◆ GCGprocessGCGShellArguments()
|
static |
evaluates command line parameters and runs GCG appropriately in the given SCIP instance
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure argc number of shell parameters argv array with shell parameters defaultsetname name of default settings file
Definition at line 127 of file main.c.
References FALSE, fromCommandLine(), GCGgetMasterprob(), GCGgetOrigprob(), NULL, readParams(), SCIP_Bool, SCIP_CALL, SCIP_ERROR, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIP_UNKNOWN, SCIPaddDialogInputLine(), SCIPfclose(), SCIPfeastol(), SCIPfeof(), SCIPfgets(), SCIPfopen(), SCIPinfoMessage(), SCIPparseReal(), SCIPprintExternalCodes(), SCIPprintSysError(), SCIPprintVersion(), SCIPsetMessagehdlrLogfile(), SCIPsetMessagehdlrQuiet(), SCIPstartInteraction(), SCIPvalidateSolve(), and TRUE.
Referenced by GCGrunGCGShell().
◆ GCGrunGCGShell()
|
static |
runs the interactive shell
- Returns
- SCIP return code
- Parameters
-
argc number of shell parameters argv array with shell parameters defaultsetname name of default settings file
Definition at line 414 of file main.c.
References BMScheckEmptyMemory, GCGcreate(), GCGfree(), GCGprintVersion(), GCGprocessGCGShellArguments(), NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by main().
◆ main()
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
main function called first
- Returns
- 0 if success, -1 otherwise
- Parameters
-
argc number of arguments argv array of arguments
Definition at line 452 of file main.c.
References GCGrunGCGShell(), SCIP_OKAY, and SCIPprintError().