This is an course Project of UPC Barcelona course Algorithmic and Mathematical Models. It contains an ILP optimization and its equivalent in custom python script using meta-heuristics.
Assuming /opt/ibm/ILOG/CPLEX_Studio126/
as the installation directory of CPLEX Studio.
Add this line to ~/.bashrc to automatically run it when a terminal session is initiated:
export LD_LIBRARY_PATH='/opt/ibm/ILOG/CPLEX_Studio126/opl/bin/x86-64_linux'
Add this line to ~/.bashrc to automatically run it when a terminal session is initiated:
export PATH=$PATH:'/opt/ibm/ILOG/CPLEX_Studio126/opl/bin/x86-64_linux/'
From the project root, run oplrun. It gets the model and the data file as parameters:
oplrun OPL/Bus_Project.mod InstanceGenerator/instances/example_0.dat