Add missing dualOptimize calls. Kiwi C++ implementation uses a scope guard to guarantee it gets called.
This commit is contained in:
parent
9f269b7a32
commit
bf7f638e4a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue