SCPSolver SCPSolver - an easy to use Java Linear Programming Interface Authors:. Thanks: SCPSolver was developed using and optimized using. SCPSolver should enable a Java developer to use in 5 minutes. 3 steps to start (works for Windows, Linux and Mac). Download the and a solver pack: Solver Pack: (please note the GPL licensing terms) Solver Pack: (please note the LGPL licensing terms).
Add both jar-files to your Eclipse project (or the classpath). Read the example That is it. SCPSolver will take care of extracting the required libraries, so you do not have to. If you get an error under Windows 'DEBUG: Could not find required library: xxxxxxxxx64': Update to the most recent GLPKSolverPack.jar!
@philosodoad, I disagree with your comment. The question was, 'why do programmers use or recommend mac-os-x?' , and my answer (or, its gist) was, 'because of Apple's clever marketing strategy.' My complaint is with Apple, and its attitude towards the industry (remember lala.com?) The Apple attitude is the same since 1984.
Here are some slides explaining what SCPSolver is about. By exposing these methods directly on the objects defining the term, they are immediately available by syntax completion in Java Integrated Development Environments (e.g. Eclipse, Netbeans, etc.). Documentation Most solvers for linear programs are implemented in C/C for performance reasons. Java developers can use JNI interfaces for some solvers. However most interfaces are pretty difficult to setup, and lock the developer in to a specific solver. SCPSolver was developed to overcome those issues.
The library has the following features:. easy to deploy on Linux, Mac Os X and Windows with prebuilt linear programming libraries (almost dependency-free). plugin-concept: write model, use different solvers to solve it. low learning curve: very simple, no-frills API We have generated the. The most important classes are:.
![Linear Programing App For Mac Os Linear Programing App For Mac Os](/uploads/1/2/5/3/125396051/142716417.png)
![App App](/uploads/1/2/5/3/125396051/584616515.png)
(and its implementations) Building SCPSolver and the solver packs from source (not required!) Most users of SCPSolver will use the prebuilt binaries. The whole idea of SCPSolver is to take the pain of building the JNI libraries away from the developer.
However in some cases, like changing SCPSolver itself, adding a new solver pack (please go ahead!) or updating binaries in the solver packs, will require to build SCPSolver from source. The official GIT repository is hosted on. This is the URL to clone it, which is the preferred way to obtain the source code: If you are not comfortable with GIT, please follow these steps:. Get the source zip-files,. Unpack the source using your preferred tool (e.g. Tar xvfz scpsolver-src.tar.gz). get in the directory and use 'ant build' or set up your Eclipse project by copying the src/scpsolver directory in the source path.
Building the core library is simple, since it has no dependencies, except an installed JRE version 1.5 or 1.6. It can be built withouth much pain in any development environment, or in the command-line with (version 1.7). Building the solver packages is more tricky, because a lot (like a C compiler, static libraries,.) is required to be installed on the system. However we have included nice build-scripts (for Linux, Mac Os X and Windows), which should work out of the box, if all required tools are set up correctly. The build scripts however are not exactly sustainable for all three platforms yet: they might break after a major update. Meanwhile we will try our best to provide working solverpacks.
Licensing A few words on the license: SCPSolver uses a flexible license. It pulls the license model from its solverpacks. If you use the GLPK Solver as a backend, which is licensed under the GNU GPL, automatically your instance of SCPSolver is also licensed GPL. If you use the LPSOLVE Solver as a backend, which is licensed under the GNU LGPL, automatically your instance of SCPSolver is also licensed LGPL. If you use other solvers the respective licensing restrictions on the linked code apply. The SCPSolver Core per se is licensed under BSD License.
In short: If you use SCPSolver with GLPK as backend, and distribute your software to the public, you have to publish the source code. Support Please report bugs to. SCPSolver is powered.