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 PkgPkg.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, HiGHSjulia> import ParametricOptInterface as POIjulia> model = Model(() -> POI.Optimizer(HiGHS.Optimizer));julia> set_silent(model)julia> @variable(model, x)xjulia> @variable(model, p in Parameter(1))pjulia> @constraint(model, x + p >= 3)x + p ≥ 3julia> @objective(model, Min, 2x)2 xjulia> optimize!(model)julia> value(x)2.0julia> 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.