Skip to content

Instantly share code, notes, and snippets.

@SoumenAtta
Created June 29, 2022 20:42
Show Gist options
  • Save SoumenAtta/17923960bd891584e4b555d7521b5dc8 to your computer and use it in GitHub Desktop.
Save SoumenAtta/17923960bd891584e4b555d7521b5dc8 to your computer and use it in GitHub Desktop.
#%Module1.0####
##
## cplex
##
proc ModulesHelp { } {
global cplexversion
puts stderr "\tIBM ILOG cplex "
puts stderr "\tThis module provides configuration for cplex, concert, cpoptimizer and opl"
}
module-whatis "IBM ILOG cplex (cplex, concert, cpoptimizer, opl). This version doesn't ask for a licence file."
# for Tcl script use only
set cplexversion 20.1.0
set studio_root /home/username/projects/def-mainuser/username/opt/ibm/ILOG/CPLEX_Studio201
set cplexroot $studio_root/cplex
set concertroot $studio_root/concert
set oplroot $studio_root/opl
set cpoptimizerroot $studio_root/cpoptimizer
set cplexbin x86-64_linux
set cplexlib $cplexbin/static_pic
set concertbin x86-64_linux
set concertlib $concertbin/static_pic
set oplbin x86-64_linux
set opllib $oplbin/static_pic
set cpoptimizerbin x86-64_linux
set cpoptimizerlib $cpoptimizerbin/static_pic
prepend-path PATH $cplexroot/bin/$cplexbin
prepend-path PATH $oplroot/bin/$oplbin
prepend-path PATH $cpoptimizerroot/bin/$cpoptimizerbin
prepend-path CPATH $cplexroot/include
prepend-path CPATH $concertroot/include
prepend-path CPATH $oplroot/include
prepend-path CPATH $cpoptimizerroot/include
prepend-path -d " " CPATH_EXPANDED -I$cplexroot/include
prepend-path -d " " CPATH_EXPANDED -I$concertroot/include
prepend-path -d " " CPATH_EXPANDED -I$oplroot/include
prepend-path -d " " CPATH_EXPANDED -I$cpoptimizerroot/include
prepend-path LIBRARY_PATH $cplexroot/lib/$cplexlib
prepend-path LIBRARY_PATH $concertroot/lib/$concertlib
prepend-path LIBRARY_PATH $oplroot/lib/$opllib
prepend-path LIBRARY_PATH $oplroot/bin/x86-64_linux/
prepend-path LIBRARY_PATH $cpoptimizerroot/lib/$cpoptimizerlib
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$cplexroot/lib/$cplexlib
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$concertroot/lib/$concertlib
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$oplroot/lib/$opllib
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$oplroot/bin/x86-64_linux/
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$cpoptimizerroot/lib/$cpoptimizerlib
prepend-path LD_LIBRARY_PATH $cplexroot/bin/$cplexbin
prepend-path LD_LIBRARY_PATH $oplroot/bin/$oplbin
prepend-path CLASSPATH $cplexroot/lib/cplex.jar
prepend-path MATLABPATH $cplexroot/matlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment