How To Install liblpsolve55-dev on Ubuntu 18.04
Introduction
In this tutorial we learn how to install liblpsolve55-dev
on Ubuntu 18.04.
What is liblpsolve55-dev
liblpsolve55-dev is:
The linear programming (LP) problem can be formulated as: Solve A.x >= V1, with V2.x maximal. A is a matrix, x is a vector of (nonnegative) variables, V1 is a vector called the right hand side, and V2 is a vector specifying the objective function.
An integer linear programming (ILP) problem is an LP with the constraint that all the variables are integers. In a mixed integer linear programming (MILP) problem, some of the variables are integer and others are real.
The program lp_solve solves LP, ILP, and MILP problems. It is slightly more general than suggested above, in that every row of A (specifying one constraint) can have its own (in)equality, <=, >= or =. The result specifies values for all variables.
lp_solve uses the ‘Simplex’ algorithm and sparse matrix methods for pure LP problems. If one or more of the variables is declared integer, the Simplex algorithm is iterated with a branch and bound algorithm, until the desired optimal solution is found. lp_solve can read MPS format input files.
This package contains the static library for developing programs using liblpsolve.
There are three methods to install liblpsolve55-dev
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install liblpsolve55-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install liblpsolve55-dev
using apt-get
by running the following command:
sudo apt-get -y install liblpsolve55-dev
Install liblpsolve55-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liblpsolve55-dev
using apt
by running the following command:
sudo apt -y install liblpsolve55-dev
Install liblpsolve55-dev 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install liblpsolve55-dev
using aptitude
by running the following command:
sudo aptitude -y install liblpsolve55-dev
How To Uninstall liblpsolve55-dev on Ubuntu 18.04
To uninstall only the liblpsolve55-dev
package we can use the following command:
sudo apt-get remove liblpsolve55-dev
Uninstall liblpsolve55-dev And Its Dependencies
To uninstall liblpsolve55-dev
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove liblpsolve55-dev
Remove liblpsolve55-dev Configurations and Data
To remove liblpsolve55-dev
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge liblpsolve55-dev
Remove liblpsolve55-dev configuration, data, and all of its dependencies
We can use the following command to remove liblpsolve55-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblpsolve55-dev
References
Summary
In this tutorial we learn how to install liblpsolve55-dev
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.