David Wang 5bb52b03f2 Add simple variable substitution for constraints.
Constraints must now implement the substitution of "from" with "to".
The implementations can be sanity checked when we come to build the
list of constraints that each variable wakes up.

In the future, we would like to make the more general substitution:
from -> scale * to + constant.
2017-03-09 07:52:08 +11:00
..
2017-03-04 08:03:00 +11:00
2017-03-04 08:57:52 +11:00
2017-03-04 09:07:04 +11:00
2017-03-02 08:25:29 +11:00
2017-03-06 07:53:10 +11:00
2017-02-24 07:26:56 +11:00
2017-03-04 08:16:33 +11:00