Search This Blog

Saturday, September 15, 2012

how to install glpk on matlab in windows xp

followed the steps:

   1. Download the precompiled version of glpkmex from sourceforge
      <http://glpkmex.sourceforge.net/>:
         1. At the time of writing, you need to download two files
            from the glpkmex page
            <http://sourceforge.net/projects/glpkmex/>:
            glpkmex-2.8-src.zip
            
<http://sourceforge.net/projects/glpkmex/files/glpkmex/2.8/glpkmex-2.8-src.zip/download>
            and glpkcc.mex32
            
<http://sourceforge.net/projects/glpkmex/files/glpkmex/2.8/glpkcc.mexw32/download>.

   2. 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).
   3. Add the glpkmex folder to your Matlab path:
   4. In Matlab, go to "Set Path" from the "File" drop menu.
   5. In the "Set Path" dialog box that pops up, choose "Add with
      Subfolders"
   6. Navigate to the glpkmex folder you added to your toolbox folder
      and click "ok"
   7. Click "Save" in the "Set Path" diaglog box, then "Close"
   8. Test the glpk installation by typing "glpktest1" and then
      "glpktest2" at the Matlab command prompt. You shouldn't get any
      errors.

No comments:

Post a Comment

Thank you