Giter Site home page Giter Site logo

coloring's Introduction

Comparing Formulations of the Vertex Coloring Problem

What is it?

This is an implementation of the paper Jabrayilov and Mutzel (2023), which compares the MILP formulations of the vertex coloring problem, namely, the Assignment model, the POP (partial-ordering based) model, and the POPH (POP hybrid) model.

All models are the strengthened versions, along with some preprocessing tricks (e.g., an upper bound derived by a heuristic) mentioned in the paper.

How to use it?

Run the main.py in the root directory. It will read instances defined in config_local.yaml (downloaded from https://mat.tepper.cmu.edu/COLOR/instances.html, standard graph coloring instances) and solve them via the Assign, POP, POPH models.

Dependencies

This project depends on the Gurobi solver and Networkx package.

TODO List

  • Implement a max clique heuristic to find the initial lower bound of a graph (and add an associated constraint into the models).

    • It turns out that a greedy method performs poorly and I just use the method in Networkx.
  • Automatically analyze the Gurobi logs (via implementing a parser) and output the stat file. The official package grblogtools is not available for Anaconda Python 3.6.

  • Add functionality to draw the convergence plot (based on Gurobi log).

  • Use the initial solution of the heuristic coloring method as a warm start of MILP models.

  • If the upper bound equals the lower bound, turn off the preprocessing to save the solution time.

  • Avoid defining redundant variables (i.e., g_{v, H}) in the POP and POPH models.

  • Restructure and refactor (WIP).

Reference

Jabrayilov, A., Mutzel, P. 2023. Strengthened partial-ordering based ILP models for the vertex coloring problem. Working Paper.

coloring's People

Contributors

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