Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B40A10003 for ; Mon, 9 Dec 2013 16:24:13 +0000 (UTC) Received: (qmail 65677 invoked by uid 500); 9 Dec 2013 16:24:09 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65602 invoked by uid 500); 9 Dec 2013 16:24:08 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 65579 invoked by uid 99); 9 Dec 2013 16:24:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 16:24:07 +0000 Date: Mon, 9 Dec 2013 16:24:07 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1074) Refactor fixed size chromosomes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843286#comment-13843286 ] Thomas Neidhart commented on MATH-1074: --------------------------------------- It depends. The Chromosome class could be similar to a CharSequence, which provides methods like length() and substring() to get parts of the sequence. The actual underlying data would be completely abstracted, thus avoiding to create a List which is quite inefficient, especially for large populations. I have not made up my mind, I was just working on some examples last weekend (will add another one hopefully tonight), and found the current API very cumbersome to use. Will need to experiment with more use-cases to see what is really useful. > 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)