Giter Site home page Giter Site logo

micheleurbani / albp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 219 KB

A solver for Assembly Line Balancing Problems (ALBP)

License: MIT License

Makefile 2.90% Python 33.34% Jupyter Notebook 63.75%
assembly-line assembly-line-balancing optimization optimization-algorithms optimization-methods scip scipopt

albp's People

Contributors

micheleurbani avatar

Watchers

 avatar

albp's Issues

Observation function

Observation function

An observation function is an Ecole environment that returns features of the actions in the action set.

The set of features depends on the problem representation we want to use.

Direct problem representation

Use problem attributes directly as in the canonical form {min cx, Ax <= b}.
Variable features are harder to characterize according to the problem under study. An example of generic features is that provided by Khalil.

Indirect problem representation

A solution to the problem is described as a partition of the set of tasks, where each element corresponds to the set of tasks assigned to a station.

Features are easier to figure out than with the direct representation.

Information extraction from ecole.scip.Model

We need a fast and reliable way to extract the indirect solution representation from the ecole.scip.Model (direct representation). The availability of problem information would help the extraction of variable values. For example, by providing the number of activities and the type of problem, it is possible to understand which variables have been used and how they are indexed, hence retrieving their value and computing, e.g., the list of unassigned tasks or the list of empty stations.

The problem can be divided into two subproblems: the first concerns retrieving information about the problem and it is tackled in the issue #4, whereas accessing information from the ecole.scip.Model concerns accessing the model at runtime and is tackled in the following.

Depending on the programming language, I see two possible ways to access information from ecole.scip.Model.

Python observation function

Exploiting the model name to retrieve the type of the problem, it is possible to access variables correctly due to the different MILP formulations that were adopted.

C++ observation function

ALBP file reader

ALBP file reader

Accessing ALBP information directly to guide the search process is necessary because retrieving them from the ecole.scip.Model is pretty inconvenient. The assumption of having all the problem information available is largely accepted in the literature and is a basic assumption in all papers.

Inherit from FileGenerator class

The ecole.instance.FileGenerator iterates over a folder and its subfolders to find .mps and .lp files.
The class is written in C++ and could be used to read row ALBP files, retrieve the information, and create a scip.Model which stores ALBP information directly.

A list of possible issues is the following:

  • Each problem presents a different dataset structure and a switch statement would be required to differentiate the procedure for all of them.

Python objects and .lp model

pyscipopt.Model objects are not serializable, therefore it is impossible to rely on these only.

Problem data are stored as plain Python dictionaries using pickle. The instance generator iterates over .lp problem files, reads the model, initializes a pyscipopt.Model, reads model data, and appends this to the data attribute of the pyscipopt.Model object.

Randomization of results

The ecole.RandomGenerator class controls the fetching process.

Benchmark results

Results for benchmarking

  • How to organize results to be complete and easy to use?
  • Link results to a problem type and to the source where they were collected.

Problem generator

Complete code to write LPs of:

  • SALBP 1 and 2
  • PALBP
  • TALBP
  • UALBP
  • ErgoALBP
  • VWALBP
  • ARALBP

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.