Add missing dualOptimize calls. Kiwi C++ implementation uses a scope guard to guarantee it gets called.

This commit is contained in:
sam 2016-02-01 18:55:20 +00:00
parent 9f269b7a32
commit bf7f638e4a
1 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,7 @@ public class Solver {
if(row.add(-delta) < 0.0){ if(row.add(-delta) < 0.0){
infeasibleRows.add(info.tag.marker); infeasibleRows.add(info.tag.marker);
} }
dualOptimize();
return; return;
} }
@ -254,6 +255,7 @@ public class Solver {
if(row.add(delta) < 0.0){ if(row.add(delta) < 0.0){
infeasibleRows.add(info.tag.other); infeasibleRows.add(info.tag.other);
} }
dualOptimize();
return; return;
} }