Skip to content

Commit e9b02eb

Browse files
committed
Better indentation.
1 parent 57c77d6 commit e9b02eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ import MathOptInterface as MOI
4242
import MathOptSymbolicAD
4343

4444
param[:model_attr] = Dict(:backend => (MOI.AutomaticDifferentiationBackend(),
45-
MathOptSymbolicAD.DefaultBackend()))
45+
MathOptSymbolicAD.DefaultBackend()))
4646
# Or: MathOptSymbolicAD.ThreadedBackend()
4747
```
4848

4949
* It is recommended to use Coin-HSL linear solvers for [Ipopt](https://github.com/jump-dev/Ipopt.jl) to speed up computations. In my opinion the simplest way to use them is to get a (free for academics) license and download the binaries [here](https://licences.stfc.ac.uk/product/coin-hsl), extract them somewhere, and then set the `hsllib` (place here the path to where you extracted `libhsl.dylib`, it may also be called `libcoinhsl.dylib`, in which case you may have to rename it to `libhsl.dylib`) and `linear_solver` options as follows:
5050

5151
```julia
5252
param[:optimizer_attr] = Dict(:hsllib => "/usr/local/lib/libhsl.dylib", # Adjust path
53-
:linear_solver => "ma57") # Use ma57, ma86 or ma97
53+
:linear_solver => "ma57") # Use ma57, ma86 or ma97
5454
```
5555

5656
The [Ipopt.jl README](https://github.com/jump-dev/Ipopt.jl?tab=readme-ov-file#linear-solvers) suggests to use the larger LibHSL package for which there exists a Julia module and proceed similarly. In addition, users may try an [optimized BLAS](https://github.com/jump-dev/Ipopt.jl?tab=readme-ov-file#blas-and-lapack) and see if it yields significant performance gains (and let me know if it does).

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ import MathOptInterface as MOI
3737
import MathOptSymbolicAD
3838

3939
param[:model_attr] = Dict(:backend => (MOI.AutomaticDifferentiationBackend(),
40-
MathOptSymbolicAD.DefaultBackend()))
40+
MathOptSymbolicAD.DefaultBackend()))
4141
# Or: MathOptSymbolicAD.ThreadedBackend()
4242
```
4343

4444
* It is recommended to use Coin-HSL linear solvers for [Ipopt](https://github.com/jump-dev/Ipopt.jl) to speed up computations. In my opinion the simplest way to use them is to get a (free for academics) license and download the binaries [here](https://licences.stfc.ac.uk/product/coin-hsl), extract them somewhere, and then set the `hsllib` (place here the path to where you extracted `libhsl.dylib`, it may also be called `libcoinhsl.dylib`, in which case you may have to rename it to `libhsl.dylib`) and `linear_solver` options as follows:
4545

4646
```julia
4747
param[:optimizer_attr] = Dict(:hsllib => "/usr/local/lib/libhsl.dylib", # Adjust path
48-
:linear_solver => "ma57") # Use ma57, ma86 or ma97
48+
:linear_solver => "ma57") # Use ma57, ma86 or ma97
4949
```
5050

5151
The [Ipopt.jl README](https://github.com/jump-dev/Ipopt.jl?tab=readme-ov-file#linear-solvers) suggests to use the larger LibHSL package for which there exists a Julia module and proceed similarly. In addition, users may try an [optimized BLAS](https://github.com/jump-dev/Ipopt.jl?tab=readme-ov-file#blas-and-lapack) and see if it yields significant performance gains (and let me know if it does).

0 commit comments

Comments
 (0)