Scippy

SCIP

Solving Constraint Integer Programs

probdata_scflp.h File Reference

Detailed Description

Problem data for Stochastic Capacitated Facility Location problem.

Author
Stephen J. Maher

This file handles the main problem data used in that project. For more details see The global problem data page.

Definition in file probdata_scflp.h.

#include "scip/scip.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPprobdataCreate (SCIP *scip, const char *probname, SCIP_Real **costs, SCIP_Real **demands, SCIP_Real *capacity, SCIP_Real *fixedcost, int ncustomers, int nfacilities, int nsubproblems, SCIP_Bool usebenders)
 
int SCIPprobdataGetNFacilities (SCIP_PROBDATA *probdata)
 
int SCIPprobdataGetNCustomers (SCIP_PROBDATA *probdata)
 
SCIP_VAR ** SCIPprobdataGetFacilityVars (SCIP_PROBDATA *probdata)
 

Function Documentation

◆ SCIPprobdataCreate()

SCIP_RETCODE SCIPprobdataCreate ( SCIP scip,
const char *  probname,
SCIP_Real **  costs,
SCIP_Real **  demands,
SCIP_Real capacity,
SCIP_Real fixedcost,
int  ncustomers,
int  nfacilities,
int  nscenarios,
SCIP_Bool  usebenders 
)

sets up the problem data

Parameters
scipSCIP data structure
probnameproblem name
coststhe transportation costs from a facility to a customer
demandsthe customer demands
capacitythe capacity of each facility
fixedcostthe fixed cost of opening a facility
ncustomersthe number of customers
nfacilitiesthe number of facilities
nscenariosthe number of Benders' decomposition scenarios
usebenderswill Benders' decomposition be used to solve the problem

Definition at line 694 of file probdata_scflp.c.

References createMasterproblem(), createOriginalproblem(), createSubproblems(), NULL, probdataCreate(), SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OBJSENSE_MINIMIZE, SCIP_OKAY, SCIPallocBufferArray, SCIPcreate(), SCIPcreateBendersDefault(), SCIPcreateProbBasic(), SCIPfreeBufferArray, SCIPincludeDefaultPlugins(), SCIPsetBoolParam(), SCIPsetIntParam(), SCIPsetObjsense(), SCIPsetProbData(), SCIPsetProbDelorig(), SCIPsetProbDeltrans(), SCIPsetProbTrans(), SCIPsnprintf(), and TRUE.

◆ SCIPprobdataGetNFacilities()

int SCIPprobdataGetNFacilities ( SCIP_PROBDATA probdata)

returns the number of facilities

Parameters
probdataproblem data

Definition at line 834 of file probdata_scflp.c.

References NULL.

◆ SCIPprobdataGetNCustomers()

int SCIPprobdataGetNCustomers ( SCIP_PROBDATA probdata)

returns the number of customers

Parameters
probdataproblem data

Definition at line 844 of file probdata_scflp.c.

References NULL.

◆ SCIPprobdataGetFacilityVars()

SCIP_VAR** SCIPprobdataGetFacilityVars ( SCIP_PROBDATA probdata)

returns the facility variables

Parameters
probdataproblem data

Definition at line 854 of file probdata_scflp.c.

References NULL.