On 11/2/2009 5:59 PM, Michael Sullivan wrote:
On Mon, 2009-11-02 at 17:48 -0500, Marcus Wanner wrote:
On 11/2/2009 3:49 PM, Erik wrote:
Is there some simple little program to solve assignment problems?
Suppose that someone bought k meat (160), m fish (30) and n milk (15)
for 700. So it should solve the equation k * 160 + m * 30 + n * 15 =
700. (A solution happens to be k = 4, m = 2, n = 0. An additional
condition could be that he bought at most 6 items; k + m + n <= 6. That
would eliminate solutions like k = 4, m = 0, n = 4.)
What?


Can't one do this kind of thing in python?
That is what I would do, if I couldn't do it on paper...

But seriously, this does not belong on this list.

Marcus

Reply via email to