GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
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.

Referenced by GCGincludeReaderCls().

◆ readerCopyCls

#define readerCopyCls   NULL

Definition at line 185 of file reader_cls.cpp.

Referenced by GCGincludeReaderCls().

◆ readerReadCls

#define readerReadCls   NULL

problem reading method of reader

Definition at line 203 of file reader_cls.cpp.

Referenced by GCGincludeReaderCls().

Function Documentation

◆ writeCls()

◆ SCIP_DECL_READERFREE()

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 assert(), READER_NAME, and SCIPfreeMemory().

◆ SCIP_DECL_READERWRITE()

SCIP_DECL_READERWRITE ( readerWriteCls )
static

problem writing method of reader

Definition at line 207 of file reader_cls.cpp.

References assert(), SCIP_ReaderData::gcg, result, SCIP_CALL(), and writeCls().

◆ GCGincludeReaderCls()

SCIP_RETCODE GCGincludeReaderCls ( GCG * gcg)

includes the cls reader into SCIP

includes the cls file reader into SCIP

Parameters
gcgGCG data structure

Definition at line 222 of file reader_cls.cpp.

References assert(), DEFAULT_USETRANSFORM, SCIP_ReaderData::gcg, GCGgetOrigprob(), GCGincludeReaderCls(), origprob, READER_DESC, READER_EXTENSION, READER_NAME, readerCopyCls, readerReadCls, SCIP_CALL(), and SCIP_ReaderData::usetransform.

Referenced by GCGincludeGcgPlugins(), and GCGincludeReaderCls().