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 2002-2022 Zuse Institute Berlin */
7 /* */
8 /* Licensed under the Apache License, Version 2.0 (the "License"); */
9 /* you may not use this file except in compliance with the License. */
10 /* You may obtain a copy of the License at */
11 /* */
12 /* http://www.apache.org/licenses/LICENSE-2.0 */
13 /* */
14 /* Unless required by applicable law or agreed to in writing, software */
15 /* distributed under the License is distributed on an "AS IS" BASIS, */
16 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17 /* See the License for the specific language governing permissions and */
18 /* limitations under the License. */
19 /* */
20 /* You should have received a copy of the Apache-2.0 license */
21 /* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22 /* */
23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24 
25 /**@file reader_sm.h
26  * @brief scheduling problem file reader for RCPSP format
27  * @author Michael Bastubbe
28  * @author Stefan Heinz
29  *
30  * This reader is capabale of parsing resource-constrained project scheduling problem (RCPSP) instances. The <a
31  * href="http://129.187.106.231/psplib/datasm.html">PSPlib</a> provides several instances set.
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 
36 #ifndef __SCIP_READER_SM_H__
37 #define __SCIP_READER_SM_H__
38 
39 
40 #include "scip/scip.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /** includes the sm file reader into SCIP */
48  SCIP* scip /**< SCIP data structure */
49  );
50 
51 /** creates a cumulative scheduling problem */
53  SCIP* scip, /**< SCIP data structure */
54  const char* problemname, /**< problem name */
55  const char** jobnames, /**< job names, or NULL */
56  const char** resourcenames, /**< resource names, or NULL */
57  int** demands, /**< demand matrix resource job demand */
58  SCIP_DIGRAPH* precedencegraph, /**< direct graph to store the precedence conditions */
59  int* durations, /**< array to store the processing for each job */
60  int* capacities, /**< array to store the different capacities */
61  int njobs, /**< number of jobs to be parsed */
62  int nresources, /**< number of capacities to be parsed */
63  SCIP_Bool initialize /**< initialize list scheduling heuristic */
64  );
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:63
SCIP_RETCODE SCIPincludeReaderSm(SCIP *scip)
Definition: reader_sm.c:716
#define SCIP_Bool
Definition: def.h:93
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:747
SCIP callable library.