IPOPT
IPOPT (Interior Point OPTimizer) is an open source interior point optimizer, designed for large-scale nonlinear optimization. The source code can be found here. The latest version we support is 3.14.17.
Installation
IPOPT and its Python interface cyipopt <https://github.com/mechmotum/cyipopt> must be installed separately.
Follow the instructions here.
OpenMDAO also has a very helpful script which can be used to install IPOPT with other linear solvers,
but it does not install cyipopt
for you.
Options
Please refer to the IPOPT website for complete listing of options. The following are the options which are set by default within pyOptSparse. All other options take the default value with IPOPT unless specified by the user.
Name |
Type |
Default value |
Description |
---|---|---|---|
|
int |
0 |
Printing level |
|
int |
5 |
Printing level for the output file |
|
str |
|
This is an undocumented option which suppresses the IPOPT header from being printed to screen every time. |
|
str |
|
Whether to print the user-modified options |
|
str |
|
The name of the output file from IPOPT |
|
str |
|
The linear solver used. |
Informs
Code |
Description |
---|---|
|
Solve Succeeded |
|
Solved To Acceptable Level |
|
Infeasible Problem Detected |
|
Search Direction Becomes Too Small |
|
Diverging Iterates |
|
User Requested Stop |
|
Feasible Point Found |
|
Maximum Iterations Exceeded |
|
Restoration Failed |
|
Error In Step Computation |
|
Maximum CpuTime Exceeded |
|
Not Enough Degrees Of Freedom |
|
Invalid Problem Definition |
|
Invalid Option |
|
Invalid Number Detected |
|
Unrecoverable Exception |
|
NonIpopt Exception Thrown |
|
Insufficient Memory |
|
Internal Error |
API
- class pyoptsparse.pyIPOPT.pyIPOPT.IPOPT(*args, **kwargs)[source]
IPOPT Optimizer Class - Inherited from Optimizer Abstract Class
IPOPT Optimizer Class Initialization
- __call__(optProb, sens=None, sensStep=None, sensMode=None, storeHistory=None, hotStart=None, storeSens=True)[source]
This is the main routine used to solve the optimization problem.
- Parameters:
- optProbOptimization or Solution class instance
This is the complete description of the optimization problem to be solved by the optimizer
- sensstr or python Function.
Specifiy method to compute sensitivities. To explictly use pyOptSparse gradient class to do the derivatives with finite differenes use ‘FD’. ‘sens’ may also be ‘CS’ which will cause pyOptSpare to compute the derivatives using the complex step method. Finally, ‘sens’ may be a python function handle which is expected to compute the sensitivities directly. For expensive function evaluations and/or problems with large numbers of design variables this is the preferred method.
- sensStepfloat
Set the step size to use for design variables. Defaults to 1e-6 when sens is ‘FD’ and 1e-40j when sens is ‘CS’.
- sensModestr
Use ‘pgc’ for parallel gradient computations. Only available with mpi4py and each objective evaluation is otherwise serial
- storeHistorystr
File name of the history file into which the history of this optimization will be stored
- hotStartstr
File name of the history file to “replay” for the optimziation. The optimization problem used to generate the history file specified in ‘hotStart’ must be IDENTICAL to the currently supplied ‘optProb’. By identical we mean, EVERY SINGLE PARAMETER MUST BE IDENTICAL. As soon as he requested evaluation point does not match the history, function and gradient evaluations revert back to normal evaluations.
- storeSensbool
Flag sepcifying if sensitivities are to be stored in hist. This is necessay for hot-starting only.