# Solving LP problems with R

If the Python community is very active, certainly the R community is not standing still! In fact, the **Optimization Modeling Package** (**OMPR**) is available (https://dirkschumacher.github.io/ompr/), which is a domain-specific language created to model and solve LP problems in R.

In general, all other packages developed in R that serve the same purpose are mostly matrix-oriented, forcing you to transform all objects into matrices and vectors before passing them to the solver. This task may seem simple enough at first glance, but when the problems to be solved become complex, it may become difficult to write R code to solve them.

The `ompr`

package, on the other hand, provides enough expressive power to allow you to model your LP problems incrementally, thanks also to the use of the `%>%`

pipe. Therefore, you will feel like you are writing code as if you were using `dplyr`

functions, forgetting about matrices and vectors.

In addition, the `ompr`

package relies...