Metadata-Version: 2.1
Name: scoptimize
Version: 0.0.4
Summary: Supply Chain Optimization Package
Home-page: https://github.com/connor-makowski/scoptimize
Download-URL: https://github.com/connor-makowski/scoptimize/dist/scoptimize-0.0.3.tar.gz
Author: Connor Makowski
Author-email: conmak@mit.edu
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE

SC Optimize
==========
Supply Chain Optimization package in python using PuLP.

Setup
----------

Make sure you have Python 3.6.x (or higher) installed on your system. You can download it [here](https://www.python.org/downloads/).

### Installation

```
pip install scoptimize
```

# Getting Started


## Basic Usage
```py
from scoptimize.network import Model, Node, Flow

model = Model(name='MyModel')
model.add_object(Node(name="Factory_1", origin=True, cashflow_per_unit=-1, max_units=15))
model.add_object(Node(name="Customer_1", destination=True, min_units=10))
model.add_object(Flow(name="Factory_1__Customer_1", cashflow_per_unit=-1, max_units=15, start='Factory_1', end='Customer_1'))
model.solve()

print(model.objective) #=> 20.0
```
