Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg authored Jan 7, 2025
1 parent 455541d commit bfff46a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ using JuMP, HiGHS
import ParametricOptInterface as POI
model = Model(() -> POI.Optimizer(HiGHS.Optimizer()))
@variable(model, x)
@variable(model, p in MOI.Parameter(1.0))
@variable(model, p in Parameter(1.0))
@constraint(model, cons, x + p >= 3)
@objective(model, Min, 2x)
optimize!(model)
MOI.set(model, POI.ParameterValue(), p, 2.0)
@show value(x)
set_parameter_value(p, 2.0)
optimize!(model)
@show value(x)
```

## GSOC2020
Expand Down

0 comments on commit bfff46a

Please sign in to comment.