How To Install coin-or-Ipopt on CentOS 7

In this tutorial we learn how to install coin-or-Ipopt on CentOS 7. coin-or-Ipopt is Interior Point OPTimizer

Introduction

In this tutorial we learn how to install coin-or-Ipopt on CentOS 7.

What is coin-or-Ipopt

Ipopt (Interior Point OPTimizer, pronounced eye-pea-Opt) is a software package for large-scale nonlinear optimization. It is designed to find (local) solutions of mathematical optimization problems of the form min f(x) x in R^n s.t. g_L <= g(x) <= g_U x_L <= x <= x_U where f(x) R^m are the constraint functions. The vectors g_L and g_U denote the lower and upper bounds on the constraints, and the vectors x_L and x_U are the bounds on the variables x. The functions f(x) and g(x) can be non-linear and non-convex, but should be twice continuously differentiable. Note that equality constraints can be formulated in the above formulation by setting the corresponding components of g_L and g_U to the same value.

We can use yum or dnf to install coin-or-Ipopt on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install coin-or-Ipopt.

Install coin-or-Ipopt on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install coin-or-Ipopt using yum by running the following command:

sudo yum -y install coin-or-Ipopt

Install coin-or-Ipopt on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install coin-or-Ipopt using dnf by running the following command:

sudo dnf -y install coin-or-Ipopt

How To Uninstall coin-or-Ipopt on CentOS 7

To uninstall only the coin-or-Ipopt package we can use the following command:

sudo dnf remove coin-or-Ipopt

References

Summary

In this tutorial we learn how to install coin-or-Ipopt on CentOS 7 using yum and dnf.