Problem data for Stochastic Capacitated Facility Location problem.
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, SCIP_Bool quadcosts) |
int | SCIPprobdataGetNFacilities (SCIP_PROBDATA *probdata) |
int | SCIPprobdataGetNCustomers (SCIP_PROBDATA *probdata) |
SCIP_VAR ** | SCIPprobdataGetFacilityVars (SCIP_PROBDATA *probdata) |
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, | ||
SCIP_Bool | quadcosts ) |
sets up the problem data
scip | SCIP data structure |
probname | problem name |
costs | the transportation costs from a facility to a customer |
demands | the customer demands |
capacity | the capacity of each facility |
fixedcost | the fixed cost of opening a facility |
ncustomers | the number of customers |
nfacilities | the number of facilities |
nscenarios | the number of Benders' decomposition scenarios |
usebenders | whether Benders' decomposition is used |
quadcosts | should the problem be formulated with quadratic costs |
Definition at line 798 of file probdata_scflp.c.
References assert(), createMasterproblem(), createOriginalproblem(), createSubproblems(), DEFAULT_SCALINGFACTOR, i, NULL, probdataCreate(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OBJSENSE_MINIMIZE, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreate(), SCIPcreateBendersDefault(), SCIPcreateProbBasic(), SCIPfreeBufferArray, SCIPincludeDefaultPlugins(), SCIPinfoMessage(), SCIPsetBoolParam(), SCIPsetIntParam(), SCIPsetObjsense(), SCIPsetProbData(), SCIPsetProbDelorig(), SCIPsetProbDeltrans(), SCIPsetProbTrans(), SCIPsnprintf(), and TRUE.
int SCIPprobdataGetNFacilities | ( | SCIP_PROBDATA * | probdata | ) |
returns the number of facilities
probdata | problem data |
Definition at line 947 of file probdata_scflp.c.
int SCIPprobdataGetNCustomers | ( | SCIP_PROBDATA * | probdata | ) |
returns the number of customers
probdata | problem data |
Definition at line 957 of file probdata_scflp.c.
SCIP_VAR ** SCIPprobdataGetFacilityVars | ( | SCIP_PROBDATA * | probdata | ) |
returns the facility variables
probdata | problem data |
Definition at line 967 of file probdata_scflp.c.