Contents: (A) Installation on Windows Systems (B) Installation on Unix/Linux Systems ------------------------------------------------------------------------------------------ (A) Installation on Windows Systems Download the current distribution from http://www.mat.univie.ac.at/~dferi/gloptlab_download.html GloptLab for Windows comes in two flavors: F. GloptLab Full Install comes with all required libraries for 32 bit Windows prepackaged. M. GloptLab Minimal Install contains only the basic GloptLab files. Necessary libraries will have to be downloaded and configured seperately. F. 1) Download GloptLab_full.msi from http://www.mat.univie.ac.at/~dferi/research/GloptLab_full.msi 2) Run GloptLab_full.msi by double clicking on it. 3) Follow the instructions. M. 1) Download GloptLab_mini.msi from http://www.mat.univie.ac.at/~dferi/research/GloptLab_mini.msi 2) Run GloptLab_mini.msi by double clicking on it. 3) download and install external packages as intlab (required), coconut environment (optional), SeDuMi or SDPT[3 or 4] (one of SeDuMi or SDPT required). For download locations, please see section (B)M.3). 4) edit Gloptlab_win.cfg, and set the entries: *intlabpath -- Intlab >=5.3 *sedumipath -- SeDuMi >=1.1 *sdpt3path -- SDPT3 >=3.02 *lpsolvepath -- lpsolve >=5.5.0.9 *Optional directories* workingdir -- directory which gloptlab uses after the startup dbasedir -- needed if a database shold be generated soldir -- solutions stored there autosavedir -- autosaves stored there logdir -- logs stored there stratdir -- strategies stored there If you installed a higher library version as the minimal one, you probably have to edit gltoolpath.m or install the right version. 5) You need lp_solve_[version]_MATLAB_exe_win32.zip lp_solve_[version]_dev_win32.zip from http://sourceforge.net/projects/lpsolve/files/, where [version] should be the latest (confirmed with 5.5.0.15). Extract lp_solve_[version]_MATLAB_exe_win32.zip to a directory, then copy or move the contents of the subdirectory "bin\win32" into the base directory (where mxlpsolve.m is located) and extract lp_solve_[version]_dev_win32.zip into the base directory as well. The base directory should now contain at least mxlpsolve[.dll/.mexw32/.mexw64] LpSolve: the path to the dlls used by LpSolve has to be set, by adding the path to LpSolve to the windows environment variable PATH. This is done by appending the directory path to the PATH Entry in [Control panel->System->Other->Environment Variables->System Variables] on Windows XP, or [Control Panel->System->Advanced System Settings->Advanced Tab->Environment Variables->System Variables] on Windows Vista/7 ------------------------------------------------------------------------------------------ (B) Installation on Unix/Linux Systems Download the current distribution from http://www.mat.univie.ac.at/~dferi/gloptlab_download.html GloptLab for Unix/Linux comes in two flavors: F. GloptLab Full Install comes with all required libraries for 32/64 bit Linux and 32 bit OSX prepackaged. M. GloptLab Minimal Install contains only the basic GloptLab files. Necessary libraries will have to be downloaded and configured seperately. F. 1) Download "Gloptlab_full.tar.gz". 2) Extract "Gloptlab_full.tar.gz" to a directory, e.g. to "/myfiles". 3) cd to "/myfiles/Gloptlab". 4) Type "./gloptlab" and hit enter. You will be asked whether GloptLab should be added to the PATH environmental variable; Choose to do so if you want to be able to start up GloptLab from any directory in your shell via the "gloptlab" command. 5) If MATLAB is in your PATH, it will be started. If MATLAB is not in your PATH, edit the last lines in "/myfiles/Gloptlab/gloptlab" to point to your MATLAB executeable. 6) Within MATLAB, you will have to choose one of your installed c compilers for MEX file compilation. Usually, gcc or the system ANSI compiler should work just fine. M. 1) Download "Gloptlab_mini.tar.gz". 2) Extract "Gloptlab_mini.tar.gz" to a directory, e.g. to "/myfiles". 3) Download and extract the following libraries to "/myfiles/Gloptlab/Lib". - lpsolve from http://sourceforge.net/projects/lpsolve/ You need the following files: * lp_solve_[version]_source.tar.gz * lp_solve_[version]_MATLAB_source.tar.gz * and either download lp_solve_[version]_dev_[ux32/ux64/osx32].tar.gz or compile the liblpsolve55.so from source, or install an lpsolve package with your distribution's package manager. Extract lp_solve_[version]_source.tar.gz to /myfiles/Gloptlab/Lib. Extract lp_solve_[version]_MATLAB_source.tar.gz to /myfiles/Gloptlab/Lib. Extract lp_solve_[version]_dev_[ux32/ux64/osx32].tar.gz to /myfiles/Gloptlab/Libs/[lpsolvedir]/extra/Libs/[ux32/ux64/osx32]/ Edit the line LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$gloptroot/Lib/lp_solve_5.5/extra/Libs/[ux32/ux64/osx32] in "/myfiles/Gloptlab/gloptlab" to point to the correct directory LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$gloptroot/Lib/[lpsolvedir]/extra/Libs/[ux32/ux64/osx32] This should be the directory where "liblpsolve55.so" is located at. - intlab from http://www.ti3.tu-harburg.de/rump/intlab/ - one (or both) of the following * SeDuMi from http://sedumi.ie.lehigh.edu/ * SDPT3 from http://www.math.nus.edu.sg/~mattohkc/sdpt3.html - (optional) coconut environment 4) Edit "/myfiles/Gloptlab/Gloptlab_unix_sample.cfg" and correct the library paths intlabpath = "%GLBASE%/Lib/Intlab_V5.5/"; cocopath = "???/COCONUT/coconut-environment-3.0/bin/"; lpsolvepath = "%GLBASE%/Lib/lp_solve_5.5/extra/MATLAB/lpsolve/"; sedumipath = "%GLBASE%/Lib/SeDuMi_1_21/"; sdpt3path = "%GLBASE%/Lib/SDPT3-4.0-beta/"; testenvpath (needed if testing with the TestEnvironmen) to point to the correct directories. 5) Go to (B)F.3)