MATLAB: I have problem with optimoptions

fminconMATLABoptimization

When I use optimoptions with any solver name, I get the following error message:
Error using optimoptions (line 124)
Invalid default value for property 'OptionsStore' in class 'optim.options.Fmincon':
Not enough input arguments.
Looks like it does not recognize any solver. Do you know how to fix this? Thank you!

Best Answer

It is possible that you need to reinstall Optimization Toolbox. Or perhaps the following less drastic alternative will suffice:
clear all
rehash toolboxcache
Alan Weiss
MATLAB mathematical toolbox documentation