Exemple #1
0
 private void setTarget(String name) {
   if (this.target == null) {
     this.target = name;
   } else {
     MPSReader.LOG.info("Ignoring additional function: " + name);
   }
 }
Exemple #2
0
 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);
   }
 }
Exemple #3
0
 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);
   }
 }