LarrySnyder / stockpyl

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

Make lead times specific to raw material and upstream node, not finished product and downstream node #149

Open LarrySnyder opened 3 weeks ago

LarrySnyder commented 3 weeks ago

See implications, e.g., at

https://github.com/LarrySnyder/stockpyl/blob/be47a364af06cd070bc1570a7e0bc61974abce87/src/stockpyl/node_state_vars.py#L177-L183

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

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

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

Note: This doesn't mean we should interpret the LT as applying to the outbound link instead of the inbound link.

LarrySnyder commented 3 weeks ago

Related: shouldn't inbound shipment pipeline only use shipment LT, not order LT? (see line 180 above)

LarrySnyder commented 2 weeks ago

https://github.com/LarrySnyder/stockpyl/blob/2f2b0abdaf4c95b9765849d94765460b80b72c64/src/stockpyl/node_state_vars.py#L205-L215