From 735a0d00aee9c258e58b202c4abfd3a58324d055 Mon Sep 17 00:00:00 2001 From: eminyouskn Date: Tue, 24 Mar 2026 09:56:09 -0400 Subject: [PATCH 1/2] Fix parameter name for setting NLP algorithm in KNITRO model --- docs/source/knitro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/knitro.md b/docs/source/knitro.md index fe15fab..413a537 100644 --- a/docs/source/knitro.md +++ b/docs/source/knitro.md @@ -62,7 +62,7 @@ For [solver-specific parameters](https://www.artelys.com/app/docs/knitro/2_userG model = knitro.Model() # Set the value of a parameter by name -model.set_raw_parameter("algorithm", 1) +model.set_raw_parameter("nlp_algorithm", 1) model.set_raw_parameter("feastol", 1e-8) model.set_raw_parameter("opttol", 1e-8) From 87abd6e91a55eb9b0ba30e320e097a2438aa315f Mon Sep 17 00:00:00 2001 From: eminyouskn Date: Tue, 24 Mar 2026 10:00:57 -0400 Subject: [PATCH 2/2] Update KNITRO installation instructions to reflect MacOS support changes --- docs/source/getting_started.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/getting_started.md b/docs/source/getting_started.md index d4f8f1b..99c513b 100644 --- a/docs/source/getting_started.md +++ b/docs/source/getting_started.md @@ -105,7 +105,7 @@ The typical paths where the dynamic library of optimizers are located are as fol - `C:\Program Files\Artelys\KNITRO 15.1\lib` - `/opt/knitro/15.1/lib` - `/opt/knitro/15.1/lib` - - `/opt/knitro/15.1/lib` + - `` ::: ### Gurobi @@ -171,6 +171,8 @@ For KNITRO, the automatic detection looks for the following things in order: 2. `knitro.dll`/`libknitro.so`/`libknitro.dylib` in the system loadable path 3. The installation of `knitro` PyPI package. +KNITRO dropped support for MacOS intel since version 15.0, so using KNITRO on MacOS intel is not supported. + ## Manually specifying the path of the dynamic library of optimizer If the automatic detection fails or you want to use the optimizer in a customized location, you can manually specify the path of the dynamic library of the optimizer. @@ -242,7 +244,7 @@ The typical paths where the dynamic library of optimizers are located are as fol - `C:\Program Files\Artelys\KNITRO 15.1\lib\knitro.dll` - `/opt/knitro/15.1/lib/libknitro.so` - `/opt/knitro/15.1/lib/libknitro.dylib` - - `/opt/knitro/15.1/lib/libknitro.dylib` + - `` ::: ## Let's build a simple model and solve it