is_feasible | R Documentation |
Check feasibility of a system of linear (in)equations
is_feasible(A, b, neq = nrow(A), nleq = 0, eps = 1e-08, method = "elimination")
A |
[ |
b |
[ |
neq |
[ |
nleq |
[ |
eps |
[ |
method |
[ |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.