diff --git a/linear_program.py b/linear_program.py index 141d15f..11fb76b 100644 --- a/linear_program.py +++ b/linear_program.py @@ -82,12 +82,12 @@ def calculate(floors=1, xLength=1, yLength=1): # eucalyptus carbon sequestration per hectare from https://winrock.org/flr-calculator/ # the calculations for eucalyptus are similar to oak trees, absorbing 37800 metric tons of CO2 per 100 hectares per year and # absorbing 15.176 metric tons of CO2 per acre per year. - # the parking lot size of the building is estimated to be 1 parking spot per 500 tiles of space, rounded up, + # the parking lot size of the building is estimated to be 1 parking spot per 250 tiles of space, rounded up, # and with emissions of 52264 metric tons of CO2 over 560000 square meters, so - # the emissions are approximately 0.09333 metric tons per square meter, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4809014/. - # the size of a parking space is approximately 15 square meters, so the CO2 cost of a parking spot is appoximately - # 1.4 metric tons per parking space. - constraints.append(steelColumns*0.0317514*floors + aluminumColumns*0.15921126*floors + xLength*yLength*floors*0.0976484582 + ((xLength*yLength*floors)*10.7639/250)*1.4 - oakTreeAcres*3.8446*building_lifespan - slashPineAcres*3.69*building_lifespan - eucalyptusTreeAcres*11.3820*building_lifespan <= 0) + # the emissions are approximately 0.00867 metric tons per square foot, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4809014/. + # the size of a parking space is 153 square meters, so the CO2 cost of a parking spot is appoximately + # 1.3265 metric tons per parking space. + constraints.append(steelColumns*0.0317514*floors + aluminumColumns*0.15921126*floors + xLength*yLength*floors*0.0976484582 + ((xLength*yLength*floors)*10.7639/250)*1.3266 - oakTreeAcres*3.8446*building_lifespan - slashPineAcres*3.69*building_lifespan - eucalyptusTreeAcres*11.3820*building_lifespan <= 0) # columns supporting each floor # aluminum column support figure from https://www.homedepot.com/p/Afco-8-x-7-5-8-Endura-Aluminum-Column-Round-Shaft-Load-Bearing-21-000-lbs-Non-Tapered-Fluted-Gloss-White-EA0808ANFSATUTU/301315907#:~:text=bearing%20limit%20(lb.)-,21000,-Material