How To Install python-openopt on Debian 9

In this tutorial we learn how to install python-openopt on Debian 9. python-openopt is Python module for numerical optimization

Introduction

In this tutorial we learn how to install python-openopt on Debian 9.

What is python-openopt

python-openopt is:

Numerical optimization framework developed in Python which provides connections to lots of solvers with easy and unified OpenOpt syntax. Problems which can be tackled with OpenOpt

  • Linear Problem (LP)
  • Mixed-Integer Linear Problem (MILP)
  • Quadratic Problem (QP)
  • Non-Linear Problem (NLP)
  • Non-Smooth Problem (NSP)
  • Non-Linear Solve Problem (NLSP)
  • Least Squares Problem (LSP)
  • Linear Least Squares Problem (LLSP)
  • Mini-Max Problem (MMP)
  • Global Problem (GLP)

A variety of solvers is available (e.g. IPOPT, ALGENCAN).

There are three methods to install python-openopt 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 python-openopt Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-openopt using apt-get by running the following command:

sudo apt-get -y install python-openopt

Install python-openopt Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-openopt using apt by running the following command:

sudo apt -y install python-openopt

Install python-openopt 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 python-openopt using aptitude by running the following command:

sudo aptitude -y install python-openopt

How To Uninstall python-openopt on Debian 9

To uninstall only the python-openopt package we can use the following command:

sudo apt-get remove python-openopt

Uninstall python-openopt And Its Dependencies

To uninstall python-openopt and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-openopt

Remove python-openopt Configurations and Data

To remove python-openopt configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-openopt

Remove python-openopt configuration, data, and all of its dependencies

We can use the following command to remove python-openopt configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-openopt

Dependencies

python-openopt have the following dependencies:

References

Summary

In this tutorial we learn how to install python-openopt package on Debian 9 using different package management tools: apt, apt-get and aptitude.