All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed DescriptionGraph file reader (actually, only a writer) Write a weighted column/variable graph, i.e., the nodes correspond to the columns (variables) of the constraint matrix. Two nodes are adjacent if the corresponding columns/variables have appear in a common row/constraint (with nonzero coefficient). The weight is obtained by summing for each row that produces an edge the absolute values of coefficients in the row; hence, we avoid parallel edges. This graph gives an indication of the connectivity structure of the constraint matrix. The graph is output in DIMACS graph format. Definition in file reader_ccg.c. #include <stdlib.h> #include <assert.h> #include <string.h> #include "scip/reader_ccg.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" Go to the source code of this file.
Macro Definition Documentation
Definition at line 44 of file reader_ccg.c. Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeReaderCcg().
Definition at line 45 of file reader_ccg.c. Referenced by SCIPincludeReaderCcg().
Definition at line 46 of file reader_ccg.c. Referenced by SCIPincludeReaderCcg(). Typedef Documentation
Definition at line 64 of file reader_ccg.c. Function Documentation
initialize graph
Definition at line 73 of file reader_ccg.c. References SCIP_CALL, SCIP_OKAY, and SCIPallocBufferArray. Referenced by SCIPwriteCcg().
frees graph
Definition at line 107 of file reader_ccg.c. References SCIPfreeBufferArray. Referenced by SCIPwriteCcg().
check whether there is enough capacity for one additional edge in the given adjacency list
Definition at line 129 of file reader_ccg.c. References SCIP_CALL, SCIP_OKAY, and SCIPreallocBufferArray. Referenced by createEdgesFromRow().
transforms given variables, scalars, and constant to the corresponding active variables, scalars, and constant
Definition at line 150 of file reader_ccg.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPgetProbvarLinearSum(), SCIPreallocBufferArray, SCIPvarGetOrigvarSum(), and TRUE. Referenced by handleLinearCons().
Definition at line 195 of file reader_ccg.c. References ensureEdgeCapacity(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, and SCIPvarGetProbindex(). Referenced by handleLinearCons().
handle given linear constraint information
Definition at line 281 of file reader_ccg.c. References createEdgesFromRow(), getActiveVariables(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPduplicateBufferArray, and SCIPfreeBufferArray. Referenced by SCIPwriteCcg().
copy method for reader plugins (called when SCIP copies plugins) Definition at line 332 of file reader_ccg.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderCcg(), and SCIPreaderGetName().
problem writing method of reader Definition at line 347 of file reader_ccg.c. References SCIP_CALL, SCIP_OKAY, and SCIPwriteCcg().
includes the ccg file reader in SCIP
Definition at line 360 of file reader_ccg.c. References NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderBasic(), SCIPsetReaderCopy(), and SCIPsetReaderWrite(). Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeDefaultPlugins().
writes problem to file
Definition at line 380 of file reader_ccg.c. References freeGraph(), handleLinearCons(), initGraph(), NULL, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPallocBufferArray, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPconsIsEnabled(), SCIPconsIsTransformed(), SCIPfreeBufferArray, SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetValsLinear(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPinfoMessage(), SCIPprintCons(), and SCIPwarningMessage(). Referenced by SCIP_DECL_READERWRITE(). |