From: <sla...@us...> - 2011-07-28 23:05:02
|
Revision: 8420 http://octave.svn.sourceforge.net/octave/?rev=8420&view=rev Author: slackydeb Date: 2011-07-28 23:04:56 +0000 (Thu, 28 Jul 2011) Log Message: ----------- Remove dependency on the communications package, substituting 'randint' with 'randi' introduced in octave 3.4.0. Bump version number. TODO: test this version of the package. Modified Paths: -------------- trunk/octave-forge/main/ga/DESCRIPTION trunk/octave-forge/main/ga/inst/crossoverscattered.m Modified: trunk/octave-forge/main/ga/DESCRIPTION =================================================================== --- trunk/octave-forge/main/ga/DESCRIPTION 2011-07-28 08:26:27 UTC (rev 8419) +++ trunk/octave-forge/main/ga/DESCRIPTION 2011-07-28 23:04:56 UTC (rev 8420) @@ -1,12 +1,12 @@ Name: ga -Version: 0.9.8 -Date: 2010-06-24 +Version: 0.9.9 +Date: 2011-07-29 Author: Luca Favatella <sla...@gm...> Maintainer: Luca Favatella <sla...@gm...> Title: Genetic Algorithm and Direct Search Description: Genetic optimization code Categories: Optimization -Depends: octave (>= 2.9.7), communications (>= 1.0.0) +Depends: octave (>= 3.4.0) Autoload: yes License: GPL version 2 or later Url: http://octave.sf.net Modified: trunk/octave-forge/main/ga/inst/crossoverscattered.m =================================================================== --- trunk/octave-forge/main/ga/inst/crossoverscattered.m 2011-07-28 08:26:27 UTC (rev 8419) +++ trunk/octave-forge/main/ga/inst/crossoverscattered.m 2011-07-28 23:04:56 UTC (rev 8420) @@ -1,4 +1,4 @@ -## Copyright (C) 2008, 2009 Luca Favatella <sla...@gm...> +## Copyright (C) 2008, 2009, 2011 Luca Favatella <sla...@gm...> ## ## 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 @@ -14,7 +14,7 @@ ## along with this program; If not, see <http://www.gnu.org/licenses/>. ## Author: Luca Favatella <sla...@gm...> -## Version: 6.3.2 +## Version: 7.0 function xoverKids = crossoverscattered (parents, options, nvars, FitnessFcn, unused, @@ -31,7 +31,7 @@ thisPopulation(parents(1, 1:n_children), 1:nvars); p2(1:n_children, 1:nvars) = \ thisPopulation(parents(1, n_children + (1:n_children)), 1:nvars); - b(1:n_children, 1:nvars) = randint (n_children, nvars); + b(1:n_children, 1:nvars) = randi (1, n_children, nvars); ## TODO: test randi xoverKids(1:n_children, 1:nvars) = \ b .* p1 + (ones (n_children, nvars) - b) .* p2; -endfunction \ No newline at end of file +endfunction This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |