Posts

Showing posts with the label gurobi

How to run Gurobi throught Julia

To install Julia, we can download it from github git clone  https://github.com/JuliaLang/julia.git cd julia sudo apt-get install build-essential libatomic1 python gfortran perl wget m4 cmake pkg-config make -j8 make install cd julia-* cd bin pwd Now, export the working directory to your .bashrc file export PATH="$(pwd)/julia:$PATH" Run julia and add JuMP (Julia for Mathematical Programming): Pkg.add("JuMP") WARNING: Base.Pkg is deprecated, run `using Pkg` instead Newer versions must use Pkg first as following: using Pkg Pkg.add("JuMP") Other option is install it from the tarball file: wget https://github.com/JuliaLang/julia/releases/download/v0.6.2/julia-0.6.2-full.tar.gz tar xzvf julia-0.6.2-full.tar.gz cd julia-0.6.2 make -j8 make install cd julia-* cd bin pwd Export to the bashrc file again and install the package: Pkg.add("JuMP") Pkg.add("Gurobi") Pkg.update() Maybe you can have issues to lo...

How to install gurobi in Ubuntu 18.04 out/inside an academic domain

Image
To install gurobi, you can do it throught anaconda or tarball, secondly we need configure PATHS and  register the licence. Anaconda option to install: wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh chmod +x Anaconda3-5.1.0-Linux-x86_64.sh  ./Anaconda3-5.1.0-Linux-x86_64.sh  conda update -n base conda conda update -n base conda conda config --add channels http://conda.anaconda.org/gurobi conda install gurobi If you want to uninstall anaconda, you can do it the following: conda install anaconda-clean anaconda-clean rm -rf ~/anaconda3 Tarball option to install: First, you need to create an account in Gurobi here  and after proceed to download it: wget http://packages.gurobi.com/7.5/gurobi7.5.2_linux64.tar.gz tar xzvf gurobi7.5.2_linux64.tar.gz cd gurobi752/linux64 sudo python setup.py install Configure gurobi: We need to add the PATH to our environment. By default, in linux, we use .bashrc Edit ~/.bashrc and add the ...