diff --git a/docs/_build/doctrees/Installation.doctree b/docs/_build/doctrees/Installation.doctree index b5d9f29..a0ce516 100644 Binary files a/docs/_build/doctrees/Installation.doctree and b/docs/_build/doctrees/Installation.doctree differ diff --git a/docs/_build/doctrees/calculations.doctree b/docs/_build/doctrees/calculations.doctree index 7ec37eb..74e013a 100644 Binary files a/docs/_build/doctrees/calculations.doctree and b/docs/_build/doctrees/calculations.doctree differ diff --git a/docs/_build/doctrees/changelog.doctree b/docs/_build/doctrees/changelog.doctree index d3fcf3b..118466f 100644 Binary files a/docs/_build/doctrees/changelog.doctree and b/docs/_build/doctrees/changelog.doctree differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index 70fed83..e07628f 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree index 14f2184..cf00569 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ diff --git a/docs/_build/doctrees/ipythontest.doctree b/docs/_build/doctrees/ipythontest.doctree index 5d4bd7a..9f37a38 100644 Binary files a/docs/_build/doctrees/ipythontest.doctree and b/docs/_build/doctrees/ipythontest.doctree differ diff --git a/docs/_build/doctrees/modules.doctree b/docs/_build/doctrees/modules.doctree index 65c1159..16fdf44 100644 Binary files a/docs/_build/doctrees/modules.doctree and b/docs/_build/doctrees/modules.doctree differ diff --git a/docs/_build/doctrees/quickstart.doctree b/docs/_build/doctrees/quickstart.doctree index da6c0af..8572cf9 100644 Binary files a/docs/_build/doctrees/quickstart.doctree and b/docs/_build/doctrees/quickstart.doctree differ diff --git a/docs/_build/doctrees/supplychainpy.demand.doctree b/docs/_build/doctrees/supplychainpy.demand.doctree index 7c2c6fd..da15bdd 100644 Binary files a/docs/_build/doctrees/supplychainpy.demand.doctree and b/docs/_build/doctrees/supplychainpy.demand.doctree differ diff --git a/docs/_build/doctrees/supplychainpy.distribution.doctree b/docs/_build/doctrees/supplychainpy.distribution.doctree index 35e2e1b..b99351b 100644 Binary files a/docs/_build/doctrees/supplychainpy.distribution.doctree and b/docs/_build/doctrees/supplychainpy.distribution.doctree differ diff --git a/docs/_build/doctrees/supplychainpy.doctree b/docs/_build/doctrees/supplychainpy.doctree index 4131efe..0f7a918 100644 Binary files a/docs/_build/doctrees/supplychainpy.doctree and b/docs/_build/doctrees/supplychainpy.doctree differ diff --git a/docs/_build/doctrees/supplychainpy.production.doctree b/docs/_build/doctrees/supplychainpy.production.doctree index 4ed6299..054e5cc 100644 Binary files a/docs/_build/doctrees/supplychainpy.production.doctree and b/docs/_build/doctrees/supplychainpy.production.doctree differ diff --git a/docs/_build/doctrees/supplychainpy.simulations.doctree b/docs/_build/doctrees/supplychainpy.simulations.doctree index 5a99dba..7b8c00a 100644 Binary files a/docs/_build/doctrees/supplychainpy.simulations.doctree and b/docs/_build/doctrees/supplychainpy.simulations.doctree differ diff --git a/docs/_build/doctrees/supplychainpy.warehouse.doctree b/docs/_build/doctrees/supplychainpy.warehouse.doctree index 0a6d5dc..27370b8 100644 Binary files a/docs/_build/doctrees/supplychainpy.warehouse.doctree and b/docs/_build/doctrees/supplychainpy.warehouse.doctree differ diff --git a/docs/_build/doctrees/tutorial.doctree b/docs/_build/doctrees/tutorial.doctree index 8603e86..a365211 100644 Binary files a/docs/_build/doctrees/tutorial.doctree and b/docs/_build/doctrees/tutorial.doctree differ diff --git a/docs/_build/html/_sources/calculations.txt b/docs/_build/html/_sources/calculations.txt index 2d181a1..e93585f 100644 --- a/docs/_build/html/_sources/calculations.txt +++ b/docs/_build/html/_sources/calculations.txt @@ -79,31 +79,4 @@ where: D = Demand - HC = Holding Cost - - -Purchase Order Quantity ------------------------ - -For the monte carlo siimulation, the - -In release 0.0.3 the purchase order quantity will be compared against a forecast to assess whether it requires adjustment. - - -Backlog and Shortage units --------------------------- - -To aggregate the backlog and shortage units for the `summarise_frame` - - -Normal Sum Deviation --------------------- - -The standard deviation is calculated by first summing the average variance for backlog and quantity sold. - - -.. math:: - - \sigma_{xy}^2 = \sigma_{x}^2 + \sigma_{y}^2 - - + HC = Holding Cost \ No newline at end of file diff --git a/docs/_build/html/_sources/quickstart.txt b/docs/_build/html/_sources/quickstart.txt index 3350a9a..a70b285 100644 --- a/docs/_build/html/_sources/quickstart.txt +++ b/docs/_build/html/_sources/quickstart.txt @@ -10,13 +10,13 @@ Quick Guide All profiling has been carried out on the following systems: - +------------+------------------------------------+------------------+ - | system | CPU | Ram | - +============+====================================+==================+ - | PC | Xeon 1650v3 (15M Cache, 3.50 GHz) | 32gb ddr4 2133 | - +------------+------------------------------------+------------------+ - | Macbook Air| i7-4650U | 8gb ddr3 1600 | - +------------+------------------------------------+------------------+ + +------------+------------------------------------+------------------+----------------+ + | system | CPU | Ram | OS | + +============+====================================+==================+================+ + | PC | Xeon 1650v3 (15M Cache, 3.50 GHz) | 32gb ddr4 2133 | linux (xubuntu)| + +------------+------------------------------------+------------------+----------------+ + | Macbook Air| i7-4650U | 8gb ddr3 1600 | OS X (yosemite)| + +------------+------------------------------------+------------------+----------------+ Timings are provided as simple benchmarks and will vary based on system and current load. The computation here are mainly cpu bound, io may be a factor when reading from file (csv txt). @@ -324,7 +324,7 @@ when summarised later. The simulation is limited by the assumptions inherent in :ref:`calculations`). To start we need to analyse the orders again like we did in the inventory analysis above: - +388.324289560318 .. code:: python >>> from supplychainpy.model_inventory import analyse_orders_abcxyz_from_file @@ -508,7 +508,8 @@ monte carlo simulation and the original orders analysis. The service level achie reviewed and compared with the desired service level. If below a threshold, then the saftey stock is increased and the whole monte carlo simulation is run again. The new safety stock values are returned when finished. This optimisation step will take as long, if not longer, than the initial monte carlo simulation because the optimisation -step run the simulation again to simulate transactions based on the new safety stock values. Please take this into consideration and adjust your expectation for this optimisation step. +step run the simulation again to simulate transactions based on the new safety stock values. Please take this into +consideration and adjust your expectation for this optimisation step. This feature is in development as is the whole library but this feature will change in the next release. diff --git a/docs/_build/html/calculations.html b/docs/_build/html/calculations.html index c99f89d..2cf38e7 100644 --- a/docs/_build/html/calculations.html +++ b/docs/_build/html/calculations.html @@ -90,9 +90,6 @@
For the monte carlo siimulation, the
-In release 0.0.3 the purchase order quantity will be compared against a forecast to assess whether it requires adjustment.
- -To aggregate the backlog and shortage units for the summarise_frame
-The standard deviation is calculated by first summing the average variance for backlog and quantity sold.
-To start we need to analyse the orders again like we did in the inventory analysis above:
->>> from supplychainpy.model_inventory import analyse_orders_abcxyz_from_file
+To start we need to analyse the orders again like we did in the inventory analysis above:
+388.324289560318
+.. code:: python
+
supplychainpy.simulate.
optimise_service_level
(frame_summary: list, orders_analysis: list, service_level: float, runs: int) → list¶Optimises the safety stock based on the results of the monte carlo analysis.
+supplychainpy.simulate.
optimise_service_level
(frame_summary: list, orders_analysis: list, service_level: float, runs: int, percentage_increase: float) → list¶
+Optimises the safety stock for declared service level.
Identifies which skus under performed (experiencing a service level lower than expected) after simulating transactions over a specific period. The safety stock for these items are increased and the analysis is monte carlo is run again.
@@ -512,6 +512,7 @@supplychainpy.simulate.
run
(simulation_frame: list, period_length: int=12)¶supplychainpy.simulate.
run_monte_carlo
(orders_analysis, file_path: str, z_value: decimal.Decimal, runs: int, reorder_cost: decimal.Decimal, file_type: str, period_length: int=12) → list¶supplychainpy.simulate.
run_monte_carlo_mt
(file_path: str, z_value: decimal.Decimal, runs: int, reorder_cost: decimal.Decimal, file_type: str, period_length: int=12) → list¶supplychainpy.simulate.
summarise_frame
(window_summary)¶