|
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 122 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 136 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 163 of file reader_ppm.c. References endLine(), NULL, and PPM_MAX_LINELEN. Referenced by printRow().
calculates the color value for a given coefficient
Definition at line 188 of file reader_ppm.c. References NULL, SCIP_Real, and SCIPfloor(). Referenced by printRow().
print row in PPM format to file stream
Definition at line 250 of file reader_ppm.c. References appendLine(), calcColorValue(), clearLine(), endLine(), NULL, PPM_MAX_LINELEN, REALABS, SCIPsnprintf(), and SCIPvarGetProbindex(). Referenced by printLinearCons().
prints given linear constraint information in PPM format to file stream
Definition at line 354 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 431 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 445 of file reader_ppm.c. References NULL, READER_NAME, SCIP_OKAY, SCIPfreeMemory, SCIPreaderGetData(), and SCIPreaderGetName().
problem writing method of reader Definition at line 460 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 479 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 521 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(). |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||