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 */
31 extern
33  SCIP* scip, /**< SCIP data structure */
34  const char* probname, /**< problem name */
35  SCIP_Real** costs, /**< the transportation costs from a facility to a customer */
36  SCIP_Real** demands, /**< the customer demands */
37  SCIP_Real* capacity, /**< the capacity of each facility */
38  SCIP_Real* fixedcost, /**< the fixed cost of opening a facility */
39  int ncustomers, /**< the number of customers */
40  int nfacilities, /**< the number of facilities */
41  int nsubproblems, /**< the number of Benders' decomposition subproblems */
42  SCIP_Bool usebenders /**< will Benders' decomposition be used to solve the problem */
43  );
44 
45 /** returns the number of facilities */
46 extern
48  SCIP_PROBDATA* probdata /**< problem data */
49  );
50 
51 /** returns the number of customers */
52 extern
54  SCIP_PROBDATA* probdata /**< problem data */
55  );
56 
57 /** returns the facility variables */
58 extern
60  SCIP_PROBDATA* probdata /**< problem data */
61  );
62 
63 #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:69
struct SCIP_ProbData SCIP_PROBDATA
Definition: type_prob.h:44
SCIP_VAR ** SCIPprobdataGetFacilityVars(SCIP_PROBDATA *probdata)
#define SCIP_Real
Definition: def.h:157
SCIP callable library.