diff --git a/linear_program.py b/linear_program.py index ae3ef38..76d3fc9 100644 --- a/linear_program.py +++ b/linear_program.py @@ -103,8 +103,10 @@ def calculate(floors=1, xLength=1, yLength=1): # no tree can be planted twice as much as any other tree constraints.append(oakTreeAcres>=(1/2)*eucalyptusTreeAcres) constraints.append(oakTreeAcres<=2*eucalyptusTreeAcres) + constraints.append(oakTreeAcres>=(1/2)*slashPineAcres) constraints.append(oakTreeAcres<=2*slashPineAcres) + constraints.append(eucalyptusTreeAcres>=(1/2)*slashPineAcres) constraints.append(eucalyptusTreeAcres<=2*slashPineAcres)