Revised primal simplex algorithm.

revised_primal_simplex(A, b, obj, basic = c((ncol(A) - nrow(A)):ncol(A)))

Arguments

A

matrix, coefficient matrix of the LP

b

vector, RHS

obj

vector, coefficients of the objective function

basic

vector, indices of a (primal feasible) basis

Value

optimal basic feasible solution (BFS)