Professional Documents
Culture Documents
http://www.mathworks.com/help/toolbox/gads/brdvu8r.html
The file that computes this function must accept a vector x of length 2, corresponding to the variables x1 and x2, and return a scalar equal to the value of the function at x. To write the file, do the following steps: 1. Select New > Script (Ctrl+N) from the MATLAB File menu. This opens a new file in the editor. 2. In the file, enter the following two lines of code:
Calculate Hessians of Lagrangian in an extra function 'Hessian' = 'on', 'HessFcn' = function handle For more information about Hessians for fmincon, see Hessian. Local Solver = lsqcurvefit, lsqnonlin Condition Option Setting
1 of 2
7/25/2012 3:07 PM
http://www.mathworks.com/help/toolbox/gads/brdvu8r.html
If you want to maximize f(x), minimize f(x), because the point at which the minimum of f(x) occurs is the same as the point at which the maximum of f(x) occurs. For example, suppose you want to maximize the function
Trials Available
Try the latest version of optimization products. Get trial software
Site Help
Patents
Trademarks
Privacy Policy
Preventing Piracy
RSS
2 of 2
7/25/2012 3:07 PM