Files for the 2012 Webinar "Tips and Tricks - Getting Started Using Optimization with MATLAB"
20 Nov 2012
These are the files that were used for the demonstrations in the webinar.
function f = rosenbrock(x)
%ROSENBROCK Rosenbrock's equation.
% ROSENBROCK(X) calculates the value of Rosenbrock's equation at X, where
% X is a vector of length 2.
% f = rosenbrock(x)
% Copyright (c) 2012, The MathWorks, Inc.
% All rights reserved.
f = (1-x(1))^2 + 100*(x(2)-x(1)^2)^2;