#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
| typedef struct GCG_ZeroHalfData GCG_ZEROHALFDATA |
Definition at line 68 of file zerohalf_selector.h.
◆ GCG_CUTINDICES
| typedef struct GCG_CutIndices GCG_CUTINDICES |
Definition at line 75 of file zerohalf_selector.h.
◆ ROWINDEX
Definition at line 84 of file zerohalf_selector.h.
Function Documentation
◆ GCGselectConstraintsZeroHalf()
| 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 | ||
| ) |
perform the zerohalf cut separation
Definition at line 1788 of file zerohalf_selector.c.
References buildMod2Matrix(), computeMaxViolation(), destroyMod2Matrix(), FALSE, GCGcreateCutIndicesFromRowindex(), GCGgetMasterprob(), GCG_ZeroHalfData::infeasible, MAXREDUCTIONROUNDS, GCG_ZeroHalfData::maxslack, GCG_ZeroHalfData::maxslackroot, Mod2Row::maxsolval, GCG_ZeroHalfData::minviol, mod2matrixPreprocessColumns(), mod2matrixPreprocessRows(), mod2matrixRemoveCol(), mod2rowAddRow(), Mod2Matrix::ncols, Mod2Row::nnonzcols, Mod2Row::nonzcols, Mod2Col::nonzrows, GCG_ZeroHalfData::nreductions, Mod2Row::nrowinds, Mod2Matrix::nrows, NULL, Mod2Matrix::nzeroslackrows, Mod2Row::rhs, Mod2Row::rowinds, Mod2Matrix::rows, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPblkmem(), SCIPdebugMsg, SCIPfeastol(), SCIPfreeBufferArray, SCIPhashsetGetNSlots(), SCIPhashsetGetSlots(), SCIPisPositive(), SCIPselectPtr(), SCIPsortPtr(), Mod2Row::slack, and Mod2Col::solval.
Referenced by selectConstraintsZerohalf().
◆ 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
-
scip SCIP data structure (master problem) cutindices pointer to store cutindices nindices number of indices rowindex indices
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
-
scip SCIP data structure (master problem) cutindices pointer to store cutindices nindices number of indices indices indices
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
-
scip SCIP data structure (master problem) cutindices pointer to cutindices
Definition at line 200 of file zerohalf_selector.c.
References NULL, SCIP_OKAY, SCIPfreeBuffer, and SCIPfreeBufferArray.
Referenced by SCIP_DECL_SEPAEXECLP().