Scippy

SCIP

Solving Constraint Integer Programs

scip::ObjCutsel Class Referenceabstract

Detailed Description

C++ wrapper for cut selectors.

This class defines the interface for cut selectors implemented in C++.

Definition at line 53 of file objcutsel.h.

C++ wrapper for cut selectors. More...

#include <objcutsel.h>

Public Member Functions

 ObjCutsel (SCIP *scip, const char *name, const char *desc, int priority)
 
 ObjCutsel (const ObjCutsel &o)
 
 ObjCutsel (ObjCutsel &&o)
 
virtual ~ObjCutsel ()
 
ObjCutseloperator= (const ObjCutsel &o)=delete
 
ObjCutseloperator= (ObjCutsel &&o)=delete
 
virtual SCIP_DECL_CUTSELFREE (scip_free)
 
virtual SCIP_DECL_CUTSELINIT (scip_init)
 
virtual SCIP_DECL_CUTSELEXIT (scip_exit)
 
virtual SCIP_DECL_CUTSELINITSOL (scip_initsol)
 
virtual SCIP_DECL_CUTSELEXITSOL (scip_exitsol)
 
virtual SCIP_DECL_CUTSELSELECT (scip_select)=0
 
- 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

SCIPscip_
 
char * scip_name_
 
char * scip_desc_
 
const int scip_priority_
 

Constructor & Destructor Documentation

◆ ObjCutsel() [1/3]

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

default constructor

Parameters
scipSCIP data structure
namename of cut selector
descdescription of cut selector
prioritypriority of the cut

Definition at line 71 of file objcutsel.h.

References scip_, SCIP_CALL_ABORT, scip_desc_, scip_name_, and SCIPduplicateMemoryArray.

◆ ObjCutsel() [2/3]

scip::ObjCutsel::ObjCutsel ( const ObjCutsel o)
inline

copy constructor

Definition at line 87 of file objcutsel.h.

◆ ObjCutsel() [3/3]

scip::ObjCutsel::ObjCutsel ( ObjCutsel &&  o)
inline

move constructor

Definition at line 90 of file objcutsel.h.

References scip_desc_, and scip_name_.

◆ ~ObjCutsel()

virtual scip::ObjCutsel::~ObjCutsel ( )
inlinevirtual

destructor

Definition at line 97 of file objcutsel.h.

References scip_, scip_desc_, scip_name_, and SCIPfreeMemoryArray.

Member Function Documentation

◆ operator=() [1/2]

ObjCutsel & scip::ObjCutsel::operator= ( const ObjCutsel o)
delete

assignment of polymorphic classes causes slicing and is therefore disabled.

◆ operator=() [2/2]

ObjCutsel & scip::ObjCutsel::operator= ( ObjCutsel &&  o)
delete

assignment of polymorphic classes causes slicing and is therefore disabled.

◆ SCIP_DECL_CUTSELFREE()

virtual scip::ObjCutsel::SCIP_DECL_CUTSELFREE ( scip_free  )
inlinevirtual

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

See also
SCIP_DECL_CUTSELFREE(x) in type_cutsel.h

Definition at line 114 of file objcutsel.h.

References SCIP_OKAY.

◆ SCIP_DECL_CUTSELINIT()

virtual scip::ObjCutsel::SCIP_DECL_CUTSELINIT ( scip_init  )
inlinevirtual

initialization method of cut selector (called after problem was transformed)

See also
SCIP_DECL_CUTSELINIT(x) in type_cutsel.h

Definition at line 123 of file objcutsel.h.

References SCIP_OKAY.

◆ SCIP_DECL_CUTSELEXIT()

virtual scip::ObjCutsel::SCIP_DECL_CUTSELEXIT ( scip_exit  )
inlinevirtual

deinitialization method of cut selector (called before transformed problem is freed)

See also
SCIP_DECL_CUTSELEXIT(x) in type_cutsel.h

Definition at line 132 of file objcutsel.h.

References SCIP_OKAY.

◆ SCIP_DECL_CUTSELINITSOL()

virtual scip::ObjCutsel::SCIP_DECL_CUTSELINITSOL ( scip_initsol  )
inlinevirtual

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

See also
SCIP_DECL_CUTSELINITSOL(x) in type_cutsel.h

Definition at line 141 of file objcutsel.h.

References SCIP_OKAY.

◆ SCIP_DECL_CUTSELEXITSOL()

virtual scip::ObjCutsel::SCIP_DECL_CUTSELEXITSOL ( scip_exitsol  )
inlinevirtual

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

See also
SCIP_DECL_CUTSELEXITSOL(x) in type_cutsel.h

Definition at line 150 of file objcutsel.h.

References SCIP_OKAY.

◆ SCIP_DECL_CUTSELSELECT()

virtual scip::ObjCutsel::SCIP_DECL_CUTSELSELECT ( scip_select  )
pure virtual

cut selection method of cut selector

See also
SCIP_DECL_CUTSELSELECT(x) in type_cutsel.h

Field Documentation

◆ scip_

SCIP* scip::ObjCutsel::scip_

SCIP data structure

Definition at line 59 of file objcutsel.h.

Referenced by ObjCutsel(), and ~ObjCutsel().

◆ scip_name_

char* scip::ObjCutsel::scip_name_

name of the cut selector

Definition at line 62 of file objcutsel.h.

Referenced by ObjCutsel(), SCIPincludeObjCutsel(), and ~ObjCutsel().

◆ scip_desc_

char* scip::ObjCutsel::scip_desc_

description of the cut selector

Definition at line 65 of file objcutsel.h.

Referenced by ObjCutsel(), SCIPincludeObjCutsel(), and ~ObjCutsel().

◆ scip_priority_

const int scip::ObjCutsel::scip_priority_

priority of the cut selector

Definition at line 68 of file objcutsel.h.

Referenced by SCIPincludeObjCutsel().