published on 02.01.2022

This post is for fellow students who is studying Operations Research with CPLEX. If you don’t know already, IBM offers free academic license for IBM ILOG CPLEX Optimization Studio.

  1. First, you have to register IBM Academic Initiative with your academic instituion issued email. (e.g. foo@university.edu, foo@university.edu.tr)

  2. Then, Login and go to here.

  3. Find the “IBM ILOG CPLEX Optimization Studio” under Softwares sections.

IBM Academic Initiative Softwares
IBM Academic Initiative Softwares
  1. Navigate to “Downloads”.
IBM ILOG Optimization Studio
IBM ILOG Optimization Studio
  1. Find the version that suits your environment and download.
Setup Images
Setup Images
  1. If you are using Windows, you’ll see a GUI, and as usual just click Next, Next.

  2. If you are on Linux, you probably already know how to install a package.

  • chmod +x to give execute permission to the file.
  • Then execute it. ./filename
  • Follow the instructions given by the installer.
Setup Images
Setup Images
  1. Now you have installed the Optimization Studio and CPLEX solver with it.

After the installation, you can see the Interactive Shell using cplex command in command prompt.

Of course the Environment Variables must be defined, and it should be automatically (usually after a restart on Windows).

CPLEX Interactive Shell
CPLEX Interactive Shell

This is not how we are going to use CPLEX though. You can type quit to exit the shell.

In the next post, I’ll share an example about how we can use CPLEX with Python using docplex library.

Before that we must install cplex package for python using the setup.py included in the directory that you installed CPLEX. e.g. C:\Program Files\IBM\ILOG\CPLEX_Studio201\cplex\python\3.7\x64_win64\setup.py

python path_to_cplex\python\setup.py install
Published on 02.01.2022 by Mert Bakır with commit 02770b1.
linear-programming
#cplex
published on 29.10.2021

𐱃𐰞𐰍: 𐰚𐰠𐰇𐰼𐱅𐰃: 𐰽𐰉𐰃: 𐰦𐰍: 𐰖𐰺𐰽: 𐰖𐰕𐰃𐰑𐰀: 𐰆𐰣: 𐱅𐰇𐰢𐰤: 𐰾𐰇: 𐱅𐰼𐰠𐱅𐰃: 𐱅𐰃𐰼: 𐰆𐰞: 𐰽𐰉𐰍: 𐰾𐰓𐰯: 𐰋𐰏𐰠𐰼: 𐰸𐰆𐰯: 𐰖𐰣𐰞𐰢: 𐰺𐰃𐰍: 𐰆𐰉𐱃𐰃: 𐰘𐰏: 𐱅𐰓𐰃: 𐰋𐰤: 𐰨𐰀: 𐱅𐰼: 𐰢𐰤: 𐰋𐰤: 𐰋𐰃𐰠𐰏𐰀: 𐱃𐰆𐰪𐰸𐰸: 𐰞𐱃𐰆𐰣: 𐰖𐰃𐰽𐰍: 𐰽𐰀: 𐰚𐰠𐱅𐰢𐰕: 𐰼𐱅𐰾: 𐰇𐰏𐰕𐰏: 𐰚𐰲𐰀: 𐰚𐰠𐱅𐰢𐰕: 𐰚𐰠𐰢𐰾𐰃: 𐰞𐰯: 𐱅𐰃𐰓𐰃: 𐱃𐰆𐰖𐰢𐰑𐰃: 𐱅𐰭𐰼𐰃: 𐰆𐰢𐰖: 𐰃𐰑𐰸: 𐰘𐰼: 𐰾𐰆𐰉: 𐰉𐰽𐰀: 𐰋𐰼𐱅𐰃: 𐰼𐰨: 𐰤𐰚𐰀: 𐱅𐰕𐰼: 𐰋𐰃𐰕: 𐰰𐰇𐰾: 𐱅𐰘𐰤: 𐰤𐰚𐰀: 𐰸𐰆𐰺𐰸𐰆𐰺: 𐰋𐰃𐰕: …

published on 24.01.2021
edited on 11.06.2021

Some time ago, I wanted to display image galleries on my Hugo website and searched for Hugo themes for photography and gallery. I can’t say I find much. Then, I met with a javascript library called nanogallery2 which is using another javascript library as an image viewer lightbox2. In this …

published on 23.01.2021
edited on 11.06.2021

Image processing may seem complicated at first but it’s actually easy and definitely worth implementing since it’ll help you decrease page load times. As you probably know, we don’t want to load raw images with huge sizes for small thumbnails or blog-posts. We want to load a small …

published on 31.12.2020
edited on 26.06.2021

I’ve, recently, published a blog post called Perfect Workflow for Publishing Python Notebooks. I talked about some of the benefits of using Rmarkdown and reticulate. In this post, I’ll try HTML widgets and explain how we can embed those in our blog post using nothing but R. […] …

published on 05.12.2020

Resume A4 is a side project of mine. It’s one page Hugo Theme that allows you to write your resume in YAML format and keep track of it using git. Also, you can publish it online as a static site using GitLab, GitHub Pages, Netlify, or some other service you are familiar with. A few months …