GNOME Bugzilla – Bug 614865
Non linear solver
Last modified: 2010-05-23 01:28:05 UTC
There's an extension for OpenOffice.org, implementing two algorithms of non-liner solver: http://extensions.services.openoffice.org/project/NLPSolver You could borrow algorithm/parts of code from http://extensions.openoffice.org/source/browse/extensions/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/
*** Bug 517711 has been marked as a duplicate of this bug. ***
Just a note regarding "You could borrow algorithm/parts of code from" ... as stated above: The code referred to is licensed under LGPLv3. As far as I can tell it is not possible for us to incorporate it in Gnumeric which is GPLv2.
This would need a license change in both goffice and gnumeric.
In any case, the OOo code is java. So it would be "simpler" to find a reference to the algorithm and implement it from scratch.
And we can't use code from GSL either since it's GPL-v3+.
>In any case, the OOo code is java. What is the problem? Java syntax is very similar to C (you can't copy whole classes, but you could copy logic and change variable names) >The code referred to is licensed under LGPLv3. Since it's *L*GPL, you don't need to relicense *your* code, just use it as dynamic library
The issue IS the license. A GPL-v2 program can't use a LGPL-v3 library, even dynamically.
Proprietary can and GPL2 can't? I don't believe my eyes!
Also, why not to go GPLv3? it fixes some patent vulnerabilities of v2
I'd like to go to GPL-v3, but look comments in bug #463248
Oh, yes, I see: not GPL2 violates LGPL3, but vice versa
Sources of solver algorithms, written by Xiaofeng Xie are licensed under LGPL 2.1. You can find them here: http://extensions.openoffice.org/source/browse/extensions/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/ LGPL 3 covers only some stuff written by Sun, which is in nlpsolver/src. You really don't need anything from that part
I threw a non-linear solver together. I don't want to touch those license problems. This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.