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-2021 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 scipopt.org. */
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  SCIP_Bool quadcosts /**< should the problem be formulated with quadratic costs */
43  );
44 
45 /** returns the number of facilities */
47  SCIP_PROBDATA* probdata /**< problem data */
48  );
49 
50 /** returns the number of customers */
52  SCIP_PROBDATA* probdata /**< problem data */
53  );
54 
55 /** returns the facility variables */
57  SCIP_PROBDATA* probdata /**< problem data */
58  );
59 
60 #endif
int SCIPprobdataGetNCustomers(SCIP_PROBDATA *probdata)
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
int SCIPprobdataGetNFacilities(SCIP_PROBDATA *probdata)
#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:163
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)
SCIP callable library.