ParametricOptInterface.jl
ParametricOptInterface.jl is a package for managing parameters in JuMP and MathOptInterface.
Getting help
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.
License
ParametricOptInterface.jl is licensed under the MIT License.
Installation
Install ParametricOptInterface using Pkg.add:
import Pkg
Pkg.add("ParametricOptInterface")Documentation
See the documentation for ParametricOptInterface.jl, as well as tutorials that use ParametricOptInterface in the JuMP documentation.
Use with JuMP
Use ParametricOptInterface with JuMP by following this brief example:
julia> using JuMP, HiGHS
julia> import ParametricOptInterface as POI
julia> model = Model(() -> POI.Optimizer(HiGHS.Optimizer));
julia> set_silent(model)
julia> @variable(model, x)
x
julia> @variable(model, p in Parameter(1))
p
julia> @constraint(model, x + p >= 3)
x + p ≥ 3
julia> @objective(model, Min, 2x)
2 x
julia> optimize!(model)
julia> value(x)
2.0
julia> set_parameter_value(p, 2.0)
julia> optimize!(model)
julia> value(x)
1.0GSOC2020
ParametricOptInterface began as a NumFOCUS sponsored Google Summer of Code (2020) project.