Scippy

SCIP

Solving Constraint Integer Programs

scip::ObjRelax Class Referenceabstract

Detailed Description

C++ wrapper for relaxation handlers.

This class defines the interface for relaxation handlers implemented in C++. Note that there is a pure virtual function (this function has to be implemented). This function is: scip_exec().

Definition at line 42 of file objrelax.h.

#include <objrelax.h>

Public Member Functions

 ObjRelax (SCIP *scip, const char *name, const char *desc, int priority, int freq)
 
virtual ~ObjRelax ()
 
virtual SCIP_DECL_RELAXFREE (scip_free)
 
virtual SCIP_DECL_RELAXINIT (scip_init)
 
virtual SCIP_DECL_RELAXEXIT (scip_exit)
 
virtual SCIP_DECL_RELAXINITSOL (scip_initsol)
 
virtual SCIP_DECL_RELAXEXITSOL (scip_exitsol)
 
virtual SCIP_DECL_RELAXEXEC (scip_exec)=0
 
- Public Member Functions inherited from scip::ObjCloneable
virtual ~ObjCloneable ()
 
virtual SCIP_DECL_OBJCLONEABLECLONE (ObjCloneable *clone)
 
virtual SCIP_DECL_OBJCLONEABLEISCLONEABLE (iscloneable)
 

Data Fields

SCIPscip_
 
char * scip_name_
 
char * scip_desc_
 
const int scip_priority_
 
const int scip_freq_
 

Constructor & Destructor Documentation

scip::ObjRelax::ObjRelax ( SCIP scip,
const char *  name,
const char *  desc,
int  priority,
int  freq 
)
inline

default constructor

Parameters
scipSCIP data structure
namename of relaxator
descdescription of relaxator
prioritypriority of the relaxator (negative: after LP, non-negative: before LP)
freqfrequency for calling relaxator

Definition at line 63 of file objrelax.h.

References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.

virtual scip::ObjRelax::~ObjRelax ( )
inlinevirtual

destructor

Definition at line 82 of file objrelax.h.

References SCIPfreeMemoryArray.

Member Function Documentation

virtual scip::ObjRelax::SCIP_DECL_RELAXFREE ( scip_free  )
inlinevirtual

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

See also
SCIP_DECL_RELAXFREE(x) in type_relax.h

Definition at line 94 of file objrelax.h.

References SCIP_OKAY.

virtual scip::ObjRelax::SCIP_DECL_RELAXINIT ( scip_init  )
inlinevirtual

initialization method of relaxator (called after problem was transformed)

See also
SCIP_DECL_RELAXINIT(x) in type_relax.h

Definition at line 103 of file objrelax.h.

References SCIP_OKAY.

virtual scip::ObjRelax::SCIP_DECL_RELAXEXIT ( scip_exit  )
inlinevirtual

deinitialization method of relaxator (called before transformed problem is freed)

See also
SCIP_DECL_RELAXEXIT(x) in type_relax.h

Definition at line 112 of file objrelax.h.

References SCIP_OKAY.

virtual scip::ObjRelax::SCIP_DECL_RELAXINITSOL ( scip_initsol  )
inlinevirtual

solving process initialization method of relaxator (called when branch and bound process is about to begin)

See also
SCIP_DECL_RELAXINITSOL(x) in type_relax.h

Definition at line 121 of file objrelax.h.

References SCIP_OKAY.

virtual scip::ObjRelax::SCIP_DECL_RELAXEXITSOL ( scip_exitsol  )
inlinevirtual

solving process deinitialization method of relaxator (called before branch and bound process data is freed)

See also
SCIP_DECL_RELAXEXITSOL(x) in type_relax.h

Definition at line 130 of file objrelax.h.

References SCIP_Bool, SCIP_DECL_RELAXEXEC(), SCIP_OKAY, SCIPfindObjRelax(), SCIPgetObjRelax(), and SCIPincludeObjRelax().

virtual scip::ObjRelax::SCIP_DECL_RELAXEXEC ( scip_exec  )
pure virtual

execution method of relaxator

See also
SCIP_DECL_RELAXEXEC(x) in type_relax.h

Referenced by SCIP_DECL_RELAXEXITSOL().

Field Documentation

SCIP* scip::ObjRelax::scip_

SCIP data structure

Definition at line 48 of file objrelax.h.

char* scip::ObjRelax::scip_name_

name of the relaxator

Definition at line 51 of file objrelax.h.

Referenced by SCIPincludeObjRelax().

char* scip::ObjRelax::scip_desc_

description of the relaxator

Definition at line 54 of file objrelax.h.

Referenced by SCIPincludeObjRelax().

const int scip::ObjRelax::scip_priority_

default priority of the relaxator (negative: call after LP, non-negative: call before LP)

Definition at line 57 of file objrelax.h.

Referenced by SCIPincludeObjRelax().

const int scip::ObjRelax::scip_freq_

frequency for calling relaxator

Definition at line 60 of file objrelax.h.

Referenced by SCIPincludeObjRelax().