47#define READER_NAME "schreader"
48#define READER_DESC "scheduling file reader for sch files (RCPSP/max format)"
49#define READER_EXTENSION "sch"
52#define SCH_MAX_LINELEN 65536
76 for( v = 0; v <
nvars; ++v )
144 for(
j = 0;
j < njobs; ++
j )
167 for( s = 0; s < nsuccessors; ++s )
174 for( s = 0; s < nsuccessors; ++s )
203 for(
j = 0;
j < njobs; ++
j )
219 for(
r = 0;
r < nresources; ++
r )
232 if( nresources > 0 &&
NULL !=
SCIPfgets(buf, (
int)
sizeof(buf), file) )
243 for(
r = 1;
r < nresources; ++
r )
311 for(
j = 0;
j < njobs; ++
j )
319 SCIPdebugMessage(
"problem has <%d> jobs and <%d> resources\n", njobs, nresources);
321 retcode =
parseDetails(
scip, file, &lineno, demands, precedencegraph, durations, capacities, njobs, nresources);
326 precedencegraph, durations, capacities, njobs, nresources,
FALSE) );
336 for(
j = njobs - 1;
j >= 0; --
j )
396#ifdef SCIP_DISABLED_CODE
398#define readerFreeSch NULL
401#define readerWriteSch NULL
428 "reading/"READER_NAME"/mipmodel",
"create MIP model?",
constraint handler for bound disjunction constraints
SCIP_FILE * SCIPfopen(const char *path, const char *mode)
int SCIPfclose(SCIP_FILE *fp)
char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
SCIP_RETCODE SCIPcreateConsBounddisjunction(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_BOUNDTYPE *boundtypes, SCIP_Real *bounds, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
SCIP_RETCODE SCIPdigraphAddArc(SCIP_DIGRAPH *digraph, int startnode, int endnode, void *data)
void SCIPdigraphFree(SCIP_DIGRAPH **digraph)
SCIP_RETCODE SCIPcreateDigraph(SCIP *scip, SCIP_DIGRAPH **digraph, int nnodes)
int SCIPgetNVars(SCIP *scip)
SCIP_RETCODE SCIPaddCons(SCIP *scip, SCIP_CONS *cons)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPaddBoolParam(SCIP *scip, const char *name, const char *desc, SCIP_Bool *valueptr, SCIP_Bool isadvanced, SCIP_Bool defaultvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPreleaseCons(SCIP *scip, SCIP_CONS **cons)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPfreeBufferArray(scip, ptr)
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader,)
SCIP_RETCODE SCIPincludeReaderBasic(SCIP *scip, SCIP_READER **readerptr, const char *name, const char *desc, const char *extension, SCIP_READERDATA *readerdata)
SCIP_RETCODE SCIPsetReaderRead(SCIP *scip, SCIP_READER *reader,)
const char * SCIPreaderGetName(SCIP_READER *reader)
SCIP_Real SCIPvarGetLbGlobal(SCIP_VAR *var)
SCIP_Bool SCIPstrToIntValue(const char *str, int *value, char **endptr)
void SCIPstrCopySection(const char *str, char startchar, char endchar, char *token, int size, char **endptr)
void SCIPprintSysError(const char *message)
assert(minobj< SCIPgetCutoffbound(scip))
#define BMSclearMemoryArray(ptr, num)
struct SCIP_File SCIP_FILE
static SCIP_RETCODE addLowerboundCons(SCIP *scip)
static SCIP_RETCODE readFile(SCIP *scip, SCIP_FILE *file, const char *filename)
static SCIP_RETCODE getJobId(SCIP *scip, const char *str, int *job, char **endptr)
SCIP_RETCODE SCIPincludeReaderSch(SCIP *scip)
static SCIP_RETCODE parseDetails(SCIP *scip, SCIP_FILE *file, int *lineno, int **demands, SCIP_DIGRAPH *precedencegraph, int *durations, int *capacities, int njobs, int nresources)
scheduling problem file reader for RCPSP/max format
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)
scheduling problem file reader for RCPSP format
enum SCIP_BoundType SCIP_BOUNDTYPE
struct SCIP_ReaderData SCIP_READERDATA
#define SCIP_DECL_READERREAD(x)
#define SCIP_DECL_READERCOPY(x)
enum SCIP_Retcode SCIP_RETCODE