- Download the precompiled version of glpkmex from sourceforge:
- At the time of writing, you need to download two files from the glpkmex page: glpkmex-2.8-src.zip and glpkcc.mex32.
- Unzip the glpkmex-2.8-src.zip file, copy glpkcc.mex32 into the resulting glpkmex folder, and then copy the glpkmex folder to the toolboxes folder of your Matlab installation (for example, C:\Program Files\MATLAB\R2008b\toolbox).
- Add the glpkmex folder to your Matlab path:
- In Matlab, go to "Set Path" from the "File" drop menu.
- In the "Set Path" dialog box that pops up, choose "Add with Subfolders"
- Navigate to the glpkmex folder you added to your toolbox folder and click "ok"
- Click "Save" in the "Set Path" diaglog box, then "Close"
- Test the glpk installation by typing "glpktest1" and then "glpktest2" at the Matlab command prompt. You shouldn't get any errors.
Note: Also put glpkmex directory to your current working directory, and please take care of glpkcc.mexa32 , glpkcc.mexa64 and glpkcc.mexw.32, glpkcc.mexw64, these should not be duplicated.
Say if you get error like glpkcc.mexw64 not found, then search this file in google by typing glpkcc.mexw64 and download the relevant one. Once download finished replace existing glpkcc.mexw64 be new downloaded one.
If this still do not fix the problem, Please contact me.
Thanx!!!
No comments:
Post a Comment
Thank you