Aug 22, 2024
x_p
= amount of potatoes planted (in kg)x_c
= amount of carrots planted (in kg)x_p <= 3000
(3 tons of potatoes)x_c <= 4000
(4 tons of carrots)x_p + x_c <= 5000
(5 tons of fertilizer)1.2*x_p + 1.7*x_c
pulp
Python package to solve linear programs efficiently.