private void revertVarUBs() { for (OpenIntToDoubleHashMap.Iterator iterator = variableUpperBoundsToRestore.iterator(); iterator.hasNext(); ) { iterator.advance(); basicLpSolver.setVarUB(iterator.key(), iterator.value()); } }
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()); } }