private void setTarget(String name) { if (this.target == null) { this.target = name; } else { MPSReader.LOG.info("Ignoring additional function: " + name); } }
public void registerRightHandSide(String column, String row, double value) { if (rhs == null) { rhs = column; } if (rhs.equals(column)) { writeToFile(row, column, toFraction(value)); } else { MPSReader.LOG.info("Ignoring additional rhs: " + column); } }
public void registerBound(MPSBoundType type, String variable, double value) { Fraction bound = toFraction(value); Fraction cell = Fraction.ONE; switch (type) { case LO: bound = bound.negate(); cell = cell.negate(); // fall-through. case UP: addBound(variable, cell, bound); break; default: MPSReader.LOG.info("Ignoring bound type: " + type); } }