Git Product home page Git Product logo

makespan-poc's Introduction

makespan-poc

Makespan PoC

Prototype impementations for makespan project.

Note that just some algorithms implemented here will be ported to the main Rust project. This repository generally serves to analyze the minimum makespan problem and compare different approaches (mainly in terms of solution quality, performance is of secondary concern).

Environment setup

  1. Install GLPK system libraries (see GLPK section).
  2. Download and install Poetry. E.g. pipx install poetry.
  3. Inside project directory use Python 3.8 environment: poetry env use python3.6.
  4. Install project dependencies by running poetry install or update current ones with poetry update.
  5. Install pre-commit by running poetry run pre-commit install.

There is also a convenience make target to setup the environment install all requirements:

make setup

Activate project environment by running

poetry shell

Additional libraries

GLPK

To be able to use GLPK in MILP formulation, install following system libraries.

sudo apt install -y libglpk-dev glpk-utils glpk-doc

Development

It is advised to use following make targets during development.

make fmt
  1. Reformats imports using isort.
  2. Runs black formatting tool on source code.

Again, find configuration for both tools in pyproject.toml.

make lint

This command runs:

  1. Bunch of flakehell checks against code in src/. One can find config and tweak plugins in pyproject.toml.
  2. Runs mypy static type check on src/. Configuration is in default mypy.ini.
make tests

Runs tests with doctests enabled and displays code coverage. Configuration can be tweaked in relevant sections of pyproject.toml.

All lints and tests are also available via single command:

make check

Finally, initial setup installs pre-commit hooks (see .pre-commit-config.yaml). One can run these hooks as follows:

pre-commit run --all-files

makespan-poc's People

Contributors

matyama avatar

Watchers

 avatar  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.