Scippy

SCIP

Solving Constraint Integer Programs

tsp::ReaderTSP Class Reference

Detailed Description

SCIP file reader for TSP data files

Definition at line 54 of file ReaderTSP.h.

#include <ReaderTSP.h>

Public Member Functions

 ReaderTSP (SCIP *scip)
 
virtual ~ReaderTSP ()
 
virtual SCIP_DECL_READERFREE (scip_free)
 
virtual SCIP_DECL_READERREAD (scip_read)
 
virtual SCIP_DECL_READERWRITE (scip_write)
 
- Public Member Functions inherited from scip::ObjReader
 ObjReader (SCIP *scip, const char *name, const char *desc, const char *extension)
 
 ObjReader (const ObjReader &o)
 
 ObjReader (ObjReader &&o)
 
virtual ~ObjReader ()
 
ObjReaderoperator= (const ObjReader &o)=delete
 
ObjReaderoperator= (ObjReader &&o)=delete
 
- Public Member Functions inherited from scip::ObjCloneable
virtual ~ObjCloneable ()
 
ObjCloneableoperator= (const ObjCloneable &o)=delete
 
ObjCloneableoperator= (ObjCloneable &&o)=delete
 
virtual SCIP_DECL_OBJCLONEABLECLONE (ObjCloneable *clone)
 
virtual SCIP_DECL_OBJCLONEABLEISCLONEABLE (iscloneable)
 

Data Fields

SCIP_Bool round_lengths_
 
- Data Fields inherited from scip::ObjReader
SCIPscip_
 
char * scip_name_
 
char * scip_desc_
 
char * scip_extension_
 

Constructor & Destructor Documentation

◆ ReaderTSP()

tsp::ReaderTSP::ReaderTSP ( SCIP scip)
inline

default constructor

Definition at line 61 of file ReaderTSP.h.

References FALSE, NULL, SCIPaddBoolParam(), and TRUE.

◆ ~ReaderTSP()

virtual tsp::ReaderTSP::~ReaderTSP ( )
inlinevirtual

destructor

Definition at line 71 of file ReaderTSP.h.

References nnodes, SCIP_DECL_READERFREE(), SCIP_DECL_READERREAD(), and SCIP_DECL_READERWRITE().

Member Function Documentation

◆ SCIP_DECL_READERFREE()

virtual tsp::ReaderTSP::SCIP_DECL_READERFREE ( scip_free  )
virtual

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

Reimplemented from scip::ObjReader.

Referenced by ~ReaderTSP().

◆ SCIP_DECL_READERREAD()

virtual tsp::ReaderTSP::SCIP_DECL_READERREAD ( scip_read  )
virtual

problem reading method of reader

possible return values for *result:

  • SCIP_SUCCESS : the reader read the file correctly and created an appropritate problem
  • SCIP_DIDNOTRUN : the reader is not responsible for given input file

If the reader detected an error in the input file, it should return with RETCODE SCIP_READERR or SCIP_NOFILE.

Reimplemented from scip::ObjReader.

Referenced by ~ReaderTSP().

◆ SCIP_DECL_READERWRITE()

virtual tsp::ReaderTSP::SCIP_DECL_READERWRITE ( scip_write  )
virtual

problem writing method of reader; NOTE: if the parameter "genericnames" is TRUE, then SCIP already set all variable and constraint names to generic names; therefore, this method should always use SCIPvarGetName() and SCIPconsGetName();

possible return values for *result:

  • SCIP_SUCCESS : the reader read the file correctly and created an appropritate problem
  • SCIP_DIDNOTRUN : the reader is not responsible for given input file

If the reader detected an error in the writing to the file stream, it should return with RETCODE SCIP_WRITEERROR.

Reimplemented from scip::ObjReader.

Referenced by ~ReaderTSP().

Field Documentation

◆ round_lengths_

SCIP_Bool tsp::ReaderTSP::round_lengths_

Definition at line 58 of file ReaderTSP.h.