Detailed Description
CLS reader for writing files containing classification data.
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()
|
static |
write classification data
- Parameters
-
gcg GCG data structure file File pointer to write to
Definition at line 74 of file reader_cls.cpp.
References assert(), c, gcg::DETPROBDATA::conspartitioncollection, GCGconshdlrDecompCalcCandidatesNBlocks(), GCGconshdlrDecompClassify(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::IndexPartition::getClassDescription(), gcg::IndexPartition::getClassName(), gcg::ConsPartition::getClassOfCons(), gcg::VarPartition::getClassOfVar(), gcg::DETPROBDATA::getCons(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVars(), gcg::VarPartition::getNVarsOfClasses(), gcg::DETPROBDATA::getVar(), gcg::DETPROBDATA::isAssignedToOrigProb(), partition(), SCIP_CALL(), var, gcg::DETPROBDATA::varpartitioncollection, and writeCls().
Referenced by SCIP_DECL_READERWRITE(), and writeCls().
◆ SCIP_DECL_READERFREE()
|
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()
|
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
-
gcg GCG 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().