Scippy

SCIP

Solving Constraint Integer Programs

reader_gr.c File Reference

Detailed Description

Steiner tree problem file reader.

Author
Daniel Rehfeldt

This file implements the reader used to read and write Steiner tree problems.

Definition in file reader_gr.c.

#include <assert.h>
#include <string.h>
#include "probdata_stp.h"
#include "reader_gr.h"
#include "grph.h"

Go to the source code of this file.

Macros

Reader properties
#define READER_NAME   "grreader"
 
#define READER_DESC   "file reader for Steiner tree data format (gr)"
 
#define READER_EXTENSION   "gr"
 

Functions

Callback methods
static SCIP_DECL_READERCOPY (readerCopyGr)
 
static SCIP_DECL_READERREAD (readerReadGr)
 
Interface methods
SCIP_RETCODE SCIPincludeReaderGr (SCIP *scip)
 

Macro Definition Documentation

◆ READER_NAME

#define READER_NAME   "grreader"

Definition at line 38 of file reader_gr.c.

Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeReaderGr().

◆ READER_DESC

#define READER_DESC   "file reader for Steiner tree data format (gr)"

Definition at line 39 of file reader_gr.c.

Referenced by SCIPincludeReaderGr().

◆ READER_EXTENSION

#define READER_EXTENSION   "gr"

Definition at line 40 of file reader_gr.c.

Referenced by SCIPincludeReaderGr().

Function Documentation

◆ SCIP_DECL_READERCOPY()

static SCIP_DECL_READERCOPY ( readerCopyGr  )
static

copy method for reader plugins (called when SCIP copies plugins)

Definition at line 53 of file reader_gr.c.

References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderGr(), and SCIPreaderGetName().

◆ SCIP_DECL_READERREAD()

static SCIP_DECL_READERREAD ( readerReadGr  )
static

problem reading method of the reader

Definition at line 67 of file reader_gr.c.

References NULL, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_READERROR, SCIP_STAGE_INIT, SCIP_SUCCESS, SCIPgetProbData(), SCIPgetStage(), and SCIPprobdataCreate().

◆ SCIPincludeReaderGr()

SCIP_RETCODE SCIPincludeReaderGr ( SCIP scip)

includes the gr file reader in SCIP

Parameters
scipSCIP data structure

Definition at line 100 of file reader_gr.c.

References NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderBasic(), SCIPsetReaderCopy(), and SCIPsetReaderRead().

Referenced by runShell(), and SCIP_DECL_READERCOPY().