How To Install pyomo on Debian 9
Introduction
In this tutorial we learn how to install pyomo
on Debian 9.
What is pyomo
pyomo is:
Pyomo is a tool for formulating and analyzing mathematical models that represent real-world systems for complex optimization applications as applied in different areas of business, engineering, research, and administration. It’s used to define symbolic problems, create concrete problem instances, and solve this instances with standard solvers. Pyomo provides a capability that is commonly associated with algebraic modeling languages (AML) and applications like AMPL, AIMMS, or GAMS, but has its modeling objects within the Python environment. Pyomo features a versatile set of modeling components, and supports concrete models (defined with data) as well as abstract models (defined without data).
For the processing of instantiated models Pyomo supports a wide range of independent solvers that could be written either in Python or other languages. Pyomo supports the general ASL (AMPL Solver Library) compatible interface, and has invidividual backends for solvers which some of them are available within Debian (GLPK, COIN-OR CPC, OPENOPT). Pyomo’s solver manager could also employ the public NEOS Server to remotely optimize models if network access is available.
Pyomo was formerly released as the Coopr software library, and includes the PySP package (Pyomo Stochastic Programming) which provides generic solvers for stochastic programming.
There are three methods to install pyomo
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install pyomo Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install pyomo
using apt-get
by running the following command:
sudo apt-get -y install pyomo
Install pyomo Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pyomo
using apt
by running the following command:
sudo apt -y install pyomo
Install pyomo Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install pyomo
using aptitude
by running the following command:
sudo aptitude -y install pyomo
How To Uninstall pyomo on Debian 9
To uninstall only the pyomo
package we can use the following command:
sudo apt-get remove pyomo
Uninstall pyomo And Its Dependencies
To uninstall pyomo
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove pyomo
Remove pyomo Configurations and Data
To remove pyomo
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge pyomo
Remove pyomo configuration, data, and all of its dependencies
We can use the following command to remove pyomo
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pyomo
Dependencies
pyomo have the following dependencies:
References
Summary
In this tutorial we learn how to install pyomo
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.