Questions tagged [two-phase-simplex]

For questions about the two phase simplex method, which is an algorithm to solve a linear program which has no initial basic feasible solution.

The two-phase simplex method aims at finding solution(s) for a linear program (LP), which can be expressed as \begin{align}\min\quad& c^\top x\\\text{s.t.}\quad&Ax = b\\\quad& x \in \Bbb{R}_+^n\end{align} for some technology matrix $A \in {\cal M}_{m \times n}(\Bbb{R})$, in case of no obvious basic feasible solution (BFS). This algorithm consists of two stages, from which this algorithm is named.

  1. Introduce artificial variables $y$ to find an initial BFS: solve \begin{align}\min\quad&\|y\|_1\\\text{s.t.}\quad&Ax+y = b\\\quad&x \in \Bbb{R}_+^n,\\\quad& y \in \Bbb{R}^m\end{align} by using the simplex algorithm with initial BFS $(x,y) = (0,b)$. If the original LP is feasible, one will get $y=0$, so that the BFS is feasible for the original LP.
  2. Solve the original LP by simplex algorithm.

Reference: QMU London: Two-Phase Simplex Method

67 questions
7
votes
1 answer

Generating random linear programming problems

I've just finished writing a a linear programming problem solver which uses the simplex method. Now I would like to start optimizing my solver but before I can do this, I need a way of reliably testing it's performance. What is a good algorithm for…
5
votes
2 answers

Forbidden range for a linear programming variable

I would like to express a linear program having a variable that can only be greater or equal than a constant $c$ or equal to $0$. The range $]0; c[$ being unallowed. Do you know a way to express this constraint in a linear program, in a way that it…
4
votes
1 answer

Show that if Phase I of the two-phase method ends with an optimal cost of zero then the reduced cost vector will always take the form $(0, 1)$

Consider a linear programming problem of the form: minimize $c^Tx$ subject to: $Ax=b$, $x\geq0$ where $A$ is an $m\times n$ matrix with linearly independent rows. Show that if Phase I of the two-phase method ends with an optimal cost of zero at a…
3
votes
1 answer

Is the Simplex Method weaker than other methods?

Given linear program: $$ \text{min } x_1 - x_2 + 2 x_3 $$ s.t.: $$ -3x_1 + x_2 + x_3 = 4 $$ $$ x_1 - x_2 + x_3 = 3 $$ $$ x_i \geq 0; i = \{1,2,3\} $$ a solution by simplex method (with double pass) is not possible, because pivot column is negative.…
3
votes
0 answers

Linear programming: Find feasible basic solution for the Simplex Method

My question is related to this question. Given a Linear Program (LP) $max\{c^Tx: Ax \leq b, x \geq 0\}$ with $x,c \in \mathbb{R}^n$ and $A \in \mathbb{R}^{m \times n}$. The Simplex Method needs a feasible basic solution in order to start finding the…
3
votes
1 answer

General solution to linear program?

Source of the Problem The problem comes from an application in economics concerning trade between agents to maximize aggregate "wealth". More exactly, there are $m$ agents and $n$ groups and we perform independent trials where an agent interacting…
3
votes
2 answers

How to solve simplex problem with $x_1 + x_2 + x_3 + x_4 =1$ as restriction?

So, there's this problem: maximize $$6x_1 + 8x_2 + 5x_3 + 9x_4$$ subject to $$x_1+x_2+x_3+x_4 = 1 \;\text{ knowing that }\; x_1, x_2, x_3, x_4\geq0$$ The solution is obvious: since the sum of all variables must be 1, $x_4 = 1$ gives the highest…
3
votes
2 answers

Nocedal & Wright, example problem 13.1

I'm having a trouble understanding example problem 13.1 on page 371 of the 2nd edition of Nocedal & Wright: \begin{aligned} \begin{equation} \min_x -4x_1 - 2x_2 \text{ s.t } \\ x_1 + x_2 + x_3 = 5 \\ 2x_1 + \tfrac {x_2}{2} + x_4 = 8 \\ x \geq…
3
votes
1 answer

Two- phase simplex method problem

I have this problem: Minimize: $x_1+3x_2-x_3$ Subject to: $$ \begin{align} 2x_1+x_2+3x_3 \geq 3\\ -x_1+x_2\geq1\\ -x_1-5x_2+x_3\leq4\\ x_1,x_2,x_3, \geq 0\\ \end{align}$$ I need help solving it though the two phase simplex method. I keep getting…
3
votes
1 answer

Two-phase simplex method to solve minimise problem

Using the two-phase simplex method I am asked to Minimise: z= 3x2-x3+8 Subject to: x1+x2+x3=10, 2x1+3x2+x3=15 x1,x2,x3>=0 I am not sure how to go about this question as I have only used this method with maximsie problems. My initial thought was…
3
votes
1 answer

Expressing problems in canonical form for solving with simplex

The Picnic Hamper Company has a store containing 10,000kg of nuts, 4000 packs of smoked salmon, 2000 bottles of wine and 1500 Victoria sponges. It intends to use these goods to make up three different sorts of hampers with contents and price as…
3
votes
1 answer

Two-phase simplex

Question: Consider the following LP: $\min z=4 x_{1}+2 x_{2}+4 x_{3}$ s.t. $x_{2}+x_{3} \leq 2$ $x_{1}-x_{2}-2 x_{3} \leq-1$ $x_{2}+x_{3}=2$v $x_{1}, x_{2}, x_{3} \geq 0$ Solve this problem using the (TWO-PHASE) SIMPLEX algorithm, and state the…
Tommy_Smith
  • 259
  • 1
  • 3
  • 14
2
votes
1 answer

Solving a linear programming problem using its dual problem.

Solve the following linear programming problem using its dual problem. \begin{align} \min&\quad z = -5x_1 -7 x_2 -12 x_3 + x_4 \\ \mathrm{s.t.}&\quad 2x_1 + 3x_2 +2x_3 +x_4 \leq 38 \\ &\quad 3x_1 +2 x_2 +4x_3 -x_4 \leq 55\\ &\quad x \geq…
2
votes
0 answers

Get rid of artificial variables after Phase1 on 2-phase simplex method

After Phase 1, if the sum of artificial variables is zero but there are artificial variables still in the basis, how to get rid of them? Thanks in advance for any pointer.
HC Luie
  • 21
2
votes
1 answer

What would happen if in the BigM method we don’t set the penalty for the artificial variables?

The usual line of argument is that since the artificial variables are introduced solely for the purpose of obtaining a basic feasible solution, and have no meaning in the context of the LP, they must be forced to be zero eventually. But what would…
1
2 3 4 5