changeset 9677:4caa50815a36 octave-forge

ga: add test_ga.m (execute all available tests at once)
author slackydeb
date Tue, 13 Mar 2012 17:55:28 +0000
parents 88c84a0b0d2a
children 837267c6ad02
files main/ga/inst/ga_test.m
diffstat 1 files changed, 49 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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 <slackydeb@gmail.com>
+##
+## 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 <http://www.gnu.org/licenses/>.
+
+## -*- texinfo -*-
+## @deftypefn{Function File} {} ga_test
+## Execute all available tests at once.
+## @end deftypefn
+
+## Author: Luca Favatella <slackydeb@gmail.com>
+## 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