frePPLe / frepple

frePPLe - open source supply chain planning
https://frepple.com
Other
536 stars 259 forks source link

OperationMaterial.SearchMode==Min Cost not working #399

Open petrakozielova opened 3 years ago

petrakozielova commented 3 years ago

Hello,

I tried to simulate an example with two operations, which are each other's alternates. I also have two alternate material flows. Search mode of operations and flows is minimal cost. In such case there is created purchase order on item,which has higher cost (item suppliers.cost). I don't see why the cheaper item was not selected.

AlternateFlows_MinCost_not_working.xlsx

When I try changing Search Mode to Priority everything is working as expected - the flow with lower priority is selected.

AlternateFlows_Priority_working.xlsx

I also tried simplifying the case - only one operation and 2 alternate flows. But the purchase order was still planned on more expensive item.

AlternateFlows_MinCost_not_working_simplified.xlsx