<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-3946</id>
	<title>Nabble - JGAP</title>
	<updated>2009-12-04T01:18:32Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/JGAP-f3946.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JGAP-f3946.html" />
	<subtitle type="html">JGAP is a genetic algorithms package written in Java. It is designed to require minimum effort to use &amp;quot;out of the box&amp;quot;, but is also designed to be highly modular. JGAP is able to be extended towards Genetic Programming (we already began!). JGAP home is &lt;a href=&quot;http://sourceforge.net/projects/jgap/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26639742</id>
	<title>Re: crossover probability</title>
	<published>2009-12-04T01:18:32Z</published>
	<updated>2009-12-04T01:18:32Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Krzysztof,
&lt;br&gt;&lt;br&gt;the JGAP documentation refers to the probability of selecting individuals
&lt;br&gt;into the next generation, NOT to the probability of crossing over.
&lt;br&gt;So your understanding in 1) is correct
&lt;br&gt;&lt;br&gt;Regarding your point 2):
&lt;br&gt;This is not correct, I think: You can write your own implementation that
&lt;br&gt;controls the probability of crossing over dependent on the individuals'
&lt;br&gt;fitness .
&lt;br&gt;&lt;br&gt;In general: It only makes sense to crossover individuals that are selected
&lt;br&gt;beforehand.
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;www.klaus-meffert.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Krzysztof Chmielewski [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639742&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;krzysiek.chmielewski@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Friday, December 04, 2009 1:50 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639742&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [jgap-users] crossover probability
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi, I have a question to crossover probability. On JGAP web 
&lt;br&gt;&amp;gt; site we can read that: *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *Natural selection in JGAP is statistical, so chromosomes 
&lt;br&gt;&amp;gt; that are more fit have a better statistical chance of being 
&lt;br&gt;&amp;gt; selected over chromosomes that are less fit, but it's not guaranteed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So I assumed, that probability of choosing chromosome to 
&lt;br&gt;&amp;gt; crossover depending on fitness value of this chromosome. But 
&lt;br&gt;&amp;gt; when in studied the CrossOverOperator i have noticed 
&lt;br&gt;&amp;gt; something like that:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; public void operate(final Population a_population,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final List a_candidateChromosomes) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;// Work out the number of crossovers that should be performed.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;// -----------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;int size = Math.min(getConfiguration().getPopulationSize(),
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a_population.size());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;int numCrossovers = 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;if (m_crossoverRate &amp;gt;= 0) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;numCrossovers = size / m_crossoverRate;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;else if (m_crossoverRateCalc != null) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;numCrossovers = size / 
&lt;br&gt;&amp;gt; m_crossoverRateCalc.calculateCurrentRate();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;numCrossovers = (int) (size * m_crossoverRatePercent);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Where calculateCurrentRate() return int.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So:
&lt;br&gt;&amp;gt; 1. The fitness value of chromosome does not impact on the 
&lt;br&gt;&amp;gt; probability of choosing this chromosome to crossover right?? 
&lt;br&gt;&amp;gt; The only place where the fitness value is used is in 
&lt;br&gt;&amp;gt; NaturalSelector where we choose &amp;quot;n&amp;quot; best chromosomes, yes?
&lt;br&gt;&amp;gt; 2. Even if I wrote my own UniversalRateCalc, the 
&lt;br&gt;&amp;gt; rate(probability) of crossover is the same for every 
&lt;br&gt;&amp;gt; chromosome in this evolution, yes?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So what should I do if I want that probability of crossover 
&lt;br&gt;&amp;gt; of particular chromosome is an individual value for each 
&lt;br&gt;&amp;gt; chromosome in this population and depends of fitness value of 
&lt;br&gt;&amp;gt; this chromosome?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience, 
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639742&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639742&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/crossover-probability-tp26639138p26639742.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639138</id>
	<title>crossover probability</title>
	<published>2009-12-03T16:50:18Z</published>
	<updated>2009-12-03T16:50:18Z</updated>
	<author>
		<name>Krzysztof Chmielewski</name>
	</author>
	<content type="html">Hi, I have a question to crossover probability. On JGAP web site we can 
&lt;br&gt;read that: *
&lt;br&gt;&lt;br&gt;*Natural selection in JGAP is statistical, so chromosomes that are more 
&lt;br&gt;fit have a better statistical chance of being selected over chromosomes 
&lt;br&gt;that are less fit, but it's not guaranteed.
&lt;br&gt;&lt;br&gt;So I assumed, that probability of choosing chromosome to crossover 
&lt;br&gt;depending on fitness value of this chromosome. But when in studied the 
&lt;br&gt;CrossOverOperator i have noticed something like that:
&lt;br&gt;&lt;br&gt;public void operate(final Population a_population,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final List a_candidateChromosomes) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;// Work out the number of crossovers that should be performed.
&lt;br&gt;&amp;nbsp; &amp;nbsp;// -----------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp;int size = Math.min(getConfiguration().getPopulationSize(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a_population.size());
&lt;br&gt;&amp;nbsp; &amp;nbsp;int numCrossovers = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (m_crossoverRate &amp;gt;= 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;numCrossovers = size / m_crossoverRate;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;else if (m_crossoverRateCalc != null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;numCrossovers = size / m_crossoverRateCalc.calculateCurrentRate();
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;numCrossovers = (int) (size * m_crossoverRatePercent);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;Where calculateCurrentRate() return int.
&lt;br&gt;&lt;br&gt;So:
&lt;br&gt;1. The fitness value of chromosome does not impact on the probability of 
&lt;br&gt;choosing this chromosome to crossover right?? The only place where the 
&lt;br&gt;fitness value is used is in NaturalSelector where we choose &amp;quot;n&amp;quot; best 
&lt;br&gt;chromosomes, yes?
&lt;br&gt;2. Even if I wrote my own UniversalRateCalc, the rate(probability) of 
&lt;br&gt;crossover is the same for every chromosome in this evolution, yes?
&lt;br&gt;&lt;br&gt;So what should I do if I want that probability of crossover of 
&lt;br&gt;particular chromosome is an individual value for each chromosome in this 
&lt;br&gt;population and depends of fitness value of this chromosome?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639138&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/crossover-probability-tp26639138p26639138.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588163</id>
	<title>grid fitness distribution question</title>
	<published>2009-11-30T09:12:32Z</published>
	<updated>2009-11-30T09:12:32Z</updated>
	<author>
		<name>Bryan Auslander</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- From following the examples I have created an application that should
&lt;br&gt;distribute the fitness calculations across multiple workers. The fitness
&lt;br&gt;calculation takes about 3 minutes to run per chromosome so it is
&lt;br&gt;essential it is distributed.
&lt;br&gt;&lt;br&gt;However in the example for fitness distribution it uses the line
&lt;br&gt;pop.sortByFitness() which causes all the fitness calculations to then be
&lt;br&gt;done for each chromosome on the client before the requests are split up
&lt;br&gt;for the workers? &amp;nbsp; Removing this line does send the fitness requests to
&lt;br&gt;the workers. &amp;nbsp;This line is need though as pointed out in the example
&lt;br&gt;snce they need to be sorted here in order to keep the best chromosomes
&lt;br&gt;for when the population gets bigger. &amp;nbsp;As such I am wondering if this
&lt;br&gt;might be a bug in the example or if I am missing something.
&lt;br&gt;&lt;br&gt;I have a similar issue when it is working on the evolving. &amp;nbsp;I would have
&lt;br&gt;thought that the way that the fitness distribution was implemented that
&lt;br&gt;any time it needed a fitness it would pass it to a worker. &amp;nbsp; However
&lt;br&gt;during the evolving it calculates the fitness of new chromosomes as they
&lt;br&gt;are generated, which by default is handled on the client. &amp;nbsp;I see some
&lt;br&gt;examples on distributing the evolving, but this seems like it should be
&lt;br&gt;for a different purpose.
&lt;br&gt;&lt;br&gt;Any advice on how to fix these issues would be appreciated.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Bryan
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.10 (MingW32)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;iQEcBAEBAgAGBQJLE/0AAAoJEIB5nnZY0MtS9jAH+wVjezxDyorOfS4gyLmyKcgc
&lt;br&gt;YJskmUPj9Sts8N4iZfLP0xCgGo2DNjAqIIpbNUPhb3j59pTwmoTXYwEWp4PuO2Zi
&lt;br&gt;BofSGoNlh2C8SPl1Ycl8kAMUhuMCvBkFHMFnxdRByoD1pkCMHlzk49Jjt+P51yik
&lt;br&gt;irw2UTzjrfYh3wyFaL/vCnJTELncdqDkLRcPHPwlBijrQxL6fB6xbbVzrbgILQ7d
&lt;br&gt;aqdXrJKgsgzSYUBajky/pCo15kqpnS8HeRPu6/fhQAAXuT8svyt5U9z9zqKpHf1K
&lt;br&gt;7Klp0RYiTdQvQHtxoYaZP4ML8py3H515KCUVGaFecxTuXxQwaU91L/q7IxKYgGk=
&lt;br&gt;=0BaT
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588163&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/grid-fitness-distribution-question-tp26588163p26588163.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475692</id>
	<title>Re: HOW TO TEST AN ALGORITHM FOR GSM APPLICABILITY?</title>
	<published>2009-11-23T02:35:43Z</published>
	<updated>2009-11-23T02:35:43Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//DE&quot;&gt;&lt;HTML&gt;&lt;HEAD&gt;&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;&lt;TITLE&gt;Message&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halil,&lt;/P&gt;
&lt;P&gt;could you tell me what you exactly mean with GSM in your case?&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Klaus&lt;BR&gt;&lt;BR&gt;----- original Nachricht --------&lt;BR&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; [jgap-users] HOW TO TEST AN ALGORITHM FOR GSM APPLICABILITY?&lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; So, 22. Nov 2009&lt;BR&gt;&lt;B&gt;Von:&lt;/B&gt; Halil Memeti&lt;HMEMETI@YAHOO.COM&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD vAlign=top&gt;&lt;SPAN class=postbody&gt;I have been wondering how do I test whether my algorithm is applicable for the GSM. &lt;BR&gt;&lt;BR&gt;I mean, I have been implementing an algorithm that would allow same frequency operating within a cell. However, I would like to try to test whether that is applicable for GSM. &lt;BR&gt;&lt;BR&gt;Any help in this area would be highly appreciated! &lt;BR&gt;&lt;BR&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;--- original Nachricht Ende ----&lt;BR&gt;&lt;/BODY&gt;&lt;/HTML&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475692&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HOW-TO-TEST-AN-ALGORITHM-FOR-GSM-APPLICABILITY--tp26463783p26475692.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475845</id>
	<title>Re: Chromosomes with varient number of genes</title>
	<published>2009-11-23T02:29:23Z</published>
	<updated>2009-11-23T02:29:23Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Gianpaolo,
&lt;br&gt;&lt;br&gt;having chromosomes with a varying number of genes is quite easy. Just use a CompositeGene and inside it the desired genes you need. But the thing is that your genetic operators (mainly the crossover operator, or also a custom one) must be able to handle this case.
&lt;br&gt;I think, adding an example for this may be helpful. For that it would be great to have a problem description, or a source code from you, that allows setting up an example quite easily. Please also describe which genetic operators are applicable and how they should work. Maybe a reference to the GABIL source (hopefully in Java) also helps.
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;----- original Nachricht --------
&lt;br&gt;&lt;br&gt;Betreff: Re: [jgap-users] Chromosomes with varient number of genes
&lt;br&gt;Gesendet: So, 22. Nov 2009
&lt;br&gt;Von: Gianpaolo Valero&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475845&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alexander.gvc@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I'm using GABIL for GA. I wanted to use JGAP to solve this problem. So,
&lt;br&gt;&amp;gt; i have the same problem that Sajith has. I just read the solution you
&lt;br&gt;&amp;gt; posted
&lt;br&gt;&amp;gt; and there's something that's not clear. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; You wrote &amp;quot;you have to do is create a String Gene&amp;quot;. So, my choromosomes
&lt;br&gt;&amp;gt; would have only one gene with different size?. Is that the solution you're
&lt;br&gt;&amp;gt; giving?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; andycrack wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Hi Sajith
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;From my experience with JGAP I think you have to do is
&lt;br&gt;&amp;gt; &amp;gt; create a String Gene, because in this class you can set a minimal and
&lt;br&gt;&amp;gt; &amp;gt; maximal Length of the string, maybe if you use a random generator of
&lt;br&gt;&amp;gt; &amp;gt; integers also include in this library you can simulate diferent
&lt;br&gt;&amp;gt; &amp;gt; chromosomes with genes dynamically.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I hope this is a good answer for you
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; best regards
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Christian
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On 11/14/09, Sajith Vimukthi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475845&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sajith.vim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I am very new to GA and JGAP. Indeed I want to select an optimal set if
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; words out of a huge text. For that I though of using a GA. When I
&lt;br&gt;&amp;gt; thought
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; about that in the context of GA, I felt that there should be some
&lt;br&gt;&amp;gt; ability
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; where I should be able to define the number of genes in a chromosome
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; dynamically. Is it possible with GA? Does JGAP support that?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sajith Vimukthi Weerakoon,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; T .P No : ++94-716102392
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;&amp;gt; &amp;gt; 30-Day 
&lt;br&gt;&amp;gt; &amp;gt; trial. Simplify your report design, integration and deployment - and
&lt;br&gt;&amp;gt; focus
&lt;br&gt;&amp;gt; &amp;gt; on 
&lt;br&gt;&amp;gt; &amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; &amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475845&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Chromosomes-with-varient-number-of-genes-tp26349456p26&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Chromosomes-with-varient-number-of-genes-tp26349456p26&lt;/a&gt;&lt;br&gt;&amp;gt; 462191.html
&lt;br&gt;&amp;gt; Sent from the jgap-users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt; on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475845&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;--- original Nachricht Ende ----
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475845&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chromosomes-with-varient-number-of-genes-tp26349456p26475845.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462203</id>
	<title>GABIL with JGAP</title>
	<published>2009-11-21T17:57:01Z</published>
	<updated>2009-11-21T17:57:01Z</updated>
	<author>
		<name>Gianpaolo Valero</name>
	</author>
	<content type="html">Hi, 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I just wanted to know if there's a way of using GABIL with JGAP. The biggest problem i've found is that GABIL uses non-fixed-length chromosomes and chromosomes in JGAP are fixed-lenght. 
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;If there's a way how?&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-devl-f3948.html&quot; embed=&quot;fixTarget[3948]&quot; target=&quot;_top&quot; &gt;jgap-devl&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GABIL-with-JGAP-tp26462203p26462203.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462191</id>
	<title>Re: Chromosomes with varient number of genes</title>
	<published>2009-11-21T17:50:59Z</published>
	<updated>2009-11-21T17:50:59Z</updated>
	<author>
		<name>Gianpaolo Valero</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; I'm using GABIL for GA. I wanted to use JGAP to solve this problem. So, i have the same problem that Sajith has. I just read the solution you posted and there's something that's not clear. 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; You wrote &amp;quot;you have to do is create a String Gene&amp;quot;. So, my choromosomes would have only one gene with different size?. Is that the solution you're giving?
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;andycrack wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Sajith
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;From my experience with JGAP I think you have to do is
&lt;br&gt;create a String Gene, because in this class you can set a minimal and
&lt;br&gt;maximal Length of the string, maybe if you use a random generator of
&lt;br&gt;integers also include in this library you can simulate diferent
&lt;br&gt;chromosomes with genes dynamically.
&lt;br&gt;&lt;br&gt;I hope this is a good answer for you
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;&lt;br&gt;Christian
&lt;br&gt;&lt;br&gt;On 11/14/09, Sajith Vimukthi &amp;lt;sajith.vim@gmail.com&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am very new to GA and JGAP. Indeed I want to select an optimal set if
&lt;br&gt;&amp;gt; words out of a huge text. For that I though of using a GA. When I thought
&lt;br&gt;&amp;gt; about that in the context of GA, I felt that there should be some ability
&lt;br&gt;&amp;gt; where I should be able to define the number of genes in a chromosome
&lt;br&gt;&amp;gt; dynamically. Is it possible with GA? Does JGAP support that?
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Sajith Vimukthi Weerakoon,
&lt;br&gt;&amp;gt; T .P No : ++94-716102392
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;jgap-users@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chromosomes-with-varient-number-of-genes-tp26349456p26462191.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463782</id>
	<title>GABIL with JGAP</title>
	<published>2009-11-21T17:46:43Z</published>
	<updated>2009-11-21T17:46:43Z</updated>
	<author>
		<name>Gianpaolo Valero</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;Hi,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;     Next monday I have to turned in a java project for acadamy porpuse that uses GABIL. Actually I&amp;#39;m using GABIL to do machine learning. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;     First of all, for what i&amp;#39;ve seen JGAP is a nice package for solvin almost every genetic problem. Although it doesn&amp;#39;t seem to work with GABIL framework. &lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;     The basis of GABIL is that chromosomes are not fixed-length. That is, that every chromosomes can have different numbers of genes. I&amp;#39;ve looked around in your code and i noticed that your BaseChromosome and IChromosome worked with arrays of genes. Is too dificult to change this classes to work whith vector or ArrayList for example?. If not, how to do that?. If it is, Do you know where I can find a package that handles GABIL solving methods?.&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;     Thanks for your time, and i&amp;#39;ll keep looking into your code to see if there is a way I can do what i wan.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Sincerely yours,&lt;/div&gt;&lt;div&gt;Gianpaolo A. Valero @Venezuela&lt;/div&gt;


&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463782&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GABIL-with-JGAP-tp26463782p26463782.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463783</id>
	<title>HOW TO TEST AN ALGORITHM FOR GSM APPLICABILITY?</title>
	<published>2009-11-21T12:57:29Z</published>
	<updated>2009-11-21T12:57:29Z</updated>
	<author>
		<name>hmemeti</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;&lt;span class=&quot;postbody&quot;&gt;I have been wondering how do I test whether my algorithm is applicable for the GSM.
&lt;br&gt;

&lt;br&gt;
I mean, I have been implementing an algorithm that would allow same
frequency operating within a cell. However, I would like to try to test
whether that is applicable for GSM. &lt;br&gt;

&lt;br&gt;
Any help in this area would be highly appreciated!
&lt;br&gt;

&lt;br&gt;
Thanks in advance!&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;



      &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HOW-TO-TEST-AN-ALGORITHM-FOR-GSM-APPLICABILITY--tp26463783p26463783.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26387550</id>
	<title>Two bugs(?) in AbstractSuperGene</title>
	<published>2009-11-16T05:19:24Z</published>
	<updated>2009-11-16T05:19:24Z</updated>
	<author>
		<name>Christoph Langguth-3</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I have discovered two &amp;quot;inconveniences&amp;quot; in the AbstractSuperGene implementation. I'm not sure whether 
&lt;br&gt;they can outright be called bugs, but they're certainly exposing rather unexpected behaviour.
&lt;br&gt;&lt;br&gt;First:
&lt;br&gt;The constructor AbstractSupergene(Configuration, Gene[]), in conjunction with the default 
&lt;br&gt;newGeneInternal() implementation.
&lt;br&gt;&lt;br&gt;This is implemented in a slightly odd way, because new Objects get instantiated with the *old*, 
&lt;br&gt;uncloned subgenes - which are replaced by the newGeneInternal() method *after* the constructor of 
&lt;br&gt;the copy had been invoked. IMO this goes against intuition (and usability).
&lt;br&gt;&lt;br&gt;To give an example where it becomes obvious: I need to reference the &amp;quot;parent&amp;quot; supergene from within 
&lt;br&gt;my subgenes at times. So the intuitive approach would be (simplified pseudo-code):
&lt;br&gt;&lt;br&gt;class MySuperGene extends AbstractSuperGene {
&lt;br&gt;&amp;nbsp; &amp;nbsp;public MySuperGene(Configuration c, Gene[] subGenes) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for (Gene g: subGenes) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((SubGene)g).setParent(this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;With the current implementation, one needs to create workarounds for this (the easiest being to 
&lt;br&gt;&amp;quot;adjust&amp;quot; the newGeneInternal() method. (Which I did anyway for performance reasons, because the 
&lt;br&gt;constructor invocation through reflection seems to quickly become a bottleneck). In any case, I 
&lt;br&gt;would suggest to minimally change the newGeneInternal() method, so that it uses the copied gene 
&lt;br&gt;array for the constructor (pseudo-diff):
&lt;br&gt;&lt;br&gt;AbstractSuperGene.java:200
&lt;br&gt;-AbstractSupergene age = (AbstractSupergene) constr.newInstance(new Object[] {getConfiguration(), 
&lt;br&gt;getGenes()});
&lt;br&gt;+AbstractSupergene age = (AbstractSupergene) constr.newInstance(new Object[] {getConfiguration(), g});
&lt;br&gt;if (m_validator != this) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;age.setValidator(m_validator);
&lt;br&gt;}
&lt;br&gt;- age.m_genes = g;
&lt;br&gt;&lt;br&gt;I don't think this would break any existing functionality, but IMO makes life easier and exposes the 
&lt;br&gt;intuitively expected behaviour.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Second:
&lt;br&gt;I'm heavily using SuperGenes in my project, including SuperGenes composed of SuperGenes composed of 
&lt;br&gt;SuperGenes.... And I realized that not everything mutates ;-)
&lt;br&gt;While trying to figure out the reason, I took a closer look at the AbstractSuperGene.applyMutation() 
&lt;br&gt;method. Indeed, it's even described in the Javadoc: The method is delegated to the first element of 
&lt;br&gt;the gene indexed by 'index'.
&lt;br&gt;&lt;br&gt;Which left me wondering whether that really makes sense... Shouldn't it be mutating the other 
&lt;br&gt;elements as well, at times? Or, putting it the other way around, and a bit bluntly: if the other 
&lt;br&gt;subgenes are never mutated, why would one implement them as genes in the first place? They could 
&lt;br&gt;just as well go (for example) into the applicationData as constants.
&lt;br&gt;&lt;br&gt;I thus changed my &amp;quot;private&amp;quot; implementation so that it randomly picks one of the subgenes to be 
&lt;br&gt;mutated. (I'm not sure as to how this should be affected by the mutation rate and such, but that's a 
&lt;br&gt;different story...) There's one more catch to this however, in that one can't simply use the 
&lt;br&gt;RandomGenerator from the Configuration, because this one doesn't necessarily give a uniform 
&lt;br&gt;distribution...
&lt;br&gt;&lt;br&gt;Ok, I hope that what I wrote is half-way understandable and makes sense as changes to the 
&lt;br&gt;AbstractSuperGene. Any feedback or comments on these issues is highly appreciated. :-)
&lt;br&gt;&lt;br&gt;Thanks a lot &amp; cheers
&lt;br&gt;Christoph
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387550&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (9K) &lt;a href=&quot;http://old.nabble.com/attachment/26387550/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Two-bugs%28-%29-in-AbstractSuperGene-tp26387550p26387550.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26368504</id>
	<title>Re: Problem generating population</title>
	<published>2009-11-16T00:44:21Z</published>
	<updated>2009-11-16T00:44:21Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Bruno,
&lt;br&gt;&lt;br&gt;sorry for the late reply.
&lt;br&gt;&lt;br&gt;Is it possible in your case to increase the maxInitDepth?
&lt;br&gt;Do you believe there is a program error or bad program behaviour?
&lt;br&gt;&lt;br&gt;Is it possible to get the configuration of your problem to dig in deeper and
&lt;br&gt;develop a good solution for your issue?
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;www.klaus-meffert.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Bruno Fernández [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368504&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bfg84@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Monday, October 26, 2009 5:49 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368504&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [jgap-users] Problem generating population
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello. I'm using genetic programming with jgap and I have a 
&lt;br&gt;&amp;gt; problem while generating the initial population. I have a 
&lt;br&gt;&amp;gt; type which is output of only one function but it's input of 
&lt;br&gt;&amp;gt; many of them and there are no terminals of this type. The 
&lt;br&gt;&amp;gt; problem is, when I try to generate the initial population 
&lt;br&gt;&amp;gt; with &amp;quot;GPGenotype.randomInitialGenotype&amp;quot;, it can't find 
&lt;br&gt;&amp;gt; suitable nets and clone only a few. As a result, I have no 
&lt;br&gt;&amp;gt; enough variability.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The problem seems to be that it can't close the net if one 
&lt;br&gt;&amp;gt; node with the problematic type as an input appears in the 
&lt;br&gt;&amp;gt; (maxInitDepth-1) level. The bigger the maxInitDepth constant 
&lt;br&gt;&amp;gt; is, the bigger is the time it takes to generate the 
&lt;br&gt;&amp;gt; population and with worst results.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there any posibility to make laxer the condition so, if 
&lt;br&gt;&amp;gt; this situation happens, it will try to close the branch as 
&lt;br&gt;&amp;gt; soon as possible even if it breaks the max depth restriction? 
&lt;br&gt;&amp;gt; Any other solution will be welcome too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you very much.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry if my english is not good enough, I hope the message 
&lt;br&gt;&amp;gt; were understandable.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference in 
&lt;br&gt;&amp;gt; SF, CA is the only developer event you need to attend this 
&lt;br&gt;&amp;gt; year. Jumpstart your developing skills, take BlackBerry 
&lt;br&gt;&amp;gt; mobile applications to market and stay ahead of the curve. 
&lt;br&gt;&amp;gt; Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368504&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368504&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-generating-population-tp26075453p26368504.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26368287</id>
	<title>Require suggestion for given problem.</title>
	<published>2009-11-15T21:23:38Z</published>
	<updated>2009-11-15T21:23:38Z</updated>
	<author>
		<name>Patel, Nachiket R. - EITL (HAZ)</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta name=&quot;Microsoft Theme 2.00&quot; content=&quot;Ice 010&quot;&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body bgcolor=white lang=EN-US link=&quot;#1F86FF&quot; vlink=&quot;#005DC9&quot;&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Hello,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;We are developing system for
stacking &lt;b&gt;Circle Cylinder&lt;/b&gt; shape items on &lt;b&gt;containers&lt;/b&gt;. (Like coin
stack..)&lt;br&gt;
And this problem have many constraints based on container type. (i.e Weight,
Diameter, Type, Color) &lt;br&gt;
We have defined these constraints into two categories . &lt;b&gt;Hard and Soft&lt;/b&gt;
(From analogy of JBoss Drools Solver, I tried it before JGAP)&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Hard constraints&lt;/b&gt; are compulsory. If it does not fulfills then solution
cannot be determined. &lt;br&gt;
&lt;b&gt;Soft constraints&lt;/b&gt; are constraints which should be optimized (I have set
to Lower score means better score) &lt;br&gt;
&lt;br&gt;
And Input will be &amp;#8220;List of Containers&amp;#8221; and &amp;#8220;List of Cylinders&amp;#8221;. Usual input
will be 10 to 30 Cylinders and 4 to 8 containers&lt;br&gt;
And Output should be filling up all the containers + [remaining unassigned
cylinders] OR using all the cylinders &lt;br&gt;
[AND Hard constraints must be adhered and soft constrains should be near to
optimum]&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Right now, I am giving Hard constraint much higher fitness then soft
constraint. So if ONE hard constraint is broken then fitness will be say 30000,
and if ONE soft constraint is broken then fitness will be 2500&lt;br&gt;
&lt;br&gt;
Let me give you a hypothetical example for better understanding.&lt;br&gt;
&lt;b&gt;&lt;u&gt;Circles:&lt;/u&gt;&lt;/b&gt; &lt;br&gt;
&lt;b&gt;C1&lt;/b&gt;[height: 5,diameter:6,group-A], &lt;br&gt;
&lt;b&gt;C2&lt;/b&gt;[height: 7,diameter:4,group-B] ,&lt;br&gt;
&lt;b&gt;C3&lt;/b&gt;[height: 3,diameter:3,group-D],&lt;br&gt;
&lt;b&gt;C4&lt;/b&gt;[height: 4,diameter:8,group-C],&lt;br&gt;
&lt;b&gt;C5&lt;/b&gt;[height: 2,diameter:6,group-A],&lt;br&gt;
&lt;b&gt;C6&lt;/b&gt;[height: 8,diameter:9,group-A],&lt;br&gt;
&lt;b&gt;C7&lt;/b&gt;[height: 3,diameter:2,group-D]&lt;br&gt;
&lt;b&gt;C8&lt;/b&gt;[height: 6,diameter:2,group-B]&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&lt;u&gt;Containers:&lt;/u&gt;&lt;/b&gt; &lt;br&gt;
&lt;b&gt;CON1&lt;/b&gt;[max-diameter:5, height: 10, max-capacity:3],&lt;br&gt;
&lt;b&gt;CON2&lt;/b&gt;[max-diameter:5, height: 10, max-capacity:3],&lt;br&gt;
&lt;b&gt;CON3&lt;/b&gt;[max-diameter:10, height: 8, max-capacity:3],&lt;br&gt;
&lt;b&gt;CON4&lt;/b&gt;[max-diameter:10, height: 8, max-capacity:3],&lt;br&gt;
&lt;br&gt;
&lt;u&gt;Hard Constraints&lt;/u&gt;&lt;br&gt;
1. Container height&lt;br&gt;
2. Container diameter&lt;br&gt;
3. Max capacity&lt;br&gt;
&lt;br&gt;
&lt;u&gt;Soft Constraints&lt;/u&gt;&lt;br&gt;
1. Minimum capacity wastage of containers&lt;br&gt;
2. Lower diameter circle cannot be placed on higher diameter circle (i.e &lt;b&gt;C3&lt;/b&gt;
on layer-1 and &lt;b&gt;C2&lt;/b&gt; on layer-2 should be avoided)&lt;br&gt;
3. Circles with group [A,B] or [C,D] should be kept in one base. (i.e. rather
than putting &lt;b&gt;C1&lt;/b&gt;,&lt;b&gt;C3&lt;/b&gt; together prefer, &lt;b&gt;C1&lt;/b&gt;,&lt;b&gt;C5&lt;/b&gt; together)&lt;br&gt;
&lt;br&gt;
So in above detail, Input is &lt;b&gt;CIRCLES&lt;/b&gt; + &lt;b&gt;CONTAINERS&lt;/b&gt; and output
should be (it&amp;#8217;s just a representation, not a proper solution);&lt;br&gt;
&lt;b&gt;CON1&lt;/b&gt; [0:&lt;b&gt;C1&lt;/b&gt;, 1:&lt;b&gt;C5&lt;/b&gt;,2:&lt;b&gt;C6&lt;/b&gt;], (0,1,2 denotes layers)&lt;br&gt;
&lt;b&gt;CON2&lt;/b&gt; [0:&lt;b&gt;C2&lt;/b&gt;, 1:&lt;b&gt;C4&lt;/b&gt;,2:&lt;b&gt;C7&lt;/b&gt;], &lt;br&gt;
&lt;b&gt;CON3&lt;/b&gt; [0:&lt;b&gt;C3&lt;/b&gt;, 1:&lt;b&gt;C5&lt;/b&gt;]&lt;br&gt;
&lt;b&gt;CON4&lt;/b&gt; []&lt;br&gt;
&lt;br&gt;
In this result, CON4 will be empty.. as there are no Circles available. &lt;br&gt;
Sometimes in input number of circles are more around 30 and number of Containers
are lesser (like 3 or 4) so, in that case.. elements list will remain
unassigned.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;i&gt;I am maintaining a index based list and mapping it with
IntegerGene. So if my chromosome is [2,4,6,1,0,3,5] then I&amp;#8217;ll create a new
List&amp;lt;Cylinder&amp;gt; for fitness calculation. &lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;i&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;Fitness calculation function&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;It start filling &lt;b&gt;Containers &lt;/b&gt;based on height and
weight capacity. From given &lt;b&gt;List&amp;lt;Cylinder&amp;gt;&lt;/b&gt; (which is created based
on chromosome). After setting all Cylinders in Containers. Fitness value will
be calculated on &lt;b&gt;wastage&lt;/b&gt; of &lt;b&gt;weight capacity&lt;/b&gt; and &lt;b&gt;height
capacity&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;br&gt;
&lt;b&gt;So please suggest better options for my settings. Here is my configuration.&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style='font-size:11.0pt'&gt;Configuration gaConf = new
DefaultConfiguration();&lt;br&gt;
Configuration.resetProperty(Configuration.PROPERTY_FITEVAL_INST);&lt;br&gt;
gaConf.setFitnessEvaluator(new DeltaFitnessEvaluator());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt'&gt;gaConf.getGeneticOperators().clear();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt'&gt;MutationOperator swapper =
new SwappingMutationOperator(gaConf);&lt;br&gt;
gaConf.addGeneticOperator(swapper);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;span style='font-size:11.0pt'&gt;&lt;br&gt;
gaConf.setPreservFittestIndividual(true);&lt;br&gt;
gaConf.setKeepPopulationSizeConstant(false);&lt;br&gt;
gaConf.setPopulationSize(getSizeOfPopulation());&lt;br&gt;
&lt;br&gt;
IChromosome sampleChromosome = new Chromosome(config, new IntegerGene(config),
chromozomeSize);&lt;br&gt;
config.setSampleChromosome(sampleChromosome);&lt;br&gt;
config.setFitnessFunction(getFitnessFunction());&lt;br&gt;
Genotype genotype = Genotype.randomInitialGenotype(config);&lt;br&gt;
List chromosomes = genotype.getPopulation().getChromosomes();&lt;br&gt;
for (Object chromosome : chromosomes) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IChromosome chrom = (IChromosome) chromosome;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int j = 0; j &amp;lt; chrom.size(); j++) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gene gene = chrom.getGene(j);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gene.setAllele(j);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
}&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Is my configuration okay? OR I am missing
something?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Is IntegerGene appropriate for this problem?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;I am only using SwappingMutationOperation. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;br&gt;
I am giving 250 NUMBER_OF_EVOLUTION and 50 SIZE_OF_POPULATION.. &lt;br&gt;
But after 100 to 120 number of evolutions.. I do not get better fitness
chromosome.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Please let me know if you required more information..&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;br&gt;
Regards, &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;data&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font: bold 8pt Arial; color: #000000;&quot;&gt;Nachiket Patel&lt;/span&gt;&lt;span style=&quot;font: 8pt Arial; color: #000000;&quot;&gt; | Consultant | Essar Information Technology Ltd |&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;font: 8pt Arial; color: #000000;&quot;&gt;27th km, Surat Hazira Road, Hazira - 394270 |&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;font: 8pt Arial; color: #000000;&quot;&gt;T +91 9925241444 | +91 0261 2240904 |&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;font: 8pt Arial; color: #000000;&quot;&gt;E &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nachiket.Patel@...&lt;/a&gt; | &amp;#160;&lt;a href=&quot;http://www.essar.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.essar.com&lt;/a&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
	&lt;img src=&quot;http://old.nabble.com/attachment/26368287/0/1ca667c_fa39ef5e__img_1.jpg&quot; border=&quot;0&quot; align=&quot;bottom&quot; /&gt;&lt;/p&gt;
&lt;/data&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;P&gt;&lt;FONT face=Webdings color=green size=6&gt;P&lt;/FONT&gt;&lt;FONT face=Arial color=green size=3&gt;&lt;b&gt; Please don't print this e-mail unless you really need to.&lt;/b&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;hr&gt;&lt;FONT face=Arial color=red size=2&gt;Disclaimer:&lt;/font&gt;&lt;br&gt;&lt;font face=arial size=1&gt;The information contained in this electronic message and in any attachments to this message is confidential, legally privileged and intended only for the person or entity to which this electronic message is addressed. If you are not the intended recipient, please notify the system manager and you are hereby notified that any distribution, copying, review, retransmission, dissemination or other use of this electronic transmission or the information contained in it is strictly prohibited. Please accordingly also note that any views or opinions presented in this email are solely those of the author and may not represent those of the Company or bind the Company. This message has been scanned for viruses and dangerous content by Mail Scanner, and is believed to be clean. The Company accepts no liability for any damage caused by any virus transmitted by this email. &lt;a href='www.essar.com' target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.essar.com&lt;/a&gt; &lt;a href='www.essar.com' target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt; &lt; http://www.essar.com/ &gt; &lt;/a&gt;.&lt;/font&gt;&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368287&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Require-suggestion-for-given-problem.-tp26368287p26368287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26358382</id>
	<title>Re: Chromosomes with varient number of genes</title>
	<published>2009-11-14T05:50:44Z</published>
	<updated>2009-11-14T05:50:44Z</updated>
	<author>
		<name>andycrack</name>
	</author>
	<content type="html">Hi Sajith
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;From my experience with JGAP I think you have to do is
&lt;br&gt;create a String Gene, because in this class you can set a minimal and
&lt;br&gt;maximal Length of the string, maybe if you use a random generator of
&lt;br&gt;integers also include in this library you can simulate diferent
&lt;br&gt;chromosomes with genes dynamically.
&lt;br&gt;&lt;br&gt;I hope this is a good answer for you
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;&lt;br&gt;Christian
&lt;br&gt;&lt;br&gt;On 11/14/09, Sajith Vimukthi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26358382&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sajith.vim@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am very new to GA and JGAP. Indeed I want to select an optimal set if
&lt;br&gt;&amp;gt; words out of a huge text. For that I though of using a GA. When I thought
&lt;br&gt;&amp;gt; about that in the context of GA, I felt that there should be some ability
&lt;br&gt;&amp;gt; where I should be able to define the number of genes in a chromosome
&lt;br&gt;&amp;gt; dynamically. Is it possible with GA? Does JGAP support that?
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Sajith Vimukthi Weerakoon,
&lt;br&gt;&amp;gt; T .P No : ++94-716102392
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26358382&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chromosomes-with-varient-number-of-genes-tp26349456p26358382.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26349458</id>
	<title>Question about Genetic engine</title>
	<published>2009-11-14T01:57:37Z</published>
	<updated>2009-11-14T01:57:37Z</updated>
	<author>
		<name>Krzysztof Chmielewski</name>
	</author>
	<content type="html">Hi, my name is Krzysztof Chmielewski. First I would like to thank You 
&lt;br&gt;for doing great Job, JGAP is something very, very helpful. For last few 
&lt;br&gt;months I’m working on school project where my task is to find optimal 
&lt;br&gt;resource allocation in telecommunication network, and I want to use 
&lt;br&gt;Genetic Algorithms. But I have some questions about Your GP Engine.
&lt;br&gt;&lt;br&gt;I Would like to know what are the values of most important parameters, 
&lt;br&gt;like probability of reproduction, crossover, mutation, and can I change 
&lt;br&gt;them. Then, after the reproduction, does GP engine use only new 
&lt;br&gt;chromosomes to compare with fitness function or does it use parents and 
&lt;br&gt;children? And if the chromosome fits better to fitness function, would 
&lt;br&gt;it make any influence on the probability of choosing this chromosome to 
&lt;br&gt;reproduce, and if yes then how, what is the formula? Is there any 
&lt;br&gt;documentation for this?
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;&lt;br&gt;Krzysztof Chmielewski
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26349458&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-about-Genetic-engine-tp26349458p26349458.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26349456</id>
	<title>Chromosomes with varient number of genes</title>
	<published>2009-11-13T22:03:10Z</published>
	<updated>2009-11-13T22:03:10Z</updated>
	<author>
		<name>Sajith Vimukthi</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I am very new to GA and JGAP. Indeed I want to select an optimal set if words out of a huge text. For that I though of using a GA. When I thought about that in the context of GA, I felt that there should be some ability where I should be able to define the number of genes in a chromosome dynamically. Is it possible with GA? Does JGAP support that?&lt;br&gt;
-- &lt;br&gt;Thanks,&lt;br&gt;Regards,&lt;br&gt;Sajith Vimukthi Weerakoon,&lt;br&gt;T .P No : ++94-716102392&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26349456&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Chromosomes-with-varient-number-of-genes-tp26349456p26349456.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26123612</id>
	<title>explicit reduction of population size on each generation</title>
	<published>2009-10-29T18:18:37Z</published>
	<updated>2009-10-29T18:18:37Z</updated>
	<author>
		<name>Jonathan Shore</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I want to be able to explicitly control my population size with each generation. &amp;nbsp; I will be starting with a large population and reducing at some rate. &amp;nbsp; I am unclear on how to do this. &amp;nbsp; I tried the following:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static Genotype reduce (Genotype genotype, int nsize)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;IChromosome&amp;gt; chromosomes = genotype.getFittestChromosomes (nsize);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Configuration gaconfig = genotype.getConfiguration ();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gaconfig.reset();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gaconfig.setPopulationSize (nsize);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Population population = new Population (gaconfig, (IChromosome[])chromosomes.toArray ());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return new Genotype (gaconfig, population);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (InvalidConfigurationException e)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { throw new RuntimeException (&amp;quot;failed to configure GA&amp;quot;, e); }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;However JGAP does not allow the configuration to be modified after it has been in use. &amp;nbsp; What is the best approach here?
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;Jonathan Shore
&lt;br&gt;Systematic Trading Group&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/explicit-reduction-of-population-size-on-each-generation-tp26123612p26123612.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26123571</id>
	<title>checkpointing JGAP</title>
	<published>2009-10-29T18:14:14Z</published>
	<updated>2009-10-29T18:14:14Z</updated>
	<author>
		<name>Jonathan Shore</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have a long running calibration using JGAP. &amp;nbsp; I have on occassion had faults with hardware or power, and/or would like to stop a run and be able to restart at the last &amp;quot;checkpoint&amp;quot;.
&lt;br&gt;&lt;br&gt;I note that JGAP supports various forms of serialization for classes. &amp;nbsp; As it stands is it possible for me to save the state of JGAP (ie the chromosomes and configuration) such that I can restart JGAP at the start of generation &amp;quot;i&amp;quot;. &amp;nbsp; I would be saving checkpoints of the state at the end of each generation.
&lt;br&gt;&lt;br&gt;Of course I would restore my own state. &amp;nbsp; Just want to know the approach needed with JGAP to saftely restore state.
&lt;br&gt;&lt;br&gt;regards
&lt;br&gt;&lt;br&gt;Jonathan Shore
&lt;br&gt;Systematic Trading Group&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/checkpointing-JGAP-tp26123571p26123571.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26090855</id>
	<title>Genotype.randomInitialGenotype() does not clone the sample chromosome application data</title>
	<published>2009-10-27T15:13:29Z</published>
	<updated>2009-10-27T15:13:29Z</updated>
	<author>
		<name>Andriy Palamarchuk</name>
	</author>
	<content type="html">I expected the app data from the sample chromosome to be copied whenever the new chromosomes are generated from the sample one. 
&lt;br&gt;Is this a valid expectation?
&lt;br&gt;&lt;br&gt;&lt;br&gt;I tracked this down to Chromosome.randomInitialChromosome(Configuration). It creates a new chromosome with new Chromosome(a_configuration, newGenes). Would it be better to clone the chromosome and then set the new genes and configuration?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Andriy
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26090855&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Genotype.randomInitialGenotype%28%29-does-not-clone-the-sample-chromosome-application-data-tp26090855p26090855.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26075453</id>
	<title>Problem generating population</title>
	<published>2009-10-26T09:48:50Z</published>
	<updated>2009-10-26T09:48:50Z</updated>
	<author>
		<name>Bruno Fernández</name>
	</author>
	<content type="html">Hello. I'm using genetic programming with jgap and I have a problem while generating the initial population. I have a type which is output of only one function but it's input of many of them and there are no terminals of this type. The problem is, when I try to generate the initial population with &amp;quot;GPGenotype.randomInitialGenotype&amp;quot;, it can't find suitable nets and clone only a few. As a result, I have no enough variability.
&lt;br&gt;&lt;br&gt;The problem seems to be that it can't close the net if one node with the problematic type as an input appears in the (maxInitDepth-1) level. The bigger the maxInitDepth constant is, the bigger is the time it takes to generate the population and with worst results.
&lt;br&gt;&lt;br&gt;Is there any posibility to make laxer the condition so, if this situation happens, it will try to close the branch as soon as possible even if it breaks the max depth restriction? Any other solution will be welcome too.
&lt;br&gt;&lt;br&gt;Thank you very much.
&lt;br&gt;&lt;br&gt;Sorry if my english is not good enough, I hope the message were understandable.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075453&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-generating-population-tp26075453p26075453.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25988869</id>
	<title>Re: GP grid examples</title>
	<published>2009-10-21T02:02:55Z</published>
	<updated>2009-10-21T02:02:55Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Simone,
&lt;br&gt;&lt;br&gt;in the JGAP installation directory there are three batch (.bat) files
&lt;br&gt;related to the grid functionality.
&lt;br&gt;&lt;br&gt;However, this example is only for GA and not for GP, as you already pointed
&lt;br&gt;out.
&lt;br&gt;&lt;br&gt;I will add some batch files to the next release that show how to use GP in a
&lt;br&gt;grid.
&lt;br&gt;Basically, the class JGAPClientGP has to be used together with a
&lt;br&gt;configuration like examples.grid.mathProblemDistributed.GridConfiguration.
&lt;br&gt;&lt;br&gt;If I can manage, I will send some example batch files before the next
&lt;br&gt;release.
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;www.klaus-meffert.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Simone Bronzin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988869&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simone.bronzin@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Tuesday, October 20, 2009 5:38 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988869&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [jgap-users] GP grid examples
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there any working example for using the grid feature in a 
&lt;br&gt;&amp;gt; gp context? I see specific packages for the gp case, but no examples.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; TIA
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simone Bronzin
&lt;br&gt;&amp;gt; Unitary
&lt;br&gt;&amp;gt; Executive
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mobile: +39.3939459672
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference in 
&lt;br&gt;&amp;gt; SF, CA is the only developer event you need to attend this 
&lt;br&gt;&amp;gt; year. Jumpstart your developing skills, take BlackBerry 
&lt;br&gt;&amp;gt; mobile applications to market and stay ahead of the curve. 
&lt;br&gt;&amp;gt; Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988869&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988869&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GP-grid-examples-tp25988590p25988869.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25988590</id>
	<title>GP grid examples</title>
	<published>2009-10-20T08:37:55Z</published>
	<updated>2009-10-20T08:37:55Z</updated>
	<author>
		<name>Simone Bronzin</name>
	</author>
	<content type="html">&lt;br&gt;Is there any working example for using the grid feature in a gp &amp;nbsp;
&lt;br&gt;context? I see specific packages for the gp case, but no examples.
&lt;br&gt;&lt;br&gt;TIA
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Simone Bronzin
&lt;br&gt;Unitary
&lt;br&gt;Executive
&lt;br&gt;&lt;br&gt;mobile: +39.3939459672
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988590&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GP-grid-examples-tp25988590p25988590.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25891639</id>
	<title>Re: Population generation and verbose level doubts</title>
	<published>2009-10-14T06:59:18Z</published>
	<updated>2009-10-14T06:59:18Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18812&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Hello Rodrigo,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;egarding 1):&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;This is an issue with random program generation. In case no 
program can be evolved randomly, that sticks to the syntax of the GP commands 
and terminals, this message is returned.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Regarding 2)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;You can use the log4j.properties file. Open the file and set 
the log level to DEBUG (instead of INFO, see 
log4.rootCategory).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Besides, you can add logging to the code. In case you need 
something special that could be of common interest, please tell me, maybe we can 
integrate into the JGAP core.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=045555413-14102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Best&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=045555413-14102009&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=045555413-14102009&gt;&lt;/SPAN&gt;&lt;FONT size=2 face=&quot;Courier New&quot;&gt;Klaus&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2 face=&quot;Courier New&quot;&gt;&lt;A href=&quot;http://www.klaus-meffert.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.klaus-meffert.com&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Rodrigo Tripodi 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25891639&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rtripodi@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Wednesday, September 30, 2009 
  2:38 PM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25891639&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
  [jgap-users] Population generation and verbose level 
  doubts&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Hi!&lt;BR&gt;&lt;BR&gt;I'm using jgap for my mater's project. It's a math 
  problem and I've some doubts.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;1) When I get the warning &quot;WARN 
  GPPopulation - Prototype program reused because random program did not satisfy 
  constraints&quot; what does it mean? If the size of my population is, for example, 
  10 and I get 10 warnings like that it means that all the generated individuals 
  are equal? How could I know which program is this prototype one?&lt;BR clear=all&gt;&lt;BR&gt;2) How can I set the maximum verbose level for 
  jgap?&lt;BR&gt;&lt;BR&gt;thanks in advance.&lt;BR&gt;&lt;BR&gt;best,&lt;BR&gt;&lt;BR&gt;-- &lt;BR&gt;Rodrigo 
  Tripodi&lt;BR&gt;UNICAMP - BRAZIL&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25891639&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Population-generation-and-verbose-level-doubts-tp25694902p25891639.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25872585</id>
	<title>Re: Problem with Custom Quarter Gene</title>
	<published>2009-10-13T05:32:03Z</published>
	<updated>2009-10-13T05:32:03Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=iso-8859-1&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18812&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Christian,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;the code sample in the documentation was outdated. I updated 
it. Please try again.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;In case of further issues please don't hesitate coming back 
again.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Thanx for your feedback and best&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Klaus&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=673273012-13102009&gt;&lt;/SPAN&gt;&lt;FONT size=2 face=&quot;Courier New&quot;&gt;&lt;A href=&quot;http://www.klaus-meffert.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.klaus-meffert.com&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Christian Avendaño 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25872585&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andycrack@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Tuesday, October 13, 2009 4:07 
  AM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25872585&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: 
  [jgap-users] Problem with Custom Quarter Gene&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV class=gmail_quote&gt;&lt;BR&gt;
  &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;Hi&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When i try to compile te 
    class Quarter Gene &lt;BR&gt;i have the following errors&lt;BR&gt;&lt;BR&gt;QuarterGene is not 
    abstract and does not override abstract method newGeneInternal() in 
    org.jgap.BaseGene Line 14&lt;BR&gt;cannot find symbol constructor BaseGene() Line 
    26&lt;BR&gt;cannot find symbol constructor BaseGene()&amp;nbsp; Line 42&lt;BR&gt;&lt;BR&gt;the 
    source code i taken from &lt;A href=&quot;http://jgap.sourceforge.net/doc/genes.html&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://jgap.sourceforge.net/doc/genes.html&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;If you 
    can help me it would be fantastic&lt;BR&gt;thanks a lot&lt;BR&gt;&lt;BR&gt;regards &lt;BR&gt;&lt;FONT color=#888888&gt;Christian&lt;BR&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25872585&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Problem-with-Custom-Quarter-Gene-tp25869844p25872585.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25869844</id>
	<title>Re: Problem with Custom Quarter Gene</title>
	<published>2009-10-12T19:07:16Z</published>
	<updated>2009-10-12T19:07:16Z</updated>
	<author>
		<name>andycrack</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi&lt;br&gt;     When i try to compile te class Quarter Gene &lt;br&gt;i have the following errors&lt;br&gt;
&lt;br&gt;QuarterGene is not abstract and does not override abstract method newGeneInternal() in org.jgap.BaseGene Line 14&lt;br&gt;cannot find symbol constructor BaseGene() Line 26&lt;br&gt;
cannot find symbol constructor BaseGene()  Line 42&lt;br&gt;&lt;br&gt;the source code i taken from &lt;a href=&quot;http://jgap.sourceforge.net/doc/genes.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://jgap.sourceforge.net/doc/genes.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;If you can help me it would be fantastic&lt;br&gt;

thanks a lot&lt;br&gt;&lt;br&gt;regards &lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Christian&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25869844&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Problem-with-Custom-Quarter-Gene-tp25869844p25869844.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25867561</id>
	<title>help : error DecoderException.java not found</title>
	<published>2009-10-12T10:16:23Z</published>
	<updated>2009-10-12T10:16:23Z</updated>
	<author>
		<name>Amel Hamdi</name>
	</author>
	<content type="html">hi all,
&lt;br&gt;&lt;br&gt;i'm new a user of JGAP, i want to execute the example
&lt;br&gt;multidimension.KnapsackMain and i found this error :
&lt;br&gt;&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError:
&lt;br&gt;org/apache/commons/codec/DecoderException
&lt;br&gt;&lt;br&gt;could any one help me,
&lt;br&gt;thanks in advance
&lt;br&gt;regards
&lt;br&gt;Amel
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-announce mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25867561&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-announce@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-announce&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-announce&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-announce-f3947.html&quot; embed=&quot;fixTarget[3947]&quot; target=&quot;_top&quot; &gt;jgap-announce&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-%3A-error-DecoderException.java-not-found-tp25867561p25867561.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25833683</id>
	<title>Re: Bulk fitness functions (again)</title>
	<published>2009-10-10T05:17:08Z</published>
	<updated>2009-10-10T05:17:08Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Christoph,
&lt;br&gt;&lt;br&gt;your thoughts sound logical. To be honest, I don't know how the position of
&lt;br&gt;the call to the bulk fitness function evolved.
&lt;br&gt;I changed the call sequence as you suggested. After some tests I will check
&lt;br&gt;in the changes to CVS.
&lt;br&gt;A new release of JGAP should appear within the next few weeks.
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;www.klaus-meffert.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Christoph Langguth [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25833683&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christoph.langguth@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Wednesday, October 07, 2009 8:28 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25833683&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [jgap-users] Bulk fitness functions (again)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm currently taking a look at JGAP to replace my 
&lt;br&gt;&amp;gt; &amp;quot;home-grown&amp;quot; GA mini-setup for a project I'm working on. So 
&lt;br&gt;&amp;gt; far, I like it a lot :-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, while investigating the bulk fitness functions, I 
&lt;br&gt;&amp;gt; ran into a problem - namely that essentially nothing evolves 
&lt;br&gt;&amp;gt; at all. Taking a closer look at the sources and browsing the 
&lt;br&gt;&amp;gt; latest archive, I ended up at this post:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/mailarchive/forum.php?thread_name=4ABD5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/mailarchive/forum.php?thread_name=4ABD5&lt;/a&gt;&lt;br&gt;&amp;gt; ED8.8090202%40lizanddavid.com&amp;forum_name=jgap-users
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I couldn't see or download the attachments from the post, but 
&lt;br&gt;&amp;gt; I think that my approach and conclusion are pretty much the 
&lt;br&gt;&amp;gt; same as the original author's:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why is the bulk fitness function applied *after* the selection?
&lt;br&gt;&amp;gt; In other words: determining the current fitness should be a 
&lt;br&gt;&amp;gt; prerequisite for the selection -- what good is it to know the 
&lt;br&gt;&amp;gt; theoretical fitness of an individual after it has been thrown 
&lt;br&gt;&amp;gt; out of the population, based on old facts? ;-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I simply took the stock GABreeder, put it into my own class 
&lt;br&gt;&amp;gt; and, inside the evolve() method, changed the order to be 
&lt;br&gt;&amp;gt; bulkFunction.evaluate(); updateChromosomes(); 
&lt;br&gt;&amp;gt; applyNaturalSelectors(); (that's around lines 115-130 of 
&lt;br&gt;&amp;gt; GABreeder.java).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Then things looked correct to me, whereas, as said above, 
&lt;br&gt;&amp;gt; with the original GABreeder, no evolution at all took place.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Could someone please comment on whether this is indeed a bug, 
&lt;br&gt;&amp;gt; or whether just a couple of people are misunderstanding the 
&lt;br&gt;&amp;gt; purpose of the BulkFitnessFunction?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Even browsing through the Javadoc and looking at things like 
&lt;br&gt;&amp;gt; BulkFitnessOffsetRemover, it seems like these classes are 
&lt;br&gt;&amp;gt; intended to be applied before the selection, aren't they?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks &amp; cheers
&lt;br&gt;&amp;gt; Chris
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25833683&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bulk-fitness-functions-%28again%29-tp25800198p25833683.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25800198</id>
	<title>Bulk fitness functions (again)</title>
	<published>2009-10-07T11:27:30Z</published>
	<updated>2009-10-07T11:27:30Z</updated>
	<author>
		<name>Christoph Langguth-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm currently taking a look at JGAP to replace my &amp;quot;home-grown&amp;quot; GA mini-setup for a project I'm 
&lt;br&gt;working on. So far, I like it a lot :-)
&lt;br&gt;&lt;br&gt;However, while investigating the bulk fitness functions, I ran into a problem - namely that 
&lt;br&gt;essentially nothing evolves at all. Taking a closer look at the sources and browsing the latest 
&lt;br&gt;archive, I ended up at this post:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/mailarchive/forum.php?thread_name=4ABD5ED8.8090202%40lizanddavid.com&amp;forum_name=jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/mailarchive/forum.php?thread_name=4ABD5ED8.8090202%40lizanddavid.com&amp;forum_name=jgap-users&lt;/a&gt;&lt;br&gt;&lt;br&gt;I couldn't see or download the attachments from the post, but I think that my approach and 
&lt;br&gt;conclusion are pretty much the same as the original author's:
&lt;br&gt;&lt;br&gt;Why is the bulk fitness function applied *after* the selection?
&lt;br&gt;In other words: determining the current fitness should be a prerequisite for the selection -- what 
&lt;br&gt;good is it to know the theoretical fitness of an individual after it has been thrown out of the 
&lt;br&gt;population, based on old facts? ;-)
&lt;br&gt;&lt;br&gt;I simply took the stock GABreeder, put it into my own class and, inside the evolve() method, changed 
&lt;br&gt;the order to be bulkFunction.evaluate(); updateChromosomes(); applyNaturalSelectors(); (that's 
&lt;br&gt;around lines 115-130 of GABreeder.java).
&lt;br&gt;&lt;br&gt;Then things looked correct to me, whereas, as said above, with the original GABreeder, no evolution 
&lt;br&gt;at all took place.
&lt;br&gt;&lt;br&gt;Could someone please comment on whether this is indeed a bug, or whether just a couple of people are 
&lt;br&gt;misunderstanding the purpose of the BulkFitnessFunction?
&lt;br&gt;&lt;br&gt;Even browsing through the Javadoc and looking at things like BulkFitnessOffsetRemover, it seems like 
&lt;br&gt;these classes are intended to be applied before the selection, aren't they?
&lt;br&gt;&lt;br&gt;Thanks &amp; cheers
&lt;br&gt;Chris
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25800198&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (9K) &lt;a href=&quot;http://old.nabble.com/attachment/25800198/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bulk-fitness-functions-%28again%29-tp25800198p25800198.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25694902</id>
	<title>Population generation and verbose level doubts</title>
	<published>2009-09-30T05:38:16Z</published>
	<updated>2009-09-30T05:38:16Z</updated>
	<author>
		<name>Rodrigo Tripodi</name>
	</author>
	<content type="html">Hi!&lt;br&gt;&lt;br&gt;I&amp;#39;m using jgap for my mater&amp;#39;s project. It&amp;#39;s a math problem and I&amp;#39;ve some doubts.&lt;br&gt;&lt;br&gt;&lt;br&gt;1) When I get the warning &amp;quot;WARN GPPopulation - Prototype program reused because random program did not satisfy constraints&amp;quot; what does it mean? If the size of my population is, for example, 10 and I get 10 warnings like that it means that all the generated individuals are equal? How could I know which program is this prototype one?&lt;br clear=&quot;all&quot;&gt;
&lt;br&gt;2) How can I set the maximum verbose level for jgap?&lt;br&gt;&lt;br&gt;thanks in advance.&lt;br&gt;&lt;br&gt;best,&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Rodrigo Tripodi&lt;br&gt;UNICAMP - BRAZIL&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25694902&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Population-generation-and-verbose-level-doubts-tp25694902p25694902.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25646231</id>
	<title>Re: Bug in CrossoverOperator with ICompositeGene</title>
	<published>2009-09-28T06:53:41Z</published>
	<updated>2009-09-28T06:53:41Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18812&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=564214713-28092009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Sebastien,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=564214713-28092009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=564214713-28092009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;you are right, I fixed the code according to your suggestion 
and checked it in to CVS.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=564214713-28092009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;In the future, a more sophisticated x-over could be 
used/provided for CompositeGenes: The second gene can be potentially any one 
with the same type as the already chosen gene.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=564214713-28092009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=564214713-28092009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Best&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV align=left&gt;
&lt;P align=left&gt;&lt;FONT size=2 face=&quot;Courier New&quot;&gt;Klaus&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2 face=&quot;Courier New&quot;&gt;&lt;A href=&quot;http://www.klaus-meffert.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.klaus-meffert.com&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; Sebastien Huet 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25646231&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sebhuet@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Monday, September 28, 2009 9:31 
  AM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25646231&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
  [jgap-users] Bug in CrossoverOperator with ICompositeGene&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR&gt;&lt;BR&gt;First thanks a lot for this incredible work.&lt;BR&gt;&lt;BR&gt;He 
  is the problem i faced.&lt;BR&gt;&lt;BR&gt;I have a composite gene made with integers 
  &amp;amp; booleans genes.&lt;BR&gt;my program crashes when crossoving ( can not cast 
  integer to boolean or boolean to integer).&lt;BR&gt;&lt;BR&gt;if think the bug comes from 
  CrossoverOperator.doCrossover:&lt;BR&gt;&lt;BR&gt;the random index over the gene is 
  generated two times and may choose two differents kind of gene.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;// 
  Make a distinction for ICompositeGene for the first 
  gene.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  ---------------------------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  if (firstGenes[j] instanceof ICompositeGene) 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Randomly determine gene to 
  be considered.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  -----------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;B&gt;&amp;nbsp;&amp;nbsp; 
  &lt;SPAN style=&quot;COLOR: rgb(255,0,0)&quot;&gt;int index1 = 
  generator.nextInt(firstGenes[j].size());&lt;/SPAN&gt;&lt;/B&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  gene1 = ( (ICompositeGene) 
  firstGenes[j]).geneAt(index1);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gene1 = 
  firstGenes[j];&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Make a distinction for the second gene 
  if CompositeGene.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  --------------------------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  if (secondGenes[j] instanceof ICompositeGene) 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Randomly determine gene to 
  be considered.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  -----------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;B&gt;&lt;SPAN style=&quot;COLOR: rgb(255,0,0)&quot;&gt;int index2 = 
  generator.nextInt(secondGenes[j].size());&lt;/SPAN&gt;&lt;/B&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  gene2 = ( (ICompositeGene) 
  secondGenes[j]).geneAt(index2);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gene2 = 
  secondGenes[j];&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;I think the code 
  should be:&lt;BR&gt;&lt;BR&gt;// Make a distinction for ICompositeGene for the first 
  gene.&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style=&quot;COLOR: rgb(51,255,51)&quot;&gt;&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(51,204,0)&quot;&gt;int 
  index = 0;&lt;/SPAN&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  ---------------------------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  if (firstGenes[j] instanceof ICompositeGene) 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  -----------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  // Randomly determine gene to be considered.&lt;BR&gt;&lt;SPAN style=&quot;COLOR: rgb(51,255,51)&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  &lt;B&gt;&lt;SPAN style=&quot;COLOR: rgb(51,204,0)&quot;&gt;index = 
  generator.nextInt(firstGenes[j].size()); //Assuming the two genes have the 
  same size&lt;/SPAN&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  gene1 = ( (ICompositeGene) 
  firstGenes[j]).geneAt(index);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gene1 = 
  firstGenes[j];&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Make a distinction for the second gene 
  if CompositeGene.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 
  --------------------------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  if (secondGenes[j] instanceof ICompositeGene) 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gene2 = ( (ICompositeGene) 
  secondGenes[j]).geneAt(index);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 
  {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gene2 = 
  secondGenes[j];&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
  }&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Regards.&lt;BR&gt;&lt;BR&gt;Seb&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25646231&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bug-in-CrossoverOperator-with-ICompositeGene-tp25642308p25646231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25642308</id>
	<title>Bug in CrossoverOperator with ICompositeGene</title>
	<published>2009-09-28T00:30:31Z</published>
	<updated>2009-09-28T00:30:31Z</updated>
	<author>
		<name>Sebastien Huet</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;First thanks a lot for this incredible work.&lt;br&gt;&lt;br&gt;He is the problem i faced.&lt;br&gt;&lt;br&gt;I have a composite gene made with integers &amp;amp; booleans genes.&lt;br&gt;my program crashes when crossoving ( can not cast integer to boolean or boolean to integer).&lt;br&gt;

&lt;br&gt;if think the bug comes from CrossoverOperator.doCrossover:&lt;br&gt;&lt;br&gt;the random index over the gene is generated two times and may choose two differents kind of gene.&lt;br&gt;&lt;br&gt;&lt;br&gt;// Make a distinction for ICompositeGene for the first gene.&lt;br&gt;

      // ---------------------------------------------------------&lt;br&gt;      if (firstGenes[j] instanceof ICompositeGene) {&lt;br&gt;        // Randomly determine gene to be considered.&lt;br&gt;        // -----------------------------------------&lt;br&gt;

     &lt;b&gt;   &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;int index1 = generator.nextInt(firstGenes[j].size());&lt;/span&gt;&lt;/b&gt;&lt;br&gt;        gene1 = ( (ICompositeGene) firstGenes[j]).geneAt(index1);&lt;br&gt;      }&lt;br&gt;      else {&lt;br&gt;        gene1 = firstGenes[j];&lt;br&gt;

      }&lt;br&gt;      // Make a distinction for the second gene if CompositeGene.&lt;br&gt;      // --------------------------------------------------------&lt;br&gt;      if (secondGenes[j] instanceof ICompositeGene) {&lt;br&gt;        // Randomly determine gene to be considered.&lt;br&gt;

        // -----------------------------------------&lt;br&gt;        &lt;b&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;int index2 = generator.nextInt(secondGenes[j].size());&lt;/span&gt;&lt;/b&gt;&lt;br&gt;        gene2 = ( (ICompositeGene) secondGenes[j]).geneAt(index2);&lt;br&gt;

      }&lt;br&gt;      else {&lt;br&gt;        gene2 = secondGenes[j];&lt;br&gt;      }&lt;br&gt;&lt;br&gt;I think the code should be:&lt;br&gt;&lt;br&gt;// Make a distinction for ICompositeGene for the first gene.&lt;br&gt;&lt;br&gt;     
&lt;span style=&quot;color: rgb(51, 255, 51);&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;int index = 0;&lt;/span&gt;&lt;br&gt;      // ---------------------------------------------------------&lt;br&gt;
      if (firstGenes[j] instanceof ICompositeGene) {&lt;br&gt;
        // -----------------------------------------&lt;br&gt;        // Randomly determine gene to be considered.&lt;br&gt;


&lt;span style=&quot;color: rgb(51, 255, 51);&quot;&gt;        &lt;b&gt;&lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;index = generator.nextInt(firstGenes[j].size()); //Assuming the two genes have the same size&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br&gt;
        gene1 = ( (ICompositeGene) firstGenes[j]).geneAt(index);&lt;br&gt;
      }&lt;br&gt;
      else {&lt;br&gt;
        gene1 = firstGenes[j];&lt;br&gt;
      }&lt;br&gt;
      // Make a distinction for the second gene if CompositeGene.&lt;br&gt;
      // --------------------------------------------------------&lt;br&gt;
      if (secondGenes[j] instanceof ICompositeGene) {&lt;br&gt;
        gene2 = ( (ICompositeGene) secondGenes[j]).geneAt(index);&lt;br&gt;
      }&lt;br&gt;
      else {&lt;br&gt;
        gene2 = secondGenes[j];&lt;br&gt;
      }&lt;br&gt;
&lt;br&gt;&lt;br&gt;Regards.&lt;br&gt;&lt;br&gt;Seb&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25642308&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bug-in-CrossoverOperator-with-ICompositeGene-tp25642308p25642308.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25624864</id>
	<title>Problems using the bulk fitness function facility</title>
	<published>2009-09-25T17:22:48Z</published>
	<updated>2009-09-25T17:22:48Z</updated>
	<author>
		<name>David Kemp-4</name>
	</author>
	<content type="html">For my particular problem, I need access to the whole population before 
&lt;br&gt;I can determine the fitness of an individual, and so I thought that the 
&lt;br&gt;easiest approach would be to implement a BulkFitnessFunction. &amp;nbsp;I had 
&lt;br&gt;trouble getting it working, did some debugging, and decided that either 
&lt;br&gt;I have misunderstood the intention behind BulkFitnessFunction, or there 
&lt;br&gt;is a bug in GABreeder.
&lt;br&gt;&lt;br&gt;After a quick search of this users mailing list, I saw that I am not the 
&lt;br&gt;only one (See: Mike Lechner &amp;lt;mike.lechner@gm...&amp;gt;, July 22, 2009, 
&lt;br&gt;BulkFitFn doesn't mutate or breed?). &amp;nbsp;This thread did not seem to come 
&lt;br&gt;to a resolution.
&lt;br&gt;&lt;br&gt;Attached is the simpest example that I could think of. &amp;nbsp;So simple that 
&lt;br&gt;it does not actually need &amp;nbsp;to use a bulk fitness function, but it shows 
&lt;br&gt;the problem. &amp;nbsp;The population consists of two individuals, with one 
&lt;br&gt;integer gene each, and a bulk fitness function that simply uses the 
&lt;br&gt;value of the gene as its fitness value. If you run it as it is, the two 
&lt;br&gt;individuals at the end of the 100 iterations are the same as the two you 
&lt;br&gt;start with.
&lt;br&gt;&lt;br&gt;If you uncomment the line where I set the breeder to be my breeder then, 
&lt;br&gt;unless you are really unlucky, at least one of the individuals should 
&lt;br&gt;have been replaced with a &amp;quot;fitter&amp;quot; one at some stage during the 100 
&lt;br&gt;iterations.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;David Kemp
&lt;br&gt;&lt;br&gt;&lt;br /&gt;package kemp.jgapexample;
&lt;br&gt;&lt;br&gt;import java.util.List;
&lt;br&gt;&lt;br&gt;import org.jgap.BulkFitnessFunction;
&lt;br&gt;import org.jgap.Chromosome;
&lt;br&gt;import org.jgap.Configuration;
&lt;br&gt;import org.jgap.Gene;
&lt;br&gt;import org.jgap.Genotype;
&lt;br&gt;import org.jgap.IChromosome;
&lt;br&gt;import org.jgap.Population;
&lt;br&gt;import org.jgap.impl.DefaultConfiguration;
&lt;br&gt;import org.jgap.impl.GABreeder;
&lt;br&gt;import org.jgap.impl.IntegerGene;
&lt;br&gt;&lt;br&gt;public class ExampleWithBulkFitnessFunction {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Configuration conf = new DefaultConfiguration();
&lt;br&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conf.setBreeder(new MyBreeder());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conf.setBulkFitnessFunction(new MyFitnessFunction());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conf.setPopulationSize(2);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conf.setSampleChromosome(new Chromosome(conf, new Gene[] {new IntegerGene(conf, 0, 1000)}));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Genotype population = Genotype.randomInitialGenotype(conf);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evolve(population);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; private static void evolve(Genotype population) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 100; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; population.evolve();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;IChromosome&amp;gt; chromosomes = population.getPopulation().getChromosomes();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(String.format(&amp;quot;%s, %s&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chromosomes.get(0).getGenes()[0].getAllele(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chromosomes.get(1).getGenes()[0].getAllele()));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; private static class MyFitnessFunction extends BulkFitnessFunction {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Override
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void evaluate(Population population) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;IChromosome&amp;gt; chromosomes = population.getChromosomes();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (IChromosome chromosome : chromosomes) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chromosome.setFitnessValue((Integer) ((IntegerGene) chromosome.getGenes()[0]).getAllele());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; private static class MyBreeder extends GABreeder {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @Override
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected void updateChromosomes(Population a_pop, Configuration a_conf) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int currentPopSize = a_pop.size();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Ensure all chromosomes are updated.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // -----------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BulkFitnessFunction bulkFunction = a_conf.getBulkFitnessFunction();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boolean bulkFitFunc = (bulkFunction != null);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (bulkFitFunc) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bulkFunction.evaluate(a_pop);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; currentPopSize; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IChromosome chrom = a_pop.getChromosome(i);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chrom.getFitnessValue();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25624864&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-using-the-bulk-fitness-function-facility-tp25624864p25624864.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25503354</id>
	<title>MathProblem - Multiple X (input) values?</title>
	<published>2009-09-17T22:37:35Z</published>
	<updated>2009-09-17T22:37:35Z</updated>
	<author>
		<name>mattpearson</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm working with the MathProblem example, but I can't figure out how to have several input variables -- for example instead of just &amp;quot;X&amp;quot;, have two variables X1, X2 such that Y = X1 * X2. I added the variable vx2 to the nodeSets but when I print out the optimal solution, it just contains &amp;quot;X1&amp;quot; and not &amp;quot;X2&amp;quot;. Please advise.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; CommandGene[][] nodeSets = { {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // We use a variable that can be set in the fitness function.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // ----------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	vx1 = Variable.create(conf, &amp;quot;X1&amp;quot;, CommandGene.FloatClass),
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	vx2 = Variable.create(conf, &amp;quot;X2&amp;quot;, CommandGene.FloatClass),
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	....
&lt;br&gt;&lt;br&gt;Thank you!!&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MathProblem---Multiple-X-%28input%29-values--tp25503354p25503354.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25455685</id>
	<title>Re: marshalling GPPopulation</title>
	<published>2009-09-15T08:01:22Z</published>
	<updated>2009-09-15T08:01:22Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Simone,
&lt;br&gt;&lt;br&gt;the main cause is that either result is null or the GP configuration of
&lt;br&gt;result. Please ensure that result is not null when writing to a file.
&lt;br&gt;I would also suggest to not append to the file in this case.
&lt;br&gt;&lt;br&gt;Normally, you should not marhal the GP configuration as it could become
&lt;br&gt;quite lengthy as XML, maybe a circular reference could occur. Better would
&lt;br&gt;be rebuilding the GP config. After unmarshalling a GPProgram and setting the
&lt;br&gt;config. to it.
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;www.klaus-meffert.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Simone Bronzin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simone.bronzin@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Tuesday, September 15, 2009 11:55 AM
&lt;br&gt;&amp;gt; To: Klaus Meffert
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [jgap-users] marshalling GPPopulation
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Klaus,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thank you for your reply. I got an error. Running this
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XStream xstream = new XStream();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PrintWriter outFile = new PrintWriter(new 
&lt;br&gt;&amp;gt; FileOutputStream(&amp;quot;gpprogram.xml&amp;quot;, true));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String xml = xstream.toXML(gp.getAllTimeBest());
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; outFile.print(xml);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; outFile.close();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; File f = new File(&amp;quot;gpprogram.xml&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InputStream oi = new FileInputStream(f);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPProgram result = (GPProgram) xstream.fromXML(oi);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double gpFitness = fitness.evaluate(gp);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a NullPointerException is raised at the line
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; protected double evaluate(final IGPProgram gpProgram) { ...
&lt;br&gt;&amp;gt; gpProgram.getGPConfiguration().clearMemory(); // HERE ...
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; it seems that GPConfiguration.m_memory is not correctly set 
&lt;br&gt;&amp;gt; by the unmarshaling process, and remains null. Before diving 
&lt;br&gt;&amp;gt; into xstream documentation I was wondering if I missed something.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simone
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Def. Quota Klaus Meffert &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Simone,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; You could use Xstream, which is includes with JGAP. E.g.:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; //To read an object from file
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; XStream xstream = new XStream();
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; File f = new File(a_filename);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; InputStream oi = new FileInputStream(f);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPGenotype result = (GPGenotype) xstream.fromXML(oi);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; // To write, use xstream.toXML
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Or use xstream.marshal(..) and xstream.unmarshal --&amp;gt; also see 
&lt;br&gt;&amp;gt; &amp;gt; Internet-documentation
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Best
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Klaus
&lt;br&gt;&amp;gt; &amp;gt; www.klaus-meffert.com
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; From: Simone Bronzin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simone.bronzin@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sent: Friday, September 11, 2009 11:30 AM
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Subject: [jgap-users] marshalling GPPopulation
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Is there any easy way to marshal and unmarshal a GPPopulation?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; thank you,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Simone Bronzin
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Unitary
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Executive
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mobile: +39.3939459672
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal 
&lt;br&gt;&amp;gt; Reports 2008 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 30-Day trial. Simplify your report design, integration and 
&lt;br&gt;&amp;gt; deployment 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; - and focus on what you do best, core application coding. Discover 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; what's new with Crystal Reports now. &amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simone Bronzin
&lt;br&gt;&amp;gt; Unitary
&lt;br&gt;&amp;gt; Executive
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mobile: +39.3939459672
&lt;br&gt;&amp;gt; phone: +39.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25455685&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/marshalling-GPPopulation-tp25414075p25455685.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25414765</id>
	<title>Re: marshalling GPPopulation</title>
	<published>2009-09-12T06:37:25Z</published>
	<updated>2009-09-12T06:37:25Z</updated>
	<author>
		<name>Klaus Meffert-5</name>
	</author>
	<content type="html">Simone,
&lt;br&gt;&lt;br&gt;You could use Xstream, which is includes with JGAP. E.g.:
&lt;br&gt;&lt;br&gt;//To read an object from file
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; XStream xstream = new XStream();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; File f = new File(a_filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; InputStream oi = new FileInputStream(f);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; GPGenotype result = (GPGenotype) xstream.fromXML(oi);
&lt;br&gt;&lt;br&gt;// To write, use xstream.toXML
&lt;br&gt;&lt;br&gt;Or use xstream.marshal(..) and xstream.unmarshal --&amp;gt; also see
&lt;br&gt;Internet-documentation
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&lt;br&gt;Klaus
&lt;br&gt;www.klaus-meffert.com
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Simone Bronzin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25414765&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simone.bronzin@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Friday, September 11, 2009 11:30 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25414765&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [jgap-users] marshalling GPPopulation
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there any easy way to marshal and unmarshal a GPPopulation?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thank you,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simone Bronzin
&lt;br&gt;&amp;gt; Unitary
&lt;br&gt;&amp;gt; Executive
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mobile: +39.3939459672
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt; ----------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal 
&lt;br&gt;&amp;gt; Reports 2008 30-Day trial. Simplify your report design, 
&lt;br&gt;&amp;gt; integration and deployment - and focus on what you do best, 
&lt;br&gt;&amp;gt; core application coding. Discover what's new with Crystal 
&lt;br&gt;&amp;gt; Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; jgap-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25414765&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25414765&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/marshalling-GPPopulation-tp25414075p25414765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25414075</id>
	<title>marshalling GPPopulation</title>
	<published>2009-09-11T02:30:10Z</published>
	<updated>2009-09-11T02:30:10Z</updated>
	<author>
		<name>Simone Bronzin</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;Is there any easy way to marshal and unmarshal a GPPopulation?
&lt;br&gt;&lt;br&gt;thank you,
&lt;br&gt;&lt;br&gt;Simone Bronzin
&lt;br&gt;Unitary
&lt;br&gt;Executive
&lt;br&gt;&lt;br&gt;mobile: +39.3939459672
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jgap-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25414075&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jgap-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jgap-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jgap-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/jgap-users-f3949.html&quot; embed=&quot;fixTarget[3949]&quot; target=&quot;_top&quot; &gt;jgap-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/marshalling-GPPopulation-tp25414075p25414075.html" />
</entry>

</feed>
