Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg authored Mar 2, 2022
1 parent ee94b85 commit 11ce9cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ Therefore, the new model can be:
# x, y <= 10
```

### JuMP with Cbc solver
### JuMP with HiGHS solver

```julia
using JuMP
using MathOptInterface
using QuadraticToBinary
using Cbc
using HiGHS

model = Model(
()->QuadraticToBinary.Optimizer{Float64}(
MOI.instantiate(Cbc.Optimizer, with_bridge_type = Float64)))
MOI.instantiate(HiGHS.Optimizer, with_bridge_type = Float64)))

@variable(model, 1 <= x <= 10)
@variable(model, 1 <= y <= 10)
Expand Down Expand Up @@ -147,8 +147,8 @@ might need to modify solver options accordingly. In the case of HiGHS:

```julia
tol = 1e-9
MOI.set(highs_high_tol, MOI.RawOptimizerAttribute("mip_feasibility_tolerance"), tol)
MOI.set(highs_high_tol, MOI.RawOptimizerAttribute("primal_feasibility_tolerance"), tol)
MOI.set(model, MOI.RawOptimizerAttribute("mip_feasibility_tolerance"), tol)
MOI.set(model, MOI.RawOptimizerAttribute("primal_feasibility_tolerance"), tol)
```

### Bounds
Expand Down

2 comments on commit 11ce9cd

@joaquimg
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/55767

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.0 -m "<description of version>" 11ce9cdc6d7bc0cbbdd37a81e9de158b64c666de
git push origin v0.4.0

Please sign in to comment.