#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
| 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.
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 assert(), buildMod2Matrix(), computeMaxViolation(), depth, destroyMod2Matrix(), GCGcreateCutIndicesFromRowindex(), GCGgetMasterprob(), GCGselectConstraintsZeroHalf(), i, GCG_ZeroHalfData::infeasible, j, MAXREDUCTIONROUNDS, GCG_ZeroHalfData::maxslack, GCG_ZeroHalfData::maxslackroot, Mod2Row::maxsolval, GCG_ZeroHalfData::minviol, mod2matrixPreprocessColumns(), mod2matrixPreprocessRows(), mod2matrixRemoveCol(), mod2rowAddRow(), ncalls, Mod2Matrix::ncols, Mod2Row::nnonzcols, Mod2Row::nonzcols, Mod2Col::nonzrows, GCG_ZeroHalfData::nreductions, Mod2Row::nrowinds, Mod2Matrix::nrows, Mod2Matrix::nzeroslackrows, Mod2Row::rhs, Mod2Row::rowinds, Mod2Matrix::rows, SCIP_CALL(), SCIPfreeBufferArray(), Mod2Row::slack, sol, and Mod2Col::solval.
Referenced by GCGselectConstraintsZeroHalf(), and 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 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
-
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 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
-
scip SCIP data structure (master problem) cutindices pointer to cutindices
Definition at line 200 of file zerohalf_selector.c.
References assert(), GCGfreeCutIndices(), and SCIPfreeBufferArray().
Referenced by GCGfreeCutIndices(), and SCIP_DECL_SEPAEXECLP().