public class OPBReader2012 extends OPBReader2010
SAT4J_MAX_BIG_INTEGERnbNewSymbolscoeffs, d, hasObjFunc, hasVariablesExplanation, lits, nbConstr, nbConstraintsRead, nbVars, operator, solver| Constructor and Description |
|---|
OPBReader2012(IPBSolver solver) |
| Modifier and Type | Method and Description |
|---|---|
IProblem |
parseInstance(Reader input)
Read a file from a reader.
|
protected void |
readMetaData()
read the first comment line to get the number of variables and the number
of constraints in the file calls metaData with the data that was read
|
protected void |
readObjective()
read the objective line (if any) calls beginObjective, objectiveTerm and
endObjective
|
beginConstraint, endConstraintcheckId, decode, decode, isGoodFirstCharacter, literalInAProduct, negateLiteralInAProduct, readTerm, translateVarToIdbeginObjective, constraintRelOp, constraintRightTerm, endObjective, eof, eol, get, getCoeffs, getListOfVariables, getObjectiveFunction, getVars, isGoodFollowingCharacter, metaData, parse, parseInstance, parseInstance, putback, readConstraint, readIdentifier, readInteger, readVariablesExplanation, readWord, skipSpacesisVerbose, parseInstance, setVerbositypublic OPBReader2012(IPBSolver solver)
protected void readMetaData()
throws IOException,
ParseFormatException
OPBReader2010readMetaData in class OPBReader2010IOExceptionParseFormatExceptionprotected void readObjective()
throws IOException,
ParseFormatException
OPBReader2005readObjective in class OPBReader2010IOExceptionParseFormatExceptionpublic IProblem parseInstance(Reader input) throws ParseFormatException, ContradictionException
ReaderparseInstance in class OPBReader2010input - a stream containing the benchmark.ParseFormatException - if an error occurs during parsing.ContradictionException - if the problem is found trivially inconsistent.Reader.parseInstance(InputStream)Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.