Error in fmincon - getIpOptions is coming as unrecognized function or variable
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Harshvardhan Tandon
el 9 de Jun. de 2020
Comentada: Harshvardhan Tandon
el 16 de Jun. de 2020
0 comentarios
Respuestas (1)
Chidvi Modala
el 12 de Jun. de 2020
The file 'getIpOptions.m' should be stored in the directory identified below. You can run this line of code which should open the directory where this function is stored and look for that function (for Windows):
winopen(fullfile(matlabroot,'toolbox\optim\optim'))
If the file exists, the path has somehow been removed. You may restart MATLAB and see if the problem goes away. If it doesn't go away, check your startup.m file (if that file exists) to determine if you're removing important paths. You could also try running
restoredefaultpath
If the file does not exists, you can reinstall Optimization Toolbox to resolve the issue.
6 comentarios
Walter Roberson
el 12 de Jun. de 2020
The fmincon algorithms are described in detail at https://www.mathworks.com/help/optim/ug/constrained-nonlinear-optimization-algorithms.html#brnox0o and some brief guideance that is easier to read is at https://www.mathworks.com/help/optim/ug/choosing-the-algorithm.html
"interior-point" is the default option for most cases, but you can use optimset() to select a different one. If your choice is not compatible with your system of equations, it will tell you before doing much work.
getIPOptions() stands for "get Interior Point options", and is only used if Interior Point is the active algorithm. If getIPOptions is not available then choose a different Algorithm.
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!