Erase the leaving symbols, not the entering symbols in dualOptimize. Matches the Kiwi C++ implementation: 0989ff015f/kiwi/solverimpl.h (L615)

This commit is contained in:
sam 2016-02-01 19:03:24 +00:00
parent bf7f638e4a
commit 2b23f2e562
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ public class Solver {
if(entering.getType() == Symbol.Type.INVALID){
throw new InternalSolverError("internal solver error");
}
rows.remove(entering);
rows.remove(leaving);
row.solveFor(leaving, entering);
substitute(entering, row);
rows.put(entering, row);