# HG changeset patch # User slackydeb # Date 1331661328 0 # Node ID 4caa50815a369dd7590905ae1f9fedf2ab783404 # Parent 88c84a0b0d2a7493ee996daf748023d2b26743d2 ga: add test_ga.m (execute all available tests at once) diff -r 88c84a0b0d2a -r 4caa50815a36 main/ga/inst/ga_test.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main/ga/inst/ga_test.m Tue Mar 13 17:55:28 2012 +0000 @@ -0,0 +1,49 @@ +## Copyright (C) 2012 Luca Favatella +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; If not, see . + +## -*- texinfo -*- +## @deftypefn{Function File} {} ga_test +## Execute all available tests at once. +## @end deftypefn + +## Author: Luca Favatella +## Created: March 2012 +## Version: 0.1 + +## Creation +test gacreationuniform + +## Fitness Scaling +test fitscalingrank + +## Selection +test selectionstochunif + +## Crossover +test crossoverscattered + +## Mutation +test mutationgaussian + +## Utility +test rastriginsfcn + +## Genetic Algorithm +test gaoptimset +test ga +## TODO: split performance tests + +## TODO: review all unit tests +## TODO: write missing unit tests, or write pre-function TODOs