Skip to content

A Python library to design & optimize Supply Chains

License

Notifications You must be signed in to change notification settings

aitechtools/SunFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SunFlow Image

Design & Optimize your Supply Chain

SunFlow is a tool to design and optimize your Supply Chains. In SunFlow a supply model is made of materials, components, parts, products, substitutes, suppliers, manufacturers, distributors and customers - just to mention the major ones - together with fix and variable costs, capacities and other constraints. With SunFlow you model all kinds of industrial supply chains from simple transportation networks up to complex multi-level manufacturing setups.

Tutorials

Illustrative tutorials explain SunFlow's capabilities and their usage by Python examples step-by-step. Their source code is inside the examples folder.

Powerful Graphics

SunFlow got powerful graphics. Your network can be displayed at any time. Have a look on the artificial and schematic assembly of a Porsche Taycan electric as an example. First you graph the network with all potential connections and definitions for cost, freight, capacities, products, components, suppliers, plants, distribution centers and customers or markets.

Taycan Graph

Once you got the network, execute its potential flows to identify the cost-optimal paths, i.e. optimize it. The optimized network is shown below.

Taycan Opt

The optimized model above shows active (blue) and inactive flows (gray) as well as active participants (gray boxes) and inactive participants (white boxes). In complex models this could be confusing. This is why SunFlow offers an option to display only those vertices and edges, which have an active flow in its optimized model (see below).

Taycan Opt Flow Only

Network Compiler

SunFlow's supply networks are build up in a way Supply Chain Architects think: in terms of components, materials, products, suppliers, plants, assembly lines, reactors, warehouses, distribution centers, customers, markets,... The above shown charts are made by the Python code example below.

Taycan Code

Library

SunFlow's library 'sunflow.py' is in the folder 'lib' together with an installation guide.

Dependencies

SunFlow supports Python 3.6+

The installation requires numpy, scipy, pandas and graphviz.

Data

Some of the examples use data which are inside the folder 'data'.

Installation

To install SunFlow on your computer, press 'Clone or download' on SunFlow's Repository site and choose the 'Download ZIP' option. Then SunFlow will be copied into a folder 'SunFlow' or zip inside your download directory, containing the complete SunFlow repository. To proceed further, read the installation guide of folder 'lib'.