How To Install mp on CentOS 7

In this tutorial we learn how to install mp on CentOS 7. mp is An open-source library for mathematical programming

Introduction

In this tutorial we learn how to install mp on CentOS 7.

What is mp

An open-source library for mathematical programming. Features * Reusable high-performance .nl reader * Efficient type-safe C++ API for connecting solvers to AMPL and other systems * Interfaces to solvers supporting AMPL extensions for logic and constraint programming * IBM ILOG CPLEX and CPLEX CP Optimizer (ilogcp) * Gecode * JaCoP * Interfaces to the following solvers * LocalSolver * Sulum * Interfaces to other solvers via AMPL Solver Library * Cross-platform build support with CMake and continuous integration systems. This includes third-party solvers and libraries (COIN-OR solvers with CMake support are available in the ampl/coin repository). * AMPLGSL, an AMPL function library providing access to the GNU Scientific Library (GSL) functions. See the AMPLGSL documentation. * Database support on Linux and MacOS X. See Database and spreadsheet connection guide. * SMPSWriter, a converter from deterministic equivalent of a two-stage stochastic programming (SP) problem written in AMPL to an SP problem in SMPS format.

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

Install mp on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mp using yum by running the following command:

sudo yum -y install mp

Install mp 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 mp using dnf by running the following command:

sudo dnf -y install mp

How To Uninstall mp on CentOS 7

To uninstall only the mp package we can use the following command:

sudo dnf remove mp

References

Summary

In this tutorial we learn how to install mp on CentOS 7 using yum and dnf.