Git Product home page Git Product logo

automatedilp's Introduction

AutomatedILP

Version: May 4th, 2021

This tool is designed for automatically ILP scheduling to show ILP solving results.

Introduction

It can take edgelist format DFG file as input, then transfer the graph file to ilp format as "ilp_output.lp" file to enable the GLPK solver for generating the scheduling result in "output.txt" file.

Latency L and memory M are 2 input arguments in our tool, which requires us to minimize the memory under latency L and minimize latency under memory M. We can use L and M for ML-RC scheduling or MR-LC scheduling.

Dependencies

glpk

glpk is used to solve the ILP formulations. To install, run the following command:

sudo apt install glpk-utils

Command

Once glpk is installed, we are ready to generate ILP files and solve them. To generate an ILP file from the edgelist, use generate_ilp.py:

python3 generate_ilp.py -i <input edgelist file name> -m <max memory usage requirement> -o <objective> -l <latency requirement>

OR

To generate an ILP file from the edgelist and feed to GLPK for solving, use edgelist_solve.sh.

./edgelist_solve.sh -i <edgelist file name> -l <latenct constraint> -o <objective to minimize> -m <memory constraint> -f <optional output filename>

Note:

  • Available objectives are (match case):
    • latency
    • memory
  • If latency is the objective, then -m does not have to be specified.

Notice: We consider latency as a constraints since we don't want to make the file too large.

Example

In this directory, we are using randomly generated edge-list files to run the program. One example could be:

./edgelist_solve.sh -i rand_DFG_s10_1.edgelist -m 50 -l 20 -o latency

This will generate an 'ilp_output.lp' file, then pipe this file to glpk for solving. The solved file will be placed in 'glpk_solved.txt'. This can be changed using the -f flag, specifying an output name.

Additional resource

GLPK https://www.gnu.org/software/glpk/

https://pypi.org/project/glpk/

Authors

  • Jake Steers: u1327208
  • Ye Zhou: u1220084
  • Zach Phelan: u1154147

automatedilp's People

Contributors

u1154147 avatar yezhou0226 avatar paradoxicaltruth avatar

Stargazers

Cunxi Yu avatar

Watchers

 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.