Commit 9beb2861 authored by Chinmay Garde's avatar Chinmay Garde

Account for the result of optimization when adding constraints

parent b78b35d7
...@@ -46,9 +46,7 @@ class Solver { ...@@ -46,9 +46,7 @@ class Solver {
_constraints[constraint] = tag; _constraints[constraint] = tag;
_optimizeObjectiveRow(_objective); return _optimizeObjectiveRow(_objective);
return Result.success;
} }
Result removeContraint(Constraint c) { Result removeContraint(Constraint c) {
......
...@@ -282,8 +282,7 @@ void main() { ...@@ -282,8 +282,7 @@ void main() {
expect((right >= left) is Constraint, true); expect((right >= left) is Constraint, true);
// TODO: Add assertions for this expect(s.addConstraint(c1), Result.success);
s << c1 << c2;
}); });
test('constraint_complex', () { test('constraint_complex', () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment