fittness function for truth table

View: New views
2 Messages — Rating Filter:   Alert me  

fittness function for truth table

by Jonathan Chiu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
I am writing a program for generating roster according to the people skill sets.  The skill sets are kept as a truth table as one of the constraints to the solution.
My fitness function is defined simply like :
 
if truth value is true then
return 999
else
return 1;
 
The solution is unacceptable.  Highly appreciate your insight to get me out of this trap.
 
Thanks & Regards,
Jonathan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users

Re: fittness function for truth table

by Klaus Meffert-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jonathan,
 
either use integer or double values instead of boolean ones, or evaluate a set of boolean values and giver higher fitness for more matches within the set and lower fitness for less matches.
 
Best
 


From: jgap-users-bounces@... [mailto:jgap-users-bounces@...] On Behalf Of Jonathan Chiu
Sent: Tuesday, June 10, 2008 6:59 PM
To: jgap-users@...
Subject: [jgap-users] fittness function for truth table

Hi,
 
I am writing a program for generating roster according to the people skill sets.  The skill sets are kept as a truth table as one of the constraints to the solution.
My fitness function is defined simply like :
 
if truth value is true then
return 999
else
return 1;
 
The solution is unacceptable.  Highly appreciate your insight to get me out of this trap.
 
Thanks & Regards,
Jonathan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users
LightInTheBox - Buy quality products at wholesale price