1.0

1.0 | 1 rating Rate this file 101 downloads (last 30 days) File Size: 3.19 KB File ID: #12234

Hill climbing optimization

by Alexandros Leontitsis

 

11 Sep 2006 (Updated 11 Sep 2006)

No BSD License  

Constrained hill climbing optimization

Download Now | Watch this File

File Information
Description

It is a hill climbing optimization algorithm for finding the minimum of a fitness function
in the real space. The space should be constrained and defined properly. It attempts steps on every dimension and proceeds searching to the dimension and the direction that gives the lowest value of the fitness function. It stops if all the neighboring function evaluations give a larger result than the lowest estimated one.

The user is able to define the precision (i.e. the step) that the algorithm will use. This makes it more flexible than the fminsearch optimization function that Matlab provides.

This algorithm is able to pass to the fitness function additional arguments if needed.

For examples type ?help hilloptions? and ?help hill?

MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files hilloptions.m,
hill.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
05 Oct 2009 Karel

Be warned; this script does not properly respect the bounds. In certain cases, it will select a point just outside of the bounds, due to a bug in the code (bounds are only taken into account when the fitness function is being evaluated, not when adding a step to the current best point).

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
optimization Alexandros Leontitsis 22 Oct 2008 08:38:54
hill climbing Alexandros Leontitsis 22 Oct 2008 08:38:54
constrained optimization Alexandros Leontitsis 22 Oct 2008 08:38:54
algorithm Alexandros Leontitsis 22 Oct 2008 08:38:55
fitness Alexandros Leontitsis 22 Oct 2008 08:38:55
space Alexandros Leontitsis 22 Oct 2008 08:38:55
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com