perl.ai...Re: AI::Genetic by Gregg Allen- December 9, 2006 Awesome! That helped a lot. I&39;m looking forward to your new and improved module.Thanks for creating that module, in the first place, also. When I first discovered the module about a year ago, I ran about a dozen random optimization problems from my graduate level operations research textbook from 25 years ago.I didn&39;t find a single one it couldn&39;t solve in less than a few minutes. (Mere seconds in most cases.)Thanks!Gregg AllenCerebra, Inc.On Dec 8, 2006, at 8:56 AM, Ala...http://www.nntp.perl.org/group/perl.ai/2006/12/msg552.html Re: AI::Genetic by Ala Qumsieh- December 8, 2006 --- Benjamin Tucker <bengreenriver.org> wrote:> I don&39;t actually have any experience with> AI::Genetic, but > Storable.pm is probably your best bet. Take a look> at how > AI::Categorizer interfaces with it:>http:search.cpan.orgsrcKWILLIAMSAI-Categorizer-0.07libAI> > CategorizerStorable.pm> > If you throw something like this into the bottom of> one of your perl > files, you should be able just to call> $gen->store_state(&39;filename&39;)...http://www.nntp.perl.org/group/perl.ai/2006/12/msg551.html Re: AI::Genetic by Benjamin Tucker- December 8, 2006 I don&39;t actually have any experience with AI::Genetic, but Storable.pm is probably your best bet. Take a look at how AI::Categorizer interfaces with it:http:search.cpan.orgsrcKWILLIAMSAI-Categorizer-0.07libAI CategorizerStorable.pmIf you throw something like this into the bottom of one of your perl files, you should be able just to call$gen->store_state(&39;filename&39;) and then $gen->restore_state (&39;filename&39;) (where $gen is an instance of AI::Genetic)package...http://www.nntp.perl.org/group/perl.ai/2006/12/msg550.html Re: AI::Genetic by Brad Larsen- December 8, 2006 One (possibly stupid) suggestion is to look at Data::Dumper. It should work, but may be very slow if the object in question is large. Let us know if you find anything better.Cheers,Brad Larsengreggallengmail.com wrote:> > I know this is going to turn out to be a stupid question, but could > someone tell me the easiest way to store and retrieve the state of the > entire AI::Genetic colony, and parameters, to a disk file so it can be > read in and out at will> > I&39;m...http://www.nntp.perl.org/group/perl.ai/2006/12/msg549.html AI::Genetic by greggallen- December 8, 2006 I know this is going to turn out to be a stupid question, but could someone tell me the easiest way to store and retrieve the state of the entire AI::Genetic colony, and parameters, to a disk file so it can be read in and out at willI&39;m doing some constrained optimization experiments that can take several days, even a week, to run in the background, but I have a computer (Mac OS X 10.4.8) that is shared, and I need to install software and restart it almost daily.I would like to save...http://www.nntp.perl.org/group/perl.ai/2006/12/msg548.html |