From c7610445c10ec5efcf5ed2b30b61133319eca086 Mon Sep 17 00:00:00 2001 From: Lillian Date: Tue, 2 Aug 2022 17:10:27 +0800 Subject: [PATCH] Update hw_1.py But the guinea pig can only have 4 oz of food a day. It means it can eat 4 oz at most. --- code/homework_answers/hw_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/homework_answers/hw_1.py b/code/homework_answers/hw_1.py index 240a91e..dfbab14 100644 --- a/code/homework_answers/hw_1.py +++ b/code/homework_answers/hw_1.py @@ -16,7 +16,7 @@ prob += 5 <= 5*x + 2*y # weight -prob += 4 <= x + y +prob += 4 >= x + y # defines the objective function to maximize prob += .30 * x + .40 * y