- Go to Anaconda Individual Edition site: https://www.anaconda.com/products/individual
- Download the 64-Bit Graphical Installer
- Run downloaded '.exe' file and follow Anaconda installation instructions.
-
You can get a free Community Edition of CPLEX Optimization Studio, with limited solving capabilities in term of problem size.
-
Faculty members, research professionals at accredited institutions can get access to an unlimited version of CPLEX through the IBM® Academic Initiative.
That is, get this repo.
cd SCLPsolver
An Anaconda environment will allow you to install packages and configure Python for running SCLP. You can activate/deactivate the environment whenever you like, so that the SCLP setup is contained to this project.
- Optional: create an Anaconda environment
conda create --name SCLP python=3.7
- Optional: activate the environment
conda activate SCLP
- Go to Microsoft C++ Build Tools site: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Download and install Microsoft C++ Build Tools
- Use conda installer.
conda install --yes --file sclp_requirements.txt
- If you want to run the Design of Experiments, and you have CPLEX installed, install the CPLEX installer PIP installer
pip install -r doe/cplex_integration/cplex_requirements.txt
. Note: as of this writing, you cannot use conda install for the doopl package.
Note: there is now a script for Windows that compiles and runs all of the below steps.
cythonize.bat
Or do it manually:
cd subroutines/equation_tools
python setup.py build_ext --inplace
cd ../lp_tools
python setup.py build_ext --inplace
cd ../state_tools
python setup.py build_ext --inplace
cd tests
- Generate random re-entrant line problem and solve it using simplex-type algorithm and CPLEX discretization.
Note: if you have no CPLEX you should comment all starting from line 70 to the end of the file
python simple_reentrant_test.py
- Generate random MCQN problem and solve it using simplex-type algorithm and CPLEX discretization.
Note: if you have no CPLEX you should comment all starting from line 79 to the end of the file
python MCQN_test.py
- For the explanations on parameters and results look to the comments in the code and to the results.md