Hi all; I have a problem to run R2016a example due to different Matlab version.
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Muna Shehan
 am 14 Jun. 2016
  
    
    
    
    
    Beantwortet: Star Strider
      
      
 am 14 Jun. 2016
            I used Matlab R2011a, when i try to implement Matlab example ( from R2016 Documentation)
I have problem when I try to execute the example and i get this messege
??? Undefined function or method 'optimoptions' for input arguments of type
'char'.
Error in ==> TestBrownfgh at 5
options =
optimoptions('fmincon','SpecifyObjectiveGradient',true,'HessianFcn','objective',...
which i suppose related to
options = optimoptions('fmincon','SpecifyObjectiveGradient',true,'HessianFcn','objective',...
    'Algorithm','trust-region-reflective');
since i did not get any help in 2011a Demos related to SpecifyObjectiveGradient. Kindly can any one suggest how i can modify optimoptions to be suitable for this problem. Regards
0 Kommentare
Akzeptierte Antwort
  Star Strider
      
      
 am 14 Jun. 2016
        That does not appear to be an option in R2011a. See the documentation< for the R2011a vesion of fmincon to determine if it can do what you want.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!