GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
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

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.

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 assert(), GCGcreateCutIndicesFromRowindex(), i, RowIndex::index, and SCIP_CALL().

Referenced by GCGcreateCutIndicesFromRowindex(), 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 assert(), GCGcreateCutIndicesFromArray(), and SCIP_CALL().

Referenced by GCGcreateCutIndicesFromArray(), 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 assert(), GCGfreeCutIndices(), and SCIPfreeBufferArray().

Referenced by GCGfreeCutIndices(), and SCIP_DECL_SEPAEXECLP().