I'm trying to install lpsolve to use in MATLAB. I've followed the following instructions correctly.
- Download an uncompress lp_solve_5.5.0.10_dev.zip from https://sourceforge.net/projects/lpsolve/.
- Copy lpsolve55.dll into the C:/WINDOWS/system32 directory or any other location that is in the Windows path for your computer.
- Download an uncompress lp_solve_5.5.0.10_MATLAB_exe.zip from https://sourceforge.net/projects/lpsolve/.
- Copy the files included in the zip file to a directory that is in your Matlab path (for example the solvers subfolder under the main COBRA Toolbox folder).
- Test the lp_solve solver by entering mxlpsolve in the Matlab command window. If lp_solve libraries are correctly installed, you should see usage instructions of the mxlpsolve interface.
Problem: When I run mxlpsolve
, I get an error: mxlpsolve.dll not found
I am sure that the mxlpsolve.dll
file exists and it is in the same path as mxlpsolve.m
. Error gives me the list of paths that is searched and mxlpsolve.dll
is in one of them.
I have tried to put mxlpsolve.dll
into C:\Windows\System32
. I have tried to install different versions of lpsolve. I have also tried to change .dll
to .mexw32
as recommended in forums but still failed.