Skip to content

Commit

Permalink
Fixed #6 - !lt is not same as gt
Browse files Browse the repository at this point in the history
Thanks to @qfox for finding this.

TODO: The tests aren't currently hard-testing this property, as gt() is
only used in a branch and bound problem.
  • Loading branch information
srikumarks committed Sep 24, 2015
1 parent 7d3074b commit 348756f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fd.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ var FD = (function (exports, Math) {

// Greater than propagator.
Space.prototype.gt = function (v1name, v2name) {
return this.lt(v2name, v1name);
return this.lte(v2name, v1name);
};

// Less than or equal to propagator.
Expand Down Expand Up @@ -943,7 +943,7 @@ var FD = (function (exports, Math) {

// Greater than or equal to.
Space.prototype.gte = function (v1name, v2name) {
return this.lte(v2name, v1name);
return this.lt(v2name, v1name);
};

// Ensures that the two variables take on different values.
Expand Down

0 comments on commit 348756f

Please sign in to comment.