Scippy

SCIP

Solving Constraint Integer Programs

cmain.c File Reference

Detailed Description

main file for linear ordering example

Author
Marc Pfetsch

Definition in file cmain.c.

#include <string.h>
#include <scip/scip.h>
#include <scip/scipdefplugins.h>
#include "cons_lop.h"
#include "reader_lop.h"

Go to the source code of this file.

Macros

#define SCIP_CALL_ERROR(x)
 

Functions

int main (int argc, char **argv)
 

Macro Definition Documentation

◆ SCIP_CALL_ERROR

#define SCIP_CALL_ERROR (   x)
Value:
do \
{ \
SCIP_RETCODE _restat_; \
if( (_restat_ = (x)) != SCIP_OKAY ) \
{ \
SCIPprintError(_restat_); \
return -1; \
} \
} \
while( FALSE )
#define FALSE
Definition: def.h:72
SCIP_VAR ** x
Definition: circlepacking.c:54

define macro to print error message and exit

Definition at line 32 of file cmain.c.

Referenced by main().

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

main function, which starts the solution of the linear ordering problem

Parameters
argcnumber of arguments from the shell
argvarray of shell arguments

Definition at line 45 of file cmain.c.

References BMScheckEmptyMemory, NULL, SCIP_CALL_ERROR, SCIPcreate(), SCIPfree(), SCIPincludeConshdlrLOP(), SCIPincludeDefaultPlugins(), SCIPincludeReaderLOP(), SCIPinfoMessage(), and SCIPprocessShellArguments().