Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AidenSwayne committed Nov 28, 2023
1 parent 89e161e commit 4a88a00
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 @@ -123,8 +123,8 @@ def calculate(floors=1, xLength=1, yLength=1):
logs.append("Parameters given: " + str(floors) + " floor, " + str(xLength) + " meter x length, " + str(yLength) + " meter y length.")
logs.append("\nCost of materials and offsets (measured in USD): $" + "{:.2f}".format(round(cost.value, 2)))
logs.append("\nColumns (measured in quantity):")
logs.append("Aluminum columns needed: "+str(sumMatrix(aluminumColumns.value)))
logs.append("Steel columns needed: "+str(sumMatrix(steelColumns.value)))
logs.append("Aluminum columns needed: "+str(cp.sum(aluminumColumns)))
logs.append("Steel columns needed: "+str(cp.sum(steelColumns)))
logs.append("\nCarbon offsets (measured in acres):")
logs.append("Oak tree acres: " + str(abs(oakTreeAcres.value)))
logs.append("Slash pine acres: " + str(abs(slashPineAcres.value)))
Expand Down

0 comments on commit 4a88a00

Please sign in to comment.