Giter Site home page Giter Site logo

java-code-for-benders-decomposition's Introduction

Java-code-for-Benders-Decomposition

Java implementation for Benders Decomposition

This is an implementation of Benders decomposition using Java programming language. The code uses CPLEX for solving Mixed-integer programs and Linear programs.

Inputs:

It uses two types of files .mps file and .tim file. .mps file is used to read the model, and .tim is used to identify the variables and constraints for master and sub problem.

Usage:

java -Xms32m -Xmx1g -Djava.library.path=<location of \cplex\bin\x64_win64 dir> -classpath bd.jar;<location of \cplex.jar> com.project.optimizer.Optimizer CEP1 > CEP1.txt

CEP1 is the name of the instance. CEP is a standard 'capacity expansion for planning' instance. A successful run will create the following output:

Selected objective sense: MINIMIZE Selected objective name: COST Selected RHS name: RHS

Selected objective sense: MINIMIZE Selected objective name: COST Selected RHS name: RHS

Algorithm Starts: LB: 32099.999999999767 UB: 1800000.0 Iter: 1 LB: 89502.02887858287 UB: 113716.66666666651 Iter: 2 LB: 90199.99999999965 UB: 92025.42158515981 Iter: 3 LB: 90199.99999999974 UB: 90199.99999999965 Iter: 4 Algorithm Ends:

Total Time Taken (Secs): 0

Citation:

To cite the code used in this repository, use the following citation:

S. Venkatachalam. Java Code for Benders Decomposition. https://github.com/saran-v/Java-code-for-Benders-Decomposition/, 2020.

java-code-for-benders-decomposition's People

Contributors

saran-v 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.