30 #define READER_NAME "mstreader" 31 #define READER_DESC "file reader for partial primal solutions" 32 #define READER_EXTENSION "mst" 53 assert(fname !=
NULL);
59 SCIPerrorMessage(
"Cannot read solution file if vartable is disabled. Make sure parameter 'misc/usevartable' is set to TRUE.\n");
99 assert(reader !=
NULL);
121 assert(reader !=
NULL);
123 assert(result !=
NULL);
129 SCIPerrorMessage(
"reading of partial solution file is only possible after a problem was created\n");
135 SCIPerrorMessage(
"reading of partial solution file is only possible before the solving process is started\n");
161 while( isspace((
unsigned char)*s) )
163 if( s[0] ==
'<' && s[1] ==
'?' && s[2] ==
'x' && s[3] ==
'm' && s[4] ==
'l' )
194 assert(reader !=
NULL);
SCIP_RETCODE SCIPcreatePartialSol(SCIP *scip, SCIP_SOL **sol, SCIP_HEUR *heur)
SCIP_STAGE SCIPgetStage(SCIP *scip)
SCIP_RETCODE SCIPaddSolFree(SCIP *scip, SCIP_SOL **sol, SCIP_Bool *stored)
const char * SCIPreaderGetName(SCIP_READER *reader)
enum SCIP_Retcode SCIP_RETCODE
static SCIP_RETCODE readMst(SCIP *scip, const char *fname, SCIP_Bool xml)
SCIP_Bool SCIPisTransformed(SCIP *scip)
SCIP_FILE * SCIPfopen(const char *path, const char *mode)
struct SCIP_File SCIP_FILE
char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
SCIP_RETCODE SCIPincludeReaderMst(SCIP *scip)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
SCIP_RETCODE SCIPincludeReaderBasic(SCIP *scip, SCIP_READER **readerptr, const char *name, const char *desc, const char *extension, SCIP_READERDATA *readerdata)
void SCIPprintSysError(const char *message)
SCIP_RETCODE SCIPfreeSol(SCIP *scip, SCIP_SOL **sol)
SCIP_RETCODE SCIPsetReaderCopy(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERCOPY((*readercopy)))
static SCIP_DECL_READERCOPY(readerCopyMst)
SCIP_RETCODE SCIPreadSolFile(SCIP *scip, const char *filename, SCIP_SOL *sol, SCIP_Bool xml, SCIP_Bool *partial, SCIP_Bool *error)
SCIP_RETCODE SCIPsetReaderRead(SCIP *scip, SCIP_READER *reader, SCIP_DECL_READERREAD((*readerread)))
file reader for partial primal solutions
int SCIPfclose(SCIP_FILE *fp)
static SCIP_DECL_READERREAD(readerReadMst)