ranges: Derive variable ranges from linear restrictions

View source: R/ranges.R

rangesR Documentation

Derive variable ranges from linear restrictions

Description

Gaussian and/or Fourier-Motzkin elimination is used to derive upper and lower limits implied by a system of (in)equations.

Usage

ranges(A, b, neq = nrow(A), nleq = 0, eps = 1e-08)

Arguments

A

[numeric] Matrix

b

[numeric] vector

neq

[numeric] The first neq rows in A and b are treated as linear equalities.

nleq

[numeric] The nleq rows after neq are treated as inequations of the form a.x<=b. All remaining rows are treated as strict inequations of the form a.x<b.

eps

[numeric] Coefficients with absolute value <= eps are treated as zero. using Fourier-Motzkin elimination.


lintools documentation built on Jan. 17, 2023, 1:06 a.m.