# Gentoo Archives: gentoo-user

From: Erik gentoo-user@l.g.o [gentoo-user] program to solve assignment problem? Mon, 02 Nov 2009 20:45:20 4AEF45C2.20703@gmail.com
 1 Is there some simple little program to solve assignment problems? 2 Suppose that someone bought k meat (160), m fish (30) and n milk (15) 3 for 700. So it should solve the equation k * 160 + m * 30 + n * 15 = 4 700. (A solution happens to be k = 4, m = 2, n = 0. An additional 5 condition could be that he bought at most 6 items; k + m + n <= 6. That 6 would eliminate solutions like k = 4, m = 0, n = 4.)

### Replies

Subject Author
Re: [gentoo-user] program to solve assignment problem? Marcus Wanner <marcusw@×××.net>
Re: [gentoo-user] program to solve assignment problem? Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] program to solve assignment problem? Albert Hopkins <marduk@×××××××××××.org>
Re: [gentoo-user] program to solve assignment problem? Willie Wong <wwong@××××××××××××××.edu>
[gentoo-user] Re: program to solve assignment problem? James <wireless@×××××××××××.com>