I have installed the CPLEX solver by first uploading the executable (.bin) file to a directory of choice (I chose “/root”, which is the home directory in Google Colaboratory). Develop a file, named “installer.properties,” with the following contents in the same directory.
INSTALLER_UI=silent
LICENSE_ACCEPTED=TRUE
USER_INSTALL_DIR=/root
Then execute the following lines of code.
chmod("/root/cplex_studio2212.linux_x86_64.bin", 777)
run(`/root/cplex_studio2212.linux_x86_64.bin -f /root/installer.properties`)
ENV["CPLEX_STUDIO_BINARIES"] = "/root/cplex/bin/x86-64_linux"
After this, install CPLEX.jl, and you are all set to use the CPLEX solver in Julia.
Note: “/root” directory, mentioned above, can be replaced with any directory of choice.