Class to call the IPOPT optimization software.
More...
|
| function | IPOPT () |
| | Default constructor setting default solver options.
|
| |
| function | report (in obj, in doReportSettings, in solvingInfo, in resultFilename, in title) |
| | Function to report the solver performance and settings.
|
| |
| function | setOptionField (in obj, in field, in value) |
| | Function to set a new field or change a field in the solverOptions struct.
|
| |
| function | setWarmstartParams (in obj, in problem, in nConInd, in nOptInd) |
| | Function to prepare lambda, zl, and zu in case a warm start will be used.
|
| |
| function | solve (in obj, in problem) |
| | Function to solve the optimization problem.
|
| |
◆ IPOPT()
Default constructor setting default solver options.
Use the setting function setOptionField() to change the setting values and do not change the default settings here!
- Return values
-
◆ getIPOPTVersion()
| static function getIPOPTVersion |
( |
in |
output_file | ) |
|
|
static |
Function to get the IPOPT version of the ebertolazzi toolbox.
It is not ideal to obtain the IPOPT version from the log file, but we did not yet find a better solution.
- Parameters
-
| obj | IPOPT class object |
| output_file | String: Filename of output file |
- Return values
-
| version | String: Version of IPOPT |
◆ report()
| function report |
( |
in |
obj, |
|
|
in |
doReportSettings, |
|
|
in |
solvingInfo, |
|
|
in |
resultFilename, |
|
|
in |
title |
|
) |
| |
|
virtual |
Function to report the solver performance and settings.
- Parameters
-
| obj | IPOPT class object |
| doReportSettings | Boolean: If true the solver settings will also be reported. (default if empty: 0) |
| solvingInfo | (optional) Struct: Infos of the solver which were saved in the result in solver.solve(). If it is not given or empty, the solver status will not be reported. |
| resultFilename | (optional) String: Filename to save report in a LaTeX document. If the filename is not given the report will not be saved. |
| title | (optional) String: Title of the document (default: 'Solver Report') |
- Return values
-
| conString | String: Formated text to be printed in the console containing the solver information and the solver options. |
| texString | String: Formated LaTeX text containing the solver information and the solver options in two separate headers. |
Reimplemented from Solver.
◆ setOptionField()
| function setOptionField |
( |
in |
obj, |
|
|
in |
field, |
|
|
in |
value |
|
) |
| |
Function to set a new field or change a field in the solverOptions struct.
Example of use:
obj.setOptionField('tol', 0.001)
- Parameters
-
| obj | IPOPT class object |
| field | Fieldname to set or change |
| value | Value to set |
◆ setWarmstartParams()
| function setWarmstartParams |
( |
in |
obj, |
|
|
in |
problem, |
|
|
in |
nConInd, |
|
|
in |
nOptInd |
|
) |
| |
Function to prepare lambda, zl, and zu in case a warm start will be used.
They should have the length of the problem
Example of use:
obj.setWarmstartParams(obj, 1:nCon, 1:nDof)
- Parameters
-
| obj | IPOPT class object |
| problem | Problem: Numerical problem which should be solved |
| nConInd | (optional) Indices of the lambdas that should be used |
| nOptInd | (optional) Indices for zl and zu that should be used |
◆ solve()
Function to solve the optimization problem.
- Parameters
-
- Return values
-
| result | Result class object containing the solution |
Reimplemented from Solver.
◆ ipoptOptions
◆ solverOptions
The documentation for this class was generated from the following file:
- BioMAC-Sim-Toolbox/src/solver/IPOPT.m