Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

COR file reader (MPS format of the core problem for stochastic programs)

Author
Stephen J. Maher

Definition in file reader_cor.c.

#include "scip/pub_message.h"
#include "scip/pub_reader.h"
#include "scip/reader_cor.h"
#include "scip/reader_mps.h"
#include "scip/scip_mem.h"
#include "scip/scip_reader.h"
#include <string.h>

Go to the source code of this file.

Macros

#define READER_NAME   "correader"
 
#define READER_DESC   "file reader for CORE problem of stochastic programs in the SMPS file format"
 
#define READER_EXTENSION   "cor"
 
#define SCIP_DEFAULT_ARRAYSIZE   100
 

Functions

static SCIP_RETCODE createReaderdata (SCIP *scip, SCIP_READERDATA *readerdata)
 
static SCIP_RETCODE freeReaderdata (SCIP *scip, SCIP_READERDATA *readerdata)
 
static SCIP_DECL_READERCOPY (readerCopyCor)
 
static SCIP_DECL_READERFREE (readerFreeCor)
 
static SCIP_DECL_READERREAD (readerReadCor)
 
SCIP_RETCODE SCIPincludeReaderCor (SCIP *scip)
 
SCIP_RETCODE SCIPreadCor (SCIP *scip, const char *filename, SCIP_RESULT *result)
 
SCIP_Bool SCIPcorHasRead (SCIP_READER *reader)
 
int SCIPcorGetNVarNames (SCIP_READER *reader)
 
int SCIPcorGetNConsNames (SCIP_READER *reader)
 
const char * SCIPcorGetVarName (SCIP_READER *reader, int i)
 
const char * SCIPcorGetConsName (SCIP_READER *reader, int i)
 

Macro Definition Documentation

◆ READER_NAME

#define READER_NAME   "correader"

Definition at line 41 of file reader_cor.c.

◆ READER_DESC

#define READER_DESC   "file reader for CORE problem of stochastic programs in the SMPS file format"

Definition at line 42 of file reader_cor.c.

◆ READER_EXTENSION

#define READER_EXTENSION   "cor"

Definition at line 43 of file reader_cor.c.

◆ SCIP_DEFAULT_ARRAYSIZE

#define SCIP_DEFAULT_ARRAYSIZE   100

Definition at line 45 of file reader_cor.c.

Function Documentation

◆ createReaderdata()

static SCIP_RETCODE createReaderdata ( SCIP scip,
SCIP_READERDATA readerdata 
)
static

creates the reader data

Parameters
scipSCIP data structure
readerdatathe reader data structure

Definition at line 61 of file reader_cor.c.

References FALSE, NULL, SCIP_CALL, SCIP_DEFAULT_ARRAYSIZE, SCIP_OKAY, and SCIPallocBlockMemoryArray.

Referenced by SCIPincludeReaderCor().

◆ freeReaderdata()

static SCIP_RETCODE freeReaderdata ( SCIP scip,
SCIP_READERDATA readerdata 
)
static

creates the reader data

Parameters
scipSCIP data structure
readerdatathe reader data structure

Definition at line 83 of file reader_cor.c.

References NULL, SCIP_OKAY, and SCIPfreeBlockMemoryArray.

Referenced by SCIP_DECL_READERFREE().

◆ SCIP_DECL_READERCOPY()

static SCIP_DECL_READERCOPY ( readerCopyCor  )
static

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

Definition at line 111 of file reader_cor.c.

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

◆ SCIP_DECL_READERFREE()

static SCIP_DECL_READERFREE ( readerFreeCor  )
static

destructor of reader to free user data (called when SCIP is exiting) ! [SnippetReaderFreeCor]

Definition at line 127 of file reader_cor.c.

References freeReaderdata(), NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPreaderGetData(), and SCIPreaderGetName().

◆ SCIP_DECL_READERREAD()

static SCIP_DECL_READERREAD ( readerReadCor  )
static

! [SnippetReaderFreeCor] problem reading method of reader

Definition at line 146 of file reader_cor.c.

References SCIP_CALL, SCIP_OKAY, and SCIPreadCor().