Beispiel #1
0
 private void revertVarUBs() {
   for (OpenIntToDoubleHashMap.Iterator iterator = variableUpperBoundsToRestore.iterator();
       iterator.hasNext(); ) {
     iterator.advance();
     basicLpSolver.setVarUB(iterator.key(), iterator.value());
   }
 }
Beispiel #2
0
 private void setVarUBs(OpenIntToDoubleHashMap newUpperBounds) {
   variableUpperBoundsToRestore = new OpenIntToDoubleHashMap();
   for (OpenIntToDoubleHashMap.Iterator iterator = newUpperBounds.iterator();
       iterator.hasNext(); ) {
     iterator.advance();
     variableUpperBoundsToRestore.put(iterator.key(), basicLpSolver.getVarUB(iterator.key()));
     basicLpSolver.setVarUB(iterator.key(), iterator.value());
   }
 }