Documentation of demoterm

Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)

Function Synopsis

[xnew, GeaOpt] = demoterm(OptVariant, TermVariant)

Help text

 DEMO for testing the termination options

 This function provides an example for using some of the termination
 options in an optimization. 
 The options are defined by the structure method providing a 
 higher flexibility.
 
 Change the variable TermVariant to one of the possible numbers and run the
 function. Different termination methods will be used. Over the run of the 
 optimization the value of the termination parameter can be checked on 
 the screen. After some runs you will get a feeling for the validity or 
 utility of the different options.

 Be carefull, use all the time one of the garanteed termination option
 as well (max generations and max time). Most of the other methods will 
 very often never terminate (depends on the problem and the used operator
 settings). And when the other options terminate, they very often terminate 
 too early. 

 However, play around with the methods and their settings, change the 
 objective function (standard is 'objfun1') or change other parameters. At
 the end you will know, which of the termination methods is suited best 
 for your problem at hand.

 Syntax:  demoterm(OptVariant, TermVariant)

 Input parameter:
    OptVariant  - Scalar indicating the used optimization method
                  1: globally oriented optimization
                  2: locally oriented optimization
                  if omitted or NaN, a menu will be shown with the 
                  possible options

    TermVariant - Scalar indicating the used termination method
                  if omitted or NaN, a menu will be shown with the 
                  possible options

 Output parameter:
    no output parameter

 See also: geaoptset, geamain2, terminat

Cross-Reference Information

This function calls
GEATbx: Main page  Tutorial  Algorithms  M-functions  Parameter/Options  Example functions  www.geatbx.com 

This document is part of version 3.8 of the GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab - www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is not public domain.
© 1994-2006 Hartmut Pohlheim, All Rights Reserved, (support@geatbx.com).