From 60624db80c48237502d20120c283fa4919a312fe Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 2 Dec 2026 21:29:23 +0200 Subject: [PATCH] Document smf_jll linear solver option in README --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 6c19872..587e020 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,30 @@ export OMP_CANCELLATION=TRUE export OMP_PROC_BIND=TRUE ``` +### smf + +If you use Ipopt.jl with Julia ≥ v1.11, you can use the open-source sparse +direct solver [smf](https://github.com/danlil240/smf-solver) via `smf_jll`, +which ships a drop-in library for Ipopt's `ma97` interface. + +Install `smf_jll` from the General registry: +```julia +import Pkg +Pkg.add("smf_jll") +``` + +Then point `hsllib` at `smf_jll.libsmf_ma97_path` and set `linear_solver` to `"ma97"`: +```julia +using JuMP, Ipopt +import smf_jll +model = Model(Ipopt.Optimizer) +set_attribute(model, "hsllib", smf_jll.libsmf_ma97_path) +set_attribute(model, "linear_solver", "ma97") +``` + +Note that `smf_jll` links `OpenBLAS32_jll` directly rather than `libblastrampoline`. +The thread count can be controlled via `SMF_NUM_THREADS` or `OMP_NUM_THREADS`. + ## BLAS and LAPACK With Julia v1.9 or later, Ipopt and the linear solvers [MUMPS](https://mumps-solver.org/index.php)