MCPcopy Index your code
hub / github.com/coin-or/jorlib

github.com/coin-or/jorlib @1.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.1 ↗ · + Follow
953 symbols 2,465 edges 160 files 747 documented · 78%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

jORLib

Java Operations Research Library

Released: April, 2015

Written by Joris Kinable and Contributors

(C) Copyright 2015-2016, by Joris Kinable and Contributors. All rights reserved.

Please address all contributions, suggestions, and inquiries to the current project administrator Joris Kinable

Introduction

jORLib is a Java class library that provides implementations for Operations Research problems. The code requires JDK 1.8 or later, and is released under the terms of LGPLv2.1. Many of the implementations are derived from journal papers and books. jORLib currently includes a framework for Column Generation and Branch-and-Price, routines to separate valid inequalities (knapsack, TSP), parsers for TSPLib instances, as well as several other useful algorithmic implementations. To simplify working with jORLib, documentation is provided, as well as an extensive set of working examples.

A copy of the LGPLv2.1 is included in the download.

Please note that jORLib is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Please refer to the license for details.

Getting Started

The package org.jorlib.demo includes small demo applications to help you get started. If you spawn your own demo app and think others can benefit from it, please send it to us and we will add it to that package.

Running examples directly from the demo package is easy. Try for example: - "java -cp jorlib-demo--uber.jar org.jorlib.demo.alg.tsp.separation.SubtourSeparatorDemo" to run the SubtourSeparatorDemo or - "java -Djava.library.path=/opt/ILOG/CPLEX_Studio1261/cplex/bin/x86-64_linux/ -cp jorlib-demo--uber.jar org.jorlib.demo.frameworks.columnGeneration.bapExample.TSPSolver" to run the Branch-and-Price example. Obviously, you need to ensure that java.library.path points to your own Cplex installation.

Documentation

Javadoc for the latest version can be found here; documentation per version is bundled with every release. Releases can be found on our release page. There is also a manual with an in-depth discussion on the Column Generation and Branch-and-Price features of the library.

Dependencies

  • jORLib requires JDK 1.8 or later to build.
  • JUnit is a unit testing framework. You need JUnit only if you want to run the unit tests. JUnit is licensed under the terms of the IBM Common Public License. The JUnit tests included with jORLib have been created using JUnit 4.12.
  • jGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms and supports various types of graphs. jGraphT is required to model several problems, such as the TSP network for the subtour elimination algorithm. jGraphT version 0.9.0 is used in jORLib.
  • Guava The Guava project contains several of Googles core libraries for Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth. Guava version 14.0.1 is needed for the Branch-and-Price framework.
  • Logback Provides logging fascilities. logback-classic-0.9.28.jar and logback-core-0.9.28.jar are required for the Branch-and-Price framework.
  • Slf4j The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. java.util.logging, logback, log4j) allowing the end user to plug in the desired logging framework at deployment time. slf4j-api-1.6.1.jar is required for the Branch-and-Price framework.
  • OPTIONAL: IBM Cplex. If you want to run the Column Generation and Branch-and-Price examples in the demo package required a CPLEX installation; this is installation is not required for jorlib-core package, or for any of the other examples. The demo package jorlib-demo-1.0-uber.jar contains all the required dependencies. The above packages are only required if you plan to compile the source code yourself.

Online Resources

Source code is hosted on github. You can send contributions as pull requests there. If you intend to contribute code, please use the development branch as this branch contains the latest version of the code. The master branch always contains the source code of the latest stable release.

Your Improvements

Your contributions are highly welcome. Literally anything related to OR will be considered: - Heuristic/exact algorithms related to frequently reoccurring problems, preferably backed by a scientific paper or book - Visualization tools - Readers/parsers for common IO such as TSPLib instances - etc If you add improvements to jORLib please send them to us as pull requests on github. We will add them to the next release so that everyone can enjoy them. You might also benefit from it: others may fix bugs in your source files or may continue to enhance them.

Using jORLib

If you are using jORLib in your work, you are cordially invited to drop a note on our mailing lists (soon to come), describing your work and what you used jORLib for. This will give us a better understanding of how the Library is used and what people's interests are. Feel free to report any issues, feature requests, etc on our issue tracker on Github (https://github.com/jkinable/jorlib/issues).

If you are using jORLib in your research, products, etc, please include a reference to the library; this increases the visibility of the project and may attract additional developers.

Thanks

With regards from

Joris Kinable, jORLib Project Creator

Extension points exported contracts — how you extend this code

BranchingDecision (Interface)
Interface defining a BranchingDecision. @author Joris Kinable @version 5-5-2015 [6 implementers]
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/branchAndPrice/branchingDecisions/BranchingDecision.java
BranchingDecisionListener (Interface)
Interface defining a BranchingDecision Listener. Every BranchingDecision listener is informed about branching decisions [12 …
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/branchAndPrice/branchingDecisions/BranchingDecisionListener.java
ModelInterface (Interface)
Interface which should be implemented by any data model. @author Joris Kinable @version 5-5-2015 [13 implementers]
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/model/ModelInterface.java
BAPListener (Interface)
Listener for Branch-and-Price events @author Joris Kinable @version 5-5-2015 [4 implementers]
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/branchAndPrice/EventHandling/BAPListener.java
CGListener (Interface)
Listener for Column Generation events @author Joris Kinable @version 20-5-2015 [4 implementers]
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/branchAndPrice/EventHandling/CGListener.java

Core symbols most depended-on inside this repo

add
called by 205
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/graph/NodeCoordinates.java
put
called by 204
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/util/OrderedBiMap.java
get
called by 118
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/Tour.java
addEdge
called by 53
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/graph/EdgeData.java
equals
called by 51
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/graph/Node.java
size
called by 47
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/Tour.java
divide
called by 41
jorlib-core/src/main/java/org/jorlib/alg/packing/circlePacking/util/MathUtil.java
get
called by 25
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/util/OrderedBiMap.java

Shape

Method 785
Class 148
Enum 11
Interface 8
Function 1

Languages

Java100%
C1%

Modules by API surface

jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/branchAndPrice/AbstractBranchAndPrice.java45 symbols
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/colgenMain/ColGen.java30 symbols
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/master/AbstractMaster.java23 symbols
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/io/SimpleDebugger.java20 symbols
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/TSPLibInstance.java19 symbols
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/TSPInstance.java19 symbols
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/Tour.java18 symbols
jorlib-core/src/main/java/org/jorlib/io/tspLibReader/TSPLibTour.java18 symbols
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/master/cutGeneration/CutHandler.java17 symbols
jorlib-core/src/main/java/org/jorlib/frameworks/columnGeneration/branchAndPrice/BAPNode.java17 symbols
jorlib-core/src/main/java/org/jorlib/alg/packing/circlePacking/SmallestEnclosingCircleCalculator.java17 symbols
jorlib-core/src/main/java/org/jorlib/alg/knapsack/separation/LiftedCoverInequalitySeparator.java17 symbols

For agents

$ claude mcp add jorlib \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact