Build Status codecov

BARON.jl is a wrapper for BARON by The Optimization Firm.


This wrapper is maintained by the JuMP community and is not officially supported by The Optimization Firm.


BARON.jl is licensed under the MIT License.

The underlying solver is a closed-source commercial product for which you must obtain a license from The Optimization Firm, although a small trial version is available for free.


First, download a copy of the BARON solver and unpack the executable in a location of your choosing.

Once installed, set the BARON_EXEC environment variable pointing to the BARON executable (full path, including file name as it differs across platforms), and run Pkg.add("BARON"). For example:

ENV["BARON_EXEC"] = "/path/to/baron.exe"
using Pkg

The baronlice.txt license file should be placed in the same directory as the BARON executable, or in your current working directory.

Use with JuMP

using JuMP, BARON
model = Model(BARON.Optimizer)

MathOptInterface API

The BARON optimizer supports the following constraints and attributes.

List of supported objective functions:

List of supported variable types:

List of supported constraint types:

List of supported model attributes: