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.
◆ 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()
|
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 gcg::DETPROBDATA::conspartitioncollection, FALSE, GCGconshdlrDecompCalcCandidatesNBlocks(), GCGconshdlrDecompClassify(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::DETPROBDATA::getCons(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getVar(), gcg::DETPROBDATA::isAssignedToOrigProb(), NULL, partition(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMED, SCIPconsGetName(), SCIPgetBoolParam(), SCIPgetStage(), SCIPinfoMessage(), SCIPvarGetName(), and gcg::DETPROBDATA::varpartitioncollection.
Referenced by SCIP_DECL_READERWRITE().
◆ 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 NULL, READER_NAME, SCIP_OKAY, SCIPfreeMemory, SCIPreaderGetData(), and SCIPreaderGetName().
◆ SCIP_DECL_READERWRITE()
|
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 | ) |
includes the cls reader into SCIP
- Parameters
-
gcg GCG data structure
Definition at line 222 of file reader_cls.cpp.
References DEFAULT_USETRANSFORM, FALSE, SCIP_ReaderData::gcg, GCGgetOrigprob(), NULL, READER_DESC, READER_EXTENSION, READER_NAME, readerCopyCls, readerReadCls, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPallocMemory, SCIPincludeReader(), and SCIP_ReaderData::usetransform.
Referenced by GCGincludeGcgPlugins().