OPERATING SYSTEMSOS Linux

Download and use AMPL CPLEX on Ubuntu, and other GNU/Linux distros

After struggling and searching on Google of a way to get CPLEX solver for AMPL on my Ubuntu 16.04 Xenial.

Steps:
1- Go to http://www.ampl.com/netlib/ampl/student/linux/index.html
and download “ampl.gz” and “cplex.gz” then extract both files.
2- Give both of them execution right with “chmod +x ampl cplex” command.
3- Run AMPL by typing “./ampl”
4- on AMPL load your solver by typing: option solver ‘./cplex’
(don’t forget the quotation marks)
5- Load your .mod file, and you’re ready to solve 🙂

——
About AMPL:
AMPL Modeling System—a co
mprehensive, powerful, algebraic modeling
language for problems in linear, nonlinear, and integer programming. AMPL is based upon
modern modeling principles and utilizes an advanced architecture providing flexibility most
other modeling systems lack. AMPL has been pr
oven in commercial applications, and is
successfully used in demanding model applications around the world. (source: AMPL book http://ampl.com/BOOKLETS/amplcplex90userguide.pdf )

——
Mr Aribi’s website (Linear programming and optimisation class teacher)
https://sites.google.com/site/optimlindz/
About: Cette matière vise à introduire les étudiants à la programmation linéaire et aux techniques d’optimisation. La programmation linéaire est un outil puissant pour résoudre une panoplie de problème d’optimisation linéaire dans divers domaines. Après un premier chapitre de mise à niveau des étudiants en calcul numérique, nous illustrons plusieurs problèmes pratiques en montrant l’apport du langage de la programmation linéaire, ramenant l’activité de la programmation à celle de la modélisation. Nous introduirons notamment le langage de modélisation AMPL. Par la suite, nous détaillerons l’algorithme du simplexe.
——

The examples model used in this video:
https://gist.github.com/Fcmam5/b23c330c09cb2d632b73a1e66fbaec7d

Help us caption & translate this video!

http://amara.org/v/09er/

source

ubuntu download

Leave a Reply

Your email address will not be published. Required fields are marked *