Scippy

GCG

Branch-and-Price & Column Generation for Everyone

zerohalf_selector.h File Reference
#include <scip/def.h>
#include <scip/type_retcode.h>
#include <scip/type_scip.h>
#include "gcg/gcg.h"

Go to the source code of this file.

Data Structures

struct  GCG_ZeroHalfData
 
struct  GCG_CutIndices
 
struct  RowIndex
 

Typedefs

typedef struct GCG_ZeroHalfData GCG_ZEROHALFDATA
 
typedef struct GCG_CutIndices GCG_CUTINDICES
 
typedef struct RowIndex ROWINDEX
 

Functions

SCIP_RETCODE GCGselectConstraintsZeroHalf (GCG *gcg, SCIP_SOL *sol, SCIP_Bool allowlocal, int depth, GCG_ZEROHALFDATA *zhdata, int ncalls, int maxcuts, GCG_CUTINDICES ***cutindices, int *ncutindices)
 
SCIP_RETCODE GCGcreateCutIndicesFromRowindex (SCIP *scip, GCG_CUTINDICES **cutindices, int nindices, ROWINDEX *rowindex)
 
SCIP_RETCODE GCGcreateCutIndicesFromArray (SCIP *scip, GCG_CUTINDICES **cutindices, int nindices, int *indices)
 
SCIP_RETCODE GCGfreeCutIndices (SCIP *scip, GCG_CUTINDICES **cutindices)
 

Typedef Documentation

◆ GCG_ZEROHALFDATA

Definition at line 68 of file zerohalf_selector.h.

◆ GCG_CUTINDICES

Definition at line 75 of file zerohalf_selector.h.

◆ ROWINDEX

typedef struct RowIndex ROWINDEX

Definition at line 84 of file zerohalf_selector.h.

Function Documentation

◆ GCGselectConstraintsZeroHalf()

◆ GCGcreateCutIndicesFromRowindex()

SCIP_RETCODE GCGcreateCutIndicesFromRowindex ( SCIP *  scip,
GCG_CUTINDICES **  cutindices,
int  nindices,
ROWINDEX *  rowindex 
)

create an instance of cut indices

data of separator create an instance of cut indices

Parameters
scipSCIP data structure (master problem)
cutindicespointer to store cutindices
nindicesnumber of indices
rowindexindices

Definition at line 154 of file zerohalf_selector.c.

References RowIndex::index, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBuffer, and SCIPallocBufferArray.

Referenced by GCGselectConstraintsZeroHalf(), and mod2matrixPreprocessRows().

◆ GCGcreateCutIndicesFromArray()

SCIP_RETCODE GCGcreateCutIndicesFromArray ( SCIP *  scip,
GCG_CUTINDICES **  cutindices,
int  nindices,
int *  indices 
)

create an instance of cut indices

Parameters
scipSCIP data structure (master problem)
cutindicespointer to store cutindices
nindicesnumber of indices
indicesindices

Definition at line 181 of file zerohalf_selector.c.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPallocBuffer.

Referenced by selectConstraintsEnumerate(), and selectConstraintsRandom().

◆ GCGfreeCutIndices()

SCIP_RETCODE GCGfreeCutIndices ( SCIP *  scip,
GCG_CUTINDICES **  cutindices 
)

free an instance of cut indices

Parameters
scipSCIP data structure (master problem)
cutindicespointer to cutindices

Definition at line 200 of file zerohalf_selector.c.

References NULL, SCIP_OKAY, SCIPfreeBuffer, and SCIPfreeBufferArray.

Referenced by SCIP_DECL_SEPAEXECLP().