vagmcs/Optimus

Optimus is a mathematical programming library for Scala.

Scala

148

295 commits

updated Mar 16, 2026

See the code

README

Optimus

Test pre-commit.ci status Maven Central

Optimus is a library for Linear and Quadratic mathematical optimization written in Scala programming language.

Features

  1. High level mathematical modeling in Scala using algebraic expressions
  • Linear and quadratic objective and constraint expressions.
  • Higher order expressions cannot be defined or handled by the solvers yet.
  • Addition, subtraction and multiplication operations can be performed on expressions.
  • Expression simplification produces the simpler form of the expression.
  1. Supports various optimization settings by using existing mathematical programming solvers
  • Linear programming (LP)
  • Quadratic programming (QP)
  • Quadratic constraint quadratic programming (QCQP)
  • Mixed integer programming (MIP)
  1. Available solvers:
  • Open source LpSolve can be used for LP and MIP.
  • Open source oJSolver can be used for LP, QP and MIP.
  • Proprietary solver Gurobi 12 can be used for efficiently solving LP, QP, QCQP and MIP.
  • Proprietary solver Mosek 9 can be used for efficiently solving LP, QP, QCQP and MIP.

How to get Optimus

Optimus is published to Maven Central for Scala 2.12, 2.13 and 3.3.4!

Add the following dependencies to your SBT build file in order to get started:

libraryDependencies ++= Seq(
    "com.github.vagmcs" %% "optimus" % "3.4.5",
    "com.github.vagmcs" %% "optimus-solver-oj" % "3.4.5",
    "com.github.vagmcs" %% "optimus-solver-lp" % "3.4.5"
)

Optionally, you can also add the following extra dependencies for proprietary solvers:

"com.github.vagmcs" %% "optimus-solver-gurobi" % "3.4.5"
"com.github.vagmcs" %% "optimus-solver-mosek" % "3.4.5"

For more information see Building and Linking

Documentation

Contributions

Contributions are welcome, for details see CONTRIBUTING.md.

License

This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; See the GNU Lesser General Public License v3 for more details.

algebra
integer-programming
linear-programming
optimization
quadratic-programming
scala

Contributors

vagmcs

277 commits

anskarl

10 commits

cvlas

3 commits

vagmcs/Optimus

Optimus is a mathematical programming library for Scala.

Scala

148

295 commits

updated Mar 16, 2026

See the code

README

Optimus

Test pre-commit.ci status Maven Central

Optimus is a library for Linear and Quadratic mathematical optimization written in Scala programming language.

Features

  1. High level mathematical modeling in Scala using algebraic expressions
  • Linear and quadratic objective and constraint expressions.
  • Higher order expressions cannot be defined or handled by the solvers yet.
  • Addition, subtraction and multiplication operations can be performed on expressions.
  • Expression simplification produces the simpler form of the expression.
  1. Supports various optimization settings by using existing mathematical programming solvers
  • Linear programming (LP)
  • Quadratic programming (QP)
  • Quadratic constraint quadratic programming (QCQP)
  • Mixed integer programming (MIP)
  1. Available solvers:
  • Open source LpSolve can be used for LP and MIP.
  • Open source oJSolver can be used for LP, QP and MIP.
  • Proprietary solver Gurobi 12 can be used for efficiently solving LP, QP, QCQP and MIP.
  • Proprietary solver Mosek 9 can be used for efficiently solving LP, QP, QCQP and MIP.

How to get Optimus

Optimus is published to Maven Central for Scala 2.12, 2.13 and 3.3.4!

Add the following dependencies to your SBT build file in order to get started:

libraryDependencies ++= Seq(
    "com.github.vagmcs" %% "optimus" % "3.4.5",
    "com.github.vagmcs" %% "optimus-solver-oj" % "3.4.5",
    "com.github.vagmcs" %% "optimus-solver-lp" % "3.4.5"
)

Optionally, you can also add the following extra dependencies for proprietary solvers:

"com.github.vagmcs" %% "optimus-solver-gurobi" % "3.4.5"
"com.github.vagmcs" %% "optimus-solver-mosek" % "3.4.5"

For more information see Building and Linking

Documentation

Contributions

Contributions are welcome, for details see CONTRIBUTING.md.

License

This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; See the GNU Lesser General Public License v3 for more details.

algebra
integer-programming
linear-programming
optimization
quadratic-programming
scala

Contributors

vagmcs

277 commits

anskarl

10 commits

cvlas

3 commits

Languages

Scala

98.6%

Makefile

1.4%