Skip to content

jump-dev/ParametricOptInterface.jl

This branch is up to date with master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e3757e · Jan 5, 2025
Jun 27, 2024
Nov 30, 2023
Jun 25, 2024
Sep 27, 2024
Sep 27, 2024
Aug 10, 2021
Jul 8, 2021
Apr 20, 2023
Sep 27, 2024
Jan 5, 2025

Repository files navigation

ParametricOptInterface.jl

stable docs development docs Build Status Coverage

ParametricOptInterface.jl is a package that adds parameters to models in JuMP and MathOptInterface.

License

ParametricOptInterface.jl is licensed under the MIT License.

Installation

Install ParametricOptInterface using Pkg.add:

import Pkg
Pkg.add("ParametricOptInterface")

Documentation

The documentation for ParametricOptInterface.jl includes a detailed description of the theory behind the package, along with examples, tutorials, and an API reference.

Use with JuMP

Use ParametricOptInterface with JuMP by following this brief example:

using JuMP, HiGHS
import ParametricOptInterface as POI
model = Model(() -> POI.Optimizer(HiGHS.Optimizer()))
@variable(model, x)
@variable(model, p in MOI.Parameter(1.0))
@constraint(model, cons, x + p >= 3)
@objective(model, Min, 2x)
optimize!(model)
MOI.set(model, POI.ParameterValue(), p, 2.0)
optimize!(model)

GSOC2020

ParametricOptInterface began as a NumFOCUS sponsored Google Summer of Code (2020) project.