-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
229 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
BUFFER item 1 @ factory 2025-01-08T00:00:00 1 1 | ||
BUFFER item 1 @ factory 2025-01-08T00:00:00 -1 0 | ||
BUFFER item 3 @ factory 2025-03-05T00:00:00 1 1 | ||
BUFFER item 3 @ factory 2025-03-05T00:00:00 -1 0 | ||
BUFFER item 5A @ factory 2025-05-05T00:00:00 1 1 | ||
BUFFER item 5A @ factory 2025-05-05T00:00:00 -1 0 | ||
BUFFER item 6A @ factory 2025-06-05T00:00:00 1 1 | ||
BUFFER item 6A @ factory 2025-06-05T00:00:00 -1 0 | ||
BUFFER item 6B @ factory 2025-06-05T00:00:00 1 1 | ||
BUFFER item 6B @ factory 2025-06-05T00:00:00 -1 0 | ||
DEMAND order 1 - open 2025-01-08T00:00:00 1 | ||
DEMAND order 3 - quote 2025-03-05T00:00:00 1 | ||
DEMAND order 5A 2025-05-05T00:00:00 1 | ||
DEMAND order 6A 2025-06-05T00:00:00 1 | ||
DEMAND order 6B 2025-06-05T00:00:00 1 | ||
OPERATION Purchase item 1 @ factory from Magic Supplier 2025-01-01T00:00:00 2025-01-08T00:00:00 1 | ||
OPERATION Purchase item 3 @ factory from Magic Supplier 2025-02-26T00:00:00 2025-03-05T00:00:00 1 | ||
OPERATION Purchase item 5A @ factory from Magic Supplier 2025-04-28T00:00:00 2025-05-05T00:00:00 1 | ||
OPERATION Purchase item 6A @ factory from Magic Supplier 2025-05-29T00:00:00 2025-06-05T00:00:00 1 | ||
OPERATION Purchase item 6B @ factory from Magic Supplier 2025-05-29T00:00:00 2025-06-05T00:00:00 1 | ||
PROBLEM late 1 units of demand 'order 1 - open' planned up to 3.0 days after its due date 2025-01-05T00:00:00 / 2025-01-08T00:00:00 | ||
PROBLEM unplanned Demand 'order 4 - inquiry' is not planned 2025-04-05T00:00:00 / 2025-04-05T00:00:00 | ||
PROBLEM unplanned Demand 'order 5B' is not planned 2025-05-05T00:00:00 / 2025-05-05T00:00:00 | ||
DEMAND CONSTRAINT order 1 - open Operation 'Purchase item 1 @ factory from Magic Supplier' planned in the past 2024-12-29T00:00:00 / 2025-01-01T00:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
BUFFER item 1 @ factory 2025-01-05T00:00:00 1 1 | ||
BUFFER item 1 @ factory 2025-01-05T00:00:00 -1 0 | ||
BUFFER item 3 @ factory 2025-03-05T00:00:00 1 1 | ||
BUFFER item 3 @ factory 2025-03-05T00:00:00 -1 0 | ||
BUFFER item 5A @ factory 2025-05-05T00:00:00 1 1 | ||
BUFFER item 5A @ factory 2025-05-05T00:00:00 -1 0 | ||
BUFFER item 6A @ factory 2025-06-05T00:00:00 1 1 | ||
BUFFER item 6A @ factory 2025-06-05T00:00:00 -1 0 | ||
BUFFER item 6B @ factory 2025-06-05T00:00:00 1 1 | ||
BUFFER item 6B @ factory 2025-06-05T00:00:00 -1 0 | ||
DEMAND order 1 - open 2025-01-05T00:00:00 1 | ||
DEMAND order 3 - quote 2025-03-05T00:00:00 1 | ||
DEMAND order 5A 2025-05-05T00:00:00 1 | ||
DEMAND order 6A 2025-06-05T00:00:00 1 | ||
DEMAND order 6B 2025-06-05T00:00:00 1 | ||
OPERATION Purchase item 1 @ factory from Magic Supplier 2024-12-29T00:00:00 2025-01-05T00:00:00 1 | ||
OPERATION Purchase item 3 @ factory from Magic Supplier 2025-02-26T00:00:00 2025-03-05T00:00:00 1 | ||
OPERATION Purchase item 5A @ factory from Magic Supplier 2025-04-28T00:00:00 2025-05-05T00:00:00 1 | ||
OPERATION Purchase item 6A @ factory from Magic Supplier 2025-05-29T00:00:00 2025-06-05T00:00:00 1 | ||
OPERATION Purchase item 6B @ factory from Magic Supplier 2025-05-29T00:00:00 2025-06-05T00:00:00 1 | ||
PROBLEM before current Operation 'Purchase item 1 @ factory from Magic Supplier' planned in the past 2024-12-29T00:00:00 / 2025-01-01T00:00:00 | ||
PROBLEM unplanned Demand 'order 4 - inquiry' is not planned 2025-04-05T00:00:00 / 2025-04-05T00:00:00 | ||
PROBLEM unplanned Demand 'order 5B' is not planned 2025-05-05T00:00:00 / 2025-05-05T00:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
BUFFER item 1 @ factory 2025-01-05T00:00:00 1 1 | ||
BUFFER item 1 @ factory 2025-01-05T00:00:00 -1 0 | ||
BUFFER item 3 @ factory 2025-03-05T00:00:00 1 1 | ||
BUFFER item 3 @ factory 2025-03-05T00:00:00 -1 0 | ||
BUFFER item 5A @ factory 2025-05-05T00:00:00 1 1 | ||
BUFFER item 5A @ factory 2025-05-05T00:00:00 -1 0 | ||
BUFFER item 6A @ factory 2025-06-05T00:00:00 1 1 | ||
BUFFER item 6A @ factory 2025-06-05T00:00:00 -1 0 | ||
BUFFER item 6B @ factory 2025-06-05T00:00:00 1 1 | ||
BUFFER item 6B @ factory 2025-06-05T00:00:00 -1 0 | ||
DEMAND order 1 - open 2025-01-05T00:00:00 1 | ||
DEMAND order 3 - quote 2025-03-05T00:00:00 1 | ||
DEMAND order 5A 2025-05-05T00:00:00 1 | ||
DEMAND order 6A 2025-06-05T00:00:00 1 | ||
DEMAND order 6B 2025-06-05T00:00:00 1 | ||
OPERATION Purchase item 1 @ factory from Magic Supplier 2024-12-29T00:00:00 2025-01-05T00:00:00 1 | ||
OPERATION Purchase item 3 @ factory from Magic Supplier 2025-02-26T00:00:00 2025-03-05T00:00:00 1 | ||
OPERATION Purchase item 5A @ factory from Magic Supplier 2025-04-28T00:00:00 2025-05-05T00:00:00 1 | ||
OPERATION Purchase item 6A @ factory from Magic Supplier 2025-05-29T00:00:00 2025-06-05T00:00:00 1 | ||
OPERATION Purchase item 6B @ factory from Magic Supplier 2025-05-29T00:00:00 2025-06-05T00:00:00 1 | ||
PROBLEM before current Operation 'Purchase item 1 @ factory from Magic Supplier' planned in the past 2024-12-29T00:00:00 / 2025-01-01T00:00:00 | ||
PROBLEM unplanned Demand 'order 4 - inquiry' is not planned 2025-04-05T00:00:00 / 2025-04-05T00:00:00 | ||
PROBLEM unplanned Demand 'order 5B' is not planned 2025-05-05T00:00:00 / 2025-05-05T00:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<plan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<current>2025-01-01T00:00:00</current> | ||
<suppliers> | ||
<supplier name="Magic Supplier"> | ||
<itemsuppliers> | ||
<itemsupplier> | ||
<item name="All products"/> | ||
<location name="factory"/> | ||
<leadtime>P7D</leadtime> | ||
</itemsupplier> | ||
</itemsuppliers> | ||
</supplier> | ||
</suppliers> | ||
<demands> | ||
<demand name="order 1 - open"> | ||
<quantity>1</quantity> | ||
<due>2025-01-05T00:00:00</due> | ||
<item name="item 1"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
<status>open</status> | ||
</demand> | ||
<demand name="order 2 - closed"> | ||
<quantity>1</quantity> | ||
<due>2025-02-05T00:00:00</due> | ||
<item name="item 2"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
<status>closed</status> | ||
</demand> | ||
<demand name="order 3 - quote"> | ||
<quantity>1</quantity> | ||
<due>2025-03-05T00:00:00</due> | ||
<item name="item 3"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
<status>quote</status> | ||
</demand> | ||
<demand name="order 4 - inquiry"> | ||
<quantity>1</quantity> | ||
<due>2025-04-05T00:00:00</due> | ||
<item name="item 4"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
<status>inquiry</status> | ||
</demand> | ||
<demand name="order 5" xsi:type="demand_group"> | ||
<members> | ||
<demand name="order 5A"> | ||
<quantity>1</quantity> | ||
<due>2025-05-05T00:00:00</due> | ||
<item name="item 5A"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
</demand> | ||
<demand name="order 5B"> | ||
<quantity>1</quantity> | ||
<due>2025-05-05T00:00:00</due> | ||
<item name="item 5B"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
<status>inquiry</status> | ||
</demand> | ||
</members> | ||
<policy>alltogether</policy> | ||
</demand> | ||
<demand name="order 6" xsi:type="demand_group" status="inquiry"> | ||
<members> | ||
<demand name="order 6A"> | ||
<quantity>1</quantity> | ||
<due>2025-06-05T00:00:00</due> | ||
<item name="item 6A"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
</demand> | ||
<!-- This inquiry gets planned because the parent is an inquiry as well. --> | ||
<demand name="order 6B"> | ||
<quantity>1</quantity> | ||
<due>2025-06-05T00:00:00</due> | ||
<item name="item 6B"> | ||
<owner name="All products"/> | ||
</item> | ||
<location name="factory"/> | ||
<status>inquiry</status> | ||
</demand> | ||
</members> | ||
<policy>alltogether</policy> | ||
</demand> | ||
</demands> | ||
|
||
<?python | ||
print("CREATING CONSTRAINED PLAN") | ||
frepple.solver_mrp(plantype=1, constraints=15, loglevel=2).solve() | ||
frepple.saveplan("output.1.xml") | ||
|
||
print("CREATING SMART UNCONSTRAINED PLAN") | ||
frepple.solver_mrp(plantype=2, constraints=15, loglevel=2).solve() | ||
frepple.saveplan("output.2.xml") | ||
|
||
print("CREATING UNCONSTRAINED PLAN") | ||
frepple.solver_mrp(plantype=2, constraints=0, loglevel=2).solve() | ||
frepple.saveplan("output.3.xml") | ||
?> | ||
|
||
</plan> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.