Commit cce27e44 authored by Jukka Pekka's avatar Jukka Pekka Committed by jpekka
Browse files

Added support for FX bounds.

2002-07-03  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>

	* mps.c (mps_prepare): Added support for FX bounds.

	* parser.c (mps_parse_bounds): Related changes.
parent 6df796bf
2002-07-03 Jukka Pekka <jiivonen@hutcs.cs.hut.fi>
* mps.c (mps_prepare): Added support for FX bounds.
* parser.c (mps_parse_bounds): Related changes.
2002-07-03 Jukka Pekka <jiivonen@hutcs.cs.hut.fi>
* parser.c (mps_parse_ranges): Wrote. Currently gives only a valid
......
......@@ -155,7 +155,7 @@ mps_prepare (WorkbookView *wbv, MpsInputContext *ctxt)
while (current != NULL) {
MpsBound *bound = (MpsBound *) current->data;
static const MpsRowType type_map[] = {
LessOrEqualRow, GreaterOrEqualRow
LessOrEqualRow, GreaterOrEqualRow, EqualityRow
};
ctxt->matrix[ctxt->n_rows][bound->col_index] = 1.0;
......
......@@ -526,6 +526,8 @@ mps_parse_bounds (MpsInputContext *ctxt)
t = UpperBound;
else if (strncmp (type, "LO", 2) == 0)
t = LowerBound;
else if (strncmp (type, "FX", 2) == 0)
t = FixedVariable;
else
return FALSE; /* Not all bound types are implemented */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment