Re: [Jprogramming] deoptim and lbfgs minimization

2013-02-21 Thread Scott Locklin
For what it is worth, lbfgs works on linux. I stuck it on github, along with fortran source and Makefile in case it helps others. https://github.com/locklin/j-lbfgs I also took the liberty of using the same code to do the box constrained version of the algorithm. The example is no good, and I t

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-26 Thread bill lam
I guess you need not known the meaning of LASTIN because it is just an arbitary global noun for holding the last input arguments. Lapack does not work in linux64 becuase the lapack.so in that addons is 32-bit only. Срд, 26 Сен 2012, slocklin писал(а): > > I'm pretty familiar with lbfgs and lbfgs

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-26 Thread slocklin
I'm pretty familiar with lbfgs and lbfgsb and wouldn't mind having a crack at this. It looks straightforward to do, but I am stumped as to what LASTIN means. The only other place where this word is mentioned is in Lapack, and those don't work on my 64 bit Linux machine. -Scott So you have moved

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-09 Thread Piet de Jong
Yes, I did move from J6 on Windows to J7 on Mac I browsed the links you sent. Linking J7 to lbfgs on a Mac looks a formidable task or at least a task requiring much expertise that I don't have. Maybe someone with such expertise can do this. I, for one, would be very grateful. Have also check

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-08 Thread Ric Sherlock
So you have moved from J6 on Windows to J7 on Mac? Looking at the manifest for math/lbfgs it has only been released for Windows and J6. http://www.jsoftware.com/wsvn/addons/trunk/math/lbfgs/manifest.ijs To get it working on Mac (or Linux) the .dylib or .so versions of the .dll will be required. I

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-08 Thread Ian Clark
No, *.dll files cannot be made to run on the Mac. That is -- not when it's running MacOS. (But yes -- it's actually possible to get the Mac running Windows using a product called BootCamp). The counterpart on the Mac to the dll is called a dylib. People who ship compatible Mac and Windows versions

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-08 Thread Piet de Jong
Thanks for your help. I got deoptim to work with my minimization problem. I run J7 on a Mac. Are *.dll files supported on a Mac? Know almost nothing about getting a ddl to work with J. Thanks again for your help. On Sat, Sep 8, 2012 at 7:19 AM, Ric Sherlock wrote: > On Sep 7, 2012 10:28 PM,

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Ric Sherlock
On Sep 7, 2012 10:28 PM, "Piet de Jong" wrote: > > Thanks for all the help. This has got me going just fine (at least for now) Good to hear. > lgbfgs used to work find for me under J6. So I miss it under J7. > Advantage was that it had derivatives and Hessians which are > important for likeli

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Piet de Jong
Thanks for all the help. This has got me going just fine (at least for now) Yes I understand my typo:+/@*: should have been +/@:*: Will try things - have an intensive minimization problem and want to see how things compare to "amoeba" which is (for my problem) slow and gets stuck in local a

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Ric Sherlock
By the way, if you use getDEoptim instead of deoptim the output is as a table with labels in the first column and maybe easier to interpret i.e. getDEoptim 'ssq_base_'; _3 3 On Fri, Sep 7, 2012 at 8:43 PM, Ric Sherlock wrote: > Yes Mike has got you going. If you haven't already I'd recommend >

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Ric Sherlock
Yes Mike has got you going. If you haven't already I'd recommend looking through the test script which I've fixed the link to on the wiki page for the addon. It has some simple examples there. http://www.jsoftware.com/jwiki/Addons/math/deoptim Glad to see that someone else has use for this. I su

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Mike Day
New to me but I've just had a look, in J602. As you said, there seem to be a number of issues: 1) your provided function needs to return a scalar result. (+/@*:) 2 3 4 9 (+/@:*:) 2 3 13 So ssq should be +/@:*: 2) The locale for deoptim starts as pdeoptim One way round appears to be to d

[Jprogramming] deoptim and lbfgs minimization

2012-09-06 Thread Piet de Jong
I 'm trying to use the "deoptim" math addon package. However can't figure it out.Tried the following trite example to understand how things work. NB. Minimize the sum of squares within the range _3 to 3 require 'math/deoptim' ssq=:+/@*: deoptim 'ssq';_3 3 This fails for a