Rank: 1845 based on 66 downloads (last 30 days) and 1 file submitted
photo

Peter Carbonetto

E-mail

Personal Profile:
Professional Interests:
computer science

 

Watch this Author's files

 

Files Posted by Peter
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 May 2007 MATLAB interface for L-BFGS-B Matlab interface to the L-BFGS-B nonlinear optimization algorithm Author: Peter Carbonetto optimization, interface, lbfgsb, fortran, nonlinear 66 11
  • 4.75
4.8 | 8 ratings
Comments and Ratings on Peter's Files View all
Updated File Comment by Comments Rating
13 Feb 2013 MATLAB interface for L-BFGS-B Matlab interface to the L-BFGS-B nonlinear optimization algorithm Author: Peter Carbonetto Wei, Xunkai

hi, win 7 64bit with intel fortran compiler and winSDK 7.1 C++ compiler,

When compile the c++ codes, all pass except matlabprogram.cpp

How to fix it ? thx

matlabprogram.cpp
matlabprogram.cpp(92) : warning C4800: 'mxArray *' : forcing value to bool 'true' or 'false' (performance warning)
matlabprogram.cpp(107) : warning C4800: 'mxArray *' : forcing value to bool 'true' or 'false' (performance warning)
matlabprogram.cpp(144) : error C2057: expected constant expression
matlabprogram.cpp(144) : error C2466: cannot allocate an array of constant size 0
matlabprogram.cpp(144) : error C2133: 'plhs' : unknown size
matlabprogram.cpp(168) : error C2057: expected constant expression
matlabprogram.cpp(168) : error C2466: cannot allocate an array of constant size 0
matlabprogram.cpp(168) : error C2133: 'plhs' : unknown size

12 Apr 2012 MATLAB interface for L-BFGS-B Matlab interface to the L-BFGS-B nonlinear optimization algorithm Author: Peter Carbonetto Le, Son

exampleldaimages missing a lot of auxiliary functions (e.g digamma, trigamma, sample, ....). I am using 7.13

01 Apr 2012 MATLAB interface for L-BFGS-B Matlab interface to the L-BFGS-B nonlinear optimization algorithm Author: Peter Carbonetto wf, genius

I successfully
compiled "lbfgs.mexw64".But whenever I run "examplehs038",the matlab shut down without any warnings. Who can you help me about this problem

Thanks

09 Mar 2012 MATLAB interface for L-BFGS-B Matlab interface to the L-BFGS-B nonlinear optimization algorithm Author: Peter Carbonetto wang, jian

I have successfully compiled the 32bit and 64bit version on Windows.
Some advice: It will be much easier if the compilers Microsoft Visual Studio and Intel Visual Fortran are used.
Thank Jorge Nocedal and Peter Carbonetto for making the L-BFGS-B available in matlab!

19 Sep 2011 MATLAB interface for L-BFGS-B Matlab interface to the L-BFGS-B nonlinear optimization algorithm Author: Peter Carbonetto Judit

I am installing the win32 platform following Guillaume JACQUENOT's steps and using MATLAB7. My computer has Windows 7.

In my case, I have to add
#include <iostream>
#include <cstring>
in matlabstring.cpp before to compile it
(mex -v -g -c -f mexopts.bat matlabstring.cpp).

I have successed on compile:
mex -v -g -c -f mexopts_fortran.bat solver.f
mex -v -g -c -f mexopts.bat arrayofmatrices.cpp
mex -v -g -c -f mexopts.bat lbfgsb.cpp
mex -v -g -c -f mexopts.bat matlabexception.cpp
mex -v -g -c -f mexopts.bat matlabmatrix.cpp
mex -v -g -c -f mexopts.bat matlabprogram.cpp
mex -v -g -c -f mexopts.bat matlabscalar.cpp
mex -v -g -c -f mexopts.bat matlabstring.cpp
mex -v -g -c -f mexopts.bat program.cpp

However, I can not achieve to compile:
mex -v -g -f mexopts.bat -output lbfgsb *.obj. I have this error:
collect2: ld returned 1 exit status
link command: g++ -shared C:\Users\JU\APPLIC~1\MATHWO~1\MATLAB\R14\gnumex\mex.def -o lbfgsb.dll -g -Wl,--image-base,0x28000000\n -LC:\Users\JU\APPLIC~1\MATHWO~1\MATLAB\R14\gnumex arrayofmatrices.obj lbfgsb.obj matlabexception.obj matlabmatrix.obj matlabprogram.obj matlabscalar.obj matlabstring.obj program.obj solver.obj -llibmx -llibmex -llibmat

C:\MATLAB7\BIN\WIN32\MEX.PL: Error: Link of 'lbfgsb.dll' failed.

I would be very grateful to any help. Thanks,
Judit

Contact us