scheduling problem file reader for RCPSP format
This reader is capabale of parsing resource-constrained project scheduling problem (RCPSP) instances. The PSPlib provides several instances set.
Definition in file reader_sm.h.
#include "scip/scip.h"
Go to the source code of this file.
Functions | |
SCIP_RETCODE | SCIPincludeReaderSm (SCIP *scip) |
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) |
SCIP_RETCODE SCIPincludeReaderSm | ( | SCIP * | scip | ) |
includes the sm file reader into SCIP
includes the sch file reader in SCIP
scip | SCIP data structure |
Definition at line 716 of file reader_sm.c.
References assert(), DEFAULT_FILENAME, FALSE, NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddStringParam(), SCIPincludeReaderBasic(), SCIPsetReaderCopy(), and SCIPsetReaderRead().
Referenced by runShell(), and SCIP_DECL_READERCOPY().
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 ) |
creates a cumulative scheduling problem
scip | SCIP data structure |
problemname | problem name |
jobnames | job names, or NULL |
resourcenames | resource names, or NULL |
demands | demand matrix resource job demand |
precedencegraph | direct graph to store the precedence conditions |
durations | array to store the processing for each job |
capacities | array to store the different capacities |
njobs | number of jobs to be parsed |
nresources | number of capacities to be parsed |
initialize | initialize list scheduling heuristic |
Definition at line 747 of file reader_sm.c.
References assert(), computeUbmakespan(), FALSE, i, NULL, nvars, r, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_INTEGER, SCIPaddCons(), SCIPaddVar(), SCIPallocBufferArray, SCIPcreateConsCumulative(), SCIPcreateConsVarbound(), SCIPcreateProb(), SCIPcreateVar(), SCIPdebugMessage, SCIPdigraphGetNSuccessors(), SCIPdigraphGetSuccessors(), SCIPdigraphGetSuccessorsData(), SCIPfreeBufferArray, SCIPinfinity(), SCIPinitializeHeurListScheduling(), SCIPmarkDoNotMultaggrVar(), SCIPreleaseCons(), SCIPreleaseVar(), SCIPsnprintf(), TRUE, var, and vars.
Referenced by readFile(), readFile(), and SCIP_DECL_READERREAD().