The OSDEA library can only be used if you are coding your own DEA java application. If you are only looking to solve DEA problems, you should use the OSDEA GUI.
Before proceeding, you need to have downloaded OSDEA and extracted all the files from the OSDEA zip file. To use OSDEA, it is necessary to:
- Install lpsolve on your machine (if not already done).
- Add the OSDEA library to your program buildpath.
The lpsolve DLLs are included in the OSDEA downloads. If you have downloaded the OSDEA GUI program, the lpsolve files are in the folder: lpsolve-v126.96.36.199\yourSystem. If you are using the source code, they can be found under: DEASolver\lpsolve\yourSystem folders.
The only action necessary is to copy the lpsolve library and the java stub to the correct system directory.
Installing lpsolve on Windows
On windows, select the 32 or 64 bits lpsolve DLLs (resp. lpsolve55.dll and lpsolve55j.dll) depending on the version of the JRE you are using. Copy them to:
- C:\Windows\System32 for Windows machines with the exception of
- C:\Windows\SysWOW64 if you use the 32 bits lpsolve DLL on a 64 Bits Windows system (i.e. if you are running a 32 bit JRE on a 64 bits OS).
Installing lpsolve on Linux (*nix) systems
- Select the 32 or 64 bits lpsolve libraries (resp. liblpsolve55j.so and liblpsolve55.so) and copy them to the /usr/local/lib or /usr/lib directory (otherwise run ldconfig to add the lpsolve libraries to your system’s libraries path).
Installing lpsolve on Mac
On mac (osx32):
- use the build-osx build file with the liblpsolve55.dylib library.
This is all you need to do in order to start using OSDEA-GUI.
Using the OSDEA Solver library in your code
In order to use the OSDEA Solver library in your java programs, you will need to attach the OSDEA jar to the buildpath of your java program.
You should also select the ‘OSDEASolver-vX.XXX-sources’ jar as the sources of your jar. This will enable you to benefit from the javadoc descriptions while typing your code and hovering your mouse over the different methods. You will also be able to debug through the OSDEA library if you want.
For an example of how to use the library, please see the example page.