All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed Descriptionfile writer for portable bitmap file format (PBM), open with common graphic viewer programs (e.g. xview) Definition in file reader_pbm.c. #include <stdlib.h> #include <assert.h> #include <string.h> #include "scip/reader_pbm.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_pbm.c. Referenced by SCIP_DECL_READERCOPY(), SCIP_DECL_READERFREE(), SCIP_DECL_READERWRITE(), and SCIPincludeReaderPbm().
Definition at line 37 of file reader_pbm.c. Referenced by SCIPincludeReaderPbm().
Definition at line 38 of file reader_pbm.c. Referenced by SCIPincludeReaderPbm().
the maximum length of any line is 70 + '\0' = 71 Definition at line 43 of file reader_pbm.c. Referenced by SCIPwritePbm().
binary is the default format for PBM Definition at line 44 of file reader_pbm.c. Referenced by SCIPincludeReaderPbm().
allowed maximum of pixel-rows int the picture Definition at line 45 of file reader_pbm.c. Referenced by SCIPincludeReaderPbm().
allowed maximum of pixel-columns in the picture Definition at line 46 of file reader_pbm.c. Referenced by SCIPincludeReaderPbm().
problem reading method of reader Definition at line 414 of file reader_pbm.c. Referenced by SCIPincludeReaderPbm(). Function Documentation
transforms given variables, scalars, and constant to the corresponding active variables, scalars, and constant
Definition at line 62 of file reader_pbm.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPgetProbvarLinearSum(), SCIPreallocBufferArray, SCIPvarGetOrigvarSum(), and TRUE. Referenced by printLinearCons().
transforms given variables to the corresponding active variables
Definition at line 106 of file reader_pbm.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPgetActiveVars(), SCIPreallocBufferArray, and SCIPvarGetOrigvarSum(). Referenced by SCIPwritePbm().
clears the given line buffer
Definition at line 149 of file reader_pbm.c. References NULL. Referenced by SCIPwritePbm().
appends a bit to buffer and prints it to the give file stream if we've gather a whole byte
Definition at line 164 of file reader_pbm.c. References NULL. Referenced by appendBit(), and drawScaledImage().
appends a bit to buffer and prints it to the given file stream if we've gathered a whole byte
Definition at line 190 of file reader_pbm.c. References flushBits(), and NULL. Referenced by drawScaledImage().
calculates the size of the quadratic matrix, which will correspond to one pixel in the picture
Definition at line 211 of file reader_pbm.c. Referenced by SCIPwritePbm().
print row in PBM format to file stream
Definition at line 259 of file reader_pbm.c. References NULL, and SCIPvarGetProbindex(). Referenced by printLinearCons(), and SCIPwritePbm().
prints given linear constraint information in PBM format to file stream
Definition at line 293 of file reader_pbm.c. References getActiveVariables(), NULL, printRow(), SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPduplicateBufferArray, and SCIPfreeBufferArray. Referenced by SCIPwritePbm().
Definition at line 347 of file reader_pbm.c. References appendBit(), flushBits(), and NULL. Referenced by SCIPwritePbm().
copy method for reader plugins (called when SCIP copies plugins) Definition at line 385 of file reader_pbm.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderPbm(), and SCIPreaderGetName().
destructor of reader to free user data (called when SCIP is exiting) Definition at line 399 of file reader_pbm.c. References NULL, READER_NAME, SCIP_OKAY, SCIPfreeMemory, SCIPreaderGetData(), and SCIPreaderGetName().
problem writing method of reader Definition at line 418 of file reader_pbm.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPreaderGetData(), SCIPreaderGetName(), and SCIPwritePbm().
includes the pbm file reader in SCIP
Definition at line 438 of file reader_pbm.c. References DEFAULT_PBM_BINARY, DEFAULT_PBM_MAXCOLS, DEFAULT_PBM_MAXROWS, FALSE, NULL, READER_DESC, READER_EXTENSION, READER_NAME, readerReadPbm, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPallocMemory, and SCIPincludeReader(). Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeDefaultPlugins().
Definition at line 466 of file reader_pbm.c. References BMSclearMemoryArray, clearLine(), drawScaledImage(), getActiveVariables2(), getSubmatrixSize(), NULL, PBM_MAX_LINELEN, printLinearCons(), printRow(), SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPallocBufferArray, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPconsIsEnabled(), SCIPconsIsTransformed(), SCIPfreeBufferArray, SCIPfreeBufferArrayNull, SCIPgetConsNVars(), SCIPgetConsVars(), SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetValsLinear(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPinfoMessage(), SCIPprintCons(), and SCIPwarningMessage(). Referenced by SCIP_DECL_READERWRITE(). |