3.0 | 4 ratings Rate this file 28 Downloads (last 30 days) File Size: 3.25 KB File ID: #23280

Steepest descent method


Bapi Chatterjee


13 Mar 2009 (Updated )

It solves an optimization problem by steepest descent method.

| Watch this File

File Information

The script steepestdescent.m optimizes a general multi variable real valued function using steepest descent method. During the iterations if optimum step length is not possible then it takes a fixed step length as 0.001. For the theory any good book on optimization techniques can be consulted. This script is also useful in checking whether a given function is convex or concave and hence globally optimizable.

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
18 Mar 2012 Jacob


I am new to MatLab and was wondering how would I enter the following function in "proper format" since I try with no avail. I could appreciate some idea on how to do that. The functions itself is:

PE(x1,x2) = .5*K1*[sqrt(x1^2+(L1-x2)^2)]^2+.5*K2*[sqrt(x1^2+(L2+x2)^2)]^2-P1*x1-P2*x2

Where, K1, K2, P1, and P2 are constant. Thank you.

18 Oct 2011 Kedar


03 Apr 2009 Duane Hanselman

Duane Hanselman

Not a function, so it pollutes the Command Window workspace. Prompts the user for all input including the function to be optimized! Does not require symbolic math toolbox as stated. Has at least one triple nested For loop. Does not appear to use any vectorization.

26 Mar 2009 Ngawang Jangchub

Ngawang Jangchub

Why not write this as an m file? I'm not sure what the symbolic toolbox buys you. 3 stars only because you used a toolbox I have no need for and no intention of buying.

03 Apr 2009

A small error has been rectified.

Contact us