It's been a while, but I believe that you can solve integer programming 
problems of this type using Groebner bases.
(Google for "integer programming with Groebner bases").

I have some Groebner basis code in Haskell at
http://www.polyomino.f2s.com/david/haskell/commalg.html

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to