Scippy

SCIP

Solving Constraint Integer Programs

vardata_binpacking.h File Reference

Detailed Description

Variable data containing the ids of constraints in which the variable appears.

Author
Timo Berthold
Stefan Heinz

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
scipSCIP data structure
vardatapointer to vardata
considsarray of constraints ids
nconsidsnumber 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
vardatavariable 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
vardatavariable 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
scipSCIP data structure
varpointer to variable object
namename of variable, or NULL for automatic name creation
objobjective function value
initialshould var's column be present in the initial root LP?
removableis var's column removable from the LP (due to aging or cleanup)?
vardatauser 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
scipSCIP data structure
vardatavariable data
filethe 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().