Scippy

SCIP

Solving Constraint Integer Programs

reader_sm.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 reader_sm.h
17  * @brief scheduling problem file reader for RCPSP format
18  * @author Michael Bastubbe
19  * @author Stefan Heinz
20  *
21  * This reader is capabale of parsing resource-constrained project scheduling problem (RCPSP) instances. The <a
22  * href="http://129.187.106.231/psplib/datasm.html">PSPlib</a> provides several instances set.
23  */
24 
25 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
26 
27 #ifndef __SCIP_READER_SM_H__
28 #define __SCIP_READER_SM_H__
29 
30 
31 #include "scip/scip.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 /** includes the sm file reader into SCIP */
38 extern
40  SCIP* scip /**< SCIP data structure */
41  );
42 
43 /** creates a cumulative scheduling problem */
44 extern
46  SCIP* scip, /**< SCIP data structure */
47  const char* problemname, /**< problem name */
48  const char** jobnames, /**< job names, or NULL */
49  const char** resourcenames, /**< resource names, or NULL */
50  int** demands, /**< demand matrix resource job demand */
51  SCIP_DIGRAPH* precedencegraph, /**< direct graph to store the precedence conditions */
52  int* durations, /**< array to store the processing for each job */
53  int* capacities, /**< array to store the different capacities */
54  int njobs, /**< number of jobs to be parsed */
55  int nresources, /**< number of capacities to be parsed */
56  SCIP_Bool initialize /**< initialize list scheduling heuristic */
57  );
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
SCIP_RETCODE SCIPincludeReaderSm(SCIP *scip)
Definition: reader_sm.c:707
#define SCIP_Bool
Definition: def.h:69
SCIP_RETCODE SCIPcreateSchedulingProblem(SCIP *scip, const char *problemname, const char **jobnames, const char **resourcenames, int **demands, SCIP_DIGRAPH *precedencegraph, int *durations, int *capacities, int njobs, int nresources, SCIP_Bool initialize)
Definition: reader_sm.c:738
SCIP callable library.