| 1 | initial version |
Since your equations are linear, and your constraints about the variables is that they are integer, i strongly suggest to look at linear programming in Sage:
Do not hesitate to ask for more details if something is not clear (with your attempts so that we can discuss them).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.