Skip to content

Commit

Permalink
update hyphenation
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSwayne committed Nov 26, 2023
1 parent 7495574 commit 498d91a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions linear_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# solve linear system
def calculate(floors=1, xLength=1, yLength=1):
# floors is the number of floors of the building
# xLength is the length of the building in square-meter tiles
# yLength is the width of the building in square-meter tiles
# xLength is the length of the building in square meter tiles
# yLength is the width of the building in square meter tiles

# weight of each square-meter of subfloor
# weight of each square meter of subfloor
# figure from https://www.lowes.com/pd/AdvanTech-Flooring-23-32-CAT-PS2-10-Tongue-and-Groove-OSB-Subfloor-Application-as-4-x-8/50126556#:~:text=Actual%20Length%20(Feet)-,7.989,-Common%20Thickness%20Measurement
# converted 7.989*3.953 feet to 2.93392603407 square meters
# cost is assumed to scale proportionally to size
Expand All @@ -40,9 +40,9 @@ def calculate(floors=1, xLength=1, yLength=1):
cost += cp.sum(aluminumColumns)*278
# cost of steel columns from https://web.archive.org/web/20161210125922/http://www.homedepot.com:80/p/Tiger-Brand-8-ft-to-8-ft-4-in-Adjustable-Steel-Building-Support-Column-3-in-O-D-3A-8084/202086528
cost += cp.sum(steelColumns)*64.90
# cost of each square-meter tile from https://www.forbes.com/home-improvement/home/cost-to-add-second-story/#:~:text=average%20of%20%24100%20to%20%24300%20per%20square%20foot
# average figure of 200/square-foot taken, 200*10.7639 is the cost for a square-meter tile
# weight of each square-meter of subfloor excludes foundation, reducing floor count by 1
# cost of each square meter tile from https://www.forbes.com/home-improvement/home/cost-to-add-second-story/#:~:text=average%20of%20%24100%20to%20%24300%20per%20square%20foot
# average figure of 200/square foot taken, 200*10.7639 is the cost for a square meter tile
# weight of each square meter of subfloor excludes foundation, reducing floor count by 1
cost += 2152.78*xLength*yLength*(floors-1)

# constraints
Expand Down

0 comments on commit 498d91a

Please sign in to comment.