Click here to Skip to main content
15,896,063 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: wacked out idea, unless its possible Pin
Marc Clifton10-Jun-03 3:36
mvaMarc Clifton10-Jun-03 3:36 
GeneralRe: wacked out idea, unless its possible Pin
Roger Wright12-Jun-03 22:51
professionalRoger Wright12-Jun-03 22:51 
GeneralRe: wacked out idea, unless its possible Pin
William Bartholomew30-Jun-03 0:19
William Bartholomew30-Jun-03 0:19 
QuestionHow to write a C++ template INT Class? Pin
EastDragon21-May-03 16:53
EastDragon21-May-03 16:53 
AnswerRe: How to write a C++ template INT Class? Pin
John M. Drescher27-May-03 5:38
John M. Drescher27-May-03 5:38 
Generalaudio chat server,five months hard work,good or bad Pin
ycjmail@21cn.com20-May-03 21:15
ycjmail@21cn.com20-May-03 21:15 
GeneralPellissippi State among first to teach cluster computing Pin
Alton10020-May-03 17:41
Alton10020-May-03 17:41 
GeneralRe: Pellissippi State among first to teach cluster computing Pin
Adam Beal21-May-03 12:23
Adam Beal21-May-03 12:23 
GeneralVB.Net NNTP Class Pin
William Bartholomew18-May-03 21:48
William Bartholomew18-May-03 21:48 
QuestionWhich section should I put this article in? Pin
Vikram A Punathambekar16-May-03 0:47
Vikram A Punathambekar16-May-03 0:47 
AnswerRe: Which section should I put this article in? Pin
Dominik Reichl20-May-03 0:58
Dominik Reichl20-May-03 0:58 
GeneralManaged Wrapper around Unmanaged Class Pin
Matt Philmon28-Apr-03 11:11
Matt Philmon28-Apr-03 11:11 
GeneralRe: Managed Wrapper around Unmanaged Class Pin
Nemanja Trifunovic28-Apr-03 11:41
Nemanja Trifunovic28-Apr-03 11:41 
GeneralSMS Messenger Pin
Asif Ali Aslam20-Apr-03 19:36
Asif Ali Aslam20-Apr-03 19:36 
GeneralRe: SMS Messenger Pin
Brian Delahunty30-Apr-03 9:43
Brian Delahunty30-Apr-03 9:43 
GeneralRe: SMS Messenger Pin
Robin Golden14-May-03 22:12
Robin Golden14-May-03 22:12 
GeneralRFC: A .NET evolutionary computing framework... Pin
Duncan Edwards Jones15-Apr-03 22:54
professionalDuncan Edwards Jones15-Apr-03 22:54 
GeneralRe: RFC: A .NET evolutionary computing framework... Pin
Nitron16-Apr-03 16:31
Nitron16-Apr-03 16:31 
GeneralRe: RFC: A .NET evolutionary computing framework... Pin
Duncan Edwards Jones17-Apr-03 0:26
professionalDuncan Edwards Jones17-Apr-03 0:26 
GeneralRe: RFC: A .NET evolutionary computing framework... Pin
Duncan Edwards Jones5-May-03 22:44
professionalDuncan Edwards Jones5-May-03 22:44 
Som,e outline code:-

<br />
Public MustInherit Class IEnvironment<br />
<br />
    Public MustOverride Function GetPopulation() As IPopulation<br />
<br />
End Class<br />
<br />
'\\ --[IGenome]----------------------------------------------------------------------------<br />
'\\  The genome defines the number of genes a member of a population has and their explicit <br />
'\\ locations. These locations have an explicit meaning in relation to the problem being <br />
'\\ tested by the environment and are not interchangeable<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public MustInherit Class IGenome<br />
    Inherits System.Collections.DictionaryBase<br />
<br />
    Public <br />
End Class<br />
<br />
<br />
'\\ --[Individuals]-------------------------------------------------------------------------<br />
'\\  A collection of IGenome based objects<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public Class Individuals<br />
    Inherits System.Collections.CollectionBase<br />
<br />
End Class<br />
#End Region<br />
<br />
'\\ --[IPopulation]------------------------------------------------------------------------<br />
'\\ The population represents a set of potential solutions to the problem. It can be <br />
'\\ created from a randomly generated, or seeded by a predefined set, of individuals.<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public MustInherit Class IPopulation<br />
    Inherits System.Collections.CollectionBase<br />
<br />
    Public MustOverride Function Breed(ByVal Parents As Individuals) As IGenome<br />
<br />
#Region "Public constructors"<br />
    Public Sub New()<br />
<br />
    End Sub<br />
<br />
    Public Sub New(ByVal Seedgroup As Individuals)<br />
<br />
    End Sub<br />
#End Region<br />
End Class<br />
'\\ --[IGene]-------------------------------------------------------------------------------<br />
'\\ The gene holds the current value for an individual variable that is used to compute the <br />
'\\ gene set's fitness to solve the environment's problem<br />
'\\ ----------------------------------------------------------------------------------------<br />
Public MustInherit Class IGene<br />
<br />
    Public MustOverride Property Name() As String<br />
<br />
    Public MustOverride Property Value() As Integer<br />
<br />
    Public MustOverride Property MinimumValue() As Integer<br />
<br />
    Public MustOverride Property MaximumValue() As Integer<br />
<br />
End Class<br />


However, I'm not sure that MinimumVale and MaximumValue should be specified by the IGene implementor or be a factor of the environment? I'd be happier with the latter as it seems to fit better with biological evolution but it isn't as easy to implement...thoughts?

'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
QuestionHow to make $$ out of .NET or webapps Pin
ColinDavies6-Apr-03 20:19
ColinDavies6-Apr-03 20:19 
AnswerRe: How to make $$ out of .NET or webapps Pin
Michael Dunn10-May-03 7:12
sitebuilderMichael Dunn10-May-03 7:12 
GeneralMy new article - Word addins Pin
Amit Dey29-Mar-03 21:42
Amit Dey29-Mar-03 21:42 
GeneralRe: My new article - Word addins Pin
Erik Thompson15-May-03 7:37
sitebuilderErik Thompson15-May-03 7:37 
GeneralRe: My new article - Word addins Pin
Amit Dey16-May-03 9:53
Amit Dey16-May-03 9:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.