Detailed Description
Variable data containing the ids of constraints in which the variable appears.
This file implements the handling of the variable data which is attached to each file. See SCIP_VarData and Pricing new variables.
Definition in file vardata_binpacking.h.
#include "scip/scip.h"
Go to the source code of this file.
Functions | |
SCIP_RETCODE | SCIPvardataCreateBinpacking (SCIP *scip, SCIP_VARDATA **vardata, int *consids, int nconss) |
int | SCIPvardataGetNConsids (SCIP_VARDATA *vardata) |
int * | SCIPvardataGetConsids (SCIP_VARDATA *vardata) |
SCIP_RETCODE | SCIPcreateVarBinpacking (SCIP *scip, SCIP_VAR **var, const char *name, SCIP_Real obj, SCIP_Bool initial, SCIP_Bool removable, SCIP_VARDATA *vardata) |
void | SCIPvardataPrint (SCIP *scip, SCIP_VARDATA *vardata, FILE *file) |
Function Documentation
◆ SCIPvardataCreateBinpacking()
SCIP_RETCODE SCIPvardataCreateBinpacking | ( | SCIP * | scip, |
SCIP_VARDATA ** | vardata, | ||
int * | consids, | ||
int | nconsids | ||
) |
create variable data
- Parameters
-
scip SCIP data structure vardata pointer to vardata consids array of constraints ids nconsids number of constraints
Definition at line 112 of file vardata_binpacking.c.
References SCIP_CALL, SCIP_OKAY, and vardataCreate().
Referenced by createInitialColumns(), and SCIP_DECL_PRICERREDCOST().
◆ SCIPvardataGetNConsids()
int SCIPvardataGetNConsids | ( | SCIP_VARDATA * | vardata | ) |
get number of constraints
- Parameters
-
vardata variable data
Definition at line 125 of file vardata_binpacking.c.
Referenced by addFixedVarsConss(), checkVariable(), consdataCheck(), and SCIP_DECL_BRANCHEXECLP().
◆ SCIPvardataGetConsids()
int* SCIPvardataGetConsids | ( | SCIP_VARDATA * | vardata | ) |
returns sorted constraint id array
- Parameters
-
vardata variable data
Definition at line 133 of file vardata_binpacking.c.
Referenced by addFixedVarsConss(), checkVariable(), consdataCheck(), and SCIP_DECL_BRANCHEXECLP().
◆ SCIPcreateVarBinpacking()
SCIP_RETCODE SCIPcreateVarBinpacking | ( | SCIP * | scip, |
SCIP_VAR ** | var, | ||
const char * | name, | ||
SCIP_Real | obj, | ||
SCIP_Bool | initial, | ||
SCIP_Bool | removable, | ||
SCIP_VARDATA * | vardata | ||
) |
creates variable
- Parameters
-
scip SCIP data structure var pointer to variable object name name of variable, or NULL for automatic name creation obj objective function value initial should var's column be present in the initial root LP? removable is var's column removable from the LP (due to aging or cleanup)? vardata user data for this specific variable
Definition at line 151 of file vardata_binpacking.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIPcreateVarBasic(), SCIPdebug, SCIPprintVar(), SCIPvarMarkDeletable(), SCIPvarSetData(), SCIPvarSetDeltransData(), SCIPvarSetInitial(), and SCIPvarSetRemovable().
Referenced by createInitialColumns(), and SCIP_DECL_PRICERREDCOST().
◆ SCIPvardataPrint()
void SCIPvardataPrint | ( | SCIP * | scip, |
SCIP_VARDATA * | vardata, | ||
FILE * | file | ||
) |
prints vardata to file stream
- Parameters
-
scip SCIP data structure vardata variable data file the text file to store the information into
Definition at line 184 of file vardata_binpacking.c.
References NULL, SCIPgetProbData(), SCIPinfoMessage(), and SCIPprobdataGetIds().
Referenced by consdataCheck().