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 */
31 SCIP_RETCODE SCIPprobdataCreate(
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 */
46 int SCIPprobdataGetNFacilities(
47    SCIP_PROBDATA*        probdata            /**< problem data */
48    );
49 
50 /** returns the number of customers  */
51 int SCIPprobdataGetNCustomers(
52    SCIP_PROBDATA*        probdata            /**< problem data */
53    );
54 
55 /** returns the facility variables */
56 SCIP_VAR** SCIPprobdataGetFacilityVars(
57    SCIP_PROBDATA*        probdata            /**< problem data */
58    );
59 
60 #endif
61