Skip to content

Commit

Permalink
fix test case sums
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSwayne committed Nov 26, 2023
1 parent ebd3fe3 commit 43c7572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linear_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def calculate(floors=1, xLength=1, yLength=1):
logs.append("Parameters given: " + str(floors) + " floor, " + str(xLength) + " tile x length, " + str(yLength) + " tile y length.")
logs.append("\nCost (measured in USD): $" + str(round(cost.value, 2)))
logs.append("\nColumns (measured in quantity):")
logs.append("Aluminum columns needed: "+str(cp.sum(aluminumColumns)))
logs.append("Steel columns needed: "+str(cp.sum(steelColumns)))
logs.append("Aluminum columns needed: "+str(sum(sum(aluminumColumns, []))))
logs.append("Steel columns needed: "+str(sum(sum(steelColumns, []))))
logs.append("\nCarbon offsets (measured in acres):")
logs.append("Slash pine acres: " + str(slashPineAcres.value))

Expand Down

0 comments on commit 43c7572

Please sign in to comment.