bundles / scipy 1.17.1 / scipy / optimize / _linprog_rs / _generate_auxiliary_problem
function
scipy.optimize._linprog_rs:_generate_auxiliary_problem
Signature
def _generate_auxiliary_problem ( A , b , x0 , tol ) Summary
Modifies original problem to create an auxiliary problem with a trivial initial basic feasible solution and an objective that minimizes infeasibility in the original problem.
Extended Summary
Conceptually, this is done by stacking an identity matrix on the right of the original constraint matrix, adding artificial variables to correspond with each of these new columns, and generating a cost vector that is all zeros except for ones corresponding with each of the new variables.
A initial basic feasible solution is trivial: all variables are zero except for the artificial variables, which are set equal to the corresponding element of the right hand side b.
Running the simplex method on this auxiliary problem drives all of the artificial variables - and thus the cost - to zero if the original problem is feasible. The original problem is declared infeasible otherwise.
Much of the complexity below is to improve efficiency by using singleton columns in the original problem where possible, thus generating artificial variables only as necessary, and using an initial 'guess' basic feasible solution.
Aliases
-
scipy.optimize._linprog_rs._generate_auxiliary_problem