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.
If you need help, please ask a question on the JuMP community forum.
If you have a reproducible example of a bug, please open a GitHub issue.
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
Pkg.add("BARON")
The baronlice.txt
license file should be placed in the same directory as the
BARON executable, or in your current working directory.
using JuMP, BARON
model = Model(BARON.Optimizer)
The BARON optimizer supports the following constraints and attributes.
List of supported objective functions:
MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}
MOI.ObjectiveFunction{MOI.ScalarQuadraticFunction{Float64}}
MOI.ObjectiveFunction{MOI.ScalarNonlinearFunction}
List of supported variable types:
List of supported constraint types:
MOI.ScalarAffineFunction{Float64}
inMOI.EqualTo{Float64}
MOI.ScalarAffineFunction{Float64}
inMOI.GreaterThan{Float64}
MOI.ScalarAffineFunction{Float64}
inMOI.Interval{Float64}
MOI.ScalarAffineFunction{Float64}
inMOI.LessThan{Float64}
MOI.ScalarQuadraticFunction{Float64}
inMOI.EqualTo{Float64}
MOI.ScalarQuadraticFunction{Float64}
inMOI.GreaterThan{Float64}
MOI.ScalarQuadraticFunction{Float64}
inMOI.Interval{Float64}
MOI.ScalarQuadraticFunction{Float64}
inMOI.LessThan{Float64}
MOI.ScalarNonlinearFunction
inMOI.EqualTo{Float64}
MOI.ScalarNonlinearFunction
inMOI.GreaterThan{Float64}
MOI.ScalarNonlinearFunction
inMOI.Interval{Float64}
MOI.ScalarNonlinearFunction
inMOI.LessThan{Float64}
MOI.VariableIndex
inMOI.EqualTo{Float64}
MOI.VariableIndex
inMOI.GreaterThan{Float64}
MOI.VariableIndex
inMOI.Integer
MOI.VariableIndex
inMOI.Interval{Float64}
MOI.VariableIndex
inMOI.LessThan{Float64}
MOI.VariableIndex
inMOI.ZeroOne
List of supported model attributes: