Skip to content

Commit ceedd27

Browse files
authored
Updated IPOPT build instructions for other linear solvers (#312)
1 parent 03ad440 commit ceedd27

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

.isort.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import_heading_stdlib=Standard Python modules
66
import_heading_thirdparty=External modules
77
import_heading_firstparty=First party modules
88
import_heading_localfolder=Local modules
9-
skip_glob=**__init__.py,**setup.py
9+
skip_glob=**__init__.py,setup.py
1010
known_local_folder=testing_utils

doc/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pyOptSparse has the following dependencies:
2727
Please make sure these are installed and available for use.
2828
In order to use NSGA2, SWIG (v1.3+) is also required, which can be installed via the package manager.
2929
If those optimizers are not needed, then you do not need to install SWIG.
30-
Simply comment out the corresponding lines in ``pyoptsparse/pyoptsparse/setup.py`` so that they are not compiled.
30+
Simply comment out the corresponding lines in ``pyoptsparse/pyoptsparse/meson.build`` so that they are not compiled.
3131
The corresponding lines in ``pyoptsparse/pyoptsparse/__init__.py`` must be commented out as well.
3232

3333
Python dependencies are automatically handled by ``pip``, so they do not need to be installed separately.

doc/optimizers/IPOPT.rst

-10
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ Here we explain a basic setup using MUMPS as the linear solver, together with ME
6868

6969
#. Now clean build pyOptSparse. Verify that IPOPT works by running the relevant tests.
7070

71-
.. note::
72-
73-
To get IPOPT working with pyOptSparse when using another linear solver, several things must be changed.
74-
75-
#. The ``setup.py`` file located in ``pyoptsparse/pyIPOPT`` must be updated accordingly.
76-
In particular, the ``libraries=`` line must be changed to reflect the alternate linear solver.
77-
For example, for HSL you need to replace ``coinmumps`` and ``coinmetis`` with ``coinhsl``.
78-
#. The option ``linear_solver`` in the options dictionary must be changed.
79-
The default value can be changed in ``pyIPOPT.py`` so that this option does not need to be manually set in every run script.
80-
8171
Options
8272
-------
8373
Please refer to the `IPOPT website <https://coin-or.github.io/Ipopt/OPTIONS.html>`__ for complete listing of options.

0 commit comments

Comments
 (0)