lbfgsb-matlab
lbfgsb-matlab copied to clipboard
cannot find the file "solver.f"
I would like to use this algorithm on Windows. So I followed the instruction for windows. However, when I run this line of code "mex -v -g -c -f mexopts_fortran.bat solver.f", my matlab shows like the picture below
However, I am sure I have included the source file in the workspace where I cannot find the solver.f by myself, either.
@liupoplar Try replacing solver.f
with solver30.f
(which will use the latest version of the software).
Thanks for your reply!
I have tried replacing solver.f with solver30.f, but it seems it doesn't work, either.
The matlab shows like picture below.
Besides, in the the instructions for Windows, I have run the command lines in the red box successfully. However, the other ones cannot be run correctly.
@liupoplar Are you in the right directory? What happens if you run ls
in MATLAB?
I think the MathWorks website has a good tutorial on working with MEX files. Have you followed the instructions for setting up MEX on Windows? You might need to do this first. It would also be good to try building one of the example MEX files given in the tutorial.