Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
[xout, GeaOpt] = demogeatbx(ObjFun, OptVariant, NumVar)
DEMO for GEATbx, standard functions This function provides an example for using the GEATbx for the optimization of standard test functions. The options are defined by the structure method providing a higher flexibility. Syntax: demogeatbx(ObjFun, OptVariant, NumVar) Input parameter: ObjFun - Scalar indicating the objective function to use if omitted or NaN, a menu will be shown with the possible options OptVariant - Scalar or string indicating the optimization method to use when scalar: 1: globally oriented optimization (multiple subpops) 2: globally oriented optimization (1 subpop) 3: locally oriented optimization when string: name of parameter file (including path and extension when necessary) if omitted or NaN, a menu will be shown with the possible options NumVar - Scalar indicating the number of variables to use for the specified objective function if omitted or NaN, the number defined inside the demo function will be used Output parameter: xout - Vector/Matrix containing best/all individuals of last generation - including best over all generations in first row GeaOpt - Structure with all options See also: geaoptset, geamain2
This function calls | |
---|---|