Package org.ojalgo.optimisation
Class FileFormatMPS
- java.lang.Object
-
- org.ojalgo.optimisation.FileFormatMPS
-
final class FileFormatMPS extends java.lang.Object
Mathematical Programming System (MPS) parser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FileFormatMPS.BoundType
BoundType used with the BOUNDS section.(package private) class
FileFormatMPS.Column
(package private) static class
FileFormatMPS.ColumnMarker
(package private) static interface
FileFormatMPS.FieldPredicate
(package private) static class
FileFormatMPS.FileSection
(package private) class
FileFormatMPS.Row
(package private) static class
FileFormatMPS.RowType
RowType used with the ROWS and RANGES sections.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
COMMENT
private static java.lang.String
COMMENT_REF
Seems to be used in problem headers/comment to mark references to authors and suchprivate static int[]
FIELD_START
private static java.lang.String
INTEND
private static java.lang.String
INTORG
private static java.lang.String
MARKER
private static java.lang.String
MAX
private java.util.Map<java.lang.String,FileFormatMPS.Column>
myColumns
private FileFormatMPS.FieldPredicate
myExistingColumn
private FileFormatMPS.FieldPredicate
myExistingRow
private java.lang.String[]
myFields
private java.lang.String
myIdBOUNDS
private java.lang.String
myIdRANGES
private java.lang.String
myIdRHS
private java.lang.String
myIdRowN
private boolean
myIntegerMarker
private FileFormatMPS.FieldPredicate
myMatchingBOUNDS
private FileFormatMPS.FieldPredicate
myMatchingRANGES
private FileFormatMPS.FieldPredicate
myMatchingRHS
private ExpressionsBasedModel
myModel
private java.lang.String
myName
private Expression
myQuadObjExpr
private java.util.Map<java.lang.String,FileFormatMPS.Row>
myRows
private FileFormatMPS.FieldPredicate[]
myVerifierBOUNDS
private FileFormatMPS.FieldPredicate[]
myVerifierCOLUMNS
private FileFormatMPS.FieldPredicate[]
myVerifierQ
private FileFormatMPS.FieldPredicate[]
myVerifierRANGES
private FileFormatMPS.FieldPredicate[]
myVerifierRHS
private FileFormatMPS.FieldPredicate[]
myVerifierROWS
private static java.lang.String
SPACE
-
Constructor Summary
Constructors Constructor Description FileFormatMPS()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
extractFields(java.lang.String line, FileFormatMPS.FieldPredicate[] verifiers)
private ExpressionsBasedModel
getModel()
private FileFormatMPS.FileSection
identifySection(java.lang.String line)
(package private) boolean
nameColumns(java.lang.String line, java.lang.String field)
(package private) boolean
nameRows(java.lang.String line, java.lang.String field)
private void
parseSectionLine(FileFormatMPS.FileSection section, java.lang.String line)
(package private) static ExpressionsBasedModel
read(java.io.InputStream input)
java.lang.String
toString()
-
-
-
Field Detail
-
COMMENT
private static final java.lang.String COMMENT
- See Also:
- Constant Field Values
-
COMMENT_REF
private static final java.lang.String COMMENT_REF
Seems to be used in problem headers/comment to mark references to authors and such- See Also:
- Constant Field Values
-
FIELD_START
private static final int[] FIELD_START
-
INTEND
private static final java.lang.String INTEND
- See Also:
- Constant Field Values
-
INTORG
private static final java.lang.String INTORG
- See Also:
- Constant Field Values
-
MARKER
private static final java.lang.String MARKER
- See Also:
- Constant Field Values
-
MAX
private static final java.lang.String MAX
- See Also:
- Constant Field Values
-
SPACE
private static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
myRows
private final java.util.Map<java.lang.String,FileFormatMPS.Row> myRows
-
myColumns
private final java.util.Map<java.lang.String,FileFormatMPS.Column> myColumns
-
myExistingColumn
private final FileFormatMPS.FieldPredicate myExistingColumn
-
myExistingRow
private final FileFormatMPS.FieldPredicate myExistingRow
-
myFields
private final java.lang.String[] myFields
-
myIdBOUNDS
private java.lang.String myIdBOUNDS
-
myIdRANGES
private java.lang.String myIdRANGES
-
myIdRHS
private java.lang.String myIdRHS
-
myIdRowN
private java.lang.String myIdRowN
-
myIntegerMarker
private boolean myIntegerMarker
-
myMatchingBOUNDS
private final FileFormatMPS.FieldPredicate myMatchingBOUNDS
-
myMatchingRANGES
private final FileFormatMPS.FieldPredicate myMatchingRANGES
-
myMatchingRHS
private final FileFormatMPS.FieldPredicate myMatchingRHS
-
myModel
private final ExpressionsBasedModel myModel
-
myName
private java.lang.String myName
-
myQuadObjExpr
private Expression myQuadObjExpr
-
myVerifierBOUNDS
private final FileFormatMPS.FieldPredicate[] myVerifierBOUNDS
-
myVerifierCOLUMNS
private final FileFormatMPS.FieldPredicate[] myVerifierCOLUMNS
-
myVerifierQ
private final FileFormatMPS.FieldPredicate[] myVerifierQ
-
myVerifierRANGES
private final FileFormatMPS.FieldPredicate[] myVerifierRANGES
-
myVerifierRHS
private final FileFormatMPS.FieldPredicate[] myVerifierRHS
-
myVerifierROWS
private final FileFormatMPS.FieldPredicate[] myVerifierROWS
-
-
Method Detail
-
read
static ExpressionsBasedModel read(java.io.InputStream input)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
extractFields
private void extractFields(java.lang.String line, FileFormatMPS.FieldPredicate[] verifiers)
-
getModel
private ExpressionsBasedModel getModel()
-
identifySection
private FileFormatMPS.FileSection identifySection(java.lang.String line)
-
parseSectionLine
private void parseSectionLine(FileFormatMPS.FileSection section, java.lang.String line)
-
nameColumns
boolean nameColumns(java.lang.String line, java.lang.String field)
-
nameRows
boolean nameRows(java.lang.String line, java.lang.String field)
-
-