GithubHelp home page GithubHelp logo

liuhuanku / disrupt-supply-chain-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ccolon/disrupt-supply-chain-model

0.0 0.0 0.0 606 KB

License: GNU Affero General Public License v3.0

Python 100.00%

disrupt-supply-chain-model's Introduction

DisruptSupplyChain Model

Inputs

Create an input directory in the root of the project

Create a subdirectory in the input directory, whose name should correspond to the input_folder variable given in the paramters.py file

Transport

Transport Parameters

A yaml file.

Road Network

Two shapefiles, one for the road nodes, another for the road edges.

  • road_nodes
  • road_edges

If you set new_roads = True, the shapefile containing the extra road edges should be road_edges_extra.

Origin--Destination Points (OD points)

A csv file with the following strucutre.

odpoint district long lat
7121 16-08 30.09349 -4.56182
... ... ... ...

Production

Technical coefficients

A csv file with the following strucutre.

AGI FOR ...
AGI 0.11 0 ...
FOR 0.01 0.2 ...
... ... ... ...

District Sector Importance

A csv file with the following strucutre.

district sector importance
01-01 AGR 0.0033
... ... ...

Inventory Duration Target (optional)

A csv file with the following strucutre.

input_sector buying_sector inventory_duration_target
TRD AGR 3.5
... ... ...

Sector Table

A csv file providing, for each sector:

  • the type of sector ('agriculture', 'manufacturing', 'utility', 'transport', 'services')
  • the average monetary value, in USD, of a ton of good,
  • the percentage of the firms that export per sector.
  • the total yearly output, is USD (not kUSD, not mUSD, USD)
sector type usd_per_ton share_exporting_firms output
AGR agriculture 950 0.16 415641365
... ... ... ... ...

Demand

Final Demand

A csv file with the yearly final demand per sector.

sector final_demand
AGR 1230489103
... ...

Population

A csv file with the population per district.

district population
01-01 123456
... ...

Trade

Country Transit Matrix

A csv file representing a double-entry table. Country codes are row and column headers.

BDI COD ...
BDI 4563 4516 ...
... ... ... ...

Import Table

A csv file representing a double-entry table. Country codes are row headers. Sector codes are column headers.

AGR FOR ...
BDI 132 0 ...
... ... ... ...

Export Table

A csv file representing a double-entry table. Country codes are row headers. Sector codes are column headers.

AGR FOR ...
BDI 2 456 ...
... ... ... ...

Country Transit Points

A csv file with the following strucutre.

country entry_point weight
BDI 7112 1
... ... ...

disrupt-supply-chain-model's People

Contributors

ccolon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.