https://github.com/jump-dev/parametricoptinterface.jl
A Julia package for working with parameters in JuMP and MathOptInterface
https://github.com/jump-dev/parametricoptinterface.jl
julia jump-jl
Last synced: 27 days ago
JSON representation
A Julia package for working with parameters in JuMP and MathOptInterface
- Host: GitHub
- URL: https://github.com/jump-dev/parametricoptinterface.jl
- Owner: jump-dev
- License: mit
- Created: 2020-06-04T21:09:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2026-02-22T20:21:10.000Z (29 days ago)
- Last Synced: 2026-02-23T00:22:13.543Z (29 days ago)
- Topics: julia, jump-jl
- Language: Julia
- Homepage: https://jump.dev/ParametricOptInterface.jl/
- Size: 1.16 MB
- Stars: 45
- Watchers: 6
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ParametricOptInterface.jl
[](https://github.com/jump-dev/ParametricOptInterface.jl/actions?query=workflow%3ACI)
[](https://codecov.io/gh/jump-dev/ParametricOptInterface.jl)
[ParametricOptInterface.jl](https://github.com/jump-dev/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](https://jump.dev/forum).
If you have a reproducible example of a bug, please [open a GitHub issue](https://github.com/jump-dev/HiGHS.jl/issues/new).
## License
`ParametricOptInterface.jl` is licensed under the
[MIT License](https://github.com/jump-dev/ParametricOptInterface.jl/blob/master/LICENSE.md).
## Installation
Install ParametricOptInterface using `Pkg.add`:
```julia
import Pkg
Pkg.add("ParametricOptInterface")
```
## Documentation
See the [documentation for ParametricOptInterface.jl](https://jump.dev/ParametricOptInterface.jl),
as well as [tutorials that use ParametricOptInterface](https://jump.dev/JuMP.jl/stable/tutorials/overview/#tutorial_ParametricOptInterface)
in the JuMP documentation.
## Use with JuMP
Use ParametricOptInterface with JuMP by following this brief example:
```julia
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.0
```
## GSOC2020
ParametricOptInterface began as a [NumFOCUS sponsored Google Summer of Code (2020) project](https://summerofcode.withgoogle.com/archive/2020/projects/4959861055422464).