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 {
_constraints[constraint] = tag;
_optimizeObjectiveRow(_objective);
return Result.success;
return _optimizeObjectiveRow(_objective);
}
Result removeContraint(Constraint c) {
......
......@@ -282,8 +282,7 @@ void main() {
expect((right >= left) is Constraint, true);
// TODO: Add assertions for this
s << c1 << c2;
expect(s.addConstraint(c1), Result.success);
});
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