Learn R Programming

limSolve (version 2.0)

Solving Linear Inverse Models

Description

Functions that (1) find the minimum/maximum of a linear or quadratic function: min or max (f(x)), where f(x) = ||Ax-b||^2 or f(x) = sum(a_i*x_i) subject to equality constraints Ex=f and/or inequality constraints Gx>=h, (2) sample an underdetermined- or overdetermined system Ex=f subject to Gx>=h, and if applicable Ax~=b, (3) solve a linear system Ax=B for the unknown x. It includes banded and tridiagonal linear systems.

Copy Link

Version

Install

install.packages('limSolve')

Monthly Downloads

5,870

Version

2.0

License

GPL

Maintainer

Karline Soetaert

Last Published

June 11th, 2025

Functions in limSolve (2.0)

nnls

Nonnegative Least Squares
limSolve-package

Solving Linear Inverse Models
resolution

Row and column resolution of a matrix.
varranges

Calculates ranges of inverse variables in a linear inverse problem
ldp

Least Distance Programming
varsample

Samples the probability density function of variables of linear inverse problems.
xranges

Calculates ranges of the unknowns of a linear inverse problem
linp

Linear Programming.
xsample

Randomly samples an underdetermined problem with linear equality and inequality constraints
lsei

Least Squares with Equalities and Inequalities
ldei

Weighted Least Distance Programming with equality and inequality constraints.
Solve.block

Solution of an almost block diagonal system of linear equations
Solve.banded

Solution of a banded system of linear equations
Chemtax

An overdetermined linear inverse problem: estimating algal composition based on pigment biomarkers.
E_coli

An underdetermined linear inverse problem: the Escherichia Coli Core Metabolism Model.
Blending

A linear inverse blending problem
Minkdiet

An underdetermined linear inverse problem: estimating diet composition of Southeast Alaskan Mink.
Solve.tridiag

Solution of a tridiagonal system of linear equations
RigaWeb

An underdetermined linear inverse problem: the Gulf of Riga *spring* planktonic food web
Solve

Generalised inverse solution of Ax = B