JMinuit and optional error output.

JMinuit is very good library for minimum on given function. In Asterope it replaced in house build library, and it have way better result.

Only one problem is little bit annoying. Library have hard coded error output to System.err and it produces annoying messages in console while application is running. There is even bug report created two years ago. But library seems to be unmaintained.

So I sit down and fixed this problem. It replaces calls to System.err with an optional wrapper. To get rid off messages in console, just set static variable to null. Or you can supply your own PrintStream and redirect output to file.

       org.freehep.math.minuit.MnPrint.stdOut = null;
       org.freehep.math.minuit.MnPrint.errOut = null;

Here is zip file containing patch and jar. I will try to push this into trunk.

freehep-jminuit-optional-error-output.zip

 
blog comments powered by Disqus
blog/jminuit_optional_error_output.txt · Last modified: 2009/11/09 21:12 by jankotek
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki