Scippy

SCIP

Solving Constraint Integer Programs

probdata_scflp.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2019 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scip.zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file probdata_scflp.h
17  * @brief Problem data for Stochastic Capacitated Facility Location problem
18  * @author Stephen J. Maher
19  *
20  * This file handles the main problem data used in that project. For more details see \ref SCFLP_PROBLEMDATA page.
21  */
22 
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
24 
25 #ifndef __SCIP_PROBDATA_SCFLP__
26 #define __SCIP_PROBDATA_SCFLP__
27 
28 #include "scip/scip.h"
29 
30 /** sets up the problem data */
32  SCIP* scip, /**< SCIP data structure */
33  const char* probname, /**< problem name */
34  SCIP_Real** costs, /**< the transportation costs from a facility to a customer */
35  SCIP_Real** demands, /**< the customer demands */
36  SCIP_Real* capacity, /**< the capacity of each facility */
37  SCIP_Real* fixedcost, /**< the fixed cost of opening a facility */
38  int ncustomers, /**< the number of customers */
39  int nfacilities, /**< the number of facilities */
40  int nsubproblems, /**< the number of Benders' decomposition subproblems */
41  SCIP_Bool usebenders /**< will Benders' decomposition be used to solve the problem */
42  );
43 
44 /** returns the number of facilities */
46  SCIP_PROBDATA* probdata /**< problem data */
47  );
48 
49 /** returns the number of customers */
51  SCIP_PROBDATA* probdata /**< problem data */
52  );
53 
54 /** returns the facility variables */
56  SCIP_PROBDATA* probdata /**< problem data */
57  );
58 
59 #endif
int SCIPprobdataGetNCustomers(SCIP_PROBDATA *probdata)
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
int SCIPprobdataGetNFacilities(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 nsubproblems, SCIP_Bool usebenders)
#define SCIP_Bool
Definition: def.h:70
struct SCIP_ProbData SCIP_PROBDATA
Definition: type_prob.h:44
SCIP_VAR ** SCIPprobdataGetFacilityVars(SCIP_PROBDATA *probdata)
#define SCIP_Real
Definition: def.h:164
SCIP callable library.