LarrySnyder / stockpyl

Python inventory optimization and simulation tools.
GNU General Public License v3.0
87 stars 19 forks source link

Clean up edge cases in calculating share fraction in `sim._raw_materials_to_finished_goods()` #156

Open LarrySnyder opened 3 weeks ago

LarrySnyder commented 3 weeks ago

https://github.com/LarrySnyder/stockpyl/blob/26792d67696fc26a6a60cfe4db6c31a647c73a1b/src/stockpyl/sim.py#L856-L865

Allocate in a smarter way if units_ordered == 0?

Better handling for case where order_quantity_fg == 0 (e.g., because of backorders)?