All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
reader_pbm.c
Go to the documentation of this file.
17 * @brief file writer for portable bitmap file format (PBM), open with common graphic viewer programs (e.g. xview)
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37 #define READER_DESC "file writer for portable bitmap file format (PBM), open with common graphic viewer programs (e.g. xview)"
60 /** transforms given variables, scalars, and constant to the corresponding active variables, scalars, and constant */
82 SCIP_CALL( SCIPgetProbvarLinearSum(scip, vars, scalars, nvars, *nvars, constant, &requiredsize, TRUE) );
89 SCIP_CALL( SCIPgetProbvarLinearSum(scip, vars, scalars, nvars, requiredsize, constant, &requiredsize, TRUE) );
162 /** appends a bit to buffer and prints it to the give file stream if we've gather a whole byte */
188 /** appends a bit to buffer and prints it to the given file stream if we've gathered a whole byte */
209 /** calculates the size of the quadratic matrix, which will correspond to one pixel in the picture */
333 SCIP_CALL( getActiveVariables(scip, activevars, activevals, &nactivevars, &activeconstant, transformed) );
428 SCIP_CALL( SCIPwritePbm(scip, file, name, readerdata, transformed, nvars, conss, nconss, result) );
453 "reading/pbmreader/binary", "should the output format be binary(P4) (otherwise plain(P1) format)",
459 "reading/pbmreader/maxcols", "maximum number of columns in the scaled picture (-1 for no limit)",
500 SCIP_CALL( SCIPallocBufferArray(scip, &scaledimage, readerdata_copy.maxrows * readerdata_copy.maxcols) );
520 /* in case the transformed is written only constraint are posted which are enabled in the current node */
627 SCIPwarningMessage(scip, "constraint handler <%s> cannot print requested format\n", conshdlrname );
|