[
https://issues.apache.org/jira/browse/MATH-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18003638#comment-18003638
]
Gilles Sadowski commented on MATH-1394:
---------------------------------------
bq. include [...] test code that is GPLd [...] is this allowed?
No because all the source code must be covered by the ASF's license.
bq. [...] cleanroom reimplementation of [test code]?
If possible, yes.
An alternative would be to output the results of that reference code in some
"text" form, and use that in the CM's test code. See e.g. the [unit test for
"SimplexOptimizer"|https://commons.apache.org/proper/commons-math/commons-math4-legacy/xref-test/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizerTest.html#L91]
(the corresponding "text" files are in
["commons-math-legacy/src/test/resources"|https://github.com/apache/commons-math/tree/master/commons-math-legacy/src/test/resources/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv]).
> Implementation of DIRECT global optimizer
> -----------------------------------------
>
> Key: MATH-1394
> URL: https://issues.apache.org/jira/browse/MATH-1394
> Project: Commons Math
> Issue Type: New Feature
> Affects Versions: 3.5, 3.6
> Reporter: Kevin A. Burton
> Priority: Major
> Fix For: 4.X
>
> Attachments: DIRECT.png, GLOBAL.png
>
>
> An open source implementation of the DIRECT global optimizer, described by
> Jones, Perttunen and Stuckmann, implementing
> math3.optim.nonlinear.scalar.MultivariateOptimizer, is available as
> DIRECTOptimizer.java at
> https://github.com/edwardkort/WWIDesigner/tree/optimizer/WWIDesigner/src/main/com/wwidesigner/math.
> There are also three variants of the algorithm on that page:
> DIRECT_L_Optimizer implements DIRECT-L by Gablonsky and Kelley,
> DIRECT1Optimizer changes which sides are chosen for dividing, and
> DIRECTCOptimizer adds alternative ways to select potentially-optimal
> hyperrectangles.
> DIRECT is not as fast as BOBYQA, but is better at finding a global minimum in
> a field of many local minima.
> JUnit tests for all of these, using standard optimizer test functions, are
> available in
> https://github.com/edwardkort/WWIDesigner/tree/optimizer/WWIDesigner/src/test/com/wwidesigner/math.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)