Detailed Description
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) |
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
-
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 will Benders' decomposition be used to solve the problem
Definition at line 697 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
-
probdata problem data
Definition at line 837 of file probdata_scflp.c.
References NULL.
◆ SCIPprobdataGetNCustomers()
int SCIPprobdataGetNCustomers | ( | SCIP_PROBDATA * | probdata | ) |
returns the number of customers
- Parameters
-
probdata problem data
Definition at line 847 of file probdata_scflp.c.
References NULL.
◆ SCIPprobdataGetFacilityVars()
SCIP_VAR** SCIPprobdataGetFacilityVars | ( | SCIP_PROBDATA * | probdata | ) |
returns the facility variables
- Parameters
-
probdata problem data
Definition at line 857 of file probdata_scflp.c.
References NULL.