reader_opb.c File Reference Detailed Descriptionpseudo-Boolean file reader (opb format) This file reader parses the opb format and is also used by the wbo reader for the wbo format. For a detailed description of this format see The syntax of the input file format can be described by a simple Backus-Naur form. <formula> is the start symbol of this grammar. <formula>::= <sequence_of_comments> [<objective>] | [<softheader>] <sequence_of_comments_or_constraints> <sequence_of_comments>::= <comment> [<sequence_of_comments>] <comment>::= "*" <any_sequence_of_characters_other_than_EOL> <EOL> <sequence_of_comments_or_constraints>::=<comment_or_constraint> [<sequence_of_comments_or_constraints>] <comment_or_constraint>::=<comment>|<constraint> <objective>::= "min:" <zeroOrMoreSpace> <sum> ";" <constraint>::= <sum> <relational_operator> <zeroOrMoreSpace> <integer> <zeroOrMoreSpace> ";" <sum>::= <weightedterm> | <weightedterm> <sum> <weightedterm>::= <integer> <oneOrMoreSpace> <term> <oneOrMoreSpace> <integer>::= <unsigned_integer> | "+" <unsigned_integer> | "-" <unsigned_integer> <unsigned_integer>::= <digit> | <digit><unsigned_integer> <relational_operator>::= "\>=" | "=" <variablename>::= "x" <unsigned_integer> <oneOrMoreSpace>::= " " [<oneOrMoreSpace>] <zeroOrMoreSpace>::= [" " <zeroOrMoreSpace>] For linear pseudo-Boolean instances, <term> is defined as <term>::=<variablename> For non-linear instances, <term> is defined as <term>::= <oneOrMoreLiterals> <oneOrMoreLiterals>::= <literal> | <literal> <oneOrMoreSpace> <oneOrMoreLiterals> <literal>::= <variablename> | "~"<variablename> For wbo-files are the following additional/changed things possible. <softheader>::= "soft:" [<unsigned integer>] ";" <comment_or_constraint>::=<comment>|<constraint>|<softconstraint> <softconstraint>::= "[" <zeroOrMoreSpace> <unsigned integer> <zeroOrMoreSpace> "]" <constraint> Definition in file reader_opb.c. #include <stdlib.h> #include <assert.h> #include <string.h> #include <strings.h> #include <ctype.h> #include "scip/cons_and.h" #include "scip/cons_indicator.h" #include "scip/cons_knapsack.h" #include "scip/cons_linear.h" #include "scip/cons_logicor.h" #include "scip/cons_pseudoboolean.h" #include "scip/cons_setppc.h" #include "scip/cons_varbound.h" #include "scip/pub_misc.h" #include "scip/reader_opb.h" #include "scip/debug.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 101 of file reader_opb.c. Referenced by readConstraints(), SCIP_DECL_READERCOPY(), SCIPincludeReaderOpb(), and writeOpb().
Definition at line 102 of file reader_opb.c. Referenced by SCIPincludeReaderOpb().
Definition at line 103 of file reader_opb.c. Referenced by SCIPincludeReaderOpb().
Definition at line 105 of file reader_opb.c.
Value:
TRUE /* will all non-linear parts inside the objective function be linearized or will * an artificial integer variable be created which will represent the objective * function */
Definition at line 106 of file reader_opb.c.
Definition at line 111 of file reader_opb.c. Referenced by printPBRow(), printRow(), readConstraints(), SCIPwriteOpb(), and writeOpbObjective().
Definition at line 112 of file reader_opb.c. Referenced by SCIPwriteOpb().
Definition at line 113 of file reader_opb.c. Referenced by readOPBFile(), and writeOpbObjective().
size of the line buffer for reading or writing Definition at line 118 of file reader_opb.c. Referenced by appendBuffer(), getNextLine(), getNextToken(), printNLRow(), printPBRow(), printRow(), readConstraints(), readOPBFile(), SCIPreadOpb(), writeOpb(), writeOpbObjective(), and writeOpbRelevantAnds().
Definition at line 119 of file reader_opb.c. Referenced by pushBufferToken(), pushToken(), and SCIPreadOpb().
Definition at line 120 of file reader_opb.c. Referenced by readCoefficients().
Definition at line 3192 of file reader_opb.c. Referenced by writeOpbConstraints(). Typedef Documentation
Definition at line 129 of file reader_opb.c. Definition at line 138 of file reader_opb.c.
Definition at line 166 of file reader_opb.c. Enumeration Type Documentation
Section in OPB File
Definition at line 123 of file reader_opb.c.
Definition at line 131 of file reader_opb.c. Function Documentationissues an error message and marks the OPB data to have errors
Definition at line 175 of file reader_opb.c. References NULL, SCIPerrorMessage, and TRUE. Referenced by getVariableOrTerm(), readCoefficients(), and readConstraints(). returns whether a syntax error was detected
Definition at line 198 of file reader_opb.c. References NULL. Referenced by readCoefficients(), readConstraints(), readOPBFile(), and setObjective().
returns whether the given character is a token delimiter
Definition at line 209 of file reader_opb.c. Referenced by getNextToken().
returns whether the given character is a single token
Definition at line 230 of file reader_opb.c. Referenced by getNextToken(), and getVariableOrTerm().
returns whether the current character is member of a value string
Definition at line 253 of file reader_opb.c. References FALSE, NULL, OPB_EXP_NONE, OPB_EXP_SIGNED, OPB_EXP_UNSIGNED, and TRUE. Referenced by getNextToken(). reads the next line from the input file into the line buffer; skips comments; returns whether a line could be read
Definition at line 297 of file reader_opb.c. References commentchars, FALSE, NULL, OPB_MAX_LINELEN, SCIPdebugMessage, SCIPfgets(), SCIPfseek(), SCIPwarningMessage(), and TRUE. Referenced by getNextToken().
swaps the addresses of two pointers
Definition at line 393 of file reader_opb.c. Referenced by getNextToken(), pushBufferToken(), pushToken(), and swapTokenBuffer(). reads the next token from the input file into the token buffer; returns whether a token was read
Definition at line 407 of file reader_opb.c. References FALSE, getNextLine(), isDelimChar(), isTokenChar(), isValueChar(), NULL, OPB_EXP_NONE, OPB_MAX_LINELEN, SCIP_Bool, SCIPdebugMessage, swapPointers(), and TRUE. Referenced by getVariableOrTerm(), readCoefficients(), and readConstraints().
puts the current token on the token stack, such that it is read at the next call to getNextToken()
Definition at line 513 of file reader_opb.c. References NULL, OPB_MAX_PUSHEDTOKENS, and swapPointers(). Referenced by getVariableOrTerm(), and readCoefficients().
puts the buffered token on the token stack, such that it is read at the next call to getNextToken()
Definition at line 526 of file reader_opb.c. References NULL, OPB_MAX_PUSHEDTOKENS, and swapPointers(). Referenced by readCoefficients().
swaps the current token with the token buffer
Definition at line 539 of file reader_opb.c. References NULL, and swapPointers(). Referenced by readCoefficients(). checks whether the current token is a section identifier, and if yes, switches to the corresponding section
Definition at line 550 of file reader_opb.c. References FALSE, NULL, and TRUE. Referenced by readCoefficients(), readConstraints(), and setObjective(). returns whether the current token is a sign
Definition at line 564 of file reader_opb.c. References FALSE, NULL, and TRUE. Referenced by readCoefficients(), and readConstraints(). returns whether the current token is a value
Definition at line 591 of file reader_opb.c. References FALSE, NULL, SCIPinfinity(), and TRUE. Referenced by readCoefficients(), and readConstraints(). returns whether the current token is an equation sense
Definition at line 625 of file reader_opb.c. References FALSE, NULL, OPB_SENSE_EQ, OPB_SENSE_GE, OPB_SENSE_LE, and TRUE. Referenced by readCoefficients(), and readConstraints(). returns whether the current token is a value
Definition at line 656 of file reader_opb.c. References FALSE, NULL, and TRUE. Referenced by readCoefficients(). returns whether the current token is a value
Definition at line 672 of file reader_opb.c. References FALSE, NULL, and TRUE. Referenced by readCoefficients().
create binary variable with given name
Definition at line 688 of file reader_opb.c. References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIPaddVar(), SCIPcreateVar(), SCIPdebugMessage, SCIPgetBoolParam(), and SCIPreleaseVar(). Referenced by getVariableOrTerm(), and readConstraints().
returns the variable with the given name, or creates a new variable if it does not exist
Definition at line 720 of file reader_opb.c. References createVariable(), FALSE, getNextToken(), isTokenChar(), NULL, pushToken(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), SCIPfindVar(), SCIPgetNegatedVar(), SCIPreallocBufferArray, syntaxError(), and TRUE. Referenced by readCoefficients().
reads an objective or constraint with name and coefficients
Definition at line 796 of file reader_opb.c. References FALSE, getNextToken(), getVariableOrTerm(), hasError(), isEndingSoftConstraintWeight(), isEndLine(), isSense(), isSign(), isStartingSoftConstraintWeight(), isValue(), NULL, OPB_INIT_COEFSSIZE, pushBufferToken(), pushToken(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcalcMemGrowSize(), SCIPdebugMessage, SCIPdebugPrintf, SCIPfeof(), SCIPfreeBufferArray, SCIPgetNConss(), SCIPgetNVars(), SCIPisIntegral(), SCIPisZero(), SCIPmemccpy(), SCIPreallocBufferArray, SCIPvarGetName(), SCIPwarningMessage(), swapTokenBuffer(), syntaxError(), and TRUE. Referenced by readConstraints().
set the objective section
Definition at line 1149 of file reader_opb.c. References ARTIFICIALVARNAMEPREFIX, FALSE, hasError(), isEndLine(), NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OBJSENSE_MAXIMIZE, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPaddCons(), SCIPaddOrigObjoffset(), SCIPaddVar(), SCIPchgVarBranchPriority(), SCIPchgVarObj(), SCIPcreateConsAnd(), SCIPcreateConsPseudoboolean(), SCIPcreateVar(), SCIPdebugAddSolVal, SCIPdebugGetSolVal, SCIPdebugPrintCons, SCIPisFeasEQ(), SCIPisFeasGE(), SCIPisFeasLE(), SCIPisFeasZero(), SCIPreleaseCons(), SCIPreleaseVar(), SCIPsnprintf(), SCIPvarGetNegationVar(), SCIPvarGetObj(), SCIPvarIsNegated(), and TRUE. Referenced by readConstraints().
reads the constraints section
Definition at line 1351 of file reader_opb.c. References createVariable(), FALSE, getNextToken(), hasError(), INDICATORVARNAME, isEndLine(), isSense(), isSign(), isValue(), NULL, OPB_MAX_LINELEN, OPB_SENSE_EQ, OPB_SENSE_GE, OPB_SENSE_LE, OPB_SENSE_NOTHING, readCoefficients(), READER_NAME, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddCons(), SCIPchgVarObj(), SCIPcreateConsLinear(), SCIPcreateConsPseudoboolean(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPerrorMessage, SCIPfreeBufferArrayNull, SCIPgetBoolParam(), SCIPinfinity(), SCIPisInfinity(), SCIPreleaseCons(), SCIPsnprintf(), setObjective(), syntaxError(), and TRUE. Referenced by readOPBFile().
tries to read the first comment line which usually contains information about the max size of "and" products
Definition at line 1575 of file reader_opb.c. References commentchars, delimchars, FALSE, NULL, SCIP_Bool, SCIP_OKAY, SCIPdebugMessage, SCIPfclose(), SCIPfeof(), SCIPfgets(), SCIPfopen(), SCIPfseek(), and TRUE. Referenced by readOPBFile().
reads an OPB file
Definition at line 1659 of file reader_opb.c. References BMSclearMemoryArray, FALSE, getMaxAndConsDim(), hasError(), NULL, OPB_MAX_LINELEN, readConstraints(), SCIP_CALL, SCIP_Longint, SCIP_NOFILE, SCIP_OKAY, SCIP_Real, SCIPaddCons(), SCIPallocBufferArray, SCIPcreateConsLinear(), SCIPcreateProb(), SCIPdebugPrintCons, SCIPerrorMessage, SCIPfclose(), SCIPfeof(), SCIPfloor(), SCIPfopen(), SCIPfreeBufferArray, SCIPgetNVars(), SCIPgetVars(), SCIPinfinity(), SCIPisIntegral(), SCIPisZero(), SCIPprintSysError(), SCIPreleaseCons(), SCIPvarGetObj(), TOPCOSTCONSNAME, and TRUE. Referenced by SCIPreadOpb().
transforms given and constraint variables to the corresponding active or negated variables
Definition at line 1753 of file reader_opb.c. References NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPgetBinvarRepresentative(), SCIPgetNegatedVar(), SCIPisEQ(), SCIPisZero(), and SCIPvarGetOrigvarSum(). Referenced by computeAndConstraintInfos().
transforms given variables, scalars, and constant to the corresponding active variables, scalars, and constant
Definition at line 1817 of file reader_opb.c. References NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPgetProbvarLinearSum(), SCIPreallocBufferArray, SCIPvarGetOrigvarSum(), and TRUE. Referenced by printLinearCons(), printNonLinearCons(), and printPseudobooleanCons().
Definition at line 1862 of file reader_opb.c. References FALSE, getBinVarsRepresentatives(), NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPallocBufferArray, SCIPallocMemoryArray, SCIPconsGetHdlr(), SCIPconshdlrGetConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNConss(), SCIPdebug, SCIPdebugMessage, SCIPduplicateMemoryArray, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetNOrigConss(), SCIPgetNVarsAnd(), SCIPgetOrigConss(), SCIPgetResultantAnd(), SCIPgetVarsAnd(), SCIPprintVar(), SCIPreallocMemoryArray, SCIPsortedvecFindPtr(), SCIPsortPtrPtrInt(), SCIPwarningMessage(), and TRUE. Referenced by SCIPwriteOpb().
clears the given line buffer
Definition at line 2059 of file reader_opb.c. References NULL. Referenced by printNLRow(), printPBRow(), printRow(), writeBuffer(), writeOpbObjective(), and writeOpbRelevantAnds().
ends the given line with '\0' and prints it to the given file stream
Definition at line 2074 of file reader_opb.c. References clearBuffer(), NULL, and SCIPinfoMessage(). Referenced by appendBuffer(), printNLRow(), printPBRow(), printRow(), writeOpbObjective(), and writeOpbRelevantAnds().
appends extension to line and prints it to the give file stream if the line buffer get full
Definition at line 2096 of file reader_opb.c. References NULL, OPB_MAX_LINELEN, and writeBuffer(). Referenced by printNLRow(), printPBRow(), printRow(), writeOpbObjective(), and writeOpbRelevantAnds().
write objective function
Definition at line 2119 of file reader_opb.c. References appendBuffer(), clearBuffer(), FALSE, INDICATORVARNAME, NULL, OPB_MAX_LINELEN, SCIP_Bool, SCIP_INVALIDDATA, SCIP_Longint, SCIP_LONGINT_MAX, SCIP_OBJSENSE_MAXIMIZE, SCIP_OKAY, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPconsGetHdlr(), SCIPconshdlrGetConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNConss(), SCIPdebugMessage, SCIPerrorMessage, SCIPfindCons(), SCIPfindConshdlr(), SCIPgetCapacityKnapsack(), SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsSetppc(), SCIPgetRhsLinear(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsSetppc(), SCIPinfoMessage(), SCIPisIntegral(), SCIPisZero(), SCIPround(), SCIPsnprintf(), SCIPsortedvecFindPtr(), SCIPvarGetIndex(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarIsNegated(), TOPCOSTCONSNAME, TRUE, and writeBuffer(). Referenced by writeOpb().
Definition at line 2489 of file reader_opb.c. References appendBuffer(), clearBuffer(), NULL, OPB_MAX_LINELEN, SCIP_Bool, SCIP_INVALIDDATA, SCIP_Longint, SCIP_LONGINT_MAX, SCIP_OKAY, SCIPerrorMessage, SCIPinfoMessage(), SCIPisIntegral(), SCIPisZero(), SCIPround(), SCIPsnprintf(), SCIPsortedvecFindPtr(), SCIPvarGetIndex(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarIsNegated(), and writeBuffer(). Referenced by printNonLinearCons().
prints given maybe non-linear constraint information in OPB format to file stream
Definition at line 2623 of file reader_opb.c. References getActiveVariables(), NULL, printNLRow(), SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPisEQ(), and SCIPisInfinity(). Referenced by writeOpbConstraints().
Definition at line 2721 of file reader_opb.c. References appendBuffer(), clearBuffer(), INDICATORVARNAME, NULL, OPB_MAX_LINELEN, SCIP_Bool, SCIP_INVALIDDATA, SCIP_Longint, SCIP_LONGINT_MAX, SCIP_OKAY, SCIPerrorMessage, SCIPinfoMessage(), SCIPisIntegral(), SCIPisZero(), SCIPround(), SCIPsnprintf(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarIsNegated(), and writeBuffer(). Referenced by printLinearCons().
prints given linear constraint information in OPB format to file stream
Definition at line 2816 of file reader_opb.c. References getActiveVariables(), NULL, printRow(), SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPisEQ(), and SCIPisInfinity(). Referenced by writeOpbConstraints().
Definition at line 2905 of file reader_opb.c. References appendBuffer(), clearBuffer(), INDICATORVARNAME, NULL, OPB_MAX_LINELEN, SCIP_Bool, SCIP_INVALIDDATA, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPinfoMessage(), SCIPisIntegral(), SCIPisZero(), SCIPround(), SCIPsnprintf(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetObj(), SCIPvarIsNegated(), and writeBuffer(). Referenced by printPseudobooleanCons().
prints given pseudo boolean constraint information in OPB format to file stream
Definition at line 3042 of file reader_opb.c. References BMSclearMemoryArray, getActiveVariables(), NULL, printPBRow(), SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPgetBinvarRepresentatives(), SCIPisEQ(), and SCIPisInfinity(). Referenced by writeOpbConstraints().
Definition at line 3195 of file reader_opb.c. References FALSE, HASHTABLESIZE_FACTOR, NULL, printLinearCons(), printNonLinearCons(), printPseudobooleanCons(), SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARTYPE_BINARY, SCIPallocBufferArray, SCIPblkmem(), SCIPcalcHashtableSize(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetName(), SCIPconshdlrGetNConss(), SCIPconsIsEnabled(), SCIPconsIsTransformed(), SCIPduplicateBufferArray, SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetAndDatasPseudoboolean(), SCIPgetBinaryVarIndicator(), SCIPgetCapacityKnapsack(), SCIPgetIndVarPseudoboolean(), SCIPgetLhsLinear(), SCIPgetLhsPseudoboolean(), SCIPgetLhsVarbound(), SCIPgetLinDatasWithoutAndPseudoboolean(), SCIPgetLinearConsIndicator(), SCIPgetLinearConsPseudoboolean(), SCIPgetNAndsPseudoboolean(), SCIPgetNLinVarsWithoutAndPseudoboolean(), SCIPgetNVarsAnd(), SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetRhsLinear(), SCIPgetRhsPseudoboolean(), SCIPgetRhsVarbound(), SCIPgetSlackVarIndicator(), SCIPgetTypeSetppc(), SCIPgetValsLinear(), SCIPgetVarsAnd(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPhashmapInsert(), SCIPinfinity(), SCIPinfoMessage(), SCIPisGT(), SCIPprintCons(), SCIPvarGetNegationVar(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarGetType(), SCIPwarningMessage(), and TRUE. Referenced by writeOpb().
Definition at line 3746 of file reader_opb.c. References appendBuffer(), clearBuffer(), FALSE, NULL, OPB_MAX_LINELEN, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIPgetBinvarRepresentative(), SCIPisFeasIntegral(), SCIPsnprintf(), SCIPsortedvecFindPtr(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetUbLocal(), SCIPvarIsActive(), SCIPvarIsNegated(), TRUE, and writeBuffer(). Referenced by writeOpb().
Definition at line 3968 of file reader_opb.c. References NULL, OPB_MAX_LINELEN, READER_NAME, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SUCCESS, SCIPgetBoolParam(), SCIPinfoMessage(), SCIPsnprintf(), writeOpbConstraints(), writeOpbObjective(), and writeOpbRelevantAnds(). Referenced by SCIPwriteOpb().
reads problem from file
Definition at line 4035 of file reader_opb.c. References FALSE, NULL, OPB_MAX_LINELEN, OPB_MAX_PUSHEDTOKENS, readOPBFile(), SCIP_CALL, SCIP_OBJSENSE_MINIMIZE, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIP_SUCCESS, SCIPallocBufferArray, SCIPfreeBufferArrayNull, SCIPinfinity(), SCIPsetObjsense(), and SCIPwarningMessage(). Referenced by SCIP_DECL_READERREAD().
writes problem to file
Definition at line 4110 of file reader_opb.c. References computeAndConstraintInfos(), FALSE, INDICATORSLACKVARNAME, INDICATORVARNAME, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_SUCCESS, SCIP_WRITEERROR, SCIPconshdlrGetNConss(), SCIPfindConshdlr(), SCIPfreeMemoryArray, SCIPprintOrigProblem(), SCIPprintTransProblem(), SCIPprintVar(), SCIPsortedvecFindPtr(), SCIPvarGetName(), SCIPwarningMessage(), TRUE, and writeOpb(). Referenced by SCIP_DECL_READERWRITE().
copy method for reader plugins (called when SCIP copies plugins) Definition at line 4287 of file reader_opb.c. References NULL, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPincludeReaderOpb(), and SCIPreaderGetName().
problem reading method of reader Definition at line 4302 of file reader_opb.c. References SCIP_CALL, SCIP_OKAY, and SCIPreadOpb().
problem writing method of reader Definition at line 4313 of file reader_opb.c. References SCIP_CALL, SCIP_OKAY, and SCIPwriteOpb().
includes the opb file reader in SCIP
Definition at line 4327 of file reader_opb.c. References FALSE, NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPincludeReaderBasic(), SCIPsetReaderCopy(), SCIPsetReaderRead(), SCIPsetReaderWrite(), and TRUE. Referenced by SCIP_DECL_READERCOPY(), and SCIPincludeDefaultPlugins(). Variable Documentation
Definition at line 168 of file reader_opb.c. Referenced by getMaxAndConsDim(), and getNextLine(). |