Coder Social home page Coder Social logo

graph-projection-splitting-heuristic's Introduction

These codes are for a fun project I am looking into. It is about applying graph projection splitting algorithm as a heuristic to convex integer programming problems (e.g., linear integer programming problems). The codes in this repository applies the graph projection splitting heuristic to the following problem:

where is the optimization variable and are problem data. The matrix is fat full row rank () and the matrix is skinny full column row rank ().

Code structure

There are two parts:

  1. Problem generation and pre-calculation: The problem generation and pre-calculation is done using Mathematica because of the excellent package hnfLLL, that calculates integer normal form of a matrix using LLL algorithm, is written in Mathematica. The package is written by Professor Wilberd van der Kallen and is used with his permission.
  2. Graph projection splitting algorithm: The algorithm is implemented in MATLAB. The integer least squares problem is solved exactly by using the MATLAB package MILES.

How to use the code

  1. Problem generation and pre-calculation: For problem generation and pre-calculation, the Mathematica file named Random_data_generation_and_precalculation.nb located in the directory Code_for_precalculation is used. There are two blocks in the file, the first block contains the necessary function descriptions and the second block generates a random problem, performs the pre-calculation, and finds a starting point. All the parameters can be changed during the random instance generation process. If the starting point is suboptimal, then it saves the data in a directory as prescribed by the variable mypath in second block.

  2. Graph projection splitting algorithm: For solving the specific problem instance created in step 1 and saved in the folder mypath, the Matlab file graph_projection_splitting_numerical_example.m in the directory Code_for_graph_splitting is used. In the .m file, please change variables mypath and outputpath to the directories where the step 1 data has been saved and where the output data should be saved, respectively. After running the code the output will tell if optimality has been reached within the maximum number of iterations, and plot vs. iterations and vs. iterations.

โ€‹

Acknowledgements

I thank Professor Wilberd van der Kallen and Professor Xiao-Wen Chang for giving me permission to use their software packages hnfLLL and MILES, respectively.

graph-projection-splitting-heuristic's People

Contributors

shuvomoy avatar

Watchers

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