commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1074) Refactor fixed size chromosomes
Date Mon, 09 Dec 2013 16:16:08 GMT

    [ https://issues.apache.org/jira/browse/MATH-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843274#comment-13843274
] 

Gilles commented on MATH-1074:
------------------------------

The "problem" is that the crossover (and mutation) operators need to know the underlying data
structure.
Even if "Chromosome" is made generic (the generic type would define the "gene" type) and an
accessor method is added to the API in order to access a single gene by index, that would
still not allow primitive types as the underlying structure...

> Refactor fixed size chromosomes
> -------------------------------
>
>                 Key: MATH-1074
>                 URL: https://issues.apache.org/jira/browse/MATH-1074
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Thomas Neidhart
>
> Currently, only chromosomes derived from AbstractListChromosome can be used for most
of the crossover policies. This is quite inconvenient to use, especially when working with
primitive types.
> Need to think about ways to refactor this for better support of other datatypes, e.g.
CharSequence or primitive arrays.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message