2012-10-01から1ヶ月間の記事一覧
We can generate C code of an objective function by using Maple as with(linalg); F := ...; Ffunc := unapply(convert(convert(F, vector), list), PARAMETERS); CodeGeneration[C](Ffunc, optimize); I tried the following equation $latex \frac{p_0}…
For start-up projects, I need a non-linear optimization C++ library, especially Levenberg Marquardt algorithm. I found two candidates: levmar and Eigen::LevenbergMarquardt. In terms of examples, levmar provides good examples homest while E…
If you compile source code on command prompt with CMake and Visual Studio, you should specify some options as follows: cmake -G "NMake Makefiles" . nmake -G option specifies a makefile generator.
Same as a function rand(), functions Random() and setRandom() always generate same random values. Same as rand(), we can change seed of the random values by calling srand(). srand( (unsigned)time(NULL) ); // you need to include ctime or ti…
int dlevmar_der( void (func)(double p, double x, int m, int n, void adata), void (jacf)(double p, double j, int m, int n, void adata), double p, double x, int m, int n, int itmax, double opts[4], double info[LM_INFO_SZ], double work, doubl…
memo for compiling levmar 2.6 on windows with visual studio 2010. we need to modify the code a bit for compilation!!! .lib files CmakeLists.txt of levmar 2.6 assumes that you put all lapack related .lib files into one directory. In Cmake G…
Memo on how to install CLAPACK 3.2.1 on windows with visual studio 2010. There are several options to build CLAPACK. At the following website, you can check and download most suitable file for your system. URL: http://www.netlib.org/clapac…
WinMerge is the tool.
Kate is an editor for KDE environment. Even though I'm using Ubuntu, which is GNOME environment, Kate is the best editor I tried for these days. Kate has syntax highlight command auto complete window splitting embedded terminal embedded te…
SciTE seems to be a good choice. Setup the SciTE by following the manual: install SciTE using Synaptic Package Manager, apt-get, or compile from source. change Global settings Edit /usr/share/scite/SciTEGlobal.properties ( can edit on SciT…