Scippy

GCG

Branch-and-Price & Column Generation for Everyone

reader_cls.cpp File Reference

Detailed Description

CLS reader for writing files containing classification data.

Author
Michael Bastubbe
Julius Hense

Definition in file reader_cls.cpp.

#include <assert.h>
#include <string.h>
#include <ctype.h>
#include "gcg/reader_cls.h"
#include "gcg/cons_decomp.h"
#include "gcg/cons_decomp.hpp"
#include "gcg/class_detprobdata.h"
#include "gcg/class_conspartition.h"
#include "gcg/class_varpartition.h"

Go to the source code of this file.

Data Structures

struct  SCIP_ConshdlrData
 
struct  SCIP_ReaderData
 

Macros

#define READER_NAME   "clsreader"
 
#define READER_DESC   "reader for writing classification data"
 
#define READER_EXTENSION   "cls"
 
#define DEFAULT_USETRANSFORM   TRUE
 
#define readerCopyCls   NULL
 
#define readerReadCls   NULL
 

Functions

static SCIP_RETCODE writeCls (GCG *gcg, FILE *file)
 
static SCIP_DECL_READERFREE (readerFreeCls)
 
static SCIP_DECL_READERWRITE (readerWriteCls)
 
SCIP_RETCODE GCGincludeReaderCls (GCG *gcg)
 

Macro Definition Documentation

◆ READER_NAME

#define READER_NAME   "clsreader"

Definition at line 49 of file reader_cls.cpp.

◆ READER_DESC

#define READER_DESC   "reader for writing classification data"

Definition at line 50 of file reader_cls.cpp.

◆ READER_EXTENSION

#define READER_EXTENSION   "cls"

Definition at line 51 of file reader_cls.cpp.

◆ DEFAULT_USETRANSFORM

#define DEFAULT_USETRANSFORM   TRUE

Definition at line 52 of file reader_cls.cpp.

◆ readerCopyCls

#define readerCopyCls   NULL

Definition at line 185 of file reader_cls.cpp.

◆ readerReadCls

#define readerReadCls   NULL

problem reading method of reader

Definition at line 203 of file reader_cls.cpp.

Function Documentation

◆ writeCls()

◆ SCIP_DECL_READERFREE()

static SCIP_DECL_READERFREE ( readerFreeCls  )
static

destructor of reader to free user data (called when SCIP is exiting)

Definition at line 189 of file reader_cls.cpp.

References NULL, READER_NAME, SCIP_OKAY, SCIPfreeMemory, SCIPreaderGetData(), and SCIPreaderGetName().

◆ SCIP_DECL_READERWRITE()

static SCIP_DECL_READERWRITE ( readerWriteCls  )
static

problem writing method of reader

Definition at line 207 of file reader_cls.cpp.

References SCIP_ReaderData::gcg, NULL, SCIP_CALL, SCIP_OKAY, SCIP_SUCCESS, SCIPreaderGetData(), and writeCls().

◆ GCGincludeReaderCls()

SCIP_RETCODE GCGincludeReaderCls ( GCG *  gcg)