https://github.com/coin-or/osi

Open Solver Interface

https://github.com/coin-or/osi

Science Score: 46.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    6 of 29 committers (20.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary

Keywords from Contributors

mip
Last synced: 7 months ago · JSON representation

Repository

Open Solver Interface

Basic Info
  • Host: GitHub
  • Owner: coin-or
  • License: other
  • Language: C++
  • Default Branch: master
  • Size: 20.5 MB
Statistics
  • Stars: 60
  • Watchers: 10
  • Forks: 42
  • Open Issues: 19
  • Releases: 6
Created about 7 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License Authors

README.md

Osi

A COIN-OR Project

Projects such as this one are maintained by a small group of volunteers under the auspices of the non-profit COIN-OR Foundation and we need your help! Please consider sponsoring our activities or volunteering to help!

Latest Release

This file is auto-generated from config.yml using the generate_readme script. To make changes, please edit config.yml or the generation scripts here and here.

Osi (Open Solver Interface) provides an abstract base class to a generic linear programming (LP) solver, along with derived classes for specific solvers. Many applications may be able to use the Osi to insulate themselves from a specific LP solver. That is, programs written to the OSI standard may be linked to any solver with an OSI interface and should produce correct results. The OSI has been significantly extended compared to its first incarnation. Currently, the OSI supports linear programming solvers and has rudimentary support for integer programming. Among others the following operations are supported: * creating the LP formulation; * directly modifying the formulation by adding rows/columns; * modifying the formulation by adding cutting planes provided by CGL; * solving the formulation (and resolving after modifications); * extracting solution information; * invoking the underlying solver's branch-and-bound component.

The following is a list of derived Osi classes:

|Solver|Derived Class|Note| |------|-------------|----| |Cbc|OsiCbc| unmaintained | |Clp|OsiClp| | |CPLEX|OsiCpx| | |DyLP|OsiDylp| | |GLPK|OsiGlpk| Glpk | |Gurobi|OsiGrb| | |MOSEK|OsiMsk| | |SoPlex|OsiSpx| SoPlex < 4.0 | |SYMPHONY|OsiSym| | |Vol|OsiVol| | |XPRESS-MP|OsiXpr| |

Each solver interface is in a separate directory of Osi or distributed with the solver itself.

Within COIN-OR, Osi is used by Cgl, Cbc, and Bcp, among others.

The main project managers are Lou Hafer (@LouHafer) and Matt Saltzmann (@mjsaltzman).

An incomplete list of recent changes to Osi are found in the CHANGELOG

Osi is written in C++ and is released as open source under the Eclipse Public License 2.0.

It is distributed under the auspices of the COIN-OR Foundation.

The Osi development site is https://github.com/coin-or/Osi.

CITE

Code: DOI

CURRENT BUILD STATUS

Windows Builds

Linux and MacOS Builds

DOWNLOAD

What follows is a quick start guide for obtaining or building Osi on common platforms. More detailed information is available here.

Docker image

There is a Docker image that provides Osi, as well as other projects in the COIN-OR Optimization Suite here

Binaries

For newer releases, binaries will be made available as assets attached to releases in Github here. Older binaries are archived as part of Cbc here.

  • Linux (see https://repology.org/project/coin-or-osi/versions for a complete listing):
    • arch: $ sudo pacman -S coin-or-osi
    • Debian/Ubuntu: $ sudo apt-get install coinor-osi coinor-libosi-dev
    • Fedora/Redhat/CentOS: $ sudo yum install coin-or-Osi coin-or-Osi-devel
    • freebsd: $ sudo pkg install math/osi
    • linuxbrew: $ brew install osi
  • Windows: The easiest way to get Osi on Windows is to download an archive as described above.
  • Mac OS X: The easiest way to get Osi on Mac OS X is through Homebrew. $ brew tap coin-or-tools/coinor $ brew install coin-or-tools/coinor/osi

    • conda (cross-platform, no Windows for now): $ conda install coin-or-osi

Due to license incompatibilities, pre-compiled binaries lack some functionality. If binaries are not available for your platform for the latest version and you would like to request them to be built and posted, feel free to let us know on the mailing list.

Source

Source code can be obtained either by

  • Downloading a snapshot of the source code for the latest release version of Osi from the releases page,
  • Cloning this repository from Github, or
  • Using the coinbrew script to get the project and all dependencies (recommended, see below).

Dependencies

Osi has a number of dependencies, which are detailed in config.yml. Dependencies on other COIN-OR projects are automatically downloaded when obtaining the source with coinbrew. For some of the remaining third-party dependencies, automatic download scripts and build wrappers are provided (and will also be automatically run for required and recommended dependencies), while other libraries that are aeasy to obtain must be installed using an appropriate package manager (or may come with your OS by default).

BUILDING from source

These quick start instructions assume you are in a bash shell.

Using coinbrew

To download and build Osi from source, execute the following on the command line. wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew chmod u+x coinbrew ./coinbrew fetch Osi@master ./coinbrew build Osi For more detailed instructions on coinbrew, see https://coin-or.github.io/coinbrew. The coinbrew script will fetch the additional projects specified in the Dependencies section of config.yml.

Without coinbrew (Expert users)

  • Download the source code, e.g., by cloning the git repo https://github.com/coin-or/Osi
  • Download and install the source code for the dependencies listed in config.yml
  • Build the code as follows (make sure to set PKGCONFIGPTH to install directory for dependencies).

./configure -C make make test make install

Doxygen Documentation

If you have Doxygen available, you can build a HTML documentation by typing

make doxygen-docs

in the build directory. If Osi was built via coinbrew, then the build directory will be ./build/Osi/master by default. The doxygen documentation main file is found at <build-dir>/doxydoc/html/index.html.

If you don't have doxygen installed locally, you can use also find the documentation here.

Project Links


Dynamically loading commercial solver libraries

At build time

It is possible to create an osi build that supports cplex, gurobi and xpress even if you don't have (yet) any of these solvers on your machine using lazylpsolverlibs. To do so, follow these steps:

  1. Install lazylpsolverlibs (follow the instructions of the lazylpsolverlibs wiki)
  2. Use the following command line to configure Osi: ./configure --with-cplex-incdir="$(pkg-config --variable=includedir lazycplex)/lazylpsolverlibs/ilcplex" \ --with-cplex-lib="$(pkg-config --libs lazycplex)" \ --with-gurobi-incdir="$(pkg-config --variable=includedir lazygurobi)/lazylpsolverlibs" \ --with-gurobi-lib="$(pkg-config --libs lazygurobi)" \ --with-xpress-incdir="$(pkg-config --variable=includedir lazyxprs)/lazylpsolverlibs" \ --with-xpress-lib="$(pkg-config --libs lazyxprs)"
  3. Then follow the normal installation process (make, make install)

At run time

Your build should now support cplex, gurobi and xpress, which means that if you install one of these solvers, osi will be able to use it. At run time, you just need to point one of the environment variables LAZYLPSOLVERLIBSGUROBILIB, LAZYLPSOLVERLIBSCPLEXLIB or LAZYLPSOLVERLIBSXPRSLIB to the full path of the corresponding solver library. For example: export LAZYLPSOLVERLIBS_CPLEX_LIB=/usr/ilog/cplex121/bin/x86_debian4.0_4.1/libcplex121.so

Troubleshooting

If pkg-config reports errors during the configure step, try modifying the PKGCONFIGPATH variable. Most likely, you need to do: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Owner

  • Name: COIN-OR Foundation
  • Login: coin-or
  • Kind: organization
  • Email: info@coin-or.org
  • Location: United States of America

Computational Infrastructure for Operations Research.

GitHub Events

Total
  • Watch event: 5
  • Delete event: 4
  • Issue comment event: 9
  • Push event: 9
  • Pull request event: 4
  • Fork event: 1
  • Create event: 1
Last Year
  • Watch event: 5
  • Delete event: 4
  • Issue comment event: 9
  • Push event: 9
  • Pull request event: 4
  • Fork event: 1
  • Create event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 1,717
  • Total Committers: 29
  • Avg Commits per committer: 59.207
  • Development Distribution Score (DDS): 0.755
Past Year
  • Commits: 21
  • Committers: 6
  • Avg Commits per committer: 3.5
  • Development Distribution Score (DDS): 0.714
Top Committers
Name Email Commits
John Forrest j****t@f****m 420
Stefan Vigerske s****e@g****m 396
Lou Hafer l****u@s****a 271
Ted Ralphs t****d@l****u 183
JP Fasano j****o@g****m 98
Andreas Waechter a****r@n****u 88
Laci Ladanyi l****i@u****m 79
Matthew Saltzman m****s@c****u 36
Haroldo Santos h****s@g****m 35
anonymous a****s@c****u 26
John Forrest j****t@g****m 19
Brady Hunsaker b****r@g****m 12
Jan-Willem Goossens j****s@h****m 8
Tobias Achterburg a****g@z****e 8
samuelbrito s****o@c****u 6
coinadmin c****n@c****u 5
Ambros Gleixner g****r@z****e 4
Bo Jenson b****n@s****m 4
Gus Gassmann h****n@d****a 3
Menal Guzelsoy m****y@g****m 3
Robin Lougee r****e@u****m 3
Jan-Willem 5****s@u****m 2
Joseph Young j****e@o****m 2
Bjarni Kristjansson 3****x@u****m 1
Alan King k****j@u****m 1
Arevall a****l@h****m 1
Bjarni Kristjansson b****i@m****m 1
Simon Spoorendonk s****k@u****m 1
tobiass t****l@l****e 1

Packages

  • Total packages: 3
  • Total downloads:
    • homebrew 330 last-month
  • Total dependent packages: 13
    (may contain duplicates)
  • Total dependent repositories: 22
    (may contain duplicates)
  • Total versions: 8
conda-forge.org: coin-or-osi

Osi (Open Solver Interface) provides an abstract base class to a generic linear programming (LP) solver, along with derived classes for specific solvers. Many applications may be able to use the Osi to insulate themselves from a specific LP solver. That is, programs written to the OSI standard may be linked to any solver with an OSI interface and should produce correct results. The OSI has been significantly extended compared to its first incarnation. Currently, the OSI supports linear programming solvers and has rudimentary support for integer programming. Among others the following operations are supported: - creating the LP formulation; - directly modifying the formulation by adding rows/columns; - modifying the formulation by adding cutting planes provided by CGL; - solving the formulation (and resolving after modifications); - extracting solution information; - invoking the underlying solver's branch-and-bound component.

  • Versions: 2
  • Dependent Packages: 5
  • Dependent Repositories: 11
Rankings
Dependent packages count: 10.4%
Dependent repos count: 10.7%
Average: 22.7%
Forks count: 29.1%
Stargazers count: 40.4%
Last synced: 8 months ago
formulae.brew.sh: osi

Open Solver Interface

  • Versions: 5
  • Dependent Packages: 5
  • Dependent Repositories: 0
  • Downloads: 330 Last month
Rankings
Dependent packages count: 4.3%
Forks count: 27.0%
Average: 29.7%
Downloads: 31.2%
Stargazers count: 35.0%
Dependent repos count: 50.7%
Last synced: 8 months ago
anaconda.org: coin-or-osi

Osi (Open Solver Interface) provides an abstract base class to a generic linear programming (LP) solver, along with derived classes for specific solvers. Many applications may be able to use the Osi to insulate themselves from a specific LP solver. That is, programs written to the OSI standard may be linked to any solver with an OSI interface and should produce correct results. The OSI has been significantly extended compared to its first incarnation. Currently, the OSI supports linear programming solvers and has rudimentary support for integer programming. Among others the following operations are supported: - creating the LP formulation; - directly modifying the formulation by adding rows/columns; - modifying the formulation by adding cutting planes provided by CGL; - solving the formulation (and resolving after modifications); - extracting solution information; - invoking the underlying solver's branch-and-bound component.

  • Versions: 1
  • Dependent Packages: 3
  • Dependent Repositories: 11
Rankings
Dependent packages count: 15.1%
Average: 35.2%
Dependent repos count: 37.4%
Forks count: 40.7%
Stargazers count: 47.7%
Last synced: 8 months ago

Dependencies

.github/workflows/linux-ci.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v2 composite
  • actions/upload-release-asset v1 composite
.github/workflows/release.yml actions
  • actions/create-release v1 composite
.github/workflows/windows-ci.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v2 composite
  • actions/upload-release-asset v1 composite
  • ilammy/msvc-dev-cmd v1 composite
  • msys2/setup-msys2 v2 composite