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).