Skip to content

Commit

Permalink
fix metric ton figure
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSwayne committed Nov 26, 2023
1 parent 15f82a4 commit eeca1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linear_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def calculate(floors=1, xLength=1, yLength=1):
# 21000 pounds has been converted to metric tons
# steel column support figure from https://www.homedepot.com/p/Tiger-Brand-8-ft-to-8-ft-4-in-Adjustable-Steel-Building-Support-Column-3-in-O-D-3A-8084/202086528#:~:text=maximum%20extension%20(lb.)-,11200%20lb,-Maximum%20load%20at
# 11200 pounds has been converted to metric tons
constraints.append(cp.sum(aluminumColumns)*0.0317514 + cp.sum(steelColumns)*5.0802345 >= (floors-1)*(subflooringTileWeight+floorWeight))
constraints.append(cp.sum(aluminumColumns)*9.5254398 + cp.sum(steelColumns)*5.0802345 >= (floors-1)*(subflooringTileWeight+floorWeight))

# nonnegativity
constraints.append(aluminumColumns >= 0)
Expand Down

0 comments on commit eeca1fa

Please sign in to comment.