Linear Programming

Linear programming (LP) is the fundamental modeling method of Operations Research. But briefly an LP should adhere to the following rules.

\[\begin{gather} \min z = c^\mathsf{T}x \\ Ax = b \\ x \ge 0 \\ \end{gather}\]

Special commands

In ompr, we start by defining the model with MIPModel()

  • add_variable is used to add