All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed Descriptionfile writer for portable pixmap file format (PPM), open with common graphic viewer programs (e.g. xview) Definition in file reader_ppm.c. #include <stdlib.h> #include <assert.h> #include <string.h> #include "scip/reader_ppm.h" #include "scip/cons_knapsack.h" #include "scip/cons_linear.h" #include "scip/cons_logicor.h" #include "scip/cons_setppc.h" #include "scip/cons_varbound.h" #include "scip/pub_misc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 36 of file reader_ppm.c. Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIP_DECL_READERWRITE(), and SCIPincludeReaderPpm().
Definition at line 37 of file reader_ppm.c. Referenced by SCIPincludeReaderPpm().
Definition at line 38 of file reader_ppm.c. Referenced by SCIPincludeReaderPpm().
the maximum length of any line is 70 + '\0' = 71 Definition at line 43 of file reader_ppm.c. Referenced by appendLine(), printRow(), and SCIPwritePpm().
Definition at line 44 of file reader_ppm.c. Referenced by initReaderdata(), and SCIPincludeReaderPpm().
Definition at line 45 of file reader_ppm.c. Referenced by initReaderdata(), and SCIPincludeReaderPpm().
Definition at line 46 of file reader_ppm.c. Referenced by initReaderdata(), and SCIPincludeReaderPpm().
Definition at line 47 of file reader_ppm.c. Referenced by initReaderdata(), and SCIPincludeReaderPpm(). Function Documentation
initializes the reader data
Definition at line 64 of file reader_ppm.c. References DEFAULT_PPM_COEF_LIMIT, DEFAULT_PPM_RGB_ASCII, DEFAULT_PPM_RGB_LIMIT, DEFAULT_PPM_RGB_RELATIVE, and NULL. Referenced by SCIPincludeReaderPpm().
transforms given variables, scalars, and constant to the corresponding active variables, scalars, and constant
Definition at line 79 of file reader_ppm.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPgetProbvarLinearSum(), SCIPreallocBufferArray, SCIPvarGetOrigvarSum(), and TRUE. Referenced by printLinearCons().
clears the given line buffer
Definition at line 120 of file reader_ppm.c. References NULL. Referenced by endLine(), printRow(), and SCIPwritePpm().
ends the given line with '\0' and prints it to the given file stream
Definition at line 134 of file reader_ppm.c. References clearLine(), NULL, and SCIPinfoMessage(). Referenced by appendLine(), and printRow().
appends extension to line and prints it to the give file stream if the line exceeded PPM_PRINTLEN
Definition at line 161 of file reader_ppm.c. References endLine(), NULL, and PPM_MAX_LINELEN. Referenced by printRow().
Definition at line 186 of file reader_ppm.c. References NULL, SCIP_Real, and SCIPfloor(). Referenced by printRow().
Definition at line 246 of file reader_ppm.c. References appendLine(), calcColorValue(), clearLine(), endLine(), NULL, PPM_MAX_LINELEN, SCIPsnprintf(), and SCIPvarGetProbindex(). Referenced by printLinearCons().
prints given linear constraint information in PPM format to file stream
Definition at line 350 of file reader_ppm.c. References getActiveVariables(), NULL, printRow(), REALABS, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPduplicateBufferArray, and SCIPfreeBufferArray. Referenced by SCIPwritePpm().
copy method for reader plugins (called when SCIP copies plugins) Definition at line 425 of file reader_ppm.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderPpm(), and SCIPreaderGetName().
destructor of reader to free user data (called when SCIP is exiting) Definition at line 439 of file reader_ppm.c. References NULL, READER_NAME, SCIP_OKAY, SCIPfreeMemory, SCIPreaderGetData(), and SCIPreaderGetName().
problem writing method of reader Definition at line 454 of file reader_ppm.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPreaderGetData(), SCIPreaderGetName(), and SCIPwritePpm().
includes the ppm file reader in SCIP
Definition at line 473 of file reader_ppm.c. References DEFAULT_PPM_COEF_LIMIT, DEFAULT_PPM_RGB_ASCII, DEFAULT_PPM_RGB_LIMIT, DEFAULT_PPM_RGB_RELATIVE, FALSE, initReaderdata(), NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPallocMemory, SCIPincludeReaderBasic(), SCIPsetReaderCopy(), SCIPsetReaderFree(), and SCIPsetReaderWrite(). Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeDefaultPlugins().
writes problem to file
Definition at line 515 of file reader_ppm.c. References clearLine(), FALSE, NULL, PPM_MAX_LINELEN, printLinearCons(), SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPallocBufferArray, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPconsIsEnabled(), SCIPconsIsTransformed(), SCIPdebugPrintf, SCIPfreeBufferArray, SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetValsLinear(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPinfoMessage(), SCIPprintCons(), SCIPwarningMessage(), and TRUE. Referenced by SCIP_DECL_READERWRITE(). |