Skip to content

Commit

Permalink
Update installation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jul 31, 2024
1 parent 8647dc7 commit 0c7f221
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,26 @@ julia> Pkg.update("JuMP")
JuMP depends on solvers to solve optimization problems. Therefore, you will need
to install one before you can solve problems with JuMP.

Install a solver using the Julia package manager, replacing `"Clp"` by the
Install a solver using the Julia package manager, replacing `"HiGHS"` by the
Julia package name as appropriate.
```julia
julia> import Pkg

julia> Pkg.add("Clp")
julia> Pkg.add("HiGHS")
```

Once installed, you can use Clp as a solver with JuMP as follows, using
Once installed, you can use HiGHS as a solver with JuMP as follows, using
[`set_attribute`](@ref) to set solver-specific options:
```julia
julia> using JuMP

julia> using Clp
julia> using HiGHS

julia> model = Model(Clp.Optimizer);
julia> model = Model(HiGHS.Optimizer);

julia> set_attribute(model, "LogLevel" => 1)
julia> set_attribute(model, "output_flag" => false)

julia> set_attribute(model, "PrimalTolerance" => 1e-7)
julia> set_attribute(model, "primal_feasibility_tolerance" => 1e-8)
```

!!! note
Expand Down

0 comments on commit 0c7f221

Please sign in to comment.