USFS-PNW / Fia-Biosum-Manager

User interface and main code repository for Biosum
http://biosum.info/
Other
3 stars 3 forks source link

OPTIMIZER: ECON_BY_RX_CYCLE.MAX_NR_DPA is incorrect if when USEBIOMASS_YN =N #322

Closed lbross closed 1 month ago

lbross commented 3 months ago

This field is supposed to be populated: IF USEBIOMASS_YN =”Y” THEN MERCH_CHIP_NR_DPA ELSE MERCH_NR_DPA. There was an error in the SQL so that MERCH_CHIP_NR_DPA is always selected regardless of the USEBIOMASS_YN setting.

lbross commented 3 months ago

We corrected the SQL in both the v5.10.1 code and v5.11.0.

lbross commented 1 month ago

From Sam Evans: Ok, I looked into the issue and I think issue 322 is resolved. I reran a scenario for the Tahoe-Central Sierra with really high haul costs and it looks like optimizer is correctly selecting the max of the merch_chip_nr_dpa and merch_ne_dpa.