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-2022 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 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 */
39  SCIP* scip /**< SCIP data structure */
40  );
41 
42 /** creates a cumulative scheduling problem */
44  SCIP* scip, /**< SCIP data structure */
45  const char* problemname, /**< problem name */
46  const char** jobnames, /**< job names, or NULL */
47  const char** resourcenames, /**< resource names, or NULL */
48  int** demands, /**< demand matrix resource job demand */
49  SCIP_DIGRAPH* precedencegraph, /**< direct graph to store the precedence conditions */
50  int* durations, /**< array to store the processing for each job */
51  int* capacities, /**< array to store the different capacities */
52  int njobs, /**< number of jobs to be parsed */
53  int nresources, /**< number of capacities to be parsed */
54  SCIP_Bool initialize /**< initialize list scheduling heuristic */
55  );
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
SCIP_RETCODE SCIPincludeReaderSm(SCIP *scip)
Definition: reader_sm.c:707
#define SCIP_Bool
Definition: def.h:84
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.