Model and Solve Mixed Integer Linear Programs
Overview
Model mixed integer linear programs in an algebraic way directly in R. The model is solver-independent and thus offers the possibility to solve a model with different solvers. It currently only supports linear constraints and objective functions. See the 'ompr' website https://dirkschumacher.github.io/ompr/ for more information, documentation and examples.
- Improves the package documentation to use the correct alias.
- Ompr now requires R 3.5.0 because some dependencies require that now.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 26 (2 internal)includes a package overview page
- Examples that run
- 71%12 run in a plain check · 5 never run
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 71%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 267
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
12 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/dirkschumacher/ompr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2023-09-09 · The repository has a site deploy workflow
Show all practicesHide 3 practices
Dependencies
Installing ompr adds 5 packages (4 with compiled code, 6.6 MB of source tarballs). Heaviest: data.table 5.7 MB, rlang 766 KB, lazyeval 127 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.4Latest
- RR 4.3.0 released · 2023-04-21
- 1.0.32022-09-11 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.0.22022-01-31 · diff ↗
- 1.0.1
- 1.0.0
- RR 4.1.0 released · 2021-05-18
- 0.8.12020-12-04 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.8.02018-06-11 · diff ↗ ·
added 6 exports
MILPModel, as_colwise, colwise, get_column_duals, get_row_duals, nconstraints - RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2017-04-17
- Total releases
- 9 / 9 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 1.0.0
- Minimum R
- ≥ 3.5.0
- Download size
- 46 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ompr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.