This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
projects:project2 [2016/11/10 21:51] aytonb [Part 0: Introduction] |
projects:project2 [2016/11/16 21:16] aytonb |
||
---|---|---|---|
Line 259: | Line 259: | ||
If you do see an application to your own research, please be aware that while Numberjack is great for pedagogical purposes, it has some serious issues that prevent it from being fully utilized in a non-exploratory research context. If you'd like to learn more about other options for specifying constraint programs, please drop the course staff a line and we can give you some pointers. | If you do see an application to your own research, please be aware that while Numberjack is great for pedagogical purposes, it has some serious issues that prevent it from being fully utilized in a non-exploratory research context. If you'd like to learn more about other options for specifying constraint programs, please drop the course staff a line and we can give you some pointers. | ||
+ | |||
+ | ===== Errata ===== | ||
+ | |||
+ | There are two errors in the provided code for part 2: | ||
+ | |||
+ | 1. Correct | ||
+ | |||
+ | <code> | ||
+ | q = VarArray(len(V), 0, n + 2*m - 1, "q") | ||
+ | </code> | ||
+ | |||
+ | to | ||
+ | |||
+ | <code> | ||
+ | q = VarArray(len(V), 0, max([self.vrp.capacity(k) for k in M]), "q") | ||
+ | </code> | ||
+ | |||
+ | |||
+ | 2. Correct | ||
+ | |||
+ | <code> | ||
+ | v = VarArray(len(V), 0, n + 2*m - 1, "v") | ||
+ | </code> | ||
+ | |||
+ | to | ||
+ | |||
+ | <code> | ||
+ | v = VarArray(len(V), 0, m - 1, "v") | ||
+ | </code> |