commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-1451) Infinite loop for CycleCrossover with duplicates
Date Tue, 13 Feb 2018 22:21:01 GMT


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|]
* [Commons Numbers|]
* [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

> Infinite loop for CycleCrossover with duplicates
> ------------------------------------------------
>                 Key: MATH-1451
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: Home PC
>            Reporter: Gabriele Rossi
>            Priority: Major
>         Attachments:
> 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

View raw message