is_feasible {lintools} | R Documentation |
Check feasibility of a system of linear (in)equations
Description
Check feasibility of a system of linear (in)equations
Usage
is_feasible(A, b, neq = nrow(A), nleq = 0, eps = 1e-08, method = "elimination")
Arguments
A |
[ |
b |
[ |
neq |
[ |
nleq |
[ |
eps |
[ |
method |
[ |
Examples
# An infeasible system:
# x + y == 0
# x > 0
# y > 0
A <- matrix(c(1,1,1,0,0,1),byrow=TRUE,nrow=3)
b <- rep(0,3)
is_feasible(A=A,b=b,neq=1,nleq=0)
# A feasible system:
# x + y == 0
# x >= 0
# y >= 0
A <- matrix(c(1,1,1,0,0,1),byrow=TRUE,nrow=3)
b <- rep(0,3)
is_feasible(A=A,b=b,neq=1,nleq=2)
[Package lintools version 0.1.7 Index]