public class OPBReader2012 extends OPBReader2010
SAT4J_MAX_BIG_INTEGERnbNewSymbolscoeffs, d, hasObjFunc, hasVariablesExplanation, in, lits, nbConstr, nbConstraintsRead, nbVars, operator, solver| Constructor and Description |
|---|
OPBReader2012(PBSolverHandle solver) |
| Modifier and Type | Method and Description |
|---|---|
ObjectiveFunction |
getObjectiveFunction() |
IProblem |
parseInstance(Reader input) |
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, getMapping, getVars, hasAMapping, isGoodFollowingCharacter, metaData, parse, parseInstance, parseInstance, putback, readConstraint, readIdentifier, readInteger, readVariablesExplanation, readWord, skipSpaces, startsMappinggetInputStreamFromFilename, isUsingMapping, isVerbose, parseInstance, setUseMapping, setVerbositypublic OPBReader2012(PBSolverHandle solver)
protected void readMetaData()
throws IOException,
ParseFormatException
OPBReader2010readMetaData in class OPBReader2010IOExceptionParseFormatExceptionprotected void readObjective()
throws IOException,
ParseFormatException
OPBReader2005readObjective in class OPBReader2010IOExceptionParseFormatExceptionpublic ObjectiveFunction getObjectiveFunction()
getObjectiveFunction in class OPBReader2005public IProblem parseInstance(Reader input) throws ParseFormatException, ContradictionException
parseInstance in class OPBReader2010ParseFormatExceptionContradictionExceptionCopyright © 2020 Centre de Recherche en Informatique de Lens (CRIL). All rights reserved.