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-1451) Infinite loop for CycleCrossover with duplicates
Date Tue, 13 Feb 2018 22:21:01 GMT

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

Gilles commented on MATH-1451:
------------------------------

Hello Gabriele.
Thanks for the report.
However, as you might have seen from recent activity on JIRA, or the "Commons" project "dev"
ML, the monolithic "Commons Math" library is being phased out in favour of smaller, more focused,
modular components:
* [Commons RNG|http://commons.apache.org/rng]
* [Commons Numbers|http://commons.apache.org/numbers]
* [Commons Statistics|http://commons.apache.org/proper/commons-statistics/]
* ...

Moreover, although being the last official release, v3.6.1 is obsolete because of the evolutions
(bug fixes and refactoring) that happened on the "master" branch (geared towards v4.0) during
the last 3 years.

This is to say that if you are a heavy user of the {{genetics}} package, and are able, and
willing, to maintain it, you are welcome to signal it on the "dev" ML. The ensuing discussion
would clarify whether a new "Commons Genetics" component would be acceptable to the project
leaders.

> Infinite loop for CycleCrossover with duplicates
> ------------------------------------------------
>
>                 Key: MATH-1451
>                 URL: https://issues.apache.org/jira/browse/MATH-1451
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: Home PC
>            Reporter: Gabriele Rossi
>            Priority: Major
>         Attachments: test-apache-math3.zip
>
>
> I've found an infinite loop when recombining two integers Chromosomes admitting duplicates
with CycleCrossover class.
> For example, recombining example Chromosomes it works fine, but, if you substitute all
"8" with "7", you run into an infinite loop while mating.
> I attach the self-contained unit test (JUnit) for a better comprehension (issue a mvn
clean install to run).
> I added a little quick patch to fix, which I'm happy to provide, even could be less efficient
than original.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message