Closed DylanMuir closed 6 years ago
Hi,
Finally taking a look at this. I can’t reproduce the errors I’m afraid. Your test function works as expected for me when I use the code you provided:
fun = @testFunk; x0 = [0,0]; [x, fval, exitflag, output] = fmin_adam(fun, x0);
Iteration Func-count f(x) Improvement Step-size
5000 10002 0.17 0.00032 0.00038
Finished optimization. Reason: Number of function evaluations reached MaxFunEvals [10000].
Also, when I call options = optimset(@fmin_adam);
I get an options structure containing many many fields, including GradObj, DerivativeCheck, etc.
Could you please let me know what version of matlab you are using, and on what platform?
Thanks for your response. Please find the output i get by typing "ver" below. My best guess is that i am missing some extension that is required to get all the required outputs when calling optimset(@fmin_adam); ?
MATLAB Version 9.3 (R2017b) MATLAB Coder Version 3.4 (R2017b)
What's weird for me, is that fmin_adam
explicitly sets those options. Do you have the optimisation toolbox installed?
Aha! I do not have that toolbox, which is probably why I can't run this code. So you might want to note this among the requirements for running your code.
@tordbb Can you please tell me exactly what error you get when running the code?
function [value, gradients] = testFunk(x0)
x = x0(1);
y = x0(2);
value = (y-3)^2 + (x-4)^2;
gradients = [2*x-8, 2*y-6];
>> fun = @testFunk;
>> x0 = [0,0];
[x, fval, exitflag, output] = fmin_adam(fun, x0);
Of course!
Reference to non-existent field 'GradObj'.
Error in fmin_adam (line 136) if (isequal(options.GradObj, 'on'))
Please type the following commands into matlab
, and copy and paste the output:
which optimset
optimset(@fmin_adam)
fmin_adam('defaults')
which fmin_adam
path
which optimset optimset(@fmin_adam) fmin_adam('defaults') which fmin_adam path C:\Program Files\MATLAB\R2017b\toolbox\matlab\optimfun\optimset.m
ans =
struct with fields:
Display: 'final'
MaxFunEvals: 10000
MaxIter: 1000000
TolFun: 1.0000e-06
TolX: 1.0000e-05
FunValCheck: []
OutputFcn: []
PlotFcns: []
ans =
struct with fields:
Display: 'final'
GradObj: 'on'
DerivativeCheck: 'off'
MaxFunEvals: 10000
MaxIter: 1000000
TolFun: 1.0000e-06
TolX: 1.0000e-05
UseParallel: 0
C:\Users\tbrandsa\OneDrive - Sopra Steria\MATLAB\fmin_adam.m
MATLABPATH
C:\Users\tbrandsa\AppData\Local\Temp\Editor
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datafun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatypes
C:\Program Files\MATLAB\R2017b\toolbox\matlab\elfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\elmat
C:\Program Files\MATLAB\R2017b\toolbox\matlab\funfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\general
C:\Program Files\MATLAB\R2017b\toolbox\matlab\iofun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\lang
C:\Program Files\MATLAB\R2017b\toolbox\matlab\matfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\mvm
C:\Program Files\MATLAB\R2017b\toolbox\matlab\ops
C:\Program Files\MATLAB\R2017b\toolbox\matlab\polyfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\randfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\sparfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\specfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\strfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\timefun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\validators
C:\Program Files\MATLAB\R2017b\toolbox\matlab\demos
C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph2d
C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph3d
C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics
C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics\obsolete
C:\Program Files\MATLAB\R2017b\toolbox\matlab\plottools
C:\Program Files\MATLAB\R2017b\toolbox\matlab\scribe
C:\Program Files\MATLAB\R2017b\toolbox\matlab\scribe\obsolete
C:\Program Files\MATLAB\R2017b\toolbox\matlab\specgraph
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools\obsolete
C:\Program Files\MATLAB\R2017b\toolbox\matlab\hardware\stubs
C:\Program Files\MATLAB\R2017b\toolbox\matlab\images
C:\Program Files\MATLAB\R2017b\toolbox\local
C:\Program Files\MATLAB\R2017b\toolbox\matlab\maps
C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics\maps
C:\Program Files\MATLAB\R2017b\toolbox\matlab\optimfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\bigdata
C:\Program Files\MATLAB\R2017b\toolbox\matlab\codeanalysis\analysis
C:\Program Files\MATLAB\R2017b\toolbox\matlab\codetools
C:\Program Files\MATLAB\R2017b\toolbox\matlab\codetools\embeddedoutputs
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datamanager
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datastoreio
C:\Program Files\MATLAB\R2017b\toolbox\matlab\depfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\guide
C:\Program Files\MATLAB\R2017b\toolbox\matlab\helptools
C:\Program Files\MATLAB\R2017b\toolbox\matlab\icons
C:\Program Files\MATLAB\R2017b\toolbox\matlab\mapreduceio
C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\core
C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\obsolete
C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\ext
C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\measurement
C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\mock
C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\performance
C:\Program Files\MATLAB\R2017b\toolbox\matlab\verctrl
C:\Program Files\MATLAB\R2017b\toolbox\matlab\winfun
C:\Program Files\MATLAB\R2017b\toolbox\matlab\winfun\NET
C:\Program Files\MATLAB\R2017b\toolbox\simulink\sldependency
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\cef
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\fallbackmanager
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\supportpackages
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons_product
C:\Program Files\MATLAB\R2017b\toolbox\matlab\supportpackagemanagement
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons_toolbox
C:\Program Files\MATLAB\R2017b\toolbox\matlab\addon_enable_disable_management\matlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner
C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner\interface
C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner\runtime
C:\Program Files\MATLAB\R2017b\toolbox\matlab\apps
C:\Program Files\MATLAB\R2017b\toolbox\matlab\audiovideo
C:\Program Files\MATLAB\R2017b\toolbox\matlab\cefclient
C:\Program Files\MATLAB\R2017b\toolbox\coder\codedescriptor_core
C:\Program Files\MATLAB\R2017b\toolbox\coder\codegendemos
C:\Program Files\MATLAB\R2017b\toolbox\coder\coder
C:\Program Files\MATLAB\R2017b\toolbox\coder\connectivity
C:\Program Files\MATLAB\R2017b\toolbox\rtw\targets\connectivity
C:\Program Files\MATLAB\R2017b\toolbox\coder\emlcodermex
C:\Program Files\MATLAB\R2017b\toolbox\rtw\rtw
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\build
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\build\tools\registry
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\AUTOSAR\AUTOSAR4p0\IFX
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\AUTOSAR\AUTOSAR4p0\IFL
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\gui
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\templates
C:\Program Files\MATLAB\R2017b\toolbox\shared\simtargets
C:\Program Files\MATLAB\R2017b\toolbox\coder\matlabcoder
C:\Program Files\MATLAB\R2017b\toolbox\coder\matlabcoder\templates
C:\Program Files\MATLAB\R2017b\toolbox\coder\profile
C:\Program Files\MATLAB\R2017b\toolbox\coder\rtiostream
C:\Program Files\MATLAB\R2017b\toolbox\coder\trace
C:\Program Files\MATLAB\R2017b\toolbox\shared\comparisons
C:\Program Files\MATLAB\R2017b\toolbox\matlab\configtools
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\common
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\configuration
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\connector
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\editor
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\figures
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\file
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\framework
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\http
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\interpreter
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\json
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\logger
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\messageservice
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\mgg
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\microservices
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\nativebridge
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\restmatlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\security
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\session
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\shadowfiles
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\usmatlabhost
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\visualization
C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\worker
C:\Program Files\MATLAB\R2017b\toolbox\matlab\reports
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\datatoolsservices\matlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\inspector\matlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\peermodel_mcos\matlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\plotstab\matlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\variableeditor\matlab
C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\workspacebrowser\matlab
C:\Program Files\MATLAB\R2017b\toolbox\shared\spc\src_ml
C:\Program Files\MATLAB\R2017b\toolbox\eml\eml
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\engines\engine_api
C:\Program Files\MATLAB\R2017b\examples\coder
C:\Program Files\MATLAB\R2017b\examples\coder_compiler_dsp
C:\Program Files\MATLAB\R2017b\examples\coder_fixedpoint_simulink
C:\Program Files\MATLAB\R2017b\examples\graphics
C:\Program Files\MATLAB\R2017b\examples\graphics2
C:\Program Files\MATLAB\R2017b\examples\matlab
C:\Program Files\MATLAB\R2017b\examples\matlab_featured
C:\Program Files\MATLAB\R2017b\toolbox\matlab\filebrowser
C:\Program Files\MATLAB\R2017b\toolbox\matlab\findfiles
C:\Program Files\MATLAB\R2017b\toolbox\fixedpoint\fixedpoint
C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed
C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\demos
C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\dmm_emlauthoring
C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\custom_logger
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools\uicomponents\components
C:\Program Files\MATLAB\R2017b\toolbox\hdlcoder\hdllib\ml_lib
C:\Program Files\MATLAB\R2017b\toolbox\shared\hadoopserializer
C:\Program Files\MATLAB\R2017b\toolbox\shared\appdes\services
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwconnection
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\devices
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\providers
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\plugins
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\framework
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\framework\modules
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\hwwidgets
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\hwtemplates
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\launch
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\logger
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsblks
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccslinkblks
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccslinkblks\rtdxsimblks
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\mdlinfo
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\tfl
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\util
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\rtw
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\envChecker
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\rtw
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\tgtpref2
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\profiler
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\mdlinfo
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks\masks
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks\tlc_c
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\autointerface
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\autointerface\ideregisterplugins
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\util
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\errorhandler
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\xmakefile
C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\hookpoints
C:\Program Files\MATLAB\R2017b\toolbox\idelink\idelinkdemos
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsdemos
C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsdemos\util
C:\Program Files\MATLAB\R2017b\toolbox\matlab\imagesci
C:\Program Files\MATLAB\R2017b\toolbox\shared\instrument
C:\Program Files\MATLAB\R2017b\toolbox\shared\m3i
C:\Program Files\MATLAB\R2017b\toolbox\shared\mldatx
C:\Program Files\MATLAB\R2017b\toolbox\matlab\networklib
C:\Program Files\MATLAB\R2017b\toolbox\matlab\pathtool
C:\Program Files\MATLAB\R2017b\toolbox\shared\cxxfe_mi\cxxfe_mi
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\python
C:\Program Files\MATLAB\R2017b\toolbox\rptgen\xmlcomp
C:\Program Files\MATLAB\R2017b\toolbox\matlab\serial
C:\Program Files\MATLAB\R2017b\toolbox\shared\advisor
C:\Program Files\MATLAB\R2017b\toolbox\shared\asynciolib
C:\Program Files\MATLAB\R2017b\toolbox\shared\can
C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canblks
C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canmasks
C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canmex
C:\Program Files\MATLAB\R2017b\toolbox\shared\cgir_fe
C:\Program Files\MATLAB\R2017b\toolbox\shared\cgxe\cgxe
C:\Program Files\MATLAB\R2017b\toolbox\shared\cmlink\api
C:\Program Files\MATLAB\R2017b\toolbox\shared\coder\coder
C:\Program Files\MATLAB\R2017b\toolbox\shared\configset
C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\general
C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics
C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics\utils
C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics\plotoptions
C:\Program Files\MATLAB\R2017b\toolbox\shared\dastudio
C:\Program Files\MATLAB\R2017b\toolbox\shared\deviceplugindetection
C:\Program Files\MATLAB\R2017b\toolbox\shared\dspblks\dspblks
C:\Program Files\MATLAB\R2017b\toolbox\shared\dspblks\dspmex
C:\Program Files\MATLAB\R2017b\toolbox\shared\dsp\float2fixed
C:\Program Files\MATLAB\R2017b\toolbox\shared\hotpluglib
C:\Program Files\MATLAB\R2017b\toolbox\shared\hwconnectinstaller\common
C:\Program Files\MATLAB\R2017b\toolbox\shared\imageio
C:\Program Files\MATLAB\R2017b\toolbox\shared\io
C:\Program Files\MATLAB\R2017b\toolbox\shared\maputils
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom\dom
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom\dom\help
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt\ppt
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt\ppt\help
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\rpt
C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\rpt\rpt
C:\Program Files\MATLAB\R2017b\toolbox\shared\multimedia
C:\Program Files\MATLAB\R2017b\toolbox\shared\networklib
C:\Program Files\MATLAB\R2017b\toolbox\shared\rptgen
C:\Program Files\MATLAB\R2017b\toolbox\shared\sdi
C:\Program Files\MATLAB\R2017b\toolbox\shared\siglib
C:\Program Files\MATLAB\R2017b\toolbox\shared\slcc_cov\slcc_cov
C:\Program Files\MATLAB\R2017b\toolbox\shared\sl_coverage_configset
C:\Program Files\MATLAB\R2017b\toolbox\shared\sl_async_streaming
C:\Program Files\MATLAB\R2017b\toolbox\shared\spreadsheet
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\legacysupportpkginfo
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\installservices
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\supportpackageroot
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\installedapi
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\launcher
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\services
C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\upgrade
C:\Program Files\MATLAB\R2017b\toolbox\shared\system\coder
C:\Program Files\MATLAB\R2017b\toolbox\shared\system\sfun
C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\general
C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\graphics
C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\simulink
C:\Program Files\MATLAB\R2017b\toolbox\shared\simulink
C:\Program Files\MATLAB\R2017b\toolbox\shared\simulation_data_repository
C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\passmanager
C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink_data_dictionary\sldd
C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink\slproject
C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink\slproject\menu
C:\Program Files\MATLAB\R2017b\toolbox\shared\diagnostic
C:\Program Files\MATLAB\R2017b\toolbox\matlab\spf\matlabhost
C:\Program Files\MATLAB\R2017b\toolbox\matlab\spf\matlabservices
C:\Program Files\MATLAB\R2017b\toolbox\matlab\storage\matlabdrive
C:\Program Files\MATLAB\R2017b\toolbox\matlab\storage\mldrivedesktop
C:\Program Files\MATLAB\R2017b\toolbox\matlab\system
C:\Program Files\MATLAB\R2017b\toolbox\matlab\system\editor
C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget
C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget\rtw
C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget\matlabcoder
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\intelhost\tfl
C:\Program Files\MATLAB\R2017b\toolbox\target
C:\Program Files\MATLAB\R2017b\toolbox\target\foundation
C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\utils
C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\utils\resource_config
C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks
C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks\mex
C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks\masks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\mdlinfo
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\utils
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks\mex
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks\masks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\ARM\tfl
C:\Program Files\MATLAB\R2017b\toolbox\shared\etargets\etargets
C:\Program Files\MATLAB\R2017b\toolbox\shared\etargets\etargets\demoutils
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000\rtw
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000\utils
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks\masks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks\mex
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\src
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks\masks
C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks\mex
C:\Program Files\MATLAB\R2017b\toolbox\matlab\timeseries
C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolboxmanagement\matlab_api
C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolbox_packaging
C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolstrip
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner\graphics
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents
C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\graphics
C:\Program Files\MATLAB\R2017b\toolbox\shared\spcuilib\unifiedscopes
C:\Program Files\MATLAB\R2017b\toolbox\matlab\webcam
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\http
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\json
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\restful
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices
C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\wsdl
Thanks. It's weird. Could you try adding the directory with fmin_adam
in it to the matlabpath using pathtool
? And then try
optimset(@fmin_adam)
fmin_adam('defaults')
again please?
Hey, sorry for the wait. I just added the directory of fmin_adam as you requested, and you can see it in the top of my list of paths. Except for that, it seems that nothing really changed.
which optimset
optimset(@fmin_adam)
fmin_adam('defaults')
which fmin_adam
path
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\optimfun\optimset.m
>
> ans =
>
> struct with fields:
>
> Display: 'final'
> MaxFunEvals: 10000
> MaxIter: 1000000
> TolFun: 1.0000e-06
> TolX: 1.0000e-05
> FunValCheck: []
> OutputFcn: []
> PlotFcns: []
>
>
> ans =
>
> struct with fields:
>
> Display: 'final'
> GradObj: 'on'
> DerivativeCheck: 'off'
> MaxFunEvals: 10000
> MaxIter: 1000000
> TolFun: 1.0000e-06
> TolX: 1.0000e-05
> UseParallel: 0
>
> C:\Users\tbrandsa\OneDrive - Sopra Steria\MATLAB\fmin_adam.m
>
> MATLABPATH
>
> C:\Users\tbrandsa\OneDrive\MATLAB
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datafun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatypes
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\elfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\elmat
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\funfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\general
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\iofun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\lang
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\matfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\mvm
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\ops
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\polyfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\randfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\sparfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\specfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\strfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\timefun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\validators
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\demos
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph2d
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph3d
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics\obsolete
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\plottools
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\scribe
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\scribe\obsolete
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\specgraph
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools\obsolete
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\hardware\stubs
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\images
> C:\Program Files\MATLAB\R2017b\toolbox\local
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\maps
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics\maps
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\optimfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\bigdata
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\codeanalysis\analysis
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\codetools
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\codetools\embeddedoutputs
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datamanager
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datastoreio
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\depfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\guide
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\helptools
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\icons
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\mapreduceio
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\core
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\obsolete
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\ext
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\measurement
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\mock
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\performance
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\verctrl
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\winfun
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\winfun\NET
> C:\Program Files\MATLAB\R2017b\toolbox\simulink\sldependency
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\cef
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\fallbackmanager
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\supportpackages
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons_product
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\supportpackagemanagement
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons_toolbox
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\addon_enable_disable_management\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner\interface
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner\runtime
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\apps
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\audiovideo
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\cefclient
> C:\Program Files\MATLAB\R2017b\toolbox\coder\codedescriptor_core
> C:\Program Files\MATLAB\R2017b\toolbox\coder\codegendemos
> C:\Program Files\MATLAB\R2017b\toolbox\coder\coder
> C:\Program Files\MATLAB\R2017b\toolbox\coder\connectivity
> C:\Program Files\MATLAB\R2017b\toolbox\rtw\targets\connectivity
> C:\Program Files\MATLAB\R2017b\toolbox\coder\emlcodermex
> C:\Program Files\MATLAB\R2017b\toolbox\rtw\rtw
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\build
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\build\tools\registry
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\AUTOSAR\AUTOSAR4p0\IFX
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\AUTOSAR\AUTOSAR4p0\IFL
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\gui
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\templates
> C:\Program Files\MATLAB\R2017b\toolbox\shared\simtargets
> C:\Program Files\MATLAB\R2017b\toolbox\coder\matlabcoder
> C:\Program Files\MATLAB\R2017b\toolbox\coder\matlabcoder\templates
> C:\Program Files\MATLAB\R2017b\toolbox\coder\profile
> C:\Program Files\MATLAB\R2017b\toolbox\coder\rtiostream
> C:\Program Files\MATLAB\R2017b\toolbox\coder\trace
> C:\Program Files\MATLAB\R2017b\toolbox\shared\comparisons
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\configtools
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\common
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\configuration
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\connector
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\editor
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\figures
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\file
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\framework
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\http
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\interpreter
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\json
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\logger
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\messageservice
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\mgg
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\microservices
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\nativebridge
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\restmatlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\security
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\session
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\shadowfiles
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\usmatlabhost
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\visualization
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\worker
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\reports
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\datatoolsservices\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\inspector\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\peermodel_mcos\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\plotstab\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\variableeditor\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\workspacebrowser\matlab
> C:\Program Files\MATLAB\R2017b\toolbox\shared\spc\src_ml
> C:\Program Files\MATLAB\R2017b\toolbox\eml\eml
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\engines\engine_api
> C:\Program Files\MATLAB\R2017b\examples\coder
> C:\Program Files\MATLAB\R2017b\examples\coder_compiler_dsp
> C:\Program Files\MATLAB\R2017b\examples\coder_fixedpoint_simulink
> C:\Program Files\MATLAB\R2017b\examples\graphics
> C:\Program Files\MATLAB\R2017b\examples\graphics2
> C:\Program Files\MATLAB\R2017b\examples\matlab
> C:\Program Files\MATLAB\R2017b\examples\matlab_featured
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\filebrowser
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\findfiles
> C:\Program Files\MATLAB\R2017b\toolbox\fixedpoint\fixedpoint
> C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed
> C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\demos
> C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\dmm_emlauthoring
> C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\custom_logger
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools\uicomponents\components
> C:\Program Files\MATLAB\R2017b\toolbox\hdlcoder\hdllib\ml_lib
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hadoopserializer
> C:\Program Files\MATLAB\R2017b\toolbox\shared\appdes\services
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwconnection
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\devices
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\providers
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\plugins
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\framework
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\framework\modules
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\hwwidgets
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\hwtemplates
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\launch
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\logger
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsblks
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccslinkblks
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccslinkblks\rtdxsimblks
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\mdlinfo
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\tfl
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\util
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\rtw
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\envChecker
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\rtw
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\tgtpref2
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\profiler
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\mdlinfo
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks\masks
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks\tlc_c
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\autointerface
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\autointerface\ideregisterplugins
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\util
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\errorhandler
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\xmakefile
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\hookpoints
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\idelinkdemos
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsdemos
> C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsdemos\util
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\imagesci
> C:\Program Files\MATLAB\R2017b\toolbox\shared\instrument
> C:\Program Files\MATLAB\R2017b\toolbox\shared\m3i
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mldatx
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\networklib
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\pathtool
> C:\Program Files\MATLAB\R2017b\toolbox\shared\cxxfe_mi\cxxfe_mi
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\python
> C:\Program Files\MATLAB\R2017b\toolbox\rptgen\xmlcomp
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\serial
> C:\Program Files\MATLAB\R2017b\toolbox\shared\advisor
> C:\Program Files\MATLAB\R2017b\toolbox\shared\asynciolib
> C:\Program Files\MATLAB\R2017b\toolbox\shared\can
> C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canblks
> C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canmasks
> C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canmex
> C:\Program Files\MATLAB\R2017b\toolbox\shared\cgir_fe
> C:\Program Files\MATLAB\R2017b\toolbox\shared\cgxe\cgxe
> C:\Program Files\MATLAB\R2017b\toolbox\shared\cmlink\api
> C:\Program Files\MATLAB\R2017b\toolbox\shared\coder\coder
> C:\Program Files\MATLAB\R2017b\toolbox\shared\configset
> C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\general
> C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics
> C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics\utils
> C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics\plotoptions
> C:\Program Files\MATLAB\R2017b\toolbox\shared\dastudio
> C:\Program Files\MATLAB\R2017b\toolbox\shared\deviceplugindetection
> C:\Program Files\MATLAB\R2017b\toolbox\shared\dspblks\dspblks
> C:\Program Files\MATLAB\R2017b\toolbox\shared\dspblks\dspmex
> C:\Program Files\MATLAB\R2017b\toolbox\shared\dsp\float2fixed
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hotpluglib
> C:\Program Files\MATLAB\R2017b\toolbox\shared\hwconnectinstaller\common
> C:\Program Files\MATLAB\R2017b\toolbox\shared\imageio
> C:\Program Files\MATLAB\R2017b\toolbox\shared\io
> C:\Program Files\MATLAB\R2017b\toolbox\shared\maputils
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom\dom
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom\dom\help
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt\ppt
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt\ppt\help
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\rpt
> C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\rpt\rpt
> C:\Program Files\MATLAB\R2017b\toolbox\shared\multimedia
> C:\Program Files\MATLAB\R2017b\toolbox\shared\networklib
> C:\Program Files\MATLAB\R2017b\toolbox\shared\rptgen
> C:\Program Files\MATLAB\R2017b\toolbox\shared\sdi
> C:\Program Files\MATLAB\R2017b\toolbox\shared\siglib
> C:\Program Files\MATLAB\R2017b\toolbox\shared\slcc_cov\slcc_cov
> C:\Program Files\MATLAB\R2017b\toolbox\shared\sl_coverage_configset
> C:\Program Files\MATLAB\R2017b\toolbox\shared\sl_async_streaming
> C:\Program Files\MATLAB\R2017b\toolbox\shared\spreadsheet
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\legacysupportpkginfo
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\installservices
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\supportpackageroot
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\installedapi
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\launcher
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\services
> C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\upgrade
> C:\Program Files\MATLAB\R2017b\toolbox\shared\system\coder
> C:\Program Files\MATLAB\R2017b\toolbox\shared\system\sfun
> C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\general
> C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\graphics
> C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\simulink
> C:\Program Files\MATLAB\R2017b\toolbox\shared\simulink
> C:\Program Files\MATLAB\R2017b\toolbox\shared\simulation_data_repository
> C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\passmanager
> C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink_data_dictionary\sldd
> C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink\slproject
> C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink\slproject\menu
> C:\Program Files\MATLAB\R2017b\toolbox\shared\diagnostic
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\spf\matlabhost
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\spf\matlabservices
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\storage\matlabdrive
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\storage\mldrivedesktop
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\system
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\system\editor
> C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget
> C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget\rtw
> C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget\matlabcoder
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\intelhost\tfl
> C:\Program Files\MATLAB\R2017b\toolbox\target
> C:\Program Files\MATLAB\R2017b\toolbox\target\foundation
> C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\utils
> C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\utils\resource_config
> C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks
> C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks\mex
> C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks\masks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\mdlinfo
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\utils
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks\mex
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks\masks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\ARM\tfl
> C:\Program Files\MATLAB\R2017b\toolbox\shared\etargets\etargets
> C:\Program Files\MATLAB\R2017b\toolbox\shared\etargets\etargets\demoutils
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000\rtw
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000\utils
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks\masks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks\mex
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\src
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks\masks
> C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks\mex
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\timeseries
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolboxmanagement\matlab_api
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolbox_packaging
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolstrip
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner\graphics
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\graphics
> C:\Program Files\MATLAB\R2017b\toolbox\shared\spcuilib\unifiedscopes
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\webcam
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\http
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\json
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\restful
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices
> C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\wsdl
>
Hi,
I don't see the directory for fmin_adam
on the list of paths in your most recent message. Your which fmin_adam
returned C:\Users\tbrandsa\OneDrive - Sopra Steria\MATLAB
but in your path list is
C:\Users\tbrandsa\OneDrive\MATLAB
Could you double check, please?
Thanks, I just picked an old folder by mistake. Changed it now, but there still is no big change.
which optimset
optimset(@fmin_adam)
fmin_adam('defaults')
which fmin_adam
path
C:\Program Files\MATLAB\R2017b\toolbox\matlab\optimfun\optimset.m
ans =
struct with fields:
Display: 'final' MaxFunEvals: 10000 MaxIter: 1000000 TolFun: 1.0000e-06 TolX: 1.0000e-05 FunValCheck: [] OutputFcn: [] PlotFcns: []
ans =
struct with fields:
Display: 'final' GradObj: 'on' DerivativeCheck: 'off' MaxFunEvals: 10000 MaxIter: 1000000 TolFun: 1.0000e-06 TolX: 1.0000e-05 UseParallel: 0
C:\Users\tbrandsa\OneDrive - Sopra Steria\MATLAB\fmin_adam.m
MATLABPATH
C:\Users\tbrandsa\OneDrive - Sopra Steria\MATLAB C:\Program Files\MATLAB\R2017b\toolbox\matlab\datafun C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatypes C:\Program Files\MATLAB\R2017b\toolbox\matlab\elfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\elmat C:\Program Files\MATLAB\R2017b\toolbox\matlab\funfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\general C:\Program Files\MATLAB\R2017b\toolbox\matlab\iofun C:\Program Files\MATLAB\R2017b\toolbox\matlab\lang C:\Program Files\MATLAB\R2017b\toolbox\matlab\matfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\mvm C:\Program Files\MATLAB\R2017b\toolbox\matlab\ops C:\Program Files\MATLAB\R2017b\toolbox\matlab\polyfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\randfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\sparfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\specfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\strfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\timefun C:\Program Files\MATLAB\R2017b\toolbox\matlab\validators C:\Program Files\MATLAB\R2017b\toolbox\matlab\demos C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph2d C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph3d C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics\obsolete C:\Program Files\MATLAB\R2017b\toolbox\matlab\plottools C:\Program Files\MATLAB\R2017b\toolbox\matlab\scribe C:\Program Files\MATLAB\R2017b\toolbox\matlab\scribe\obsolete C:\Program Files\MATLAB\R2017b\toolbox\matlab\specgraph C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools\obsolete C:\Program Files\MATLAB\R2017b\toolbox\matlab\hardware\stubs C:\Program Files\MATLAB\R2017b\toolbox\matlab\images C:\Program Files\MATLAB\R2017b\toolbox\local C:\Program Files\MATLAB\R2017b\toolbox\matlab\maps C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphics\maps C:\Program Files\MATLAB\R2017b\toolbox\matlab\optimfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\bigdata C:\Program Files\MATLAB\R2017b\toolbox\matlab\codeanalysis\analysis C:\Program Files\MATLAB\R2017b\toolbox\matlab\codetools C:\Program Files\MATLAB\R2017b\toolbox\matlab\codetools\embeddedoutputs C:\Program Files\MATLAB\R2017b\toolbox\matlab\datamanager C:\Program Files\MATLAB\R2017b\toolbox\matlab\datastoreio C:\Program Files\MATLAB\R2017b\toolbox\matlab\depfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\graphfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\guide C:\Program Files\MATLAB\R2017b\toolbox\matlab\helptools C:\Program Files\MATLAB\R2017b\toolbox\matlab\icons C:\Program Files\MATLAB\R2017b\toolbox\matlab\mapreduceio C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\core C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\obsolete C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\ext C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\measurement C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\mock C:\Program Files\MATLAB\R2017b\toolbox\matlab\testframework\performance C:\Program Files\MATLAB\R2017b\toolbox\matlab\verctrl C:\Program Files\MATLAB\R2017b\toolbox\matlab\winfun C:\Program Files\MATLAB\R2017b\toolbox\matlab\winfun\NET C:\Program Files\MATLAB\R2017b\toolbox\simulink\sldependency C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\cef C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\fallbackmanager C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons\supportpackages C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons_product C:\Program Files\MATLAB\R2017b\toolbox\matlab\supportpackagemanagement C:\Program Files\MATLAB\R2017b\toolbox\matlab\addons_toolbox C:\Program Files\MATLAB\R2017b\toolbox\matlab\addon_enable_disable_management\matlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner\interface C:\Program Files\MATLAB\R2017b\toolbox\matlab\appdesigner\appdesigner\runtime C:\Program Files\MATLAB\R2017b\toolbox\matlab\apps C:\Program Files\MATLAB\R2017b\toolbox\matlab\audiovideo C:\Program Files\MATLAB\R2017b\toolbox\matlab\cefclient C:\Program Files\MATLAB\R2017b\toolbox\coder\codedescriptor_core C:\Program Files\MATLAB\R2017b\toolbox\coder\codegendemos C:\Program Files\MATLAB\R2017b\toolbox\coder\coder C:\Program Files\MATLAB\R2017b\toolbox\coder\connectivity C:\Program Files\MATLAB\R2017b\toolbox\rtw\targets\connectivity C:\Program Files\MATLAB\R2017b\toolbox\coder\emlcodermex C:\Program Files\MATLAB\R2017b\toolbox\rtw\rtw C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\build C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\build\tools\registry C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\AUTOSAR\AUTOSAR4p0\IFX C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\AUTOSAR\AUTOSAR4p0\IFL C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\tfl\gui C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\templates C:\Program Files\MATLAB\R2017b\toolbox\shared\simtargets C:\Program Files\MATLAB\R2017b\toolbox\coder\matlabcoder C:\Program Files\MATLAB\R2017b\toolbox\coder\matlabcoder\templates C:\Program Files\MATLAB\R2017b\toolbox\coder\profile C:\Program Files\MATLAB\R2017b\toolbox\coder\rtiostream C:\Program Files\MATLAB\R2017b\toolbox\coder\trace C:\Program Files\MATLAB\R2017b\toolbox\shared\comparisons C:\Program Files\MATLAB\R2017b\toolbox\matlab\configtools C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\common C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\configuration C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\connector C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\editor C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\figures C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\file C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\framework C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\http C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\interpreter C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\json C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\logger C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\messageservice C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\mgg C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\microservices C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\nativebridge C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\restmatlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\security C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\session C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\shadowfiles C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\usmatlabhost C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\visualization C:\Program Files\MATLAB\R2017b\toolbox\matlab\connector2\worker C:\Program Files\MATLAB\R2017b\toolbox\matlab\reports C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\datatoolsservices\matlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\inspector\matlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\peermodel_mcos\matlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\plotstab\matlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\variableeditor\matlab C:\Program Files\MATLAB\R2017b\toolbox\matlab\datatools\workspacebrowser\matlab C:\Program Files\MATLAB\R2017b\toolbox\shared\spc\src_ml C:\Program Files\MATLAB\R2017b\toolbox\eml\eml C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\engines\engine_api C:\Program Files\MATLAB\R2017b\examples\coder C:\Program Files\MATLAB\R2017b\examples\coder_compiler_dsp C:\Program Files\MATLAB\R2017b\examples\coder_fixedpoint_simulink C:\Program Files\MATLAB\R2017b\examples\graphics C:\Program Files\MATLAB\R2017b\examples\graphics2 C:\Program Files\MATLAB\R2017b\examples\matlab C:\Program Files\MATLAB\R2017b\examples\matlab_featured C:\Program Files\MATLAB\R2017b\toolbox\matlab\filebrowser C:\Program Files\MATLAB\R2017b\toolbox\matlab\findfiles C:\Program Files\MATLAB\R2017b\toolbox\fixedpoint\fixedpoint C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\demos C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\dmm_emlauthoring C:\Program Files\MATLAB\R2017b\toolbox\coder\float2fixed\custom_logger C:\Program Files\MATLAB\R2017b\toolbox\matlab\uitools\uicomponents\components C:\Program Files\MATLAB\R2017b\toolbox\hdlcoder\hdllib\ml_lib C:\Program Files\MATLAB\R2017b\toolbox\shared\hadoopserializer C:\Program Files\MATLAB\R2017b\toolbox\shared\appdes\services C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwconnection C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\devices C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\providers C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\plugins C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\framework C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwmanagerapp\framework\modules C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\hwwidgets C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\hwtemplates C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\hwsetup\launch C:\Program Files\MATLAB\R2017b\toolbox\shared\hwmanager\logger C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsblks C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccslinkblks C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccslinkblks\rtdxsimblks C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\mdlinfo C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\tfl C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\util C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\rtw C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\envChecker C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\rtw C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\tgtpref2 C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\profiler C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\mdlinfo C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks\masks C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\pjtgenerator\blks\tlc_c C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\autointerface C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\autointerface\ideregisterplugins C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\util C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\errorhandler C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\xmakefile C:\Program Files\MATLAB\R2017b\toolbox\idelink\foundation\hookpoints C:\Program Files\MATLAB\R2017b\toolbox\idelink\idelinkdemos C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsdemos C:\Program Files\MATLAB\R2017b\toolbox\idelink\extensions\ticcs\ccsdemos\util C:\Program Files\MATLAB\R2017b\toolbox\matlab\imagesci C:\Program Files\MATLAB\R2017b\toolbox\shared\instrument C:\Program Files\MATLAB\R2017b\toolbox\shared\m3i C:\Program Files\MATLAB\R2017b\toolbox\shared\mldatx C:\Program Files\MATLAB\R2017b\toolbox\matlab\networklib C:\Program Files\MATLAB\R2017b\toolbox\matlab\pathtool C:\Program Files\MATLAB\R2017b\toolbox\shared\cxxfe_mi\cxxfe_mi C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\python C:\Program Files\MATLAB\R2017b\toolbox\rptgen\xmlcomp C:\Program Files\MATLAB\R2017b\toolbox\matlab\serial C:\Program Files\MATLAB\R2017b\toolbox\shared\advisor C:\Program Files\MATLAB\R2017b\toolbox\shared\asynciolib C:\Program Files\MATLAB\R2017b\toolbox\shared\can C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canblks C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canmasks C:\Program Files\MATLAB\R2017b\toolbox\shared\can\canmex C:\Program Files\MATLAB\R2017b\toolbox\shared\cgir_fe C:\Program Files\MATLAB\R2017b\toolbox\shared\cgxe\cgxe C:\Program Files\MATLAB\R2017b\toolbox\shared\cmlink\api C:\Program Files\MATLAB\R2017b\toolbox\shared\coder\coder C:\Program Files\MATLAB\R2017b\toolbox\shared\configset C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\general C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics\utils C:\Program Files\MATLAB\R2017b\toolbox\shared\controllib\graphics\plotoptions C:\Program Files\MATLAB\R2017b\toolbox\shared\dastudio C:\Program Files\MATLAB\R2017b\toolbox\shared\deviceplugindetection C:\Program Files\MATLAB\R2017b\toolbox\shared\dspblks\dspblks C:\Program Files\MATLAB\R2017b\toolbox\shared\dspblks\dspmex C:\Program Files\MATLAB\R2017b\toolbox\shared\dsp\float2fixed C:\Program Files\MATLAB\R2017b\toolbox\shared\hotpluglib C:\Program Files\MATLAB\R2017b\toolbox\shared\hwconnectinstaller\common C:\Program Files\MATLAB\R2017b\toolbox\shared\imageio C:\Program Files\MATLAB\R2017b\toolbox\shared\io C:\Program Files\MATLAB\R2017b\toolbox\shared\maputils C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom\dom C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\dom\dom\help C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt\ppt C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\ppt\ppt\help C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\rpt C:\Program Files\MATLAB\R2017b\toolbox\shared\mlreportgen\rpt\rpt C:\Program Files\MATLAB\R2017b\toolbox\shared\multimedia C:\Program Files\MATLAB\R2017b\toolbox\shared\networklib C:\Program Files\MATLAB\R2017b\toolbox\shared\rptgen C:\Program Files\MATLAB\R2017b\toolbox\shared\sdi C:\Program Files\MATLAB\R2017b\toolbox\shared\siglib C:\Program Files\MATLAB\R2017b\toolbox\shared\slcc_cov\slcc_cov C:\Program Files\MATLAB\R2017b\toolbox\shared\sl_coverage_configset C:\Program Files\MATLAB\R2017b\toolbox\shared\sl_async_streaming C:\Program Files\MATLAB\R2017b\toolbox\shared\spreadsheet C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\legacysupportpkginfo C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\installservices C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\supportpackageroot C:\Program Files\MATLAB\R2017b\toolbox\shared\supportpkgservices\installedapi C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\launcher C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\services C:\Program Files\MATLAB\R2017b\toolbox\shared\supportsoftware\upgrade C:\Program Files\MATLAB\R2017b\toolbox\shared\system\coder C:\Program Files\MATLAB\R2017b\toolbox\shared\system\sfun C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\general C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\graphics C:\Program Files\MATLAB\R2017b\toolbox\shared\testmeaslib\simulink C:\Program Files\MATLAB\R2017b\toolbox\shared\simulink C:\Program Files\MATLAB\R2017b\toolbox\shared\simulation_data_repository C:\Program Files\MATLAB\R2017b\toolbox\coder\foundation\passmanager C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink_data_dictionary\sldd C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink\slproject C:\Program Files\MATLAB\R2017b\toolbox\simulink\simulink\slproject\menu C:\Program Files\MATLAB\R2017b\toolbox\shared\diagnostic C:\Program Files\MATLAB\R2017b\toolbox\matlab\spf\matlabhost C:\Program Files\MATLAB\R2017b\toolbox\matlab\spf\matlabservices C:\Program Files\MATLAB\R2017b\toolbox\matlab\storage\matlabdrive C:\Program Files\MATLAB\R2017b\toolbox\matlab\storage\mldrivedesktop C:\Program Files\MATLAB\R2017b\toolbox\matlab\system C:\Program Files\MATLAB\R2017b\toolbox\matlab\system\editor C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget\rtw C:\Program Files\MATLAB\R2017b\toolbox\target\codertarget\matlabcoder C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\intelhost\tfl C:\Program Files\MATLAB\R2017b\toolbox\target C:\Program Files\MATLAB\R2017b\toolbox\target\foundation C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\utils C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\utils\resource_config C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks\mex C:\Program Files\MATLAB\R2017b\toolbox\target\foundation\blks\masks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\mdlinfo C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\utils C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks\mex C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\shared\ti\blks\masks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\ARM\tfl C:\Program Files\MATLAB\R2017b\toolbox\shared\etargets\etargets C:\Program Files\MATLAB\R2017b\toolbox\shared\etargets\etargets\demoutils C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000 C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000\rtw C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\processor\tic2000\utils C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks\masks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\blks\mex C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\linux\src C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks\masks C:\Program Files\MATLAB\R2017b\toolbox\target\extensions\operatingsystem\windows\blks\mex C:\Program Files\MATLAB\R2017b\toolbox\matlab\timeseries C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolboxmanagement\matlab_api C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolbox_packaging C:\Program Files\MATLAB\R2017b\toolbox\matlab\toolstrip C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner\graphics C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents C:\Program Files\MATLAB\R2017b\toolbox\matlab\uicomponents\uicomponents\graphics C:\Program Files\MATLAB\R2017b\toolbox\shared\spcuilib\unifiedscopes C:\Program Files\MATLAB\R2017b\toolbox\matlab\webcam C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\http C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\json C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\restful C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices C:\Program Files\MATLAB\R2017b\toolbox\matlab\external\interfaces\webservices\wsdl
Sorry, I really can't reproduce this problem. I have even tried on an fresh installation of 2017b with a fresh clone of fmin_adam
. When I use optimset(@fmin_adam)
I get a long structure with all the necessary fields. The only thing I can suggest is to use the debugger to step through optimset
(which is just a .m
file), and see if you can tell where things go wrong. You could set a breakpoint on line 89 of fmin_adam
where it gets called with 'defaults'
, and go from there.
Hi @tordbb, were you able to debug this issue? Please comment if you worked out what was causing the error. Thanks, Dylan.
I was having the exact same problem but I got around it by changing the options setting to be the default values. But now I'm getting this error:
Reference to non-existent field 'OutputFcn'.
Error in fmin_adam>FA_CallOutputFunctions (line 431)
if (~isempty(options.OutputFcn))
Error in fmin_adam (line 236)
FA_CallOutputFunctions(options, x0, optimValues, 'init');
Error in test (line 8)
phiHat = fmin_adam(@(phi)LinearRegressionMSEGradients(phi, vfInput, vfResp), phi0,
0.1)
Do you have any suggestions?
Hi @amrossetto, could you elaborate please? What command did you try originally, what error did you get, what did you try that worked, and what command fails now?
As you may have seen above, I was unable to reproduce this error in any form. If you are able to help by debugging the code in the IDE, and tracing how and where the options are mis-set, it would help greatly in fixing this issue.
Thanks, Dylan.
Hi,
I started to try out your package “Adam stochastic gradient descent optimization” on matlab file exchange. https://se.mathworks.com/matlabcentral/fileexchange/61616-adam-stochastic-gradient-descent-optimization
Quite an impressive piece of work! You might want to know that I have no extensions to Matlab. I tried to apply it on a simple function handle with two inputs, but it failed:
function [value, gradients] = testFunk(x0)
x = x0(1); y = x0(2);
value = (y-3)^2 + (x-4)^2; gradients = [2x-8, 2y-6];
(and its application…)
fun = @testFunk; x0 = [0,0]; [x, fval, exitflag, output] = fmin_adam(fun, x0);
As I tried to debug fmin_adam, I realized that the parameter “options” is not properly set with all the required fields:
Reference to non-existent field 'GradObj'. … Reference to non-existent field 'DerivativeCheck'. ... Reference to non-existent field 'UseParallel'. …
So when I apply the following line of code from line
options = optimset(@fmin_adam);
results in the following struct:
options =
struct with fields:
If you wish more feedback on how your code performs, you might wish to add the support for the function to be called with few inputs.