reader_diff.c File Reference Detailed DescriptionDIFF file reader. Definition in file reader_diff.c. #include <stdlib.h> #include <assert.h> #include <string.h> #include <strings.h> #include <ctype.h> #include "scip/reader_diff.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 34 of file reader_diff.c. Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeReaderDiff().
Definition at line 35 of file reader_diff.c. Referenced by SCIPincludeReaderDiff().
Definition at line 36 of file reader_diff.c. Referenced by SCIPincludeReaderDiff().
Definition at line 41 of file reader_diff.c. Referenced by getNextLine(), getNextToken(), isNewSection(), readCoefficients(), readObjective(), and SCIPreadDiff().
Definition at line 42 of file reader_diff.c. Referenced by pushBufferToken(), pushToken(), and SCIPreadDiff().
Definition at line 43 of file reader_diff.c. Referenced by readCoefficients(). Typedef DocumentationDefinition at line 50 of file reader_diff.c. Definition at line 56 of file reader_diff.c. Definition at line 62 of file reader_diff.c.
Definition at line 83 of file reader_diff.c. Enumeration Type Documentation
Section in LP File
Definition at line 46 of file reader_diff.c.
Definition at line 52 of file reader_diff.c.
Definition at line 58 of file reader_diff.c. Function Documentationissues an error message and marks the LP data to have errors
Definition at line 94 of file reader_diff.c. References LP_END, NULL, SCIP_VERBLEVEL_MINIMAL, SCIPerrorMessage, SCIPsnprintf(), SCIPverbMessage(), and TRUE. Referenced by readCoefficients(). returns whether a syntax error was detected
Definition at line 121 of file reader_diff.c. References NULL. Referenced by readDiffFile(), and readObjective().
returns whether the given character is a token delimiter
Definition at line 132 of file reader_diff.c. Referenced by getNextToken().
returns whether the given character is a single token
Definition at line 153 of file reader_diff.c. Referenced by getNextToken().
returns whether the current character is member of a value string
Definition at line 177 of file reader_diff.c. References FALSE, LP_EXP_NONE, LP_EXP_SIGNED, LP_EXP_UNSIGNED, NULL, and TRUE. Referenced by getNextToken(). reads the next line from the input file into the line buffer; skips comments; returns whether a line could be read
Definition at line 221 of file reader_diff.c. References BMSclearMemoryArray, commentchars, FALSE, LP_MAX_LINELEN, NULL, SCIPdebugMessage, SCIPfgets(), SCIPfseek(), SCIPwarningMessage(), and TRUE. Referenced by getNextToken().
swaps the addresses of two pointers
Definition at line 312 of file reader_diff.c. Referenced by getNextToken(), pushBufferToken(), pushToken(), and swapTokenBuffer(). reads the next token from the input file into the token buffer; returns whether a token was read
Definition at line 326 of file reader_diff.c. References FALSE, getNextLine(), isDelimChar(), isTokenChar(), isValueChar(), LP_END, LP_EXP_NONE, LP_MAX_LINELEN, NULL, SCIP_Bool, SCIPdebugMessage, swapPointers(), and TRUE. Referenced by isNewSection(), readCoefficients(), and readStart().
puts the current token on the token stack, such that it is read at the next call to getNextToken()
Definition at line 431 of file reader_diff.c. References LP_MAX_PUSHEDTOKENS, NULL, and swapPointers(). Referenced by isNewSection(), and readCoefficients().
puts the buffered token on the token stack, such that it is read at the next call to getNextToken()
Definition at line 444 of file reader_diff.c. References LP_MAX_PUSHEDTOKENS, NULL, and swapPointers(). Referenced by readCoefficients().
swaps the current token with the token buffer
Definition at line 457 of file reader_diff.c. References NULL, and swapPointers(). Referenced by isNewSection(), and readCoefficients(). checks whether the current token is a section identifier, and if yes, switches to the corresponding section
Definition at line 468 of file reader_diff.c. References FALSE, getNextToken(), LP_END, LP_MAX_LINELEN, LP_OBJECTIVE, NULL, pushToken(), SCIP_Bool, SCIP_OBJSENSE_MAXIMIZE, SCIP_OBJSENSE_MINIMIZE, SCIPdebugMessage, swapTokenBuffer(), and TRUE. Referenced by readCoefficients(), and readStart(). returns whether the current token is a sign
Definition at line 546 of file reader_diff.c. References FALSE, NULL, and TRUE. Referenced by readCoefficients(). returns whether the current token is a value
Definition at line 571 of file reader_diff.c. References FALSE, NULL, SCIPinfinity(), and TRUE. Referenced by readCoefficients(). returns whether the current token is an equation sense
Definition at line 603 of file reader_diff.c. References FALSE, LP_SENSE_EQ, LP_SENSE_GE, LP_SENSE_LE, NULL, and TRUE. Referenced by readCoefficients().
returns the variable with the given name, or creates a new variable if it does not exist
Definition at line 634 of file reader_diff.c. References NULL, SCIP_OKAY, SCIP_READERROR, and SCIPfindVar(). Referenced by readCoefficients().
reads the header of the file
Definition at line 653 of file reader_diff.c. References getNextToken(), isNewSection(), NULL, and SCIP_OKAY. Referenced by readDiffFile().
reads an objective or constraint with name and coefficients
Definition at line 674 of file reader_diff.c. References FALSE, getNextToken(), getVariable(), isNewSection(), isSense(), isSign(), isValue(), LP_INIT_COEFSSIZE, LP_MAX_LINELEN, MAX, NULL, pushBufferToken(), pushToken(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_READERROR, SCIP_Real, SCIPallocMemoryArray, SCIPdebugMessage, SCIPisZero(), SCIPmemccpy(), SCIPreallocMemoryArray, SCIPvarGetName(), SCIPwarningMessage(), swapTokenBuffer(), syntaxError(), and TRUE. Referenced by readObjective().
reads the objective section
Definition at line 869 of file reader_diff.c. References hasError(), LP_MAX_LINELEN, NULL, readCoefficients(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPchgVarObj(), SCIPfreeMemoryArrayNull, SCIPgetNVars(), SCIPgetVars(), and TRUE. Referenced by readDiffFile().
reads a diff file
Definition at line 912 of file reader_diff.c. References hasError(), LP_END, LP_OBJECTIVE, LP_START, NULL, readObjective(), readStart(), SCIP_CALL, SCIP_INVALIDDATA, SCIP_NOFILE, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPerrorMessage, SCIPfclose(), SCIPfopen(), SCIPfreeTransform(), SCIPgetStage(), and SCIPprintSysError(). Referenced by SCIPreadDiff().
copy method for reader plugins (called when SCIP copies plugins) Definition at line 968 of file reader_diff.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderDiff(), and SCIPreaderGetName().
destructor of reader to free user data (called when SCIP is exiting) Definition at line 982 of file reader_diff.c. References SCIP_OKAY.
problem reading method of reader Definition at line 989 of file reader_diff.c. References SCIP_CALL, SCIP_OKAY, and SCIPreadDiff().
includes the lp file reader in SCIP
Definition at line 1002 of file reader_diff.c. References NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderBasic(), SCIPsetReaderCopy(), SCIPsetReaderFree(), and SCIPsetReaderRead(). Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeDefaultPlugins().
reads problem from file
Definition at line 1022 of file reader_diff.c. References FALSE, LP_MAX_LINELEN, LP_MAX_PUSHEDTOKENS, LP_START, NULL, readDiffFile(), SCIP_CALL, SCIP_OBJSENSE_MINIMIZE, SCIP_OKAY, SCIP_READERROR, SCIP_SUCCESS, SCIPallocMemoryArray, SCIPfreeMemoryArray, and SCIPsetObjsense(). Referenced by SCIP_DECL_READERREAD(). Variable Documentation
Definition at line 85 of file reader_diff.c. Referenced by getNextLine(). |