← Back to the site

Question bank

422 fixed questions · 48 generated questions

Fixed questions (422)

Part: Linear functions, polyhedra and linear programming problems (122)

1. Linear functions (16)

lp-f-01-01 · level facile · notes
What is the gradient of the linear function $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ at a point $\bar{\boldsymbol x} \in \R^n$?
  1. The vector $\bar{\boldsymbol x}$
  2. The scalar ${\boldsymbol c}'\bar{\boldsymbol x}$
  3. The zero vector, since the function is linear
  4. The vector ${\boldsymbol c}$, the same at every point
Explanation. The partial derivative with respect to $x_j$ is $c_j$ at every point: $\nabla f = {\boldsymbol c}$. It is the Hessian, not the gradient, that is zero.
lp-f-01-02 · level facile · notes
What is the Hessian of the linear function $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$, with ${\boldsymbol x} \in \R^n$?
  1. The $n \times n$ identity matrix
  2. The matrix ${\boldsymbol c}\,{\boldsymbol c}'$
  3. The diagonal matrix with entries $c_1, \dots, c_n$
  4. The $n \times n$ zero matrix
Explanation. The first derivatives $c_j$ are constant, so all the second derivatives are zero.
lp-f-01-03 · level facile · notes
What are the level sets of a linear function $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ with ${\boldsymbol c} \ne {\boldsymbol 0}$?
  1. Half-lines leaving the origin in the direction of ${\boldsymbol c}$
  2. Hyperplanes parallel to the gradient ${\boldsymbol c}$
  3. Hyperplanes perpendicular to the gradient ${\boldsymbol c}$
  4. Half-spaces bounded by the hyperplane ${\boldsymbol c}'{\boldsymbol x} = 0$
Explanation. The set $\{{\boldsymbol x} : {\boldsymbol c}'{\boldsymbol x} = k\}$ is a hyperplane, and ${\boldsymbol c}$ is perpendicular to it.
lp-f-01-04 · level facile · notes
Which of the following functions $f : \R^3 \to \R$ is a linear function?
  1. $f({\boldsymbol x}) = |x_1| + x_2 - x_3$
  2. $f({\boldsymbol x}) = x_1^2 - x_2 + x_3$
  3. $f({\boldsymbol x}) = x_1 x_2 + x_3$
  4. $f({\boldsymbol x}) = 3x_1 - 2x_2 + x_3$
Explanation. A linear function has the form $\sum_j c_j x_j = {\boldsymbol c}'{\boldsymbol x}$: products, powers and absolute values of the variables are not allowed.
lp-f-01-05 · level facile · notes
For $f({\boldsymbol x}) = 8x_1 + 4x_2$, which point belongs to the level set $8x_1 + 4x_2 = 16$?
  1. $(0, 2)$
  2. $(2, 0)$
  3. $(1, 1)$
  4. $(4, 0)$
Explanation. $8 \cdot 2 + 4 \cdot 0 = 16$; at the other points the function takes the values $8$, $32$ and $12$.
lp-f-01-06 · level facile · notes
For $f({\boldsymbol x}) = -8x_1 - 4x_2$, in which direction does the function increase most rapidly?
  1. In the direction of $(8, 4)$
  2. In the direction of $(-8, -4)$
  3. In no direction, since the coefficients are negative
  4. In the direction of $(4, -8)$
Explanation. The function increases in the direction of the gradient ${\boldsymbol c} = (-8,-4)$; along $(4,-8)$, perpendicular to the gradient, it is constant.
lp-f-01-07 · level facile · notes
What is the graph of the function $f({\boldsymbol x}) = 8x_1 + 4x_2$ in $\R^3$?
  1. A paraboloid
  2. A plane through the origin
  3. A half-space
  4. A line through the origin
Explanation. The graph $\{({\boldsymbol x}, f({\boldsymbol x}))\}$ of a linear function of two variables is the plane $x_3 = 8x_1 + 4x_2$, which contains the origin.
lp-f-01-08 · level facile · notes
For the linear function $f({\boldsymbol x}) = 3x_1 - 2x_2$ and any point $\bar{\boldsymbol x} \in \R^2$, what is $f(\bar{\boldsymbol x} + {\boldsymbol d}) - f(\bar{\boldsymbol x})$ with ${\boldsymbol d} = (1, 1)$?
  1. $5$, whatever $\bar{\boldsymbol x}$ is
  2. $1$, whatever $\bar{\boldsymbol x}$ is
  3. $-1$, whatever $\bar{\boldsymbol x}$ is
  4. It depends on the point $\bar{\boldsymbol x}$
Explanation. By linearity $f(\bar{\boldsymbol x} + {\boldsymbol d}) - f(\bar{\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol d} = 3 \cdot 1 - 2 \cdot 1 = 1$: the change does not depend on the starting point.
lp-f-01-09 · level facile · notes
Let $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ with ${\boldsymbol c} \in \R^n$, ${\boldsymbol c} \ne {\boldsymbol 0}$. For which directions ${\boldsymbol d}$ do we have $f(\bar{\boldsymbol x} + t\,{\boldsymbol d}) = f(\bar{\boldsymbol x})$ for every $\bar{\boldsymbol x}$ and every $t \in \R$?
  1. Only for ${\boldsymbol d} = {\boldsymbol 0}$
  2. For every ${\boldsymbol d}$ with ${\boldsymbol c}'{\boldsymbol d} = 0$
  3. For every ${\boldsymbol d}$ with ${\boldsymbol c}'{\boldsymbol d} > 0$
  4. Only for ${\boldsymbol d}$ parallel to ${\boldsymbol c}$
Explanation. $f(\bar{\boldsymbol x} + t\,{\boldsymbol d}) = f(\bar{\boldsymbol x}) + t\,{\boldsymbol c}'{\boldsymbol d}$: the value is constant exactly along the directions perpendicular to the gradient, i.e., inside the level sets.
lp-f-01-10 · level facile · notes
For the linear function $f({\boldsymbol x}) = 4x_1 + 2x_2$, what do the level lines $4x_1 + 2x_2 = k$ look like as $k \in \R$ varies?
  1. They are parallel to each other and perpendicular to the vector $(4, 2)$
  2. They are parallel to each other and parallel to the vector $(4, 2)$
  3. They are concentric circles centred at the origin
  4. They all pass through the origin, with different slopes
Explanation. The gradient $(4, 2)$ is the same for every $k$: all the level lines are perpendicular to it, hence parallel to each other; only the one with $k = 0$ passes through the origin.
lp-f-01-11 · level facile · notes
Let $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ be a linear function on $\R^3$ and let $\bar{\boldsymbol x}$ be a point with $f(\bar{\boldsymbol x}) = 5$. What is $f(2\,\bar{\boldsymbol x})$?
  1. $25$
  2. $7$
  3. $5$
  4. $10$
Explanation. A linear function is homogeneous: $f(2\,\bar{\boldsymbol x}) = {\boldsymbol c}'(2\,\bar{\boldsymbol x}) = 2\,f(\bar{\boldsymbol x}) = 10$. Adding $2$ or squaring are typical mistakes.
lp-f-01-12 · level facile · notes
Let $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ be a linear function on $\R^n$, with $f(\bar{\boldsymbol x}) = 4$ and $f(\hat{\boldsymbol x}) = 10$ at two points $\bar{\boldsymbol x}, \hat{\boldsymbol x}$. What is the value of $f$ at the midpoint $\frac{1}{2}(\bar{\boldsymbol x} + \hat{\boldsymbol x})$?
  1. $14$
  2. $7$
  3. $5$
  4. It cannot be said without knowing ${\boldsymbol c}$
Explanation. By linearity $f(\frac{1}{2}\bar{\boldsymbol x} + \frac{1}{2}\hat{\boldsymbol x}) = \frac{1}{2}f(\bar{\boldsymbol x}) + \frac{1}{2}f(\hat{\boldsymbol x}) = 2 + 5 = 7$, whatever ${\boldsymbol c}$ is.
lp-f-01-k01 · level teorema · notes
For the linear function $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ with ${\boldsymbol c} \neq {\boldsymbol 0}$, which statement about the gradient is correct?
  1. $\nabla f$ depends on the point where it is computed
  2. $\nabla f({\boldsymbol x}) = {\boldsymbol 0}$ at maximum points
  3. $\nabla f({\boldsymbol x}) = {\boldsymbol x}$ at every point
  4. $\nabla f({\boldsymbol x}) = {\boldsymbol c}$ at every point ${\boldsymbol x}$
Explanation. The partial derivatives of $\sum_j c_j x_j$ are the constants $c_j$: the gradient is the cost vector, everywhere.
lp-f-01-k02 · level teorema · notes
For a linear function $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ in $\R^2$ with ${\boldsymbol c} \neq {\boldsymbol 0}$, which statement about the level sets $\{{\boldsymbol x} : f({\boldsymbol x}) = k\}$ is correct?
  1. They are circles centred at the origin
  2. They are lines parallel to ${\boldsymbol c}$
  3. They are lines all passing through the origin
  4. They are parallel lines, orthogonal to ${\boldsymbol c}$
Explanation. $c_1 x_1 + c_2 x_2 = k$ is a line with normal ${\boldsymbol c}$; as $k$ varies the lines are parallel.
lp-f-01-k03 · level ipotesi · notes
We want to prove that the Hessian matrix of $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$ is the zero matrix. What is needed?
  1. That ${\boldsymbol c}$ has positive components
  2. That the dimension $n$ is at most $2$
  3. That $f$ is bounded above
  4. That the gradient ${\boldsymbol c}$ is constant
Explanation. The second derivatives are derivatives of the constant gradient components: they are all zero.
lp-f-01-k04 · level ipotesi · notes
For $f({\boldsymbol x}) = {\boldsymbol c}'{\boldsymbol x}$, moving from ${\boldsymbol x}$ to ${\boldsymbol x} + t\,{\boldsymbol d}$ with $t > 0$ increases the value. Which condition on the direction ${\boldsymbol d}$ guarantees it?
  1. ${\boldsymbol d} \ge {\boldsymbol 0}$
  2. ${\boldsymbol c}'{\boldsymbol d} > 0$
  3. ${\boldsymbol d}$ orthogonal to ${\boldsymbol c}$
  4. $\|{\boldsymbol d}\| = 1$
Explanation. $f({\boldsymbol x} + t{\boldsymbol d}) = f({\boldsymbol x}) + t\,{\boldsymbol c}'{\boldsymbol d}$: it increases if and only if ${\boldsymbol c}'{\boldsymbol d} > 0$.

2. Half-spaces and polyhedra (16)

lp-f-02-01 · level facile · notes
Given ${\boldsymbol a} \in \R^{1 \times n}$ and $b \in \R$, which set is a half-space?
  1. $\{{\boldsymbol x} \in \R^n : {\boldsymbol a}\,{\boldsymbol x} \le b\}$
  2. $\{{\boldsymbol x} \in \R^n : {\boldsymbol a}\,{\boldsymbol x} \le b,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$
  3. $\{{\boldsymbol x} \in \R^n : {\boldsymbol a}\,{\boldsymbol x} = b\}$
  4. $\{{\boldsymbol x} \in \R^n : x_1^2 + \dots + x_n^2 \le b\}$
Explanation. A half-space is the set of points satisfying one linear inequality; with the equality we obtain its supporting hyperplane.
lp-f-02-02 · level facile · notes
What is the supporting hyperplane of the half-space $\{{\boldsymbol x} \in \R^2 : -3x_1 + 2x_2 \le 6\}$?
  1. $\{{\boldsymbol x} \in \R^2 : -3x_1 + 2x_2 = 6\}$
  2. $\{{\boldsymbol x} \in \R^2 : -3x_1 + 2x_2 \ge 6\}$
  3. $\{{\boldsymbol x} \in \R^2 : -3x_1 + 2x_2 = 0\}$
  4. $\{{\boldsymbol x} \in \R^2 : -3x_1 + 2x_2 < 6\}$
Explanation. The supporting hyperplane is obtained by replacing the inequality with the equality, with the same right-hand side.
lp-f-02-03 · level facile · notes
What is a polyhedron in $\R^n$?
  1. The intersection of any number, even infinite, of half-spaces
  2. Any convex and closed set
  3. The union of a finite number of half-spaces
  4. The intersection of a finite number of half-spaces
Explanation. A polyhedron is defined by a finite number of linear inequalities (and possibly equalities); infinitely many half-spaces give sets such as a disc, convex but not polyhedra.
lp-f-02-04 · level facile · notes
What is a polytope?
  1. A polyhedron with at least one vertex
  2. A polyhedron in $\R^2$
  3. A polyhedron defined by equalities only
  4. A bounded polyhedron
Explanation. A polytope is a bounded polyhedron; for instance, the orthant $\{{\boldsymbol x} \ge {\boldsymbol 0}\}$ has a vertex but it is not bounded.
lp-f-02-05 · level facile · notes
Given ${\boldsymbol a} \in \R^{1 \times n}$, ${\boldsymbol a} \ne {\boldsymbol 0}$, and $b \in \R$, is the hyperplane $\{{\boldsymbol x} \in \R^n : {\boldsymbol a}\,{\boldsymbol x} = b\}$ a polyhedron?
  1. Yes: it is the union of the half-spaces ${\boldsymbol a}\,{\boldsymbol x} \le b$ and ${\boldsymbol a}\,{\boldsymbol x} \ge b$
  2. No: a polyhedron contains inequalities only
  3. Yes: it coincides with the half-space ${\boldsymbol a}\,{\boldsymbol x} \le b$
  4. Yes: it is the intersection of the half-spaces ${\boldsymbol a}\,{\boldsymbol x} \le b$ and $-{\boldsymbol a}\,{\boldsymbol x} \le -b$
Explanation. An equality is equivalent to two opposite inequalities; the union of the two half-spaces would instead be the whole $\R^n$.
lp-f-02-06 · level facile · notes
Which of the following polyhedra in $\R^2$ is bounded?
  1. $\{x_1 + x_2 \ge 4,~ x_1 \ge 0,~ x_2 \ge 0\}$
  2. $\{x_1 + x_2 \le 4,~ x_1 \ge 0,~ x_2 \ge 0\}$
  3. $\{x_1 - x_2 \le 1,~ x_1 \ge 0,~ x_2 \ge 0\}$
  4. $\{x_1 \le 4,~ x_2 \le 4\}$
Explanation. The first one is the triangle with vertices $(0,0)$, $(4,0)$, $(0,4)$: ${\boldsymbol \beta} = (4,4)$ suffices. The others contain half-lines.
lp-f-02-07 · level facile · notes
A polyhedron $P \subseteq \R^2$ contains the points $(3,5)$ and $(5,3)$. Which of the following points certainly belongs to $P$?
  1. $(1, -1)$
  2. $(8, 8)$
  3. $(6, 2)$
  4. $(4, 4)$
Explanation. A polyhedron is convex: it contains $\lambda(3,5) + (1-\lambda)(5,3)$ for $\lambda \in [0,1]$; with $\lambda = \frac{1}{2}$ we get $(4,4)$. $(6,2)$ lies on the line but outside the segment.
lp-f-02-08 · level facile · notes
Which of the following subsets of $\R^2$ is not a polyhedron?
  1. $\{{\boldsymbol x} \in \R^2 : x_1 + x_2 = 1\}$
  2. $\{{\boldsymbol x} \in \R^2 : x_1 \ge 0\}$
  3. $\{{\boldsymbol x} \in \R^2 : x_1^2 + x_2^2 \le 1\}$
  4. $\{{\boldsymbol x} \in \R^2 : 0 \le x_1 \le 1,~ 0 \le x_2 \le 1\}$
Explanation. The disc cannot be obtained with a finite number of linear inequalities. The other three are a hyperplane (two inequalities), a half-space and a square (four inequalities).
lp-f-02-09 · level facile · notes
A polyhedron $P \subseteq \R^n$ is bounded if it is contained in a ball of finite radius. Is the polyhedron $P = \{{\boldsymbol x} \in \R^2 : x_1 \le 1,~ -x_1 \le 1\}$ bounded?
  1. No: it is not a polyhedron
  2. No: $x_2$ can grow without bound
  3. Yes: it is defined by a finite number of half-spaces
  4. Yes: we have $-1 \le x_1 \le 1$
Explanation. $P$ is the vertical strip $-1 \le x_1 \le 1$: no constraint bounds $x_2$, so the points $(0, t)$ with large $t$ are in $P$. A finite number of half-spaces does not guarantee boundedness.
lp-f-02-10 · level facile · notes
Consider the half-space $\{{\boldsymbol x} \in \R^2 : x_1 + 2x_2 \le 4\}$. Which vector is perpendicular to its supporting hyperplane and points out of the half-space?
  1. $(1, 2)$
  2. $(2, 1)$
  3. $(-1, -2)$
  4. $(2, -1)$
Explanation. The coefficient vector $(1, 2)$ is perpendicular to the line $x_1 + 2x_2 = 4$ and, moving along it, $x_1 + 2x_2$ grows beyond $4$. The vector $(-1,-2)$ points inside, $(2,-1)$ is parallel to the line and $(2,1)$ is not perpendicular to it.
lp-f-02-11 · level facile · notes
Which point belongs to the supporting hyperplane of the half-space $\{{\boldsymbol x} \in \R^2 : 2x_1 - x_2 \le 4\}$, i.e., to the line $2x_1 - x_2 = 4$?
  1. $(2, 0)$
  2. $(1, -1)$
  3. $(3, 1)$
  4. $(0, 4)$
Explanation. $2 \cdot 2 - 0 = 4$. At the other points $2x_1 - x_2$ takes the values $-4$, $3$ and $5$: the first two lie in the half-space but not on the hyperplane, the last one is outside.
lp-f-02-12 · level facile · notes
A polyhedron is the intersection of a finite number of half-spaces. Let $P_1$ and $P_2$ be two polyhedra in $\R^n$. Which set is always a polyhedron?
  1. $P_1 \cap P_2$
  2. The set of points at distance at most $1$ from $P_1$
  3. $\R^n \setminus P_1$
  4. $P_1 \cup P_2$
Explanation. $P_1 \cap P_2$ is defined by the union of the two finite systems of inequalities. Union and complement may be non-convex, and the neighbourhood of a polyhedron has curved boundaries in general.
lp-f-02-k01 · level teorema · notes
Which statement about the intersection of two polyhedra $P_1 = \{{\boldsymbol x} : {\boldsymbol A}_1{\boldsymbol x} \le {\boldsymbol b}_1\}$ and $P_2 = \{{\boldsymbol x} : {\boldsymbol A}_2{\boldsymbol x} \le {\boldsymbol b}_2\}$ is correct?
  1. It is a polyhedron only if $P_1 \subseteq P_2$
  2. It is never a polyhedron, because constraints double
  3. It is a polyhedron only if $P_1$ and $P_2$ are bounded
  4. It is a polyhedron: just join the two systems of inequalities
Explanation. $P_1 \cap P_2$ is described by the rows of both systems: finitely many half-spaces.
lp-f-02-k02 · level teorema · notes
Which statement about polyhedra and polytopes is correct?
  1. A bounded polyhedron is never convex
  2. A polytope is a bounded polyhedron
  3. Every polyhedron is a polytope
  4. A polytope can be unbounded
Explanation. A polytope is the bounded case of a polyhedron; both are convex.
lp-f-02-k03 · level ipotesi · notes
To prove that a polyhedron $P = \{{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}\}$ is convex, which fact suffices?
  1. ${\boldsymbol A}$ has full rank
  2. ${\boldsymbol b} \ge {\boldsymbol 0}$
  3. $P$ is bounded
  4. Every half-space is convex
Explanation. If ${\boldsymbol a}'{\boldsymbol x} \le b$ and ${\boldsymbol a}'{\boldsymbol y} \le b$, every convex combination satisfies the same constraint.
lp-f-02-k04 · level ipotesi · notes
To conclude that $P = \{{\boldsymbol x} \in \R^2 : x_1 + x_2 \le 4,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is a polytope, what is used?
  1. That $P$ contains the origin
  2. That the coefficients are integer
  3. That $0 \le x_j \le 4$ for every point: $P$ is bounded
  4. That $P$ has exactly three constraints
Explanation. From ${\boldsymbol x} \ge {\boldsymbol 0}$ and $x_1 + x_2 \le 4$ we get $x_j \le 4$: $P$ lies in a bounded box.

3. Linear optimization problems (23)

lp-f-03-01 · level facile · notes
Consider the LP problem in minimization form $\min\{f({\boldsymbol x}) : {\boldsymbol x} \in F\}$, with $f$ linear and feasible region $F \subseteq \R^n$. When is a point $\tilde{\boldsymbol x}(LP)$ an optimal solution?
  1. If $\tilde{\boldsymbol x}(LP) \in F$ and $f(\tilde{\boldsymbol x}(LP)) \le f({\boldsymbol x})$ for every ${\boldsymbol x} \in F$
  2. If $\tilde{\boldsymbol x}(LP)$ is the point of $F$ closest to the origin
  3. If $\tilde{\boldsymbol x}(LP) \in F$ and $f(\tilde{\boldsymbol x}(LP)) \le f({\boldsymbol x})$ for at least one ${\boldsymbol x} \in F$
  4. If $f(\tilde{\boldsymbol x}(LP)) \le f({\boldsymbol x})$ for every ${\boldsymbol x} \in \R^n$
Explanation. An optimal solution must be feasible and not worse than all the feasible solutions.
lp-f-03-02 · level facile · notes
An LP problem in maximization form, with optimal value $z(LP)$, has three known feasible solutions, of value $3$, $7$ and $5$. What can be concluded about $z(LP)$?
  1. $z(LP) \ge 15$
  2. $z(LP) \le 7$
  3. $z(LP) \ge 7$
  4. $z(LP) = 7$
Explanation. In maximization form every feasible solution gives a lower bound $LB(\bar{\boldsymbol x}) \le z(LP)$; the best one is $7$. Whether it is optimal is unknown.
lp-f-03-03 · level facile · notes
An LP problem has a linear objective function and a feasible region defined by a finite number of linear constraints. For which reasons may it have no optimal solution?
  1. Also because the supremum of the objective function over $F$ may be finite but not attained
  2. Also because the feasible region is unbounded
  3. Also because it has several optimal solutions
  4. Only because it is infeasible or unbounded
Explanation. A polyhedron is closed and the function is linear: if the problem is feasible and not unbounded, the optimum is attained. An unbounded region does not prevent an optimum.
lp-f-03-04 · level teorema · notes
Let $F \subseteq \R^n$ be the feasible region of an LP problem, ${\boldsymbol c} \in \R^n$ and $a \in \R$, and assume that $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$ exists. Which property always holds?
  1. $\min\{a + {\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = a \cdot \min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$
  2. $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = \max\{-{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$
  3. For $a > 0$: $\min\{a\,{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = a\,\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$
  4. For $a < 0$: $\min\{a\,{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = a\,\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$
Explanation. Multiplying by $a > 0$ does not change the optimal solutions. For $a < 0$ the minimum becomes $a$ times the maximum, a constant is added, and $\min\{{\boldsymbol c}'{\boldsymbol x}\} = -\max\{-{\boldsymbol c}'{\boldsymbol x}\}$.
lp-f-03-05 · level facile · notes
What are the optimal solution $\tilde x$ and the optimal value $z(LP)$ of the LP problem in one variable $\min\{2x + 1 : -2 \le x \le 3\}$?
  1. $\tilde x = 0$, $z(LP) = 1$
  2. $\tilde x = -2$, $z(LP) = -3$
  3. $\tilde x = -2$, $z(LP) = -4$
  4. $\tilde x = 3$, $z(LP) = 7$
Explanation. The function is strictly increasing ($f'(x) = 2 > 0$), so the minimum is at the left endpoint: $2(-2) + 1 = -3$.
lp-f-03-06 · level facile · notes
Knowing that $\min\{\frac{1}{2}x : -5 \le x \le 5\} = -\frac{5}{2}$, what is $\min\{\frac{1}{2}x - 2 : -5 \le x \le 5\}$?
  1. $-\frac{5}{2}$
  2. $-\frac{1}{2}$
  3. $-\frac{9}{2}$
  4. $5$
Explanation. Adding a constant does not change the optimal solutions: the optimal value is $-2 + (-\frac{5}{2}) = -\frac{9}{2}$.
lp-f-03-07 · level facile · notes
What can be said about the LP problem in one variable $\max\{2x + 1 : x \ge -2\}$ and its optimal value $z(LP)$?
  1. It has an optimal solution, since the function is linear
  2. It is infeasible
  3. It is unbounded: $z(LP) = +\infty$
  4. It has optimal solution $\tilde x = -2$ with $z(LP) = -3$
Explanation. For every $M \ge 0$ the feasible solution $x = M$ has value $2M + 1 > M$: the objective function grows without bound.
lp-f-03-08 · level facile · notes
In an LP problem in minimization form, with optimal value $z(LP)$, a feasible solution $\bar{\boldsymbol x}$ with objective function value $f(\bar{\boldsymbol x}) = 12$ is known. What can be concluded?
  1. That $z(LP) = 12$
  2. Nothing about $z(LP)$
  3. The upper bound $z(LP) \le 12$
  4. The lower bound $z(LP) \ge 12$
Explanation. The minimum does not exceed the value of any feasible solution: $UB(\bar{\boldsymbol x}) = 12 \ge z(LP)$. In maximization form a feasible solution gives a lower bound instead.
lp-f-03-09 · level facile · notes
What are the optimal solution $\tilde x$ and the optimal value $z(LP)$ of the LP problem in one variable $\max\{-3x + 2 : 1 \le x \le 4\}$?
  1. $\tilde x = 4$, $z(LP) = -10$
  2. $\tilde x = 4$, $z(LP) = 14$
  3. $\tilde x = 1$, $z(LP) = -1$
  4. $\tilde x = 0$, $z(LP) = 2$
Explanation. The coefficient $-3$ is negative: the function decreases with $x$ and the maximum is at the left end point $x = 1$, with value $-3 + 2 = -1$. The point $x = 0$ is not feasible.
lp-f-03-10 · level facile · notes
Let $F$ be the feasible region of an LP problem and assume that $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = 5$. What can be said about $\min\{-2\,{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$?
  1. It equals $-\frac{5}{2}$, i.e., $5 / (-2)$
  2. It equals $10$, i.e., $2 \cdot 5$
  3. It equals $-10$, i.e., $-2 \cdot 5$
  4. It cannot be deduced: it equals $-2\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$
Explanation. Multiplying by $a = -2 < 0$ swaps minimum and maximum: $\min\{-2\,{\boldsymbol c}'{\boldsymbol x}\} = -2\max\{{\boldsymbol c}'{\boldsymbol x}\}$, which the minimum does not determine. The rule $\min\{a f\} = a\min\{f\}$ holds only for $a > 0$.
lp-f-03-11 · level teorema · notes
Consider an LP problem $\max\{f({\boldsymbol x}) : {\boldsymbol x} \in F\}$, with $f$ linear and feasible region $F$. Which statement about optimal solutions and optimal value $z(LP)$ is correct?
  1. If it exists, the optimal solution is unique, while the optimal value may not be unique
  2. If it exists, the optimal value is unique, while there can be more than one optimal solution
  3. Different optimal solutions can have different optimal values of the objective function
  4. If they exist, the optimal solution and the optimal value are always both unique
Explanation. The optimal value is the maximum of $f$ over $F$, hence it is unique; all optimal solutions share that value, but they can be infinitely many (for instance a whole edge).
lp-f-03-12 · level facile · notes
Consider the LP problem $\max\{x_1 + x_2 : x_1 + x_2 \le 3,~ x_1, x_2 \ge 0\}$. Which point is a feasible but not optimal solution?
  1. $(-1, 2)$
  2. $(1, 1)$
  3. $(2, 1)$
  4. $(3, 1)$
Explanation. $(1, 1)$ satisfies the constraints and has value $2 < 3 = z(LP)$. The point $(2, 1)$ is optimal (value $3$), $(3, 1)$ violates $x_1 + x_2 \le 3$ and $(-1, 2)$ violates $x_1 \ge 0$.
lp-f-03-k01 · level facile · notes
Which ingredients define a linear programming (LP) problem?
  1. Linear constraints and quadratic objective
  2. Any objective and constraints, as long as continuous
  3. Linear objective and integer variables
  4. Linear objective, linear constraints, real variables
Explanation. An LP problem optimizes a linear function over a polyhedron, with continuous variables.
lp-f-03-k02 · level facile · notes
Which of the following is an LP problem?
  1. $\max\ x_1 + x_2$, $x_1, x_2 \in \{0,1\}$
  2. $\max\ 2x_1 - x_2$, $x_1 + x_2 \le 3$, $x_1 \ge 0$
  3. $\max\ x_1 + x_2$, $x_1^2 + x_2^2 \le 1$
  4. $\max\ x_1 x_2$, $x_1 + x_2 \le 3$, ${\boldsymbol x} \ge {\boldsymbol 0}$
Explanation. Linear objective and constraints; a free variable is allowed. The others have products, squares or binary variables.
lp-f-03-k03 · level teorema · notes
Which statement about the feasible region of an LP problem is correct?
  1. It is a finite set of points
  2. It is always nonempty
  3. It is a convex polyhedron
  4. It is always bounded
Explanation. Linear constraints describe an intersection of half-spaces (and hyperplanes).
lp-f-03-k04 · level ipotesi · notes
We want to prove that the midpoint of two feasible solutions of an LP problem is feasible. What is needed?
  1. That the constraints are linear.
  2. That the problem is bounded
  3. That the two solutions are optimal
  4. That the variables are integer
Explanation. A convex combination of points satisfying ${\boldsymbol a}'{\boldsymbol x} \le b$ still satisfies it.
lp-f-03-k05 · level facile · notes
In the LP problem $\max\ x_1 + x_2$, $x_1 \le 2$, $x_2 \le 3$, ${\boldsymbol x} \ge {\boldsymbol 0}$, what does the feasible region look like?
  1. Only the integer points of the rectangle
  2. The triangle with vertices $(0,0)$, $(2,0)$, $(0,3)$
  3. The segment from $(2,0)$ to $(0,3)$
  4. The rectangle $[0,2] \times [0,3]$
Explanation. The four constraints bound a rectangle; the variables are continuous.
lp-f-03-k06 · level facile · notes
In the LP problem $\max\ 3x_1 + 2x_2$ with $x_1 + x_2 \le 4$, ${\boldsymbol x} \ge {\boldsymbol 0}$, what is the objective value at the feasible point $(1, 2)$?
  1. $3$
  2. $5$
  3. $8$
  4. $7$
Explanation. $3 \cdot 1 + 2 \cdot 2 = 7$.
lp-f-03-k07 · level facile · notes
In the LP problem $\max\ x_1 + x_2$ with $x_1 + x_2 \le 4$, ${\boldsymbol x} \ge {\boldsymbol 0}$, which statement about the optimal solutions is correct?
  1. The optimal solutions are only $(4,0)$ and $(0,4)$
  2. There are infinitely many, all with optimal value $4$
  3. There is a unique optimal solution, $(2,2)$
  4. There are no optimal solutions: the problem is unbounded
Explanation. Every point of the segment $x_1 + x_2 = 4$, ${\boldsymbol x} \ge {\boldsymbol 0}$, has value $4$.
lp-f-03-k08 · level facile · notes
In a maximization LP problem with feasible region $X$, when is a point $\tilde{\boldsymbol x}$ an optimal solution?
  1. If ${\boldsymbol c}'\tilde{\boldsymbol x} \ge {\boldsymbol c}'{\boldsymbol x}$ for every ${\boldsymbol x} \in \R^n$
  2. If $\tilde{\boldsymbol x} \in X$ has the largest value among those computed
  3. If $\tilde{\boldsymbol x} \in X$ and ${\boldsymbol c}'\tilde{\boldsymbol x} \ge {\boldsymbol c}'{\boldsymbol x}$ for every ${\boldsymbol x} \in X$
  4. If $\tilde{\boldsymbol x}$ is any vertex of $X$
Explanation. It must be feasible and not worse than any other feasible point.
lp-f-03-k09 · level teorema · notes
Which statement about the optimal value $z(LP)$ of a maximization LP problem with an optimal solution is correct?
  1. It is unique, even when there are many optimal solutions
  2. It changes with the optimal solution chosen
  3. It is always an integer
  4. It is always positive
Explanation. All optimal solutions have the same objective value.
lp-f-03-k10 · level facile · notes
Does the LP problem $\max\ x_1$ with $x_1 - x_2 \le 1$, ${\boldsymbol x} \ge {\boldsymbol 0}$ have an optimal solution?
  1. Yes: $(1, 0)$ with value $1$
  2. No: it is infeasible
  3. No: it is unbounded
  4. Yes: $(0, 0)$ with value $0$
Explanation. The points $(t+1, t)$ are feasible for every $t \ge 0$ and have value $t + 1$.
lp-f-03-k11 · level facile · notes
In a maximization LP problem, the feasible solution $\bar{\boldsymbol x}$ has value ${\boldsymbol c}'\bar{\boldsymbol x} = 12$. What is known about the optimal value $z(LP)$?
  1. $z(LP) \ge 12$
  2. $z(LP) \le 12$
  3. Nothing, until a vertex is known
  4. $z(LP) = 12$
Explanation. The value of a feasible solution is a lower bound $LB(\bar{\boldsymbol x})$ on the optimal value.

4. Linear Programming problems (27)

lp-f-04-01 · level facile · notes
Given ${\boldsymbol A} \in \R^{m \times n}$, ${\boldsymbol b} \in \R^m$ and ${\boldsymbol c} \in \R^n$, which problem is in canonical maximization form?
  1. $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \ge {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$
  2. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}\}$
  3. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$
  4. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$
Explanation. Canonical maximization form: maximization, less-than-or-equal-to constraints and non-negative variables. With equality constraints we have the standard form.
lp-f-04-02 · level facile · notes
Given ${\boldsymbol A} \in \R^{m \times n}$, ${\boldsymbol b} \in \R^m$ and ${\boldsymbol c} \in \R^n$, which problem is in standard maximization form?
  1. $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \le {\boldsymbol 0}\}$
  2. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$
  3. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$
  4. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b}\}$
Explanation. Standard maximization form: maximization, equality constraints and non-negative variables.
lp-f-04-03 · level facile · notes
The feasible region of an LP problem in canonical maximization form with $n$ variables and $m$ constraints is the intersection of how many half-spaces?
  1. $m + n$
  2. $m \cdot n$
  3. $m$
  4. $n$
Explanation. Each less-than-or-equal-to constraint is a half-space, and each non-negativity constraint $x_j \ge 0$ is another half-space: $m + n$.
lp-f-04-04 · level facile · notes
In the graphical method for an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with two variables and a bounded non-empty feasible region $F$, where is an optimal solution?
  1. At the last point of $F$ touched by the level lines moved in the direction of the gradient ${\boldsymbol c}$
  2. At the last point of $F$ touched by the level lines moved in the direction of $-{\boldsymbol c}$
  3. At the point of $F$ closest to the origin, measured along the direction of the gradient ${\boldsymbol c}$
  4. At the point where all the constraint lines intersect, if such a point exists
Explanation. In maximization form the function increases along ${\boldsymbol c}$: the level line is moved in that direction as long as it still touches $F$.
lp-f-04-05 · level facile · notes
For the LP problem of the paint production example $\max\{5x_1 + 2x_2 : -x_1 + 3x_2 \le 12,~ x_1 + 2x_2 \le 12,~ 3x_1 - 2x_2 \le 8,~ x_1, x_2 \ge 0\}$, which lower bound $LB(\bar{\boldsymbol x})$ on the optimal value does the point $\bar{\boldsymbol x} = (0, 4)$ give?
  1. $LB(\bar{\boldsymbol x}) = 8$
  2. $LB(\bar{\boldsymbol x}) = 20$
  3. $LB(\bar{\boldsymbol x}) = 12$
  4. None: $(0,4)$ is not feasible
Explanation. $(0,4)$ satisfies the constraints ($12 \le 12$, $8 \le 12$, $-8 \le 8$) and $LB = 5 \cdot 0 + 2 \cdot 4 = 8 \le z(LP)$.
lp-f-04-06 · level facile · notes
How is the feasible region of an LP problem in standard maximization form defined, with data ${\boldsymbol A} \in \R^{m \times n}$, ${\boldsymbol b} \in \R^m$, ${\boldsymbol c} \in \R^n$?
  1. By the constraints ${\boldsymbol A}{\boldsymbol x} = {\boldsymbol b}$ only, with ${\boldsymbol x}$ free
  2. By the constraints ${\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}$ and ${\boldsymbol x} \ge {\boldsymbol 0}$
  3. By the constraints ${\boldsymbol A}{\boldsymbol x} \ge {\boldsymbol b}$ and ${\boldsymbol x} \ge {\boldsymbol 0}$
  4. By the constraints ${\boldsymbol A}{\boldsymbol x} = {\boldsymbol b}$ and ${\boldsymbol x} \ge {\boldsymbol 0}$
Explanation. $F = \{{\boldsymbol x} \in \R^n : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$: hyperplanes intersected with the non-negative orthant.
lp-f-04-07 · level facile · notes
In the graphical method for an LP problem in canonical maximization form with two variables and feasible region $F$, the last level line touching $F$, moving in the direction of the gradient, contains a whole bounded edge of $F$. What is concluded?
  1. The problem has infinitely many optimal solutions: all the points of the edge
  2. The problem has no optimal solution, since it is not unique
  3. Only the two end points of the edge are optimal solutions
  4. The problem is unbounded, since the optimal solutions are infinitely many
Explanation. All the points of the edge have the same value, the optimal one; as for every convex combination of optimal solutions, there are infinitely many.
lp-f-04-08 · level facile · notes
With the graphical method, what are an optimal solution and the optimal value of the LP problem $\max\{3x_1 + x_2 : x_1 + x_2 \le 4,~ x_1 \le 3,~ x_1, x_2 \ge 0\}$?
  1. $\tilde{\boldsymbol x} = (3, 0)$, $z(LP) = 9$
  2. $\tilde{\boldsymbol x} = (0, 4)$, $z(LP) = 4$
  3. $\tilde{\boldsymbol x} = (3, 1)$, $z(LP) = 10$
  4. $\tilde{\boldsymbol x} = (4, 0)$, $z(LP) = 12$
Explanation. The vertices of the feasible region are $(0,0)$, $(3,0)$, $(3,1)$ and $(0,4)$, with values $0$, $9$, $10$ and $4$. The point $(4,0)$ violates $x_1 \le 3$.
lp-f-04-09 · level facile · notes
An LP problem in canonical maximization form with $n$ variables and $m$ constraints is transformed into standard maximization form by adding one slack variable per constraint. How many variables and equality constraints does the new problem have?
  1. $n + m$ variables and $n + m$ constraints
  2. $n$ variables and $n + m$ constraints
  3. $n$ variables and $m$ constraints
  4. $n + m$ variables and $m$ constraints
Explanation. Each constraint ${\boldsymbol a}_i{\boldsymbol x} \le b_i$ becomes ${\boldsymbol a}_i{\boldsymbol x} + x_{n+i} = b_i$ with $x_{n+i} \ge 0$: the variables become $n + m$ and the constraints remain $m$.
lp-f-04-10 · level facile · notes
For the LP problem in standard form $\max\{2x_1 + x_2 : x_1 + x_2 + x_3 = 4,~ x_1 - x_2 + x_4 = 2,~ x_1, x_2, x_3, x_4 \ge 0\}$, which statement on a solution $\bar{\boldsymbol x}$ and on the lower bound $LB(\bar{\boldsymbol x})$ is correct?
  1. $\bar{\boldsymbol x} = (2, 2, 0, 0)$ is feasible, with $LB(\bar{\boldsymbol x}) = 6$
  2. $\bar{\boldsymbol x} = (1, 1, 2, 2)$ is feasible, with $LB(\bar{\boldsymbol x}) = 7$
  3. $\bar{\boldsymbol x} = (4, 0, 0, -2)$ is feasible, with $LB(\bar{\boldsymbol x}) = 8$
  4. $\bar{\boldsymbol x} = (3, 1, 0, 0)$ is feasible, with $LB(\bar{\boldsymbol x}) = 7$
Explanation. $(3,1,0,0)$ satisfies $3+1+0 = 4$, $3-1+0 = 2$ and non-negativity, with value $2 \cdot 3 + 1 = 7$. $(1,1,2,2)$ is feasible but has value $3$; $(2,2,0,0)$ violates the second constraint and $(4,0,0,-2)$ non-negativity.
lp-f-04-11 · level facile · notes
Which point belongs to the feasible region of the LP problem in standard maximization form $\max\{x_1 + 2x_2 : x_1 + x_2 + x_3 = 4,~ x_1, x_2, x_3 \ge 0\}$?
  1. $(2, 1, 2)$
  2. $(1, 2, 0)$
  3. $(1, 2, 1)$
  4. $(3, 2, -1)$
Explanation. $(1,2,1)$ satisfies the equality ($1 + 2 + 1 = 4$) and non-negativity. $(1,2,0)$ and $(2,1,2)$ give sums $3$ and $5$; $(3,2,-1)$ satisfies the equality but has $x_3 < 0$.
lp-f-04-12 · level facile · notes
For an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with optimal value $z(LP)$, for which points $\bar{\boldsymbol x}$ is the value ${\boldsymbol c}'\bar{\boldsymbol x}$ a lower bound $LB(\bar{\boldsymbol x}) \le z(LP)$?
  1. Only for the optimal solutions $\bar{\boldsymbol x}$ of the problem
  2. For every $\bar{\boldsymbol x}$ with ${\boldsymbol A}\bar{\boldsymbol x} = {\boldsymbol b}$, even with negative entries
  3. For every $\bar{\boldsymbol x} \ge {\boldsymbol 0}$, even if ${\boldsymbol A}\bar{\boldsymbol x} \ne {\boldsymbol b}$
  4. For every $\bar{\boldsymbol x}$ with ${\boldsymbol A}\bar{\boldsymbol x} = {\boldsymbol b}$ and $\bar{\boldsymbol x} \ge {\boldsymbol 0}$
Explanation. Every feasible solution, i.e., with ${\boldsymbol A}\bar{\boldsymbol x} = {\boldsymbol b}$ and $\bar{\boldsymbol x} \ge {\boldsymbol 0}$, has value not larger than the maximum. An infeasible point may have a value larger than $z(LP)$.
lp-f-04-k01 · level facile · notes
What characterizes an LP problem in canonical maximization form?
  1. Maximum, only $\le$ constraints, nonnegative variables
  2. Maximum, only $=$ constraints, nonnegative variables
  3. Minimum, only $\ge$ constraints, free variables
  4. Maximum, any constraints, free variables
Explanation. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$.
lp-f-04-k02 · level facile · notes
What characterizes an LP problem in standard maximization form?
  1. Maximum, equality constraints, free variables
  2. Maximum, only equality constraints, nonnegative variables
  3. Maximum, only $\le$ constraints, nonnegative variables
  4. Minimum, only $\ge$ constraints, nonnegative variables
Explanation. $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$.
lp-f-04-k03 · level teorema · notes
Which statement about the canonical maximization form is correct?
  1. Only problems with ${\boldsymbol b} \ge {\boldsymbol 0}$ have a canonical form
  2. A minimization problem has no canonical maximization form
  3. A problem with a free variable has no canonical form
  4. Every LP problem can be rewritten in canonical maximization form
Explanation. Change the sign of the objective, multiply $\ge$ constraints by $-1$, split equalities, write free variables as differences.
lp-f-04-k04 · level teorema · notes
Which statement about passing from canonical to standard maximization form is correct?
  1. Nonnegativity of the variables is removed
  2. Every constraint is multiplied by $-1$
  3. Every constraint is replaced by two $\ge$ constraints
  4. A slack variable $x_{n+i} \ge 0$ is added to every $\le$ constraint
Explanation. $\sum_j a_{ij} x_j \le b_i$ becomes $\sum_j a_{ij} x_j + x_{n+i} = b_i$ with $x_{n+i} \ge 0$.
lp-f-04-k05 · level ipotesi · notes
We want to prove that, adding slack variables, the canonical and the standard forms have the same optimal value. What is needed?
  1. That the matrix ${\boldsymbol A}$ is square
  2. That slacks are nonnegative and absent from the objective
  3. That the problem has a unique optimal solution
  4. That ${\boldsymbol b}$ is nonnegative
Explanation. Every canonical feasible ${\boldsymbol x}$ gives slacks $b_i - \sum_j a_{ij}x_j \ge 0$, and conversely; the value does not change.
lp-f-04-k06 · level ipotesi · notes
To rewrite a constraint $\sum_j a_{ij} x_j \ge b_i$ in canonical maximization form, which operation is legitimate and why?
  1. Changing $\ge$ into $\le$ and nothing else
  2. Subtracting $b_i$ from both sides
  3. Multiplying it by $-1$, flipping it
  4. Adding a slack variable
Explanation. $-\sum_j a_{ij} x_j \le -b_i$ has exactly the same solutions.
lp-f-04-k07 · level facile · notes
The LP problem in canonical maximization form $\max\ 2x_1 + x_2$, $x_1 + x_2 \le 5$, $x_1 - x_2 \le 1$, ${\boldsymbol x} \ge {\boldsymbol 0}$: which point is feasible?
  1. $(2, 2)$
  2. $(-1, 3)$
  3. $(3, 1)$
  4. $(4, 2)$
Explanation. $(2,2)$: $4 \le 5$ and $0 \le 1$. $(3,1)$ violates $x_1 - x_2 \le 1$; $(4,2)$ the first constraint; $(-1,3)$ nonnegativity.
lp-f-04-k08 · level facile · notes
An LP problem in canonical maximization form has $n$ variables and $m$ constraints. By how many inequalities in total is the feasible region described?
  1. $m + n$
  2. $m \cdot n$
  3. $m$
  4. $n$
Explanation. The $m$ constraints ${\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}$ plus the $n$ nonnegativity constraints.
lp-f-04-k09 · level facile · notes
For the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol c} = (3, 1)$, the points $(1,1)$ and $(2,0)$ are feasible. Which lower bound on the optimal value $z(LP)$ is the best they give?
  1. $6$
  2. $2$
  3. $10$
  4. $4$
Explanation. Values $4$ and $6$: the best lower bound is the maximum, $6$.
lp-f-04-k10 · level facile · notes
In an LP problem in canonical maximization form, a point $\bar{\boldsymbol x}$ with ${\boldsymbol A}\bar{\boldsymbol x} \le {\boldsymbol b}$ but $\bar x_1 < 0$ has value $15$. Is $z(LP) \ge 15$?
  1. No, never
  2. Yes, if $15$ is an integer
  3. Yes, always
  4. No: it is not feasible
Explanation. Only the value of a feasible solution (also ${\boldsymbol x} \ge {\boldsymbol 0}$) is a lower bound.
lp-f-04-k11 · level facile · notes
The problem in standard maximization form $\max\ x_1 + 2x_2$, $x_1 + x_2 + x_3 = 4$, $x_1 - x_2 + x_4 = 2$, ${\boldsymbol x} \ge {\boldsymbol 0}$: which point is feasible?
  1. $(1, 1, 2, 2)$
  2. $(1, 1, 2, 0)$
  3. $(2, 2, 0, 1)$
  4. $(3, 0, 1, 0)$
Explanation. $(1,1,2,2)$: $1+1+2 = 4$ and $1-1+2 = 2$. $(3,0,1,0)$: $3 - 0 + 0 = 3 \neq 2$.
lp-f-04-k12 · level facile · notes
In the problem in standard maximization form $\max\ 3x_1 + x_2$, $x_1 + x_2 + x_3 = 4$, ${\boldsymbol x} \ge {\boldsymbol 0}$, which lower bound on the optimal value does the feasible solution $(4, 0, 0)$ give?
  1. $4$
  2. $16$
  3. $12$
  4. $3$
Explanation. $LB = 3 \cdot 4 + 0 = 12$; it is in fact the optimum.
lp-f-04-k13 · level facile · notes
In the graphical method for a maximization LP problem in two variables, how is an optimal solution found?
  1. Moving the level line along ${\boldsymbol c}$ up to the last point of the region
  2. Moving the level line against ${\boldsymbol c}$ up to the first point
  3. Taking the centroid of the feasible region
  4. Choosing the point of the region farthest from the origin
Explanation. The function increases along the gradient ${\boldsymbol c}$; the last contact with the region is optimal.
lp-f-04-k14 · level facile · notes
With the graphical method, $\max\ x_1 + 3x_2$ over $x_1 + x_2 \le 4$, $x_2 \le 2$, ${\boldsymbol x} \ge {\boldsymbol 0}$: what is the optimal solution?
  1. $(0, 2)$ with value $6$
  2. $(4, 0)$ with value $4$
  3. $(2, 2)$ with value $8$
  4. $(0, 4)$ with value $12$
Explanation. Vertices $(0,0)$, $(4,0)$, $(2,2)$, $(0,2)$: values $0, 4, 8, 6$. $(0,4)$ violates $x_2 \le 2$.
lp-f-04-k15 · level facile · notes
In the graphical method for $\max\ c_1 x_1 + c_2 x_2$, the level line is parallel to an edge of the feasible region that it touches last. What is concluded?
  1. The problem is unbounded
  2. The problem is infeasible
  3. Only the midpoint of the edge is optimal
  4. All the points of that edge are optimal
Explanation. All the points of the edge have the same maximum value: multiple optima.

5. Possible outcomes and equivalent formulations (40)

lp-f-05-01 · level facile · notes
Which statement about the possible outcomes of an LP problem is correct?
  1. An LP problem can be both infeasible and unbounded
  2. An LP problem with an unbounded feasible region is unbounded
  3. Exactly one of the following holds: infeasible, unbounded, admits an optimal solution
  4. A feasible LP problem always admits an optimal solution
Explanation. The three outcomes are mutually exclusive and there is no fourth one; an unbounded region may still have an optimal solution.
lp-f-05-02 · level facile · notes
When is an LP problem in maximization form $\max\{f({\boldsymbol x}) : {\boldsymbol x} \in F\}$, with $f$ linear and feasible region $F$, called unbounded?
  1. If for every $M \in \R$ there exists $\bar{\boldsymbol x} \in F$ with $f(\bar{\boldsymbol x}) > M$
  2. If the feasible region $F$ is unbounded
  3. If there exists $\bar{\boldsymbol x} \in F$ with $f(\bar{\boldsymbol x}) = +\infty$
  4. If there exists $M \in \R$ with $f({\boldsymbol x}) > M$ for every ${\boldsymbol x} \in F$
Explanation. Unbounded means that the values of the feasible solutions exceed any threshold; no solution has an infinite value.
lp-f-05-03 · level teorema · notes
Which statement about the optimal solutions of an LP problem is correct?
  1. An LP problem admitting an optimal solution admits either exactly one or infinitely many optimal solutions
  2. If an LP problem has infinitely many optimal solutions, then it is unbounded
  3. An LP problem can have exactly two optimal solutions, at two adjacent vertices
  4. If the feasible region is bounded, the optimal solution is unique
Explanation. If $\tilde{\boldsymbol x}^{(1)}$ and $\tilde{\boldsymbol x}^{(2)}$ are optimal, so is every $\lambda \tilde{\boldsymbol x}^{(1)} + (1-\lambda)\tilde{\boldsymbol x}^{(2)}$ with $\lambda \in [0,1]$.
lp-f-05-04 · level ipotesi · notes
Let $\tilde{\boldsymbol x}$ and $\hat{\boldsymbol x}$ be two optimal solutions of an LP problem with feasible region $F$. To prove that $\lambda\tilde{\boldsymbol x} + (1-\lambda)\hat{\boldsymbol x}$, with $\lambda \in [0,1]$, is optimal, which facts are used?
  1. The feasible region is bounded and the objective function is linear
  2. Each constraint of $F$ is preserved by combinations with weights $\lambda, 1-\lambda \ge 0$, and the objective function is linear
  3. Weak Duality and the Fundamental Theorem of Linear Programming
  4. Only the linearity of the objective function: the feasibility of the combination is automatic
Explanation. Feasibility follows from ${\boldsymbol a}{\boldsymbol x}^\lambda = \lambda {\boldsymbol a}\tilde{\boldsymbol x}^{(1)} + (1-\lambda){\boldsymbol a}\tilde{\boldsymbol x}^{(2)} \le b$ (non-negative weights are needed); the value $z(LP)$ from linearity. Boundedness is not needed.
lp-f-05-05 · level facile · notes
In an LP problem, how is a free variable $x_j \gtreqless 0$ (of any sign) replaced to obtain an equivalent problem with non-negative variables only?
  1. $x_j = x_j^+ + x_j^-$ with $x_j^+, x_j^- \ge 0$
  2. The constraint $x_j \ge 0$ is added
  3. $x_j = x_j^+ - x_j^-$ with $x_j^+, x_j^- \ge 0$
  4. $x_j = -x_j^+$ with $x_j^+ \ge 0$
Explanation. Every real number is the difference of two non-negative numbers; $x_j = -x_j^+$ is the substitution for non-positive variables.
lp-f-05-06 · level facile · notes
Which less-than-or-equal-to constraint is equivalent to $3x_1 - x_2 \ge 4$?
  1. $-3x_1 + x_2 \le -4$
  2. $-3x_1 + x_2 \le 4$
  3. $3x_1 - x_2 \le -4$
  4. $3x_1 - x_2 \le 4$
Explanation. Both sides, including the right-hand side, are multiplied by $-1$ and the direction is reversed.
lp-f-05-07 · level facile · notes
How is the constraint $2x_1 + x_2 \ge 5$ written as an equality with a surplus variable $x_3$?
  1. $2x_1 + x_2 - x_3 = 5$, $x_3 \ge 0$
  2. $2x_1 + x_2 + x_3 = 5$, $x_3 \ge 0$
  3. $2x_1 + x_2 - x_3 = 5$, $x_3 \gtreqless 0$
  4. $2x_1 + x_2 \le 5$ and $-2x_1 - x_2 \le -5$
Explanation. The non-negative surplus variable is subtracted; adding it corresponds to a less-than-or-equal-to constraint, and two opposite inequalities give an equality.
lp-f-05-08 · level facile · notes
An LP problem $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$, with optimal value $z(LP_{\min})$, is transformed into the problem $\max\{-{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\}$, with optimal value $z(LP_{\max})$. How are the two problems related?
  1. Same optimal solutions and $z(LP_{\min}) = -z(LP_{\max})$
  2. Same optimal solutions and $z(LP_{\min}) = z(LP_{\max})$
  3. Opposite optimal solutions and the same optimal value
  4. Opposite optimal solutions and opposite optimal values
Explanation. $\min\{f\} = -\max\{-f\}$ over the same $F$: the optimal points coincide, the values are opposite.
lp-f-05-09 · level facile · notes
The constraint $\frac{1}{2}x_1 + \frac{2}{3}x_2 \le \frac{5}{6}$ is multiplied by the Least Common Denominator. Which equivalent constraint with integer data is obtained?
  1. $3x_1 + 4x_2 \le 5$
  2. $x_1 + x_2 \le 1$
  3. $3x_1 + 4x_2 \le 30$
  4. $6x_1 + 6x_2 \le 5$
Explanation. $lcd = 6$: multiplying both sides by $6 > 0$ gives $3x_1 + 4x_2 \le 5$, with the same set of points.
lp-f-05-10 · level facile · notes
An LP problem in maximization form has a non-empty and unbounded feasible region $F$. What can be concluded about its outcome?
  1. It always has an optimal solution, since $F$ is non-empty
  2. It is unbounded, since $F$ is unbounded
  3. Nothing: it may be unbounded or have an optimal solution
  4. It has no optimal solution, but it is not unbounded
Explanation. Unboundedness concerns the values of the objective function, not the set $F$: for example $\max\{-x : x \ge 0\}$ has an unbounded $F$ and optimal solution $\tilde x = 0$, while $\max\{x : x \ge 0\}$ is unbounded.
lp-f-05-11 · level facile · notes
The two reference forms of LP problems are the canonical maximization form, $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, and the standard maximization form, $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$. What do they have in common?
  1. All constraints less-than-or-equal-to and an objective function to maximize
  2. All constraints equalities and all variables non-negative
  3. All right-hand sides non-negative and all variables non-negative
  4. An objective function to maximize and all variables non-negative
Explanation. Both maximize ${\boldsymbol c}'{\boldsymbol x}$ with ${\boldsymbol x} \ge {\boldsymbol 0}$; they differ in the constraints ($\le$ or $=$). The sign of the right-hand sides is fixed by neither of them.
lp-f-05-12 · level facile · notes
The LP problem $\max\{2x_1 + 2x_2 + x_3 : 2x_1 + 3x_2 + x_3 = 4,~ x_1, x_2, x_3 \ge 0\}$ has optimal value $z(LP) = 4$. What are its optimal solutions?
  1. All the points of the segment between $(2, 0, 0)$ and $(0, 0, 4)$
  2. Only the two vertices $(2, 0, 0)$ and $(0, 0, 4)$
  3. All the points of the feasible region
  4. Only the vertex $(2, 0, 0)$
Explanation. From the constraint, $2x_1 + 2x_2 + x_3 = 4 - x_2$: the value is $4$ if and only if $x_2 = 0$, i.e., on the whole segment $2x_1 + x_3 = 4$, $x_2 = 0$. If an LP problem has two optimal solutions, it has infinitely many.
lp-f-05-k01 · level facile · notes
What are the two reference forms of an LP problem in the linear programming module?
  1. Matrix form and graphical form
  2. Canonical maximization form and standard maximization form
  3. Canonical minimization form and standard minimization form
  4. Primal form and dual form
Explanation. Canonical: $\le$ constraints; standard: $=$ constraints; in both maximum and ${\boldsymbol x} \ge {\boldsymbol 0}$.
lp-f-05-k02 · level facile · notes
Why does the simplex algorithm work on the standard maximization form?
  1. Because equality constraints allow writing dictionaries
  2. Because the canonical form has no basic solutions
  3. Because the standard form has fewer variables
  4. Because in standard form always ${\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. With ${\boldsymbol A}{\boldsymbol x} = {\boldsymbol b}$ the basic variables are expressed through the nonbasic ones.
lp-f-05-k03 · level facile · notes
When is an LP problem called infeasible?
  1. When its feasible region is empty
  2. When the optimal solution is not a vertex
  3. When it has more constraints than variables
  4. When the objective is unbounded
Explanation. No point satisfies all the constraints.
lp-f-05-k04 · level facile · notes
The LP problem $\max\ x_1 + x_2$, $x_1 + x_2 \le 2$, $x_1 + x_2 \ge 3$, ${\boldsymbol x} \ge {\boldsymbol 0}$ is:
  1. infeasible
  2. with an optimal solution of value $3$
  3. with an optimal solution of value $2$
  4. unbounded
Explanation. No point has $x_1 + x_2$ both $\le 2$ and $\ge 3$.
lp-f-05-k05 · level teorema · notes
Which statement about an infeasible LP problem is correct?
  1. It is infeasible only if ${\boldsymbol b} < {\boldsymbol 0}$
  2. It stays infeasible when only the objective is changed
  3. It has optimal value $-\infty$ and hence an optimal solution
  4. It becomes feasible in standard form
Explanation. Feasibility depends only on the constraints; equivalent reformulations do not change it.
lp-f-05-k06 · level ipotesi · notes
To prove that $\{{\boldsymbol x} \ge {\boldsymbol 0} : x_1 + 2x_2 \le -1\}$ is empty, which argument suffices?
  1. The constraint has positive coefficients
  2. With ${\boldsymbol x} \ge {\boldsymbol 0}$ the left-hand side is $\ge 0 > -1$
  3. The right-hand side is an integer
  4. The problem has two variables
Explanation. A sum of nonnegative terms cannot be less than $0$.
lp-f-05-k07 · level facile · notes
When is a maximization LP problem called unbounded?
  1. When the feasible region is unbounded
  2. When it has infinitely many optimal solutions
  3. When it has no feasible solutions
  4. When feasible values have no bound
Explanation. An unbounded region is not enough: the objective value must grow without limit.
lp-f-05-k08 · level ipotesi · notes
To prove that a maximization LP problem is unbounded, what is it enough to find?
  1. A vertex with positive value
  2. A feasible direction ${\boldsymbol d}$ with ${\boldsymbol c}'{\boldsymbol d} > 0$
  3. Two feasible solutions with different values
  4. An unbounded feasible region
Explanation. Along $\bar{\boldsymbol x} + t{\boldsymbol d}$ the value grows like $t\,{\boldsymbol c}'{\boldsymbol d}$.
lp-f-05-k09 · level facile · notes
When are two LP problems called equivalent in the linear programming module?
  1. When they have the same constraint matrix
  2. When they always have the same feasible region and objective
  3. When an optimal solution of one yields an optimal solution of the other
  4. When they have the same number of variables
Explanation. Reformulations change variables and constraints, but the optimal solutions correspond.
lp-f-05-k10 · level teorema · notes
Which statement about the problem $\min {\boldsymbol c}'{\boldsymbol x}$ and the problem $\max (-{\boldsymbol c})'{\boldsymbol x}$, with the same constraints, is correct?
  1. They have different optimal solutions
  2. They are equivalent only if ${\boldsymbol c} \ge {\boldsymbol 0}$
  3. Same optima, opposite values
  4. They have the same optimal value
Explanation. $\min {\boldsymbol c}'{\boldsymbol x} = -\max(-{\boldsymbol c})'{\boldsymbol x}$ over the same region.
lp-f-05-k11 · level facile · notes
The problem $\min\ 2x_1 + 3x_2$ (constraints unchanged) has optimal value $7$. What is the optimal value of $\max\ -2x_1 - 3x_2$ with the same constraints?
  1. $7$
  2. Cannot say
  3. $\frac17$
  4. $-7$
Explanation. Changing the sign of the objective and passing from min to max changes the sign of the optimal value.
lp-f-05-k12 · level facile · notes
To write $\min\ x_1 - 4x_2$ in maximization form, which objective is used?
  1. $\max\ -x_1 - 4x_2$
  2. $\max\ x_1 - 4x_2$
  3. $\max\ x_1 + 4x_2$
  4. $\max\ -x_1 + 4x_2$
Explanation. $\min f = -\max(-f)$: change the sign of every coefficient.
lp-f-05-k13 · level facile · notes
How is the equality constraint $x_1 + 2x_2 = 5$ rewritten with only $\le$ constraints?
  1. $x_1 + 2x_2 \le 5$ only
  2. $-x_1 - 2x_2 \le 5$ only
  3. $x_1 + 2x_2 \le 5$ and $-x_1 - 2x_2 \le -5$
  4. $x_1 + 2x_2 \le 5$ and $x_1 + 2x_2 \le -5$
Explanation. An equality is equivalent to $\le$ and $\ge$; the $\ge$ is multiplied by $-1$.
lp-f-05-k14 · level facile · notes
How is the constraint $3x_1 - x_2 \ge 2$ written in the $\le$ form of the canonical maximization form?
  1. $-3x_1 + x_2 \le 2$
  2. $3x_1 - x_2 \le 2$
  3. $-3x_1 + x_2 \le -2$
  4. $3x_1 - x_2 \le -2$
Explanation. Multiply both sides by $-1$ and the direction flips.
lp-f-05-k15 · level facile · notes
How is the constraint $2x_1 + x_2 \ge 4$ turned into an equality, with a nonnegative auxiliary variable?
  1. $2x_1 + x_2 - x_3 = 4$, $x_3 \le 0$
  2. $2x_1 + x_2 = 4 + x_3$, $x_3$ free
  3. $2x_1 + x_2 - x_3 = 4$, $x_3 \ge 0$ (surplus)
  4. $2x_1 + x_2 + x_3 = 4$, $x_3 \ge 0$ (slack)
Explanation. For a $\ge$ constraint a nonnegative surplus variable is subtracted.
lp-f-05-k16 · level facile · notes
In the constraint $x_1 + 3x_2 + x_3 = 9$ obtained from $x_1 + 3x_2 \le 9$ with slack $x_3 \ge 0$, what is the slack at the point $(3, 1)$?
  1. $-3$
  2. $3$
  3. $0$
  4. $6$
Explanation. $x_3 = 9 - 3 - 3 = 3$: how far the constraint is from being active.
lp-f-05-k17 · level facile · notes
How is a nonpositive variable $x_1 \le 0$ handled to get only nonnegative variables?
  1. Set $x_1 = x_1' - x_1''$ with $x_1', x_1'' \ge 0$
  2. Remove the variable
  3. Set $x_1 = -x_1'$ with $x_1' \ge 0$
  4. Add the constraint $x_1 \ge 0$
Explanation. Substituting $x_1 = -x_1'$ flips the sign of its coefficients in objective and constraints.
lp-f-05-k18 · level facile · notes
How is a free variable $x_2$ (of any sign) handled to get only nonnegative variables?
  1. $x_2 = -x_2'$ with $x_2' \ge 0$
  2. Add $x_2 \ge 0$
  3. $x_2 = x_2'^2$
  4. $x_2 = x_2' - x_2''$, $x_2', x_2'' \ge 0$
Explanation. Every real number is a difference of two nonnegative numbers.
lp-f-05-k19 · level facile · notes
An LP problem $\min\ x_1 + x_2$, $x_1 - x_2 \ge 1$, $x_1 \ge 0$, $x_2$ free, is brought to canonical maximization form. How many variables does the result have?
  1. $3$
  2. $5$
  3. $2$
  4. $4$
Explanation. $x_2 = x_2' - x_2''$ replaces the free variable: $x_1, x_2', x_2''$. The $\ge$ constraint is multiplied by $-1$, with no new variables.
lp-f-05-k20 · level facile · notes
The same LP problem ($\min\ x_1 + x_2$, $x_1 - x_2 \ge 1$, $x_1 \ge 0$, $x_2$ free) is brought to standard maximization form. How many variables does it have?
  1. $2$
  2. $4$
  3. $3$
  4. $5$
Explanation. The three variables $x_1, x_2', x_2''$ plus one surplus variable for the $\ge$ constraint.
lp-f-05-k21 · level facile · notes
Bringing a generic LP problem to standard maximization form, what is done with a $\le$ constraint?
  1. It is multiplied by $-1$
  2. A nonnegative slack variable is added
  3. It is left unchanged
  4. A surplus variable is subtracted
Explanation. $\sum_j a_{ij} x_j + x_{n+i} = b_i$ with $x_{n+i} \ge 0$; in canonical form instead it stays unchanged.
lp-f-05-k22 · level facile · notes
What is the least common denominator $lcd({\boldsymbol v})$ of the vector ${\boldsymbol v} = (\frac12, \frac23, \frac56)$?
  1. $6$
  2. $36$
  3. $12$
  4. $2$
Explanation. The smallest positive integer divisible by $2$, $3$ and $6$ is $6$.
lp-f-05-k23 · level facile · notes
The constraint $\frac12 x_1 + \frac13 x_2 \le \frac56$ is multiplied by the least common denominator of its coefficients. Which integer-data constraint is obtained?
  1. $6x_1 + 6x_2 \le 5$
  2. $3x_1 + 2x_2 \le 6$
  3. $x_1 + x_2 \le 1$
  4. $3x_1 + 2x_2 \le 5$
Explanation. $lcd = 6$: $6 \cdot \frac12 = 3$, $6 \cdot \frac13 = 2$, $6 \cdot \frac56 = 5$.
lp-f-05-k24 · level teorema · notes
Which statement about multiplying a linear constraint by a positive number is correct?
  1. It reverses the direction of the inequality
  2. It is legitimate only if the number is an integer
  3. It does not change the solution set of the constraint
  4. It changes the optimal value of the LP problem
Explanation. Multiplying by $\lambda > 0$ keeps the direction: the solutions are the same.
lp-f-05-k25 · level ipotesi · notes
To replace an LP problem with rational data by an equivalent one with integer data, multiplying each constraint by the least common denominator of its coefficients, what is needed?
  1. That all denominators are equal
  2. That the objective is multiplied by the same number
  3. That the right-hand sides are positive
  4. That the multiplier is positive, so the direction stays the same
Explanation. A positive multiplier does not change the solutions of a constraint; different constraints may use different multipliers.
lp-f-05-k26 · level teorema · notes
What are the possible outcomes of a maximization LP problem?
  1. Only infeasible or with an optimal solution
  2. With an optimal solution or with a finite supremum not attained
  3. Infeasible, unbounded, or with an optimal solution
  4. Only with an optimal solution, if the region is a polyhedron
Explanation. For LP problems a finite supremum is always attained.
lp-f-05-k27 · level ipotesi · notes
A free variable $x_2$ is replaced by $x_2' - x_2''$, $x_2', x_2'' \ge 0$. Why is the resulting problem equivalent to the original?
  1. Because the free variable is always zero at the optimum
  2. Every $x_2$ is a difference, same value
  3. Because $x_2'$ and $x_2''$ are always both zero
  4. Because the number of constraints doubles
Explanation. The correspondence between solutions preserves feasibility and value; the representation is not unique, but that is enough.
lp-f-05-k28 · level ipotesi · notes
We want to prove that the standard maximization form, obtained from the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with slacks, is equivalent to the original. What must be shown?
  1. That they have the same number of variables
  2. That both have ${\boldsymbol b} \ge {\boldsymbol 0}$
  3. A correspondence between feasible solutions preserving the value
  4. That the two feasible regions coincide
Explanation. ${\boldsymbol x} \mapsto ({\boldsymbol x}, {\boldsymbol b} - {\boldsymbol A}{\boldsymbol x})$ is a bijection between feasible solutions and preserves ${\boldsymbol c}'{\boldsymbol x}$; the regions live in different spaces.

Part: The simplex algorithm (88)

6. Simplex algorithm (36)

lp-f-06-01 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. When does a set $\pazocal{B}$ of column indices of ${\boldsymbol A}$ define a basis ${\boldsymbol A}_{\pazocal{B}}$?
  1. If $|\pazocal{B}| = m$ and ${\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$
  2. If $|\pazocal{B}| = m$ and the matrix ${\boldsymbol A}_{\pazocal{B}}$ of the columns with index in $\pazocal{B}$ is invertible
  3. If $|\pazocal{B}| = n$ and the chosen columns are linearly independent
  4. If $|\pazocal{B}| = m$, whatever columns are chosen
Explanation. A basis is an invertible $m \times m$ square submatrix; the condition $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ concerns the feasibility of the basic solution, not the definition of basis.
lp-f-06-02 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. Given a basis ${\boldsymbol A}_{\pazocal{B}}$, with basic indices $\pazocal{B}$ and non-basic indices $\pazocal{N}$, what is the associated basic solution?
  1. ${\boldsymbol x}_{\pazocal{B}} = {\boldsymbol 0}$ and ${\boldsymbol x}_{\pazocal{N}} = {\boldsymbol A}_{\pazocal{N}}^{-1}{\boldsymbol b}$
  2. ${\boldsymbol x}_{\pazocal{N}} = {\boldsymbol 0}$ and ${\boldsymbol x}_{\pazocal{B}} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$
  3. ${\boldsymbol x}_{\pazocal{N}} = {\boldsymbol 0}$ and ${\boldsymbol x}_{\pazocal{B}} = {\boldsymbol A}_{\pazocal{B}}{\boldsymbol b}$
  4. ${\boldsymbol x}_{\pazocal{N}} = {\boldsymbol 0}$ and ${\boldsymbol x}_{\pazocal{B}} = {\boldsymbol b}$
Explanation. The non-basic variables are $0$ and the basic ones solve ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol x}_{\pazocal{B}} = {\boldsymbol b}$: ${\boldsymbol x}_{\pazocal{B}} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} = \bar{\boldsymbol b}$, which coincides with ${\boldsymbol b}$ only if ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$.
lp-f-06-03 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. Given a basis ${\boldsymbol A}_{\pazocal{B}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced cost vector $\bar{\boldsymbol c}$, when is the associated basic solution a basic feasible solution?
  1. When ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$
  2. When $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  3. When ${\boldsymbol b} \ge {\boldsymbol 0}$
  4. When $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. The equality constraints hold by construction; what remains is the non-negativity of the basic variables, $\bar{\boldsymbol b} \ge {\boldsymbol 0}$.
lp-f-06-04 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. Given a basis ${\boldsymbol A}_{\pazocal{B}}$, with ${\boldsymbol c}_{\pazocal{B}}$ the cost vector of the basic variables and ${\boldsymbol A}_p$ column $p$ of ${\boldsymbol A}$, what is the reduced cost of the non-basic variable $x_p$?
  1. $\bar c_p = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p - c_p$
  2. $\bar c_p = c_p - {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$
  3. $\bar c_p = c_p - {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$
  4. $\bar c_p = c_p - {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_p$
Explanation. $\bar c_p$ is the change of $z$ per unit of $x_p$: the gain $c_p$ minus the loss ${\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$ due to the change of the basic variables.
lp-f-06-05 · level facile · notes
An LP problem in canonical maximization form with $n$ variables, $m$ constraints and ${\boldsymbol b} \ge {\boldsymbol 0}$ is brought to standard form with the slack variables $x_{n+1}, \dots, x_{n+m}$. Which basis immediately gives a basic feasible solution?
  1. Any basis formed by $m$ randomly chosen indices
  2. The one of the first $m$ variables, $\pazocal{B} = \{1, \dots, m\}$
  3. None: Phase $0$ is needed even with ${\boldsymbol b} \ge {\boldsymbol 0}$
  4. The one of the slack variables, $\pazocal{B} = \{n+1, \dots, n+m\}$
Explanation. With the slack variables in the basis $\bar{\boldsymbol b} = {\boldsymbol b} \ge {\boldsymbol 0}$, $\bar z = 0$ and $\bar{\boldsymbol c} = {\boldsymbol c}_{\pazocal{N}}$.
lp-f-06-06 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Which variable can be chosen as the pivot column?
  1. A non-basic variable with a positive reduced cost
  2. The basic variable with the largest value
  3. A basic variable with a negative value
  4. A non-basic variable with a negative reduced cost
Explanation. Increasing a non-basic variable with $\bar c_p > 0$ increases $z$ by $\bar c_p$ per unit.
lp-f-06-07 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. With $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ the pivot column $x_p$, with $\bar c_p > 0$, is chosen. Which value $t_m$ does $x_p$ take in the new basic feasible solution?
  1. $t_m = \min\{\bar b_i / \bar a_{ip} : i \in \pazocal{B},~ \bar a_{ip} < 0\}$
  2. $t_m = \min\{\bar b_i / \bar a_{ip} : i \in \pazocal{B},~ \bar a_{ip} > 0\}$
  3. $t_m = \min\{\bar b_i / |\bar a_{ip}| : i \in \pazocal{B},~ \bar a_{ip} \ne 0\}$
  4. $t_m = \max\{\bar b_i / \bar a_{ip} : i \in \pazocal{B},~ \bar a_{ip} > 0\}$
Explanation. From ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - t\,\bar{\boldsymbol A}_p \ge {\boldsymbol 0}$: only the rows with $\bar a_{ip} > 0$ restrict $t$, and the minimum is needed to keep all the variables non-negative.
lp-f-06-08 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Which condition, for a basis with $\bar{\boldsymbol b} \ge {\boldsymbol 0}$, certifies that the LP problem is unbounded?
  1. There exists $p \in \pazocal{N}$ with $\bar c_p > 0$ and $\bar a_{ip} \ge 0$ for every $i \in \pazocal{B}$
  2. There exists $r \in \pazocal{B}$ with $\bar b_r < 0$ and $\bar a_{rj} \ge 0$ for every $j \in \pazocal{N}$
  3. There exists $p \in \pazocal{N}$ with $\bar c_p < 0$ and $\bar a_{ip} \le 0$ for every $i \in \pazocal{B}$
  4. There exists $p \in \pazocal{N}$ with $\bar c_p > 0$ and $\bar a_{ip} \le 0$ for every $i \in \pazocal{B}$
Explanation. With $\bar a_{ip} \le 0$ no basic variable decreases when $x_p$ grows, and $z = \bar z + t\,\bar c_p$ grows without bound. The last condition is the certificate of infeasibility of the dual simplex algorithm.
lp-f-06-09 · level ipotesi · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Let $\bar{\boldsymbol b} \ge {\boldsymbol 0}$, $\bar c_p > 0$ and $\bar a_{ip} \le 0$ for every $i \in \pazocal{B}$. To prove that the point $x_p = t$, $x_i = \bar b_i - t\,\bar a_{ip}$ ($i \in \pazocal{B}$), other variables at $0$, is feasible for every $t \ge 0$, which facts are needed?
  1. $\bar b_i \ge 0$ and $\bar a_{ip} \le 0$ give $x_i \ge 0$; the equalities hold by construction
  2. Only the invertibility of ${\boldsymbol A}_{\pazocal{B}}$, which makes the point a solution of the system
  3. Only $\bar c_p > 0$, which makes $z$ grow as $t$ grows
  4. $\bar b_i > 0$ (non-degeneracy) and $\bar{\boldsymbol c} \le {\boldsymbol 0}$ give $x_i \ge 0$ for every $t$
Explanation. Non-negativity follows from $\bar b_i \ge 0$ and $-t\,\bar a_{ip} \ge 0$. The condition $\bar c_p > 0$ is used instead to show that the value $\bar z + t\,\bar c_p$ grows without bound.
lp-f-06-10 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. How many equations form the simplex dictionary associated with a basis ${\boldsymbol A}_{\pazocal{B}}$?
  1. $n + m$: one for each variable
  2. $m$: one for each basic variable
  3. $n + 1$: one for each non-basic variable and one for the objective function
  4. $m + 1$: one for each basic variable and one for the objective function
Explanation. The dictionary writes the $m$ basic variables and $z$ as functions of the $n$ non-basic variables.
lp-f-06-11 · level facile · notes
An LP problem in canonical maximization form with constraints ${\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}$, ${\boldsymbol A} \in \R^{m \times n}$, is brought to standard form by adding the slack variables $x_{n+1}, \dots, x_{n+m}$, with constraint matrix $({\boldsymbol A}~~{\boldsymbol I})$. Why does this matrix have rank $m$?
  1. Because it contains the identity matrix of size $m$, made of the columns of the slack variables
  2. Because ${\boldsymbol A}$ has rank $m$ by assumption
  3. Because ${\boldsymbol b} \ge {\boldsymbol 0}$, and then the system has a solution
  4. Because it has more columns ($n + m$) than rows ($m$)
Explanation. The $m$ columns of the slack variables form ${\boldsymbol I}$, which has rank $m$, with no assumption on ${\boldsymbol A}$ or ${\boldsymbol b}$. Having more columns than rows is not enough.
lp-f-06-12 · level facile · notes
The LP problem of the paint production example $\max\{5x_1 + 2x_2 : -x_1 + 3x_2 \le 12,~ x_1 + 2x_2 \le 12,~ 3x_1 - 2x_2 \le 8,~ x_1, x_2 \ge 0\}$ has optimal solution $(5, \frac{7}{2})$. In the standard form with the slack variables $x_3, x_4, x_5$ of the three constraints, what are $(x_3, x_4, x_5)$ at this solution?
  1. $(0, 0, 0)$
  2. $(-\frac{13}{2}, 0, 0)$
  3. $(\frac{11}{2}, 0, 0)$
  4. $(\frac{13}{2}, 0, 0)$
Explanation. $x_{2+i} = b_i - \sum_j a_{ij} x_j$: $x_3 = 12 - (-5 + \frac{21}{2}) = \frac{13}{2}$, $x_4 = 12 - 12 = 0$, $x_5 = 8 - 8 = 0$. The value $\frac{11}{2}$ is the left-hand side $-x_1 + 3x_2$, not the slack.
lp-f-06-13 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$. Which outcomes can the simplex algorithm return, with Phase $0$ in the initialization step?
  1. An optimal solution or a certificate of unboundedness; infeasibility is not detected
  2. A feasible solution, which is optimal only if it is non-degenerate
  3. An optimal solution, or a certificate of infeasibility or of unboundedness
  4. Always an optimal solution, possibly after Phase $0$
Explanation. Phase $0$ detects infeasibility; the pivoting step detects unboundedness ($\bar c_p > 0$ and $\bar a_{ip} \le 0$ for every $i$); otherwise the algorithm stops with $\bar{\boldsymbol c} \le {\boldsymbol 0}$, i.e., with an optimal solution.
lp-f-06-14 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$. In the pivoting step of the simplex algorithm one chooses the pivot column $x_p$ (non-basic, $p \in \pazocal{N}$) and the pivot row $x_r$ (basic, $r \in \pazocal{B}$). How are the sets $\pazocal{B}$ (basic indices) and $\pazocal{N}$ (non-basic indices) updated?
  1. $\pazocal{B} \leftarrow (\pazocal{B} \setminus \{r\}) \cup \{p\}$ and $\pazocal{N} \leftarrow (\pazocal{N} \setminus \{p\}) \cup \{r\}$
  2. $\pazocal{B} \leftarrow \pazocal{B} \cup \{p\}$ and $\pazocal{N} \leftarrow \pazocal{N} \setminus \{p\}$
  3. $\pazocal{B}$ and $\pazocal{N}$ do not change: only the values $\bar b_i$ are updated
  4. $\pazocal{B} \leftarrow (\pazocal{B} \setminus \{p\}) \cup \{r\}$ and $\pazocal{N} \leftarrow (\pazocal{N} \setminus \{r\}) \cup \{p\}$
Explanation. The pivot column $x_p$ enters the basis and the pivot row $x_r$ leaves it: $|\pazocal{B}|$ stays equal to $m$ and the basis changes in one column only.
lp-f-06-k01 · level facile · notes
The problem in canonical maximization form with $n = 3$ variables and $m = 2$ constraints is written in standard form by adding slacks. How many variables does it have?
  1. $6$
  2. $5$
  3. $2$
  4. $3$
Explanation. One slack per constraint: $n + m = 5$ variables, numbered $x_1, \dots, x_5$.
lp-f-06-k02 · level facile · notes
In the standard form of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with slacks $x_{n+1}, \dots, x_{n+m}$, what does the constraint matrix look like?
  1. $[{\boldsymbol A} ~ {\boldsymbol I}]$
  2. $[{\boldsymbol I} ~ {\boldsymbol A}']$
  3. ${\boldsymbol A}$ only
  4. $[{\boldsymbol A} ~ {-{\boldsymbol I}}]$
Explanation. The slack $x_{n+i}$ appears only in constraint $i$ with coefficient $1$.
lp-f-06-k03 · level facile · notes
For an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A}$ of $m$ linearly independent rows, what are the partition $(\pazocal{B}, \pazocal{N})$ and the basic variables?
  1. $\pazocal{B}$: the positive variables; $\pazocal{N}$: the zero ones
  2. $\pazocal{B}$: the active constraints; $\pazocal{N}$: the inactive ones
  3. $\pazocal{B}$: $m$ independent columns; $\pazocal{N}$: the rest
  4. $\pazocal{B}$: the original variables; $\pazocal{N}$: the slacks
Explanation. A basis is a square invertible submatrix ${\boldsymbol A}_{\pazocal{B}}$; its columns are the basic variables.
lp-f-06-k04 · level facile · notes
For an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A}$ of $m$ linearly independent rows, with $n + m$ variables in total, how many variables are nonbasic?
  1. $n$
  2. $m$
  3. $n + m$
  4. $n - m$
Explanation. $|\pazocal{B}| = m$, hence $|\pazocal{N}| = (n + m) - m = n$.
lp-f-06-k05 · level teorema · notes
For an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A}$ of $m$ linearly independent rows, which statement about the dictionary of a basis ${\boldsymbol A}_{\pazocal{B}}$ is correct?
  1. It is the same for all bases
  2. It expresses the basic variables through the nonbasic ones.
  3. It expresses the nonbasic variables through the basic ones
  4. It exists only if ${\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. From ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol x}_{\pazocal{B}} + {\boldsymbol A}_{\pazocal{N}}{\boldsymbol x}_{\pazocal{N}} = {\boldsymbol b}$ multiplying by ${\boldsymbol A}_{\pazocal{B}}^{-1}$.
lp-f-06-k06 · level ipotesi · notes
For an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A}$ of $m$ linearly independent rows, for a set $\pazocal{B}$ of $m$ indices to define a dictionary, what must hold?
  1. That $\pazocal{B}$ contains all slacks
  2. That ${\boldsymbol A}_{\pazocal{B}}$ is invertible.
  3. That ${\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$
  4. That the costs $c_j$ with $j \in \pazocal{B}$ are positive
Explanation. ${\boldsymbol A}_{\pazocal{B}}^{-1}$ is needed to express ${\boldsymbol x}_{\pazocal{B}}$; nonnegativity concerns feasibility, not the basis.
lp-f-06-k07 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. What is the basic solution associated with the dictionary?
  1. ${\boldsymbol x}_{\pazocal{N}} = {\boldsymbol 0}$, ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b}$
  2. $x_j = \bar c_j$ for $j \in \pazocal{N}$
  3. $x_i = 0$ for $i \in \pazocal{B}$
  4. $x_j = 1$ for every $j$
Explanation. Set the nonbasic variables to zero and read the values $\bar b_i$ of the basic ones.
lp-f-06-k08 · level teorema · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. When is the basic solution feasible?
  1. Always, since it satisfies ${\boldsymbol A}{\boldsymbol x} = {\boldsymbol b}$
  2. When $\bar b_i \ge 0$ for every $i \in \pazocal{B}$
  3. When $\bar c_j \le 0$ for every $j \in \pazocal{N}$
  4. When $\bar z \ge 0$
Explanation. The equality constraints always hold; what remains is nonnegativity of the basic variables.
lp-f-06-k09 · level ipotesi · notes
In an LP problem in canonical maximization form, the slack basis gives an initial basic feasible solution. Which assumption is needed?
  1. ${\boldsymbol A} \ge {\boldsymbol 0}$
  2. ${\boldsymbol b} \ge {\boldsymbol 0}$
  3. ${\boldsymbol c} \ge {\boldsymbol 0}$
  4. $m = n$
Explanation. With ${\boldsymbol x} = {\boldsymbol 0}$ the slacks equal ${\boldsymbol b}$: feasible if ${\boldsymbol b} \ge {\boldsymbol 0}$.
lp-f-06-k10 · level facile · notes
For the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} = (4, -2)$, is the slack basis feasible?
  1. No: a slack equals $-2$
  2. Cannot say without ${\boldsymbol A}$
  3. Yes, if ${\boldsymbol c} \ge {\boldsymbol 0}$
  4. Yes: ${\boldsymbol x} = {\boldsymbol 0}$ is always feasible
Explanation. The slacks equal ${\boldsymbol b}$ at ${\boldsymbol x} = {\boldsymbol 0}$; Phase $0$ is needed.
lp-f-06-k11 · level facile · notes
For the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$, what is the initial dictionary of the slack basis?
  1. $x_{n+i} = b_i - \sum_j a_{ij} x_j$ and $z = \sum_j c_j x_j$
  2. $x_{n+i} = 0$ and $z = \sum_i b_i$
  3. $x_j = b_j - \sum_i a_{ij} x_{n+i}$
  4. $x_{n+i} = b_i + \sum_j a_{ij} x_j$ and $z = -\sum_j c_j x_j$
Explanation. Each slack is obtained from its constraint; the $z$ row has the original costs and $\bar z = 0$.
lp-f-06-k12 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. What does a pivot operation with column $x_p$ and row $x_r$ do?
  1. The sign of the $z$ row is changed
  2. $x_r$ enters the basis, $x_p$ leaves
  3. $x_p$ enters the basis, $x_r$ leaves
  4. All nonbasic variables are set to zero
Explanation. Solve the row of $x_r$ for $x_p$ and substitute it in the other rows.
lp-f-06-k13 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. In the ratio test for the pivot column $x_p$, which rows are considered?
  1. The rows with $\bar a_{ip} < 0$
  2. All rows, including $\bar a_{ip} = 0$
  3. The rows with $\bar b_i < 0$
  4. The rows with $\bar a_{ip} > 0$
Explanation. Only rows where $x_i$ decreases as $x_p$ grows limit the step.
lp-f-06-k14 · level teorema · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. After a pivot with column $x_p$, row $x_r$ and step $t_m = \bar b_r / \bar a_{rp}$, what is the new objective value?
  1. $\bar z + \bar b_r$
  2. $\bar z\, t_m$
  3. $\bar z - \bar c_p\, t_m$
  4. $\bar z + \bar c_p\, t_m$
Explanation. $x_p$ goes from $0$ to $t_m$ and the function grows by $\bar c_p$ per unit.
lp-f-06-k15 · level ipotesi · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. Why does the ratio test (minimum of $\bar b_i / \bar a_{ip}$ with $\bar a_{ip} > 0$) keep the new dictionary feasible?
  1. Because $\bar c_p > 0$
  2. Because rows with $\bar a_{ip} < 0$ are discarded
  3. With step $t \le t_m$ no $x_i$ becomes negative
  4. Because the pivot row has $\bar b_r = 0$
Explanation. The minimum ratio is the longest step that makes no basic variable negative.
lp-f-06-k16 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. With pivot row $x_3 = 6 - 2x_1 - x_2$ and pivot column $x_1$, how is $x_1$ expressed in the new dictionary?
  1. $x_1 = 6 - x_2 - x_3$
  2. $x_1 = 3 + \frac12 x_2 + \frac12 x_3$
  3. $x_1 = 3 - \frac12 x_2 - \frac12 x_3$
  4. $x_1 = 12 - 2x_2 - 2x_3$
Explanation. From $2x_1 = 6 - x_2 - x_3$ divide by $2$.
lp-f-06-k17 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. With $z = 3x_1 + x_2$ and the new expression $x_1 = 3 - \frac12 x_2 - \frac12 x_3$, what is the new $z$ row?
  1. $z = 9 + \frac12 x_2 - \frac32 x_3$
  2. $z = 3 - \frac12 x_2 - \frac12 x_3$
  3. $z = 9 - \frac12 x_2 - \frac32 x_3$
  4. $z = 9 + x_2 + 3x_3$
Explanation. $3(3 - \frac12 x_2 - \frac12 x_3) + x_2 = 9 - \frac12 x_2 - \frac32 x_3$.
lp-f-06-k18 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. When updating the dictionary after a pivot, what is done in the rows other than the pivot row?
  1. The expression of $x_p$ is substituted
  2. They are divided by the pivot element
  3. The sign of all coefficients is changed
  4. They are left unchanged
Explanation. Every other row contains $x_p$, which is no longer nonbasic: it must be substituted.
lp-f-06-k19 · level facile · notes
In the simplex algorithm for a maximization problem, when does it stop with an optimal solution?
  1. When $\bar z > 0$
  2. When all reduced costs are $\bar c_j \le 0$
  3. After $m$ pivot operations
  4. When all $\bar b_i$ are positive
Explanation. No nonbasic variable can increase $z$: the basic solution is optimal.
lp-f-06-k20 · level facile · notes
In the simplex algorithm for a maximization problem, the column $x_p$ with $\bar c_p > 0$ has $\bar a_{ip} \le 0$ in every row. What is concluded?
  1. The problem is unbounded
  2. The current solution is optimal
  3. The problem is infeasible
  4. The row with the smallest $\bar a_{ip}$ is chosen
Explanation. $x_p$ can grow without limit staying feasible, and $z$ grows with it.
lp-f-06-k21 · level teorema · notes
Which statement about the simplex algorithm (standard maximization form, feasible initial basis) is correct?
  1. Every pivot strictly increases $\bar z$
  2. Every pivot keeps feasibility and does not decrease $\bar z$
  3. The number of pivots is always $m$
  4. Every pivot makes the basis dual feasible
Explanation. With degenerate steps ($t_m = 0$) $\bar z$ stays the same; it never decreases.
lp-f-06-k22 · level ipotesi · notes
To prove that the simplex algorithm terminates after finitely many pivots, which assumption or rule is needed?
  1. An anti-cycling rule, such as Bland's rule
  2. That the problem has two variables
  3. That ${\boldsymbol c} \ge {\boldsymbol 0}$
  4. That every basic solution is degenerate
Explanation. Bases are finitely many; without rules, degenerate pivots can cycle.

7. Optimality conditions and pivot rules (21)

lp-f-07-01 · level teorema · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Which statement on the optimality conditions of the basis ${\boldsymbol A}_{\pazocal{B}}$ is correct?
  1. If $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \ge {\boldsymbol 0}$, the basic feasible solution is optimal
  2. If $\bar{\boldsymbol c} \le {\boldsymbol 0}$, the basic solution is optimal even if some $\bar b_i < 0$
  3. If $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$, the basic feasible solution is optimal
  4. If the basic feasible solution is optimal, then $\bar{\boldsymbol c} \le {\boldsymbol 0}$
Explanation. This is the sufficient condition for optimality; the converse holds only for non-degenerate solutions, and without $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ the solution is not even feasible.
lp-f-07-02 · level teorema · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Which statement on the uniqueness of the optimal solution is correct?
  1. If $\bar{\boldsymbol b} > {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$, the basic feasible solution is the unique optimal one
  2. If $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$, the basic feasible solution is the unique optimal one
  3. If the basic feasible solution is the unique optimal one, then $\bar{\boldsymbol c} < {\boldsymbol 0}$
  4. If $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} < {\boldsymbol 0}$, the basic feasible solution is the unique optimal solution
Explanation. With $\bar{\boldsymbol c} < {\boldsymbol 0}$ every other feasible solution has ${\boldsymbol x}_{\pazocal{N}} \ne {\boldsymbol 0}$ and a strictly smaller value. A zero reduced cost may give other optimal solutions; the converse does not hold.
lp-f-07-03 · level teorema · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. A basic feasible solution is degenerate if $\bar b_i = 0$ for some $i \in \pazocal{B}$. Which statement on the necessary optimality conditions is correct?
  1. If the basic feasible solution is optimal, then $\bar{\boldsymbol c} \le {\boldsymbol 0}$, even if it is degenerate
  2. If the basic feasible solution is degenerate, then it is not optimal
  3. If the basic feasible solution is optimal and non-degenerate, then $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  4. If $\bar{\boldsymbol c} \le {\boldsymbol 0}$, then the basic feasible solution is non-degenerate
Explanation. Non-degeneracy is essential: a degenerate solution may be optimal with some $\bar c_j > 0$.
lp-f-07-04 · level ipotesi · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. To prove that $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$ imply the optimality of the basic solution, which facts are used?
  1. The basic solution is feasible and every feasible ${\boldsymbol x}$ has ${\boldsymbol c}'{\boldsymbol x} = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}} \le \bar z$, since ${\boldsymbol x}_{\pazocal{N}} \ge {\boldsymbol 0}$
  2. Non-degeneracy $\bar{\boldsymbol b} > {\boldsymbol 0}$ and Weak Duality applied to the primal-dual pair
  3. Bland's rule and the finite number of bases, which stop the simplex algorithm when $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  4. Only $\bar{\boldsymbol c} \le {\boldsymbol 0}$: increasing a non-basic variable $z$ does not grow, feasibility is not needed
Explanation. For every feasible solution $\bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}} \le 0$, hence ${\boldsymbol c}'{\boldsymbol x} \le {\boldsymbol c}'_{\pazocal{B}}\bar{\boldsymbol b}$, the value of the basic solution, which is feasible since $\bar{\boldsymbol b} \ge {\boldsymbol 0}$.
lp-f-07-05 · level ipotesi · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. It is proved by contradiction that an optimal and non-degenerate basic feasible solution ($\bar{\boldsymbol b} > {\boldsymbol 0}$) has $\bar{\boldsymbol c} \le {\boldsymbol 0}$, assuming $\bar c_p > 0$. What is non-degeneracy needed for?
  1. It guarantees that Bland's rule does not cycle, hence that the simplex algorithm terminates
  2. There is $\vartheta > 0$ with $\bar b_i - \vartheta\,\bar a_{ip} \ge 0$ for every $i$: with $x_p = \vartheta$ we get a better solution
  3. It guarantees $\bar a_{ip} \le 0$ for every $i \in \pazocal{B}$, hence the problem would be unbounded
  4. It guarantees that ${\boldsymbol A}_{\pazocal{B}}$ is invertible, hence that the dictionary exists
Explanation. If some $\bar b_i = 0$ with $\bar a_{ip} > 0$ we would get $\vartheta = 0$ and no improvement: this is the degenerate case.
lp-f-07-06 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. When is a basic feasible solution ($\bar{\boldsymbol b} \ge {\boldsymbol 0}$) called degenerate?
  1. When $\bar a_{ij} = 0$ for some $i \in \pazocal{B}$, $j \in \pazocal{N}$
  2. When $\bar c_j = 0$ for some $j \in \pazocal{N}$
  3. When $\bar b_i < 0$ for some $i \in \pazocal{B}$
  4. When $\bar b_i = 0$ for some $i \in \pazocal{B}$
Explanation. In a degenerate solution some basic variable is $0$ too, besides all the non-basic variables, which are always $0$.
lp-f-07-07 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. In the pivoting operation with column $x_p$ the step is $t_m = \min\{\bar b_i / \bar a_{ip} : i \in \pazocal{B},~ \bar a_{ip} > 0\}$. What happens in a degenerate pivoting operation?
  1. $t_m = 0$: the solution stays the same but the value of $z$ decreases
  2. $t_m = +\infty$: the LP problem is unbounded and the algorithm stops
  3. $t_m > 0$, but the new basis matrix is not invertible
  4. $t_m = 0$: the basis changes, the solution and the value of $z$ stay the same
Explanation. The pivot row has $\bar b_r = 0$, so $x_p$ enters the basis with value $0$; the value of $z$ increases only in non-degenerate operations.
lp-f-07-08 · level ipotesi · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. The simplex algorithm starts from a feasible basis and performs pivoting operations. To prove that, if the algorithm does not terminate, then it cycles (it repeats a dictionary), which fact is used?
  1. The bases are at most $\binom{n+m}{m}$, hence an infinite sequence repeats a dictionary
  2. Every pivoting operation strictly increases $z$, hence no dictionary is repeated
  3. Strong Duality, which bounds the value of $z$ by that of the dual
  4. Bland's rule, which prevents repeating a dictionary already visited
Explanation. It is a finiteness argument; Bland's rule is used for the next theorem, and degenerate operations do not increase $z$.
lp-f-07-09 · level teorema · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Bland's rule chooses as pivot column the variable with the smallest index and $\bar c_j > 0$ and, in case of ties in the ratio test, the row with the smallest index. Which statement on the termination of the simplex algorithm is correct?
  1. The algorithm terminates if the column with the largest reduced cost is always chosen
  2. The algorithm terminates with any pivot rule
  3. With Bland's rule every pivoting operation is non-degenerate
  4. The algorithm terminates if in every pivoting operation the pivot column and row are chosen with Bland's rule
Explanation. Bland's rule (smallest index) prevents cycling; it does not remove degenerate operations, which may still occur.
lp-f-07-10 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. The ratio test for the pivot column $x_p$ computes $t_m = \min\{\bar b_i / \bar a_{ip} : i \in \pazocal{B},~ \bar a_{ip} > 0\}$. With Bland's rule, which pivot row is chosen if several rows attain $t_m$?
  1. At random: Bland's rule concerns only the column
  2. The one with the largest coefficient $\bar a_{rp}$ is chosen
  3. The one with the largest value $\bar b_r$ is chosen
  4. The one with the smallest index is chosen
Explanation. Bland's rule uses the smallest index both for the pivot column (among $\bar c_p > 0$) and for the pivot row (among the rows attaining $t_m$).
lp-f-07-11 · level facile · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$. In the simplex algorithm the pivot column is always the non-basic variable with the largest reduced cost $\bar c_j$ (largest reduced cost rule). What can happen when degenerate basic solutions are met?
  1. It visits the same basis twice only if the problem is unbounded
  2. The algorithm can cycle, repeating the same sequence of bases forever
  3. It always terminates, since the value of $z$ strictly increases at every pivot
  4. It stops with a certificate of unboundedness even if the problem has an optimum
Explanation. With degenerate pivots ($t_m = 0$) the value of $z$ does not increase and the sequence of bases may repeat; anti-cycling rules, such as Bland's rule, are there precisely to avoid it.
lp-f-07-12 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (variables $x_1, \dots, x_4 \ge 0$) the dictionary with $\pazocal{B} = \{1, 2\}$, $\pazocal{N} = \{3, 4\}$ is: $x_1 = 2 - x_3 + x_4$, $x_2 = 3 - 2x_3 - x_4$, $z = 10 - x_3 - 2x_4$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows $\bar z$ and the reduced costs $\bar c_j$). What is concluded?
  1. It is not optimal: it pays to increase $x_4$, which has a positive coefficient in the row of $x_1$
  2. The solution $(2, 3, 0, 0)$ is optimal, but not the only one
  3. The solution $(2, 3, 0, 0)$ is the unique optimal solution, with $z(LP) = 10$
  4. The problem is unbounded, since the column of $x_4$ has a coefficient $\bar a_{14} < 0$
Explanation. $\bar{\boldsymbol b} = (2, 3) \ge {\boldsymbol 0}$ and the reduced costs $-1, -2$ are negative: by the sufficient conditions for optimality the solution is optimal, and strictly negative reduced costs make it unique. What matters are the reduced costs in the row of $z$, not the coefficients of the rows.
lp-f-07-k01 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. In a maximization problem the dictionary is feasible with $\bar c = (-1, -3)$ for the two nonbasic variables. What is concluded?
  1. The basic solution is optimal
  2. The problem is unbounded
  3. The variable with $\bar c_j = -1$ enters
  4. The problem is infeasible
Explanation. All reduced costs are nonpositive: sufficient optimality condition.
lp-f-07-k02 · level ipotesi · notes
The reduced-cost conditions ($\bar c_j \le 0$) are necessary for optimality of a basic feasible solution of a maximization problem. Which assumption is needed?
  1. That the costs are integer
  2. That ${\boldsymbol b} \ge {\boldsymbol 0}$
  3. That it is nondegenerate
  4. That the problem is bounded
Explanation. With degeneracy an optimal solution can have a dictionary with some $\bar c_j > 0$.
lp-f-07-k03 · level facile · notes
A basic feasible solution has a basic variable equal to zero. What is it called, and what can happen at the next pivot?
  1. Optimal: stop
  2. Degenerate: zero step possible
  3. Nondegenerate: $\bar z$ always grows
  4. Infeasible: Phase $0$ starts
Explanation. With $\bar b_r = 0$ the step is zero and $\bar z$ does not change.
lp-f-07-k04 · level facile · notes
With Bland's rule (column: smallest index with $\bar c_j > 0$), the reduced costs of the nonbasic variables $x_2, x_4, x_5$ are $\bar c_2 = -1$, $\bar c_4 = 3$, $\bar c_5 = 2$. Which variable enters the basis?
  1. $x_4$
  2. $x_2$
  3. $x_5$
  4. None: it is optimal
Explanation. Candidates with $\bar c_j > 0$: $x_4$, $x_5$; smallest index $x_4$ (not the largest cost).
lp-f-07-k05 · level facile · notes
With Bland's rule, in the ratio test of column $x_1$ the rows of $x_3$ and $x_5$ have the same minimum ratio $2$. Which variable leaves?
  1. None: the problem is unbounded
  2. $x_3$
  3. Both
  4. $x_5$
Explanation. With equal ratios the basic variable with the smallest index leaves.
lp-f-07-k06 · level facile · notes
In the simplex algorithm for a maximization problem, the optimal dictionary has $\bar c_j = 0$ for a nonbasic variable $x_j$, with a nondegenerate pivot possible. What is concluded?
  1. The problem is degenerate
  2. The problem is unbounded
  3. There are multiple optimal solutions
  4. The solution is not optimal
Explanation. Bringing $x_j$ in changes the solution without changing $z$: multiple optima.
lp-f-07-k07 · level facile · notes
In the simplex algorithm, the dictionary of a basis has rows $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$ ($i \in \pazocal{B}$) and $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$. For a maximization problem, why does $\bar c_j \le 0$ for every $j \in \pazocal{N}$ imply optimality of the basic feasible solution?
  1. Because $z = \bar z + \sum_j \bar c_j x_j \le \bar z$
  2. Because all basic variables are positive
  3. Because the step $t_m$ is zero
  4. Because the solution is a vertex
Explanation. With $x_j \ge 0$ and $\bar c_j \le 0$ the sum is nonpositive.
lp-f-07-k08 · level facile · notes
What is meant by cycling in the simplex algorithm?
  1. An unbounded problem
  2. Degenerate pivots returning to a seen basis
  3. A pivot that decreases $z$
  4. A dictionary with two equal rows
Explanation. With zero steps $\bar z$ does not change and bases can repeat forever.
lp-f-07-k09 · level facile · notes
Why is Bland's rule used in the simplex algorithm?
  1. Because it avoids Phase $0$
  2. Because it prevents cycling, guaranteeing termination
  3. Because it always chooses the pivot increasing $z$ most
  4. Because it makes the ratio test unnecessary
Explanation. Always choosing the smallest indices the algorithm cannot repeat a basis.

8. Phase 0 of the simplex algorithm (31)

lp-f-08-01 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, brought to standard form with the slack variables, when is Phase $0$ of the simplex algorithm needed?
  1. When $b_i < 0$ for some $i$
  2. When $c_j < 0$ for some $j$
  3. When the problem has more constraints than variables
  4. Always, before every execution of the simplex algorithm
Explanation. With ${\boldsymbol b} \ge {\boldsymbol 0}$ the basis of the slack variables is feasible; with some $b_i < 0$ it is not, and Phase $0$ is needed.
lp-f-08-02 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, how is the simplex auxiliary problem, with auxiliary variable $x_0$, built?
  1. $x_0 \ge 0$ is added, subtracted from the left-hand side of every constraint, and $-x_0$ is maximized
  2. $x_0 \ge 0$ is added only to the constraints with $b_i < 0$ and $x_0$ is maximized
  3. The constraints with $b_i < 0$ are multiplied by $-1$ and the original objective function is kept
  4. $x_0 \ge 0$ is added to every constraint and $-x_0$ is minimized
Explanation. Constraints $\sum_j a_{ij} x_j - x_0 = b_i$ for every $i$ and objective function $\max -x_0$: the optimal value is $0$ if and only if the original problem is feasible.
lp-f-08-03 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the simplex auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, with auxiliary variable $x_0$. Which statement on the auxiliary problem is correct?
  1. It admits an optimal solution only if ${\boldsymbol b} \ge {\boldsymbol 0}$
  2. It is never infeasible nor unbounded, so it always admits an optimal solution
  3. It is infeasible when the original problem is infeasible
  4. It may be unbounded when the original problem is unbounded
Explanation. With $x_0 = \max\{0, -\min_i b_i\}$ and the other original variables at $0$ we have a feasible solution, and the value $-x_0 \le 0$ is bounded.
lp-f-08-04 · level teorema · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the simplex auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, with auxiliary variable $x_0$. Which statement on the feasibility of the original problem is correct?
  1. It admits a feasible solution if and only if the auxiliary problem is feasible
  2. It admits a feasible solution if and only if the optimal value of the auxiliary problem is $0$
  3. It admits a feasible solution if and only if the special pivoting operation gives $x_0 = 0$
  4. It admits a feasible solution if and only if ${\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. The auxiliary problem is always feasible; what matters is its optimal value. With ${\boldsymbol b} \ge {\boldsymbol 0}$ the problem is feasible, but the converse does not hold.
lp-f-08-05 · level ipotesi · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the simplex auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, with auxiliary variable $x_0$. Which facts are used to prove that the original problem is feasible if and only if the auxiliary problem has optimal value $0$?
  1. ($\Rightarrow$) the special pivoting operation; ($\Leftarrow$) the fact that ${\boldsymbol b} \ge {\boldsymbol 0}$ in the auxiliary problem
  2. ($\Rightarrow$) every value is $-x_0 \le 0$ and $0$ is attained with $x_0 = 0$; ($\Leftarrow$) $\tilde x_0 = 0$, and $x_0$ is removed
  3. ($\Rightarrow$) and ($\Leftarrow$): Strong Duality between the original problem and the auxiliary problem
  4. ($\Rightarrow$) Bland's rule; ($\Leftarrow$) the non-degeneracy of the optimal solution of the auxiliary problem
Explanation. The proof uses only the definition of the auxiliary problem and the sign of its objective function.
lp-f-08-06 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the simplex auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, with auxiliary variable $x_0$. The initial dictionary of the auxiliary problem, with the basis of the slack variables, is not feasible. In the special pivoting operation of Phase $0$, which variable enters and which leaves the basis?
  1. The variable with a positive reduced cost and smallest index enters, $x_0$ leaves
  2. $x_0$ enters, the basic variable with the most negative right-hand side $b_i$ leaves
  3. $x_0$ enters, the variable chosen by the usual ratio test leaves
  4. $x_0$ enters, the basic variable with the smallest index and $b_i < 0$ leaves
Explanation. With $r \in \argmin\{b_i\}$ we get $x_0 = -b_r$ and $x_i = b_i - b_r \ge 0$: the solution becomes feasible.
lp-f-08-07 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the simplex auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, with auxiliary variable $x_0$. Phase $0$ ends with optimal value $0$ and with $x_0$ basic, of value $0$. What is done before moving to the original problem?
  1. The simplex algorithm is started on the original problem leaving $x_0$ basic at value $0$
  2. A pivoting operation on the row of $x_0$, with a column $x_j$ of coefficient $\bar a_{0j} \ne 0$
  3. Phase $0$ is repeated with another special pivoting operation on $x_0$
  4. It is concluded that the original problem is infeasible, since $x_0$ is basic
Explanation. The solution is degenerate: the pivot on the row of $x_0$ does not change the values of the other variables and makes $x_0$ non-basic.
lp-f-08-08 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the simplex auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, with auxiliary variable $x_0$. At the end of Phase $0$, $x_0$ is removed and a feasible dictionary of the original problem is obtained. How is its objective function equation $z = \sum_j c_j x_j$ obtained?
  1. The equation of the auxiliary objective function $-x_0$ is kept
  2. We write $z = \sum_{j \in \pazocal{N}} c_j x_j$ with the original costs
  3. The equations of the basic variables are substituted into $z$
  4. The equation of the auxiliary objective function changes sign
Explanation. The basic variables are written as functions of the non-basic ones: substituting them into $z = \sum_j c_j x_j$ gives $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$. Keeping the original costs of the non-basic variables only ignores the contribution of the basic ones.
lp-f-08-09 · level teorema · notes
Which of the following statements is part of the Fundamental Theorem of Linear Programming, for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$?
  1. If the feasible region is non-empty, then the problem admits an optimal solution
  2. If the problem admits an optimal solution, then every optimal solution is basic
  3. If the problem is unbounded, then it has no basic feasible solution
  4. If the problem admits an optimal solution, then it admits a basic feasible solution which is optimal
Explanation. The theorem states: feasible implies a basic feasible solution; optimal implies a basic optimal one; and the problem is infeasible, unbounded or has an optimal solution. An unbounded problem still has basic feasible solutions.
lp-f-08-10 · level ipotesi · notes
The Fundamental Theorem of Linear Programming states that an LP problem in standard form is either infeasible, or unbounded, or it admits an optimal basic feasible solution. Which results are used to prove it?
  1. Strong Duality and Complementary Slackness, applied to the problem and its dual
  2. Only the sufficient optimality conditions, applied to any feasible basis
  3. The equivalence between vertices and basic feasible solutions, the convexity of $F$ and the theorem on extreme points
  4. Termination of Phase $0$ and simplex (Bland), the feasibility theorem, sufficient optimality conditions and certificate of unboundedness
Explanation. The proof is algorithmic: Phase $0$ and the simplex algorithm terminate, and each possible outcome is one of the three cases of the statement.
lp-f-08-11 · level facile · notes
An LP problem in standard form has $n+m = 5$ variables and $m = 3$ equality constraints. At most how many basic feasible solutions does it have?
  1. $5 \cdot 3 = 15$
  2. $3! = 6$
  3. $2^5 = 32$
  4. $\binom{5}{3} = 10$
Explanation. Each basic feasible solution corresponds to at least one choice of $m$ columns out of $n+m$: at most $\binom{n+m}{m}$.
lp-f-08-12 · level facile · notes
At the end of Phase $0$ of an LP problem with objective function $z = x_1 + 2x_2$ the auxiliary variable $x_0$ is removed and the equations $x_1 = 3 - x_2 + x_3$, $x_4 = 5 - 2x_2 + x_3$, $x_5 = 3 - x_3$ remain, with $\pazocal{B} = \{1, 4, 5\}$ and $\pazocal{N} = \{2, 3\}$. What is the row of the objective function in the initial dictionary of the simplex algorithm?
  1. $z = 2x_2$
  2. $z = x_1 + 2x_2$
  3. $z = 3 + 3x_2 + x_3$
  4. $z = 3 + x_2 + x_3$
Explanation. The equation of the basic variable $x_1$ is substituted in $z$: $z = (3 - x_2 + x_3) + 2x_2 = 3 + x_2 + x_3$, written with the non-basic variables only. Keeping $x_1$ or ignoring it does not give a dictionary.
lp-f-08-13 · level facile · notes
For an LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ Phase $0$ solves the simplex auxiliary problem $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$ and finds optimal value $-1$. What is concluded?
  1. The original problem has an optimal solution of value $-1$
  2. The original problem is unbounded
  3. Phase $0$ is repeated with another special pivoting operation
  4. The original problem is infeasible
Explanation. The original problem is feasible if and only if the auxiliary problem has optimal value $0$ (a solution with $x_0 = 0$). With a negative optimal value every solution has $x_0 > 0$: no ${\boldsymbol x} \ge {\boldsymbol 0}$ satisfies ${\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}$.
lp-f-08-14 · level facile · notes
For the LP problem $\max\{x_1 + x_2 : x_1 + x_2 \le 2,~ -x_1 - x_2 \le -3,~ x_1, x_2 \ge 0\}$ consider the auxiliary problem $\max\{-x_0 : x_1 + x_2 - x_0 \le 2,~ -x_1 - x_2 - x_0 \le -3,~ x_0, x_1, x_2 \ge 0\}$. What is its optimal value?
  1. $-1$
  2. $-3$
  3. $-\frac{1}{2}$
  4. $0$
Explanation. With $s = x_1 + x_2$ the constraints read $s \le 2 + x_0$ and $s \ge 3 - x_0$, compatible if and only if $x_0 \ge \frac{1}{2}$: the optimal value is $-\frac{1}{2} < 0$, hence the original problem is infeasible. The value $-3$ is the one after the special pivot only.
lp-f-08-15 · level facile · notes
In the simplex algorithm with Phase $0$ for $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, in which order are the steps of Phase $0$ executed?
  1. Special pivot, test of the optimal value, auxiliary problem, simplex on the auxiliary problem, $x_0$ out of the basis, original objective function
  2. Auxiliary problem, simplex on the auxiliary problem, special pivot, $x_0$ out of the basis, test of the optimal value, original objective function
  3. Auxiliary problem, special pivot, simplex on the auxiliary problem, test of the optimal value, $x_0$ out of the basis if needed, original objective function
  4. Original objective function, auxiliary problem, special pivot, simplex on the auxiliary problem, test of the optimal value, $x_0$ out of the basis
Explanation. The special pivot makes the dictionary of the auxiliary problem feasible, and the latter is solved by the simplex algorithm; if the optimal value is negative the algorithm stops (infeasible), otherwise $x_0$ is made non-basic and the original objective function is restored.
lp-f-08-16 · level facile · notes
In the simplex algorithm with Phase $0$ for $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with the simplex auxiliary problem $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0{\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, how many times is the special pivoting operation ($x_0$ enters, the basic variable with the most negative $b_i$ leaves) performed?
  1. Once at the beginning of Phase $0$ and once at the end, to make $x_0$ leave
  2. Once for every constraint with $b_i < 0$
  3. At every iteration of Phase $0$, as long as $x_0$ is basic
  4. At most once, at the beginning of Phase $0$, and only if some $b_i < 0$
Explanation. One special pivot makes the dictionary of the auxiliary problem feasible: afterwards, $x_i = b_i - b_r \ge 0$ for every $i$. The following iterations are ordinary simplex pivots, including the one that makes $x_0$ leave.
lp-f-08-k01 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. Why does the auxiliary problem always have feasible solutions?
  1. Because $x_0$ is free
  2. Take ${\boldsymbol x} = {\boldsymbol 0}$ and $x_0$ large enough
  3. Because it has fewer constraints than the original
  4. Because ${\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. With $x_0 \ge \max_i(-b_i)$ every constraint $-x_0 \le b_i$ holds.
lp-f-08-k02 · level teorema · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. Which statement about the optimal value of the auxiliary problem is correct?
  1. It is $-\infty$ if the original problem is infeasible
  2. It is $\le 0$, and $= 0$ iff the original is feasible
  3. It equals the optimal value of the original problem
  4. It is always positive
Explanation. $-x_0 \le 0$; it equals $0$ exactly when some ${\boldsymbol x} \ge {\boldsymbol 0}$ has ${\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b}$.
lp-f-08-k03 · level ipotesi · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. To conclude that the original problem is infeasible, what is needed?
  1. That the initial slack basis is infeasible
  2. A negative auxiliary optimal value
  3. That $x_0$ is basic at the start
  4. That the auxiliary problem has multiple optima
Explanation. Optimal value $< 0$ means every solution has $x_0 > 0$: no ${\boldsymbol x}$ satisfies the original constraints.
lp-f-08-k04 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. The auxiliary problem has optimal value $-\frac32$. What is concluded?
  1. The original problem is infeasible
  2. The simplex algorithm continues
  3. The original problem is unbounded
  4. The original problem has optimal value $\frac32$
Explanation. A negative optimal value certifies infeasibility.
lp-f-08-k05 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. In the first (special) pivot of Phase $0$, which variable enters and which leaves?
  1. $x_0$ enters, the slack with the largest $b_i$ leaves
  2. The variable with the largest cost enters
  3. $x_0$ enters, the slack with the most negative $b_i$ leaves
  4. The most negative slack enters, $x_0$ leaves
Explanation. This way all slacks become nonnegative and the dictionary is feasible.
lp-f-08-k06 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. With ${\boldsymbol b} = (3, -5, -2)$, which value does $x_0$ take after the special pivot?
  1. $5$
  2. $2$
  3. $3$
  4. $10$
Explanation. $x_0 = \max_i(-b_i) = 5$, from the row with $b_2 = -5$.
lp-f-08-k07 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. The auxiliary problem has optimal value $0$ with $x_0$ nonbasic. How does one continue?
  1. Restart from the slack basis
  2. Solve the dual problem
  3. Declare the problem infeasible
  4. Drop $x_0$, restore the objective
Explanation. The final basis is feasible for the original problem: just recompute the objective row.
lp-f-08-k08 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. At the end of Phase $0$ the optimal value is $0$ but $x_0$ is still basic (with value $0$). What is done?
  1. Restart with another auxiliary variable
  2. Keep $x_0$ basic and continue
  3. A degenerate pivot that takes $x_0$ out of the basis
  4. Declare the problem infeasible
Explanation. $x_0 = 0$: a pivot on its row removes it without changing the solution.
lp-f-08-k09 · level facile · notes
How is an infeasible LP problem recognized by the simplex algorithm with Phase $0$?
  1. The auxiliary problem has a negative optimal value
  2. The algorithm cycles
  3. The initial dictionary has $\bar b_i < 0$
  4. A column with $\bar c_p > 0$ has no $\bar a_{ip} > 0$
Explanation. The second condition certifies unboundedness, not infeasibility.
lp-f-08-k10 · level facile · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. The problem $\max\ x_1$, $x_1 \le -1$, $x_1 \ge 0$ is handled by Phase $0$. What optimal value does the auxiliary problem have?
  1. $-1$
  2. $0$
  3. $-\infty$
  4. $1$
Explanation. We need $x_1 - x_0 \le -1$ with $x_1 \ge 0$: the smallest $x_0$ is $1$, so $\max(-x_0) = -1$.
lp-f-08-k11 · level facile · notes
In the simplex with Phase $0$ for a problem in canonical maximization form, when is Phase $0$ skipped?
  1. When ${\boldsymbol c} \le {\boldsymbol 0}$
  2. When $m < n$
  3. When ${\boldsymbol b} \ge {\boldsymbol 0}$
  4. Never
Explanation. Phase $0$ only serves to find an initial feasible basis.
lp-f-08-k12 · level facile · notes
What are the three possible outcomes of the simplex with Phase $0$ (Bland's rule) on an LP problem?
  1. Unbounded, degenerate, optimal
  2. Optimal, cycling, infeasible
  3. Infeasible, unbounded, optimal
  4. Optimal or infeasible only
Explanation. With Bland it does not cycle: Phase $0$ decides feasibility, the simplex finds an optimum or certifies unboundedness.
lp-f-08-k13 · level teorema · notes
What does the fundamental theorem of linear programming (in terms of bases) state for a problem in standard maximization form?
  1. Every optimal solution is a basic solution
  2. With an optimum, a basic optimum exists
  3. Every basic feasible solution is optimal
  4. A feasible problem always has an optimal solution
Explanation. Moreover: if feasible, a basic feasible solution exists; for the optimum it suffices to search among bases.
lp-f-08-k14 · level teorema · notes
In Phase $0$ for the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with some $b_i < 0$, the auxiliary problem is $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$. Which statement links the auxiliary and the original problems?
  1. The auxiliary is infeasible if the original is
  2. The auxiliary is unbounded if the original is
  3. Original feasible iff the auxiliary is worth $0$
  4. The two problems have the same optimal value
Explanation. The solutions with $x_0 = 0$ are exactly the original feasible solutions.
lp-f-08-k15 · level ipotesi · notes
The proof of the fundamental theorem via the simplex with Phase $0$ uses a fact about the algorithm. Which one?
  1. That Phase $0$ always has optimal value $0$
  2. That the data are integer
  3. That with Bland it always terminates
  4. That every pivot strictly increases $z$
Explanation. Guaranteed termination (Bland) yields an optimal feasible basis whenever an optimum exists.

Part: Duality and the dual simplex (85)

9. Duality theory (36)

lp-f-09-01 · level facile · notes
Given ${\boldsymbol A} \in \R^{m \times n}$, ${\boldsymbol b} \in \R^m$ and ${\boldsymbol c} \in \R^n$, what is the dual problem of $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with dual variables ${\boldsymbol \pi}$?
  1. $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
  2. $\min\{{\boldsymbol c}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol b},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
  3. $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
  4. $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
Explanation. One non-negative dual variable for each primal constraint, one greater-than-or-equal-to dual constraint for each primal variable, dual costs ${\boldsymbol b}$ and the transposed matrix.
lp-f-09-02 · level teorema · notes
Consider a primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with its dual, of variables ${\boldsymbol \pi}$. Which statement of Weak Duality is correct?
  1. For every feasible solution $\bar{\boldsymbol x}$ of the primal and every feasible solution $\bar{\boldsymbol \pi}$ of the dual: $\sum_j c_j \bar x_j \le \sum_i b_i \bar\pi_i$
  2. For every pair of feasible solutions: $\sum_j c_j \bar x_j = \sum_i b_i \bar\pi_i$
  3. For every feasible solution $\bar{\boldsymbol x}$ of the primal and every $\bar{\boldsymbol \pi} \ge {\boldsymbol 0}$: $\sum_j c_j \bar x_j \le \sum_i b_i \bar\pi_i$
  4. For every pair of feasible solutions: $\sum_j c_j \bar x_j \ge \sum_i b_i \bar\pi_i$
Explanation. Every dual feasible solution gives an upper bound on the value of every primal feasible solution; without dual feasibility ($A'\bar{\boldsymbol\pi} \ge {\boldsymbol c}$) the inequality may fail.
lp-f-09-03 · level ipotesi · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Let $\bar{\boldsymbol x}$ and $\bar{\boldsymbol \pi}$ be feasible solutions of the primal and of the dual. Which facts are used to prove that $\sum_j c_j\bar x_j \le \sum_i b_i\bar\pi_i$?
  1. Only $\sum_j a_{ij}\bar x_j \le b_i$ and $\sum_i a_{ij}\bar\pi_i \ge c_j$: non-negativity is not needed
  2. The optimality of $\bar{\boldsymbol x}$ and $\bar{\boldsymbol \pi}$
  3. Strong Duality and Complementary Slackness
  4. $c_j \le \sum_i a_{ij}\bar\pi_i$ with $\bar x_j \ge 0$, and $\sum_j a_{ij}\bar x_j \le b_i$ with $\bar\pi_i \ge 0$
Explanation. The inequalities are multiplied by non-negative quantities: without $\bar x_j \ge 0$ and $\bar\pi_i \ge 0$ the directions are not preserved. Optimality is not needed.
lp-f-09-04 · level teorema · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Which statement of Strong Duality is correct?
  1. The primal has a unique optimal solution if and only if the dual has a unique optimal solution
  2. For every pair of primal and dual feasible solutions the values coincide
  3. If the primal is feasible, then the dual is feasible and the optimal values coincide
  4. The primal has an optimal solution if and only if the dual has an optimal solution, and in this case the optimal values coincide
Explanation. Strong Duality concerns the existence of optimal solutions and the equality of the optimal values, not uniqueness nor merely feasible solutions.
lp-f-09-05 · level ipotesi · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. The primal problem has $n$ variables and, in standard form, slack variables $x_{n+1}, \dots, x_{n+m}$. Which tools does the proof of Strong Duality use?
  1. An optimal dictionary of the primal, $\tilde\pi_i = -\bar c_{n+i} \ge 0$ (reduced costs of the slack variables) and Weak Duality
  2. Complementary Slackness and the dual simplex algorithm applied to the primal
  3. Only Weak Duality, applied to any pair of feasible solutions
  4. The Corollary on unbounded and infeasible problems and the Fundamental Theorem
Explanation. From the optimal dictionary ($\bar c_j \le 0$ for every $j$) a dual feasible solution with the same value $\bar z$ is built; Weak Duality proves its optimality.
lp-f-09-06 · level facile · notes
The dual of an LP problem in canonical maximization form is written, rewritten in canonical maximization form, and its dual is written again. What is obtained, after bringing it back to canonical maximization form?
  1. A problem in standard maximization form
  2. The starting primal problem
  3. The primal problem with the opposite objective-function vector
  4. The dual problem
Explanation. The dual of the dual is the primal: the dual is rewritten in canonical maximization form by multiplying by $-1$, and its dual is written.
lp-f-09-07 · level teorema · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Which statement on the outcomes of the two problems is correct?
  1. If the primal is unbounded, then the dual is unbounded too
  2. If the primal is unbounded, then the dual is infeasible
  3. If the primal is infeasible, then the dual is unbounded
  4. If the dual is infeasible, then the primal is unbounded
Explanation. A dual feasible solution would bound the primal values from above. The other implications fail because primal and dual can both be infeasible.
lp-f-09-08 · level ipotesi · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Which result is enough to prove that, if the primal is unbounded, the dual is infeasible?
  1. Weak Duality: a dual feasible ${\boldsymbol \pi}$ would bound the primal values
  2. Strong Duality, which requires equal optimal values in the two problems
  3. The Fundamental Theorem applied to the dual and Complementary Slackness
  4. Phase $0$ applied to the dual, which detects its infeasibility
Explanation. By contradiction, with $\bar{\boldsymbol \pi}$ dual feasible we would have $\sum_j c_j \bar x_j \le M = \sum_i b_i \bar\pi_i$ for every feasible $\bar{\boldsymbol x}$.
lp-f-09-09 · level teorema · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Which combination of outcomes is possible?
  1. Primal with an optimal solution and dual unbounded
  2. Both unbounded
  3. Primal infeasible and dual with an optimal solution
  4. Both infeasible
Explanation. The possible cases are four: both with an optimum (same value), primal unbounded and dual infeasible, the converse, both infeasible.
lp-f-09-10 · level ipotesi · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Each problem is infeasible, unbounded or has an optimal solution. Which results are used to prove that the pair has exactly four possible combinations of outcomes?
  1. The Fundamental Theorem, Strong Duality and the Corollary on unbounded problems
  2. Only Weak Duality, applied in both directions to the primal-dual pair
  3. Complementary Slackness and the Corollary on unbounded problems
  4. Only Strong Duality, applied to both problems of the pair
Explanation. Out of the nine combinations, Strong Duality excludes the four with only one optimum and the Corollary excludes “both unbounded”.
lp-f-09-11 · level teorema · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Let $\bar{\boldsymbol x}$ be primal feasible and $\bar{\boldsymbol \pi}$ dual feasible. Which statement of Complementary Slackness is correct?
  1. They are optimal if and only if $\bar\pi_i > 0$ for every active constraint $i$
  2. They are optimal if and only if $\bar\pi_i(\sum_j a_{ij}\bar x_j - b_i) = 0$ for every $i$ and $\bar x_j(c_j - \sum_i a_{ij}\bar\pi_i) = 0$ for every $j$
  3. They are optimal if and only if $\bar x_j > 0$ implies $\bar\pi_j > 0$
  4. They are optimal if and only if, for every $i$, exactly one of $\sum_j a_{ij}\bar x_j = b_i$ and $\bar\pi_i = 0$ holds
Explanation. The “or” of the conditions is inclusive: both may hold. An active constraint may have a zero dual variable.
lp-f-09-12 · level ipotesi · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Which results are used in the proof of Complementary Slackness?
  1. Only the Fundamental Theorem of Linear Programming, applied to the primal
  2. The Corollary on unbounded and infeasible problems, applied to the pair
  3. An optimal dictionary of the primal and Bland's rule to avoid cycling
  4. The sums of non-negative terms of Weak Duality, Strong Duality ($\Rightarrow$) and Weak Duality ($\Leftarrow$)
Explanation. Optimality means equal values (Strong Duality), i.e., equality in the chain, i.e., every term zero; conversely equal values imply optimality by Weak Duality.
lp-f-09-13 · level facile · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. $\tilde{\boldsymbol x}$ is optimal for the primal and primal constraint $2$ is satisfied at $\tilde{\boldsymbol x}$ with strict inequality. What can be said about an optimal solution $\tilde{\boldsymbol \pi}$ of the dual?
  1. $\tilde\pi_2 > 0$
  2. $\tilde\pi_2 = 0$
  3. Dual constraint $2$ is active
  4. Nothing: Complementary Slackness concerns only the primal variables
Explanation. A non-active primal constraint has a positive slack, so its dual variable must be zero.
lp-f-09-14 · level facile · notes
The dual (in minimization form) of a generic LP problem in maximization form is written. What corresponds to a primal equality constraint and to a free primal variable?
  1. A free dual variable and a dual equality constraint
  2. A non-negative dual variable and a greater-than-or-equal-to dual constraint
  3. Two non-negative dual variables and two dual constraints
  4. A non-positive dual variable and a less-than-or-equal-to dual constraint
Explanation. Primal equality $\leftrightarrow$ $\pi_i \gtreqless 0$; free primal variable $\leftrightarrow$ dual constraint $=$.
lp-f-09-15 · level facile · notes
The dual (in minimization form) of a generic LP problem in maximization form is written. Which sign does the dual variable $\pi_i$ of a primal greater-than-or-equal-to constraint have?
  1. $\pi_i = 0$
  2. $\pi_i \gtreqless 0$
  3. $\pi_i \le 0$
  4. $\pi_i \ge 0$
Explanation. In a maximization problem the natural constraints are less-than-or-equal-to ($\pi_i \ge 0$); a greater-than-or-equal-to constraint gives $\pi_i \le 0$.
lp-f-09-16 · level facile · notes
Consider the primal problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ and its dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. A primal feasible solution of value $10$ and a dual feasible solution of value $14$ are known. What can be concluded about the optimal value $z(LP)$ of the primal?
  1. $z(LP) \ge 14$
  2. $10 \le z(LP) \le 14$
  3. $z(LP) \le 10$
  4. $z(LP) = 12$
Explanation. The primal solution gives a lower bound; by Weak Duality the dual one gives an upper bound.
lp-f-09-k01 · level facile · notes
What is the dual of the problem $\max\ 3x_1 + 2x_2$, $x_1 + x_2 \le 4$, $x_1 + 3x_2 \le 6$, ${\boldsymbol x} \ge {\boldsymbol 0}$?
  1. $\min\ 4\pi_1 + 6\pi_2$, $\pi_1 + \pi_2 \ge 3$, $\pi_1 + 3\pi_2 \ge 2$, ${\boldsymbol \pi} \ge {\boldsymbol 0}$
  2. $\max\ 4\pi_1 + 6\pi_2$, $\pi_1 + \pi_2 \le 3$, $\pi_1 + 3\pi_2 \le 2$, ${\boldsymbol \pi} \ge {\boldsymbol 0}$
  3. $\min\ 4\pi_1 + 6\pi_2$, $\pi_1 + 3\pi_2 \ge 3$, $\pi_1 + \pi_2 \ge 2$, ${\boldsymbol \pi} \ge {\boldsymbol 0}$
  4. $\min\ 3\pi_1 + 2\pi_2$, $\pi_1 + \pi_2 \ge 4$, $\pi_1 + 3\pi_2 \ge 6$, ${\boldsymbol \pi} \ge {\boldsymbol 0}$
Explanation. One dual constraint per primal variable, with the columns of ${\boldsymbol A}$; dual costs = primal right-hand sides.
lp-f-09-k02 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. If the primal has $n$ variables and $m$ constraints, how many variables and constraints (besides ${\boldsymbol \pi} \ge {\boldsymbol 0}$) does the dual have?
  1. $m$ variables and $m$ constraints
  2. $n + m$ variables and $n$ constraints
  3. $n$ variables and $m$ constraints
  4. $m$ variables and $n$ constraints
Explanation. One dual variable per primal constraint, one dual constraint per primal variable.
lp-f-09-k03 · level teorema · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. What does weak duality state?
  1. ${\boldsymbol c}'\bar{\boldsymbol x} = {\boldsymbol b}'\bar{\boldsymbol \pi}$ for every feasible pair
  2. ${\boldsymbol c}'\bar{\boldsymbol x} \ge {\boldsymbol b}'\bar{\boldsymbol \pi}$ for every feasible pair
  3. ${\boldsymbol c}'\bar{\boldsymbol x} \le {\boldsymbol b}'\bar{\boldsymbol \pi}$ for every primal feasible $\bar{\boldsymbol x}$ and dual feasible $\bar{\boldsymbol \pi}$
  4. The dual always has the same optimal value as the primal
Explanation. Every dual feasible solution gives an upper bound on the maximization primal.
lp-f-09-k04 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. What does strong duality state?
  1. Primal and dual are never both infeasible
  2. Every feasible pair has the same value
  3. The dual is always feasible
  4. With a primal optimum, $z(LP) = z(D(LP))$
Explanation. At the optimum the two values coincide; the last statement is false: both can be.
lp-f-09-k05 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. A feasible pair has ${\boldsymbol c}'\bar{\boldsymbol x} = {\boldsymbol b}'\bar{\boldsymbol \pi} = 17$. What is concluded?
  1. Both solutions are optimal
  2. Only $\bar{\boldsymbol \pi}$ is optimal
  3. Only $\bar{\boldsymbol x}$ is optimal
  4. Nothing without a dictionary
Explanation. By weak duality no primal solution exceeds $17$ and no dual solution goes below $17$.
lp-f-09-k06 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. The primal is unbounded. What is known about the dual?
  1. Nothing
  2. It is unbounded
  3. It is infeasible
  4. It has an optimal solution
Explanation. A dual feasible solution would give a finite upper bound on the primal.
lp-f-09-k07 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. Which combination of outcomes is impossible for the primal–dual pair?
  1. Primal with an optimal solution and dual unbounded
  2. Both infeasible
  3. Both with optimal solutions
  4. Primal unbounded and dual infeasible
Explanation. If the primal has an optimum, by strong duality so does the dual.
lp-f-09-k08 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. What are the complementary slackness conditions for a pair $(\bar{\boldsymbol x}, \bar{\boldsymbol \pi})$?
  1. Positive on one side, active on the other
  2. $\bar\pi_i + \bar x_j = 0$ for every $i, j$
  3. ${\boldsymbol c}'\bar{\boldsymbol x} = 0$ and ${\boldsymbol b}'\bar{\boldsymbol \pi} = 0$
  4. $\bar\pi_i b_i = 0$ and $\bar x_j c_j = 0$
Explanation. A positive variable on one side $\Rightarrow$ an active constraint on the other.
lp-f-09-k09 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. At the optimum a primal constraint $i$ is not active (${\boldsymbol a}_i'\tilde{\boldsymbol x} < b_i$). What holds for every optimal dual solution?
  1. $\tilde\pi_i = b_i$
  2. $\tilde\pi_i > 0$
  3. $\tilde\pi_i = 0$
  4. Dual constraint $i$ is active
Explanation. By complementary slackness $\tilde\pi_i (b_i - {\boldsymbol a}_i'\tilde{\boldsymbol x}) = 0$.
lp-f-09-k10 · level facile · notes
In matrix notation, what is the dual of $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$?
  1. $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
  2. $\min\{{\boldsymbol c}'{\boldsymbol \pi} : {\boldsymbol A}{\boldsymbol \pi} \ge {\boldsymbol b},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
  3. $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
  4. $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$
Explanation. Transposed matrix, right-hand sides and costs swapped, directions reversed.
lp-f-09-k11 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. In matrix notation, how is complementary slackness written for a pair $(\bar{\boldsymbol x}, \bar{\boldsymbol \pi})$?
  1. $\bar{\boldsymbol \pi}'({\boldsymbol b} - {\boldsymbol A}\bar{\boldsymbol x}) = 0 = ({\boldsymbol A}'\bar{\boldsymbol \pi} - {\boldsymbol c})'\bar{\boldsymbol x}$
  2. $\bar{\boldsymbol \pi}'{\boldsymbol b} = {\boldsymbol c}'\bar{\boldsymbol x} = 0$
  3. $\bar{\boldsymbol \pi} = \bar{\boldsymbol x}$
  4. ${\boldsymbol A}\bar{\boldsymbol x} = {\boldsymbol b}$ and ${\boldsymbol A}'\bar{\boldsymbol \pi} = {\boldsymbol c}$
Explanation. Being products of nonnegative vectors, a zero sum means every term is zero.
lp-f-09-k12 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. With ${\boldsymbol A}$ of size $3 \times 5$, what size is the constraint matrix of the dual?
  1. $3 \times 5$
  2. $3 \times 3$
  3. $5 \times 5$
  4. $5 \times 3$
Explanation. The dual uses ${\boldsymbol A}'$: $5$ constraints in $3$ dual variables.
lp-f-09-k13 · level facile · notes
In the dual of a generic maximization LP problem, what corresponds to a primal equality constraint?
  1. A dual equality constraint
  2. A nonpositive dual variable
  3. A nonnegative dual variable
  4. A free dual variable
Explanation. $\le$ constraints → $\pi_i \ge 0$; $=$ constraints → free $\pi_i$; $\ge$ constraints → $\pi_i \le 0$.
lp-f-09-k14 · level facile · notes
In the dual of a generic maximization LP problem, what corresponds to a free primal variable?
  1. A dual $\ge$ constraint
  2. A dual $\le$ constraint
  3. A free dual variable
  4. A dual equality constraint
Explanation. Variable $x_j \ge 0$ → dual $\ge$ constraint; free $x_j$ → dual $=$ constraint.
lp-f-09-k15 · level teorema · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. What does the complementary slackness theorem state?
  1. An optimal pair has all variables positive
  2. Complementary slackness implies feasibility
  3. Every feasible pair satisfies complementary slackness
  4. Optimal iff complementary slackness holds
Explanation. Complementary slackness is equivalent to ${\boldsymbol c}'\bar{\boldsymbol x} = {\boldsymbol b}'\bar{\boldsymbol \pi}$ for feasible pairs.
lp-f-09-k16 · level ipotesi · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. A proof of strong duality reads an optimal dual solution in the optimal simplex dictionary. What is needed?
  1. That ${\boldsymbol c} \ge {\boldsymbol 0}$
  2. That the primal has an optimal basis
  3. That the dual is unbounded
  4. That the optimal dictionary is nondegenerate
Explanation. The slack reduced costs with changed sign give $\tilde{\boldsymbol \pi}$, feasible because $\bar{\boldsymbol c} \le {\boldsymbol 0}$.
lp-f-09-k17 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. For $\max\ 3x_1 + 2x_2$, $x_1 + x_2 \le 4$, $x_1 + 3x_2 \le 6$, ${\boldsymbol x} \ge {\boldsymbol 0}$, the dual solution $\bar{\boldsymbol \pi} = (3, 0)$ is feasible. Which bound does it give?
  1. $z(LP) \le 18$
  2. $z(LP) \le 12$
  3. $z(LP) \ge 12$
  4. $z(LP) = 12$, always
Explanation. ${\boldsymbol b}'\bar{\boldsymbol \pi} = 4 \cdot 3 + 6 \cdot 0 = 12$ is an upper bound.
lp-f-09-k18 · level facile · notes
In the dual of a generic maximization LP problem, what corresponds to a primal $\ge$ constraint?
  1. A nonpositive dual variable
  2. A free dual variable
  3. A nonnegative dual variable
  4. A dual $\ge$ constraint
Explanation. Multiplied by $-1$ it becomes $\le$, with a variable $\ge 0$; going back the variable is $\le 0$.
lp-f-09-k19 · level facile · notes
The dual of the LP problem in canonical maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is $D(LP)$: $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$. The dual is unbounded (value $-\infty$). What is concluded about the primal?
  1. It is unbounded
  2. It has optimal value $-\infty$
  3. It is infeasible
  4. It has an optimal solution
Explanation. Every primal feasible solution would give a finite lower bound on the dual.
lp-f-09-k20 · level facile · notes
For the problem $\max\ x_1 + x_2$, $x_1 + 2x_2 \le 4$, $x_1 \le 2$, ${\boldsymbol x} \ge {\boldsymbol 0}$, which constraints are active at the point $(2, 1)$?
  1. Only $x_1 \le 2$
  2. None
  3. $x_1 + 2x_2 \le 4$ and $x_1 \le 2$
  4. Only $x_1 + 2x_2 \le 4$
Explanation. $2 + 2 = 4$ and $x_1 = 2$: both at equality.

10. Dual Simplex algorithm (49)

lp-f-10-01 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. When is the basis ${\boldsymbol A}_{\pazocal{B}}$ called dual feasible?
  1. When ${\boldsymbol c} \le {\boldsymbol 0}$
  2. When $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
  3. When $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  4. When $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$
Explanation. Primal feasible: $\bar{\boldsymbol b} \ge {\boldsymbol 0}$; dual feasible: $\bar{\boldsymbol c} \le {\boldsymbol 0}$. Both together give an optimal basis.
lp-f-10-02 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. What does the dual simplex algorithm keep and towards what does it work?
  1. It keeps $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and goes on until $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  2. It keeps a non-basic dual solution and solves a restricted primal problem
  3. It keeps $\bar{\boldsymbol c} \le {\boldsymbol 0}$ and goes on until $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
  4. It first solves the auxiliary problem and then the original problem
Explanation. It is the opposite of the simplex algorithm, which keeps $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and looks for $\bar{\boldsymbol c} \le {\boldsymbol 0}$; the non-basic solution belongs to the primal-dual method.
lp-f-10-03 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. In a dual pivoting operation with Bland's rule, what is chosen first?
  1. The pivot column: the non-basic variable with the smallest index and $\bar c_p > 0$
  2. The pivot row: the basic variable with the largest value
  3. The pivot row: the basic variable with the smallest index and $\bar b_r < 0$
  4. The pivot column: the non-basic variable with the most negative reduced cost
Explanation. In the dual simplex algorithm the order is reversed: first the row (a negative value to fix), then the column with the ratio test on the reduced costs.
lp-f-10-04 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. In the dual simplex algorithm, with $\bar{\boldsymbol c} \le {\boldsymbol 0}$, the pivot row $x_r$ with $\bar b_r < 0$ has been chosen. How is the pivot column determined?
  1. With $s_m = \max\{\bar c_j / \bar a_{rj} : j \in \pazocal{N},~ \bar a_{rj} < 0\}$
  2. With $s_m = \min\{\bar c_j / \bar a_{rj} : j \in \pazocal{N},~ \bar a_{rj} > 0\}$
  3. With $t_m = \min\{\bar b_i / \bar a_{ip} : i \in \pazocal{B},~ \bar a_{ip} > 0\}$
  4. With $s_m = \min\{\bar c_j / \bar a_{rj} : j \in \pazocal{N},~ \bar a_{rj} < 0\}$
Explanation. We need to keep $\bar c_j - s\,\bar a_{rj} \le 0$: only the columns with $\bar a_{rj} < 0$ restrict $s$, and the minimum is taken.
lp-f-10-05 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. How does the value $\bar z$ change during the pivoting operations of the dual simplex algorithm, which keeps $\bar{\boldsymbol c} \le {\boldsymbol 0}$?
  1. It stays constant until the basis becomes primal feasible
  2. It never decreases, and it is always a lower bound on the optimal value
  3. It never increases, and it is always an upper bound on the optimal value
  4. It may increase or decrease, depending on the sign of $\bar a_{rp}$
Explanation. With $s_m \ge 0$ and $\bar b_r < 0$ the new value is smaller or equal; a dual feasible basis gives an upper bound.
lp-f-10-06 · level teorema · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Given a dual feasible basis ($\bar{\boldsymbol c} \le {\boldsymbol 0}$), which statement on the certificate of infeasibility is correct?
  1. If there exists $r \in \pazocal{B}$ with $\bar b_r < 0$ and $\bar a_{rj} \le 0$ for every $j \in \pazocal{N}$, the LP problem is infeasible
  2. If there exists $r \in \pazocal{B}$ with $\bar b_r < 0$, the LP problem is infeasible
  3. If there exists $r \in \pazocal{B}$ with $\bar b_r < 0$ and $\bar a_{rj} \ge 0$ for every $j \in \pazocal{N}$, the LP problem is infeasible
  4. If there exists $p \in \pazocal{N}$ with $\bar c_p > 0$ and $\bar a_{ip} \le 0$ for every $i \in \pazocal{B}$, the LP problem is infeasible
Explanation. From the row $x_r = \bar b_r - \sum_j \bar a_{rj} x_j$ with $\bar a_{rj} \ge 0$ we get $x_r \le \bar b_r < 0$ for every solution. The last condition certifies unboundedness instead.
lp-f-10-07 · level ipotesi · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. Let $r \in \pazocal{B}$ with $\bar b_r < 0$ and $\bar a_{rj} \ge 0$ for every $j \in \pazocal{N}$. Which facts does the proof, on the primal, that the LP problem is infeasible use?
  1. Strong Duality, applied to the dual solution associated with the basis
  2. The row $x_r = \bar b_r - \sum_{j \in \pazocal{N}} \bar a_{rj}x_j$, with $\bar a_{rj} \ge 0$ and ${\boldsymbol x} \ge {\boldsymbol 0}$, gives $x_r \le \bar b_r < 0$
  3. Only dual feasibility $\bar{\boldsymbol c} \le {\boldsymbol 0}$, which makes the dual feasible
  4. Bland's rule and the finite number of bases, which stop the algorithm
Explanation. The second proof uses instead the unbounded dual and Weak Duality.
lp-f-10-08 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. The dual is $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c}\}$. With ${\boldsymbol c}_{\pazocal{B}}$ the costs of the basic variables, when is ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ a dual feasible solution?
  1. Always
  2. If and only if the basis is dual feasible, i.e., $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  3. Only if ${\boldsymbol c}_{\pazocal{B}} = {\boldsymbol 0}$
  4. If and only if the basis is primal feasible, i.e., $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. $\bar c_j \le 0$ is equivalent to ${\boldsymbol \pi}{\boldsymbol A}_j \ge c_j$: the reduced costs are the dual slacks.
lp-f-10-09 · level facile · notes
The LP problem $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is brought to standard form with the slack variables. In which case does the basis of the slack variables immediately have all reduced costs non-positive, i.e., is it dual feasible?
  1. When ${\boldsymbol b} \ge {\boldsymbol 0}$
  2. When ${\boldsymbol A} \ge {\boldsymbol 0}$
  3. When ${\boldsymbol c} \ge {\boldsymbol 0}$
  4. When ${\boldsymbol c} \le {\boldsymbol 0}$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$ and ${\boldsymbol c}_{\pazocal{B}} = {\boldsymbol 0}$ we have $\bar{\boldsymbol c} = {\boldsymbol c}$.
lp-f-10-10 · level teorema · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. A basis is primal feasible if $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and dual feasible if $\bar{\boldsymbol c} \le {\boldsymbol 0}$. Which statement is correct?
  1. Every basis associated with an optimal basic feasible solution is also dual feasible
  2. A primal and dual feasible basis is optimal and, if an optimum exists, there is a basis with both properties
  3. A dual feasible basis always gives a basic feasible solution, even with some $\bar b_r < 0$
  4. If the problem has an optimal solution, every dual feasible basis is also primal feasible
Explanation. A degenerate optimal solution may also be associated with a basis with some $\bar c_j > 0$; only the existence of an optimal basis is guaranteed.
lp-f-10-11 · level facile · notes
The dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$ of an LP problem in canonical maximization form with $n$ variables and $m$ constraints is brought to standard maximization form by adding $n$ surplus variables, numbered before the dual variables ($\pi_1, \dots, \pi_n$ surplus, $\pi_{n+1}, \dots, \pi_{n+m}$ dual). What is this numbering for?
  1. The right-hand sides of the dual then become all non-negative
  2. $\pi_j$ ($j \le n$) corresponds to the primal variable $x_j$ and $\pi_{n+i}$ to the slack variable $x_{n+i}$
  3. The constraint matrix of the dual then contains the identity in its last $m$ columns
  4. The surplus variables then have a positive cost in the objective function
Explanation. With the indices shifted by $n$, every primal variable and the associated dual variable have the same index: this is the correspondence used by the dual simplex algorithm and by Complementary Slackness.
lp-f-10-12 · level facile · notes
The dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$ of an LP problem in canonical maximization form with $n$ variables and $m$ constraints is brought to standard maximization form by adding $n$ surplus variables, numbered before the dual variables ($\pi_1, \dots, \pi_n$ surplus, $\pi_{n+1}, \dots, \pi_{n+m}$ dual). How many variables and how many equality constraints does the dual have in this standard form?
  1. $2(n + m)$ variables and $n + m$ constraints
  2. $n + m$ variables and $n$ constraints
  3. $n + m$ variables and $m$ constraints
  4. $m$ variables and $n$ constraints
Explanation. The dual has $m$ variables and one greater-than-or-equal-to constraint for every primal variable, i.e., $n$ constraints; with one surplus variable per constraint there are $n + m$ variables and $n$ equalities.
lp-f-10-13 · level facile · notes
For an LP problem in standard maximization form an optimal basis ${\boldsymbol A}_{\pazocal{B}}$ is known (with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$ and reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$). The right-hand side ${\boldsymbol b}$ changes into $\hat{\boldsymbol b}$. Why can one re-optimize with the dual simplex algorithm starting from this basis?
  1. The reduced costs change, but they remain non-positive if $\hat{\boldsymbol b} \ge {\boldsymbol 0}$
  2. The dual simplex algorithm does not need a dual feasible initial basis
  3. The basis remains primal feasible, since the matrix ${\boldsymbol A}_{\pazocal{B}}$ does not change
  4. The reduced costs do not depend on ${\boldsymbol b}$: the basis remains dual feasible, even if ${\boldsymbol A}_{\pazocal{B}}^{-1}\hat{\boldsymbol b}$ has negative entries
Explanation. $\bar{\boldsymbol c}' = {\boldsymbol c}'_{\pazocal{N}} - {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ does not contain ${\boldsymbol b}$: the basis is still dual feasible, and the dual simplex algorithm restores primal feasibility, often with few pivots.
lp-f-10-14 · level facile · notes
In the dual simplex algorithm for an LP problem in standard maximization form one starts from a dual feasible basis (reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$) and keeps it so. When does the algorithm stop with an optimal solution?
  1. When $\bar{\boldsymbol c} \le {\boldsymbol 0}$: the basis is dual feasible
  2. When the value $\bar z$ stops decreasing between two iterations
  3. When no row has a coefficient $\bar a_{rj} < 0$
  4. When $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$: the basis is also primal feasible
Explanation. $\bar{\boldsymbol c} \le {\boldsymbol 0}$ holds from the start; the optimum is reached when $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ as well. A row with $\bar b_r < 0$ and $\bar a_{rj} \ge 0$ for every $j$ certifies infeasibility instead.
lp-f-10-15 · level facile · notes
In the dual simplex algorithm for an LP problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j} \bar a_{ij} x_j$, $z = \bar z + \sum_j \bar c_j x_j$, a dual pivot is performed with row $x_r$ ($\bar b_r < 0$) and column $x_p$, with $s_m = \bar c_p / \bar a_{rp} \ge 0$. How is $\bar z$ updated?
  1. $\bar z \leftarrow \bar z + s_m\,\bar b_r$
  2. $\bar z \leftarrow \bar z - s_m\,\bar b_r$
  3. $\bar z \leftarrow \bar z + s_m\,\bar a_{rp}$
  4. $\bar z \leftarrow \bar z + \bar c_p\,\bar b_r$
Explanation. After the pivot $x_p = \bar b_r / \bar a_{rp}$ and $\bar z$ changes by $\bar c_p \bar b_r / \bar a_{rp} = s_m \bar b_r \le 0$: in the dual simplex algorithm the value never increases.
lp-f-10-16 · level facile · notes
For an LP problem in canonical maximization form with ${\boldsymbol c} \le {\boldsymbol 0}$ two executions are compared: the dual simplex algorithm on the primal problem and the simplex algorithm on the dual problem, written in standard maximization form with the dual variables numbered in correspondence with the primal variables. How are the two related?
  1. They visit different bases, but they end with the same optimal value
  2. They coincide only if all the basic solutions visited are non-degenerate
  3. The simplex algorithm on the dual needs Phase $0$, so the two sequences differ
  4. They describe the same sequence of bases: a primal variable is basic if and only if the corresponding dual variable is non-basic
Explanation. The dual simplex algorithm applied to the primal problem is exactly the simplex algorithm applied to the dual: at every iteration the two partitions are complementary according to the index correspondence.
lp-f-10-17 · level facile · notes
The simplex algorithm on the dual (in standard maximization form, with $\pi_j$ associated with the primal variable $x_j$ for every index $j$) is run in parallel with the dual simplex algorithm on the primal. In an iteration the dual variable $\pi_3$ enters the basis. What happens to the primal variable $x_3$?
  1. It enters the primal basis
  2. It stays basic, with an unchanged value
  3. It leaves the primal basis
  4. It becomes the pivot row of the next iteration
Explanation. The two partitions are complementary: $\pi_j$ is basic if and only if $x_j$ is non-basic. When $\pi_3$ enters the dual basis, $x_3$ leaves the primal basis.
lp-f-10-k01 · level facile · notes
The dual of a problem in canonical maximization form with $n$ variables and $m$ constraints is written in standard maximization form. How many variables does it have?
  1. $2m$
  2. $n$
  3. $m$
  4. $n + m$
Explanation. A surplus variable is added to each of the $n$ dual $\ge$ constraints.
lp-f-10-k02 · level facile · notes
In the standard maximization form of the dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$, which objective is maximized?
  1. $-{\boldsymbol b}'{\boldsymbol \pi}$
  2. ${\boldsymbol b}'{\boldsymbol \pi}$
  3. $-{\boldsymbol c}'{\boldsymbol \pi}$
  4. ${\boldsymbol c}'{\boldsymbol \pi}$
Explanation. $\min {\boldsymbol b}'{\boldsymbol \pi} = -\max(-{\boldsymbol b}'{\boldsymbol \pi})$.
lp-f-10-k03 · level facile · notes
For a problem in standard maximization form, when is a basis called dual feasible?
  1. When $\bar b_i \ge 0$ for every $i$
  2. When all reduced costs are $\bar c_j \le 0$
  3. When $\bar z \le 0$
  4. When the basis contains all slacks
Explanation. Primal feasible: $\bar{\boldsymbol b} \ge {\boldsymbol 0}$; dual feasible: $\bar{\boldsymbol c} \le {\boldsymbol 0}$.
lp-f-10-k04 · level teorema · notes
For a problem in standard maximization form, which statement about a basis that is both primal and dual feasible is correct?
  1. It never exists
  2. It is optimal
  3. It is degenerate
  4. It gives an unbounded problem
Explanation. $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$ are the two optimality conditions.
lp-f-10-k05 · level facile · notes
For a basis ${\boldsymbol A}_{\pazocal{B}}$ of a problem in standard maximization form, which dual vector ${\boldsymbol \pi}$ is associated with it?
  1. ${\boldsymbol \pi} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$
  2. ${\boldsymbol \pi} = {\boldsymbol c}_{\pazocal{N}}'{\boldsymbol A}_{\pazocal{N}}^{-1}$
  3. ${\boldsymbol \pi} = {\boldsymbol b}'{\boldsymbol A}_{\pazocal{B}}$
  4. ${\boldsymbol \pi} = {\boldsymbol c}_{\pazocal{B}}'{\boldsymbol A}_{\pazocal{B}}^{-1}$
Explanation. It is the vector appearing in $\bar c_j = c_j - {\boldsymbol \pi}{\boldsymbol A}_j$ and in $\bar z = {\boldsymbol \pi}{\boldsymbol b}$.
lp-f-10-k06 · level facile · notes
For a basis with associated dual vector ${\boldsymbol \pi} = {\boldsymbol c}_{\pazocal{B}}'{\boldsymbol A}_{\pazocal{B}}^{-1}$, why is the basis called dual feasible when $\bar{\boldsymbol c} \le {\boldsymbol 0}$?
  1. Because then ${\boldsymbol \pi}$ is integer
  2. Because then ${\boldsymbol \pi} = {\boldsymbol 0}$
  3. Because then $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
  4. Because then ${\boldsymbol \pi}{\boldsymbol A}_j \ge c_j$.
Explanation. $\bar c_j = c_j - {\boldsymbol \pi}{\boldsymbol A}_j \le 0$ is the dual constraint of column $j$.
lp-f-10-k07 · level facile · notes
What does the dual simplex algorithm require as input?
  1. A dual feasible basis ($\bar{\boldsymbol c} \le {\boldsymbol 0}$)
  2. A problem with ${\boldsymbol b} \ge {\boldsymbol 0}$
  3. An optimal solution of the dual
  4. A primal feasible basis ($\bar{\boldsymbol b} \ge {\boldsymbol 0}$)
Explanation. It is the mirror image of the simplex, which needs a primal feasible basis.
lp-f-10-k08 · level facile · notes
For a problem in canonical maximization form, when is the slack basis dual feasible for free?
  1. When ${\boldsymbol b} \ge {\boldsymbol 0}$
  2. Always
  3. When ${\boldsymbol A} \ge {\boldsymbol 0}$
  4. When ${\boldsymbol c} \le {\boldsymbol 0}$
Explanation. With the slack basis ${\boldsymbol \pi} = {\boldsymbol 0}$ and $\bar{\boldsymbol c} = {\boldsymbol c}$.
lp-f-10-k09 · level facile · notes
The problem $\max\ -2x_1 - x_2$, $-x_1 - x_2 \le -3$, $x_1 - x_2 \le 1$, ${\boldsymbol x} \ge {\boldsymbol 0}$: what is the slack basis like?
  1. Neither primal nor dual feasible
  2. Dual feasible but not primal feasible
  3. Optimal
  4. Primal feasible but not dual
Explanation. ${\boldsymbol c} \le {\boldsymbol 0}$ gives dual feasibility; $b_1 = -3 < 0$ rules out primal feasibility.
lp-f-10-k10 · level facile · notes
For a problem in canonical maximization form with some $b_i < 0$ and some $c_j > 0$, how can the dual simplex be used to find a primal feasible basis?
  1. It cannot: Phase $0$ is always needed
  2. Run the simplex from the slack basis
  3. Change the sign of ${\boldsymbol b}$
  4. Replace ${\boldsymbol c}$ by some $\hat{\boldsymbol c} \le {\boldsymbol 0}$ and run the dual simplex
Explanation. The feasible region does not change; the final basis is primal feasible for the original problem.
lp-f-10-k11 · level facile · notes
In the technique replacing ${\boldsymbol c}$ by $\hat{\boldsymbol c} \le {\boldsymbol 0}$ to find a primal feasible basis with the dual simplex, what is done at the end?
  1. Go back to the slack basis
  2. Restore ${\boldsymbol c}$ and run the simplex
  3. Declare the basis found optimal
  4. Run Phase $0$
Explanation. The basis found is primal feasible but, with the true costs, in general not optimal.
lp-f-10-k12 · level facile · notes
In the technique with $\hat{\boldsymbol c} \le {\boldsymbol 0}$, which choice of $\hat c_j$ is proposed in the notes besides $\hat{\boldsymbol c} = {\boldsymbol 0}$?
  1. $\hat c_j = \max\{c_j, 0\}$
  2. $\hat c_j = -|c_j| - 1$
  3. $\hat c_j = c_j^2$
  4. $\hat c_j = \min\{c_j, 0\}$
Explanation. It keeps the costs already nonpositive and sets the positive ones to zero.
lp-f-10-k13 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), what does a dual pivot operation do?
  1. It changes the sign of the reduced costs
  2. It removes the basic variable with the largest value
  3. It brings in the variable with the largest $\bar c_j$
  4. A negative variable leaves, $\bar{\boldsymbol c}$ stays $\le {\boldsymbol 0}$
Explanation. $x_r$ with $\bar b_r < 0$ leaves; the column is chosen by the dual ratio test.
lp-f-10-k14 · level teorema · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), which statement about a dual pivot with row $x_r$ ($\bar b_r < 0$) and column $x_p$ is correct?
  1. It makes the basis primal feasible at once
  2. It keeps dual feasibility and does not increase $\bar z$
  3. It strictly increases $\bar z$
  4. It makes all $\bar b_i$ positive
Explanation. The value $\bar z$ (an upper bound) decreases or stays the same in degenerate pivots.
lp-f-10-k15 · level ipotesi · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), why does the dual ratio test (minimum of $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$) keep dual feasibility?
  1. Because columns with $\bar a_{rj} > 0$ are discarded
  2. Because $\bar b_r < 0$
  3. The minimum step keeps $\bar c_j - s_m \bar a_{rj} \le 0$
  4. Because the pivot column has $\bar c_p = 0$
Explanation. The minimum ratio is the longest step that makes no reduced cost positive.
lp-f-10-k16 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), with $\bar b = (2, -3, -1)$ for the basic variables $x_3, x_4, x_5$, which row does the smallest-index rule choose?
  1. None: the basis is optimal
  2. $x_3$
  3. $x_4$
  4. $x_5$
Explanation. Candidates are rows with $\bar b_i < 0$: $x_4$ and $x_5$; smallest index $x_4$.
lp-f-10-k17 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), when does it stop with an optimal basis?
  1. When $\bar z \le 0$
  2. When a row has all $\bar a_{rj} \ge 0$
  3. When $\bar c_j < 0$ for every $j$
  4. When $\bar b_i \ge 0$ for every $i \in \pazocal{B}$
Explanation. The basis is already dual feasible: with $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ it is optimal.
lp-f-10-k18 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), the pivot row has $\bar a_{r1} = -2$, $\bar a_{r2} = 1$, $\bar a_{r3} = -1$ and the reduced costs are $\bar c_1 = -4$, $\bar c_2 = -1$, $\bar c_3 = -3$. Which column enters?
  1. $x_1$, with ratio $2$
  2. $x_1$ and $x_3$ together
  3. $x_3$, with ratio $3$
  4. $x_2$, with ratio $-1$
Explanation. Only $\bar a_{rj} < 0$ count: ratios $\frac{-4}{-2} = 2$ and $\frac{-3}{-1} = 3$; minimum $2$.
lp-f-10-k19 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), what does Bland's rule prescribe for the dual simplex?
  1. Row: most negative $\bar b_i$; column: largest $\bar c_j$
  2. Row: largest index; column: largest index
  3. Row and column at random
  4. Row and column of smallest index among candidates
Explanation. Smallest-index choices prevent cycling in degenerate dual pivots.
lp-f-10-k20 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), when is a dual pivot degenerate?
  1. When the minimum step is $s_m = 0$
  2. When the pivot row has all $\bar a_{rj} \ge 0$
  3. When the basis is optimal
  4. When $\bar b_r = 0$
Explanation. With $s_m = 0$ the value $\bar z$ does not change; without an anti-cycling rule cycling may occur.
lp-f-10-k21 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), in the dual ratio test two columns $x_2$ and $x_6$ attain the same minimum. Which enters with Bland's rule?
  1. None: the problem is infeasible
  2. The one with the most negative $\bar a_{rj}$
  3. $x_2$
  4. $x_6$
Explanation. Ties are broken by the smallest index.
lp-f-10-k22 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), the row $x_r = -2 - x_1 - 3x_4$ has $\bar b_r = -2$ and $\bar a_{r1} = 1$, $\bar a_{r4} = 3$. What is concluded?
  1. The basis is optimal
  2. The problem is unbounded
  3. $x_1$ enters
  4. The problem is infeasible
Explanation. $x_r = -2 - x_1 - 3x_4 \le -2 < 0$ for every ${\boldsymbol x} \ge {\boldsymbol 0}$: infeasibility certificate.
lp-f-10-k23 · level ipotesi · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), to conclude that the problem is infeasible from a row with $\bar b_r < 0$, what must hold?
  1. $\bar a_{rj} \le 0$ for every $j$
  2. $\bar a_{rj} \ge 0$ for every $j \in \pazocal{N}$
  3. $\bar c_j < 0$ for every $j$
  4. $\bar z < 0$
Explanation. Then $x_r = \bar b_r - \sum_j \bar a_{rj} x_j < 0$ for every ${\boldsymbol x}_{\pazocal{N}} \ge {\boldsymbol 0}$.
lp-f-10-k24 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), after the dual pivot with row $x_r$ and column $x_p$, how is the dictionary updated?
  1. Recompute everything from the slack basis
  2. Zero the rows with $\bar b_i \ge 0$
  3. Change the sign of the pivot row
  4. As in the primal simplex
Explanation. The algebraic operation is the same as the primal pivot; only the choice of row and column changes.
lp-f-10-k25 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), with pivot row $x_3 = -4 + 2x_1 - x_2$ and column $x_1$, what is $x_1$ in the new basic solution?
  1. $-2$
  2. $4$
  3. $2$
  4. $-4$
Explanation. $x_1 = 2 + \frac12 x_2 + \frac12 x_3$; with $x_2 = x_3 = 0$ it equals $2$.
lp-f-10-k26 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), with pivot row $x_3 = -4 + 2x_1 - x_2$, column $x_1$ and objective row $z = -3x_1 - x_2$, what is the new $\bar z$?
  1. $0$
  2. $6$
  3. $-12$
  4. $-6$
Explanation. $x_1 = 2 + \frac12 x_2 + \frac12 x_3$, hence $z = -6 - \frac52 x_2 - \frac32 x_3$.
lp-f-10-k27 · level facile · notes
What are the possible outcomes of the dual simplex algorithm (Bland's rule) starting from a dual feasible basis?
  1. Only optimal basis
  2. Optimal basis or unbounded problem
  3. Optimal basis or infeasibility certificate
  4. Cycling or optimal basis
Explanation. With a dual feasible basis the problem cannot be unbounded.
lp-f-10-k28 · level ipotesi · notes
Why can a problem in standard maximization form with a dual feasible basis not be unbounded?
  1. Because the basis is nondegenerate
  2. By weak duality $\bar z$ is a bound
  3. Because the costs are negative
  4. Because ${\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. $\bar z = {\boldsymbol \pi}{\boldsymbol b}$ with ${\boldsymbol \pi}$ dual feasible bounds every primal value.
lp-f-10-k29 · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_{j \in \pazocal{N}} \bar a_{ij} x_j$, $z = \bar z + \sum_{j \in \pazocal{N}} \bar c_j x_j$ and a dual feasible basis ($\bar c_j \le 0$), how does the value $\bar z$ move along the iterations?
  1. It stays constant
  2. It does not decrease, as in the primal simplex
  3. It does not increase: it falls to the optimum
  4. It oscillates
Explanation. Every $\bar z$ of a dual feasible basis is an upper bound on the optimal value.
lp-f-10-k30 · level facile · notes
For a problem in canonical maximization form with ${\boldsymbol c} \le {\boldsymbol 0}$, what is the relation between the dual simplex on the primal and the simplex on the dual?
  1. The first finds a different optimum
  2. They describe the same sequence of bases
  3. The second always needs more iterations
  4. There is no relation
Explanation. The dual simplex applied to the primal is the simplex applied to the dual.
lp-f-10-k31 · level teorema · notes
Which statement about the optimal dictionary of the dual simplex is correct?
  1. It gives optimal primal and dual solutions
  2. It gives a primal but not a dual solution
  3. It gives only an optimal dual solution
  4. It gives solutions with different values
Explanation. The final basis is primal and dual feasible: both solutions are optimal, with the same value.
lp-f-10-k32 · level ipotesi · notes
For a basis of a problem in standard maximization form, $\bar z = {\boldsymbol \pi}{\boldsymbol b}$ with ${\boldsymbol \pi} = {\boldsymbol c}_{\pazocal{B}}'{\boldsymbol A}_{\pazocal{B}}^{-1}$. To conclude that $\bar z$ is an upper bound on the optimal value, what is needed?
  1. That the basis is dual feasible ($\bar{\boldsymbol c} \le {\boldsymbol 0}$)
  2. That the basis is nondegenerate
  3. That ${\boldsymbol b} \ge {\boldsymbol 0}$
  4. That the basis is primal feasible
Explanation. Then ${\boldsymbol \pi}$ is dual feasible and weak duality applies.

Part: Matrix methods, sensitivity and geometry (127)

11. Revised simplex algorithm (16)

lp-f-11-01 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, the vector ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ (${\boldsymbol c}_{\pazocal{B}}$: costs of the basic variables) is obtained without computing ${\boldsymbol A}_{\pazocal{B}}^{-1}$. Which system is solved?
  1. ${\boldsymbol \pi}\,{\boldsymbol A}_{\pazocal{N}} = {\boldsymbol c}'_{\pazocal{N}}$
  2. ${\boldsymbol \pi}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$
  3. ${\boldsymbol A}_{\pazocal{B}}\,{\boldsymbol \pi}' = {\boldsymbol b}$
  4. ${\boldsymbol A}_{\pazocal{B}}\,{\boldsymbol \pi}' = {\boldsymbol c}_{\pazocal{B}}$
Explanation. From ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ we get ${\boldsymbol \pi}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$: the row vector ${\boldsymbol \pi}$ is on the left of ${\boldsymbol A}_{\pazocal{B}}$. The system ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol \pi}' = {\boldsymbol c}_{\pazocal{B}}$ uses the non-transposed matrix.
lp-f-11-02 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, let $x_p$ be the pivot column and $\bar{\boldsymbol A} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ the dictionary matrix. What is the vector ${\boldsymbol d}$, solution of ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_p$, used for?
  1. It gives the reduced costs of the non-basic variables: it is used to choose the column
  2. It gives the value $\bar z$ of the new solution: it is used in the stopping criterion
  3. It is the column of $x_p$ in $\bar{\boldsymbol A}$: it is used in the ratio test
  4. It is the row of $\bar{\boldsymbol A}$ of the pivot row: it is used in the ratio test
Explanation. ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$ and ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - {\boldsymbol d}\,x_p$; the reduced costs and $\bar z$ come from ${\boldsymbol \pi}$.
lp-f-11-03 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, the pivot column $x_p$ has reduced cost $\bar c_p > 0$ and ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$ is computed. What is concluded if ${\boldsymbol d} \le {\boldsymbol 0}$?
  1. The pivoting operation is degenerate
  2. The LP problem is unbounded
  3. The current basic solution is optimal
  4. The LP problem is infeasible
Explanation. ${\boldsymbol d}$ is the column $\bar{\boldsymbol A}_p$: with $\bar c_p > 0$ and $\bar{\boldsymbol A}_p \le {\boldsymbol 0}$ we have the certificate of unboundedness.
lp-f-11-04 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, the values of the basic variables are $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and, for the pivot column $x_p$, ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$. How is the step $t_m$ computed?
  1. $t_m = \min\{\bar b_i / d_i : i \in \pazocal{B},~ d_i > 0\}$
  2. $t_m = \min\{\bar c_j / d_j : j \in \pazocal{N},~ d_j < 0\}$
  3. $t_m = \max\{\bar b_i / d_i : i \in \pazocal{B},~ d_i > 0\}$
  4. $t_m = {\boldsymbol \pi}\,{\boldsymbol b}$
Explanation. It is the ratio test of the simplex algorithm with the column $\bar{\boldsymbol A}_p = {\boldsymbol d}$.
lp-f-11-05 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, what does the $i$-th entry of the row vector ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ correspond to?
  1. To the $i$-th constraint of the problem
  2. To the $i$-th basic variable
  3. To the $i$-th column of ${\boldsymbol A}_{\pazocal{N}}$
  4. To the $i$-th non-basic variable
Explanation. Even if in the examples the components are labelled with the indices of $\pazocal{B}$, each one is associated with a constraint: it is a dual variable.
lp-f-11-06 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, what is updated at every iteration, instead of the whole dictionary?
  1. The whole matrix $\bar{\boldsymbol A}$ and the vector $\bar{\boldsymbol b}$
  2. The partition $\pazocal{B}$, $\pazocal{N}$ and the vector $\bar{\boldsymbol b}$
  3. Only the reduced cost vector $\bar{\boldsymbol c}$
  4. The inverse ${\boldsymbol A}_{\pazocal{B}}^{-1}$, computed explicitly
Explanation. The revised simplex algorithm computes neither the inverse nor the whole dictionary: it solves the two systems and updates $\bar{\boldsymbol b}$ with $t_m$ and ${\boldsymbol d}$.
lp-f-11-07 · level media · notes
In the revised simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with current basis ${\boldsymbol A}_{\pazocal{B}}$ (columns with index in $\pazocal{B}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, we have ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 2 & 0 \\ 0 & 4 \end{pmatrix}$, ${\boldsymbol c}'_{\pazocal{B}} = (6, 8)$ and ${\boldsymbol b} = (4, 8)'$. What are ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ and the value $\bar z = {\boldsymbol \pi}\,{\boldsymbol b}$ of the basic solution?
  1. ${\boldsymbol \pi} = (3, 2)$, $\bar z = 28$
  2. ${\boldsymbol \pi} = (12, 32)$, $\bar z = 304$
  3. ${\boldsymbol \pi} = (\frac{1}{3}, \frac{1}{2})$, $\bar z = \frac{16}{3}$
  4. ${\boldsymbol \pi} = (3, 2)$, $\bar z = 34$
Explanation. From ${\boldsymbol \pi}{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$: $2\pi_1 = 6$, $4\pi_2 = 8$. Then $\bar z = {\boldsymbol \pi}{\boldsymbol b} = 12 + 16 = 28$ (not ${\boldsymbol \pi}{\boldsymbol c}_{\pazocal{B}} = 34$).
lp-f-11-08 · level facile · notes
In the revised simplex algorithm for $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ obtained from a canonical form with ${\boldsymbol b} \ge {\boldsymbol 0}$, the initial basis is that of the slack variables (${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$, basic costs ${\boldsymbol c}_{\pazocal{B}} = {\boldsymbol 0}$). What are ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ and the reduced costs $\bar c_j$?
  1. ${\boldsymbol \pi} = {\boldsymbol b}'$ and $\bar c_j = c_j - b_j$ for every $j \in \pazocal{N}$
  2. ${\boldsymbol \pi} = {\boldsymbol 0}$ and $\bar c_j = c_j$ for every $j \in \pazocal{N}$
  3. ${\boldsymbol \pi} = {\boldsymbol 0}$ and $\bar c_j = -c_j$ for every $j \in \pazocal{N}$
  4. ${\boldsymbol \pi} = {\boldsymbol 1}'$ and $\bar c_j = c_j - 1$ for every $j \in \pazocal{N}$
Explanation. With ${\boldsymbol c}_{\pazocal{B}} = {\boldsymbol 0}$ the first system gives ${\boldsymbol \pi} = {\boldsymbol 0}$, hence $\bar c_j = c_j - {\boldsymbol \pi}{\boldsymbol A}_j = c_j$: the initial reduced costs are the original costs.
lp-f-11-09 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form, the pivot column is $x_p$, ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$ and the ratio test gives the step $t_m$. How are the values $\bar b_i$ of the basic variables updated?
  1. $x_p$ enters with value $t_m$ and $\bar b_i \leftarrow \bar b_i / d_i$ for the others
  2. $x_p$ enters with value $t_m$ and $\bar b_i \leftarrow \bar b_i - t_m\,d_i$ for the others
  3. $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ is recomputed with the explicit inverse
  4. $x_p$ enters with value $t_m$ and $\bar b_i \leftarrow \bar b_i + t_m\,d_i$ for the others
Explanation. With $x_p = t$ the basic variables are $\bar{\boldsymbol b} - t\,{\boldsymbol d}$; for $t = t_m$ the variable of the pivot row becomes zero and leaves the basis.
lp-f-11-10 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form, ${\boldsymbol \pi}$ solves ${\boldsymbol \pi}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$ and ${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$. How is the reduced cost of the non-basic variable $x_j$ computed?
  1. $\bar c_j = c_j - {\boldsymbol \pi}\,{\boldsymbol A}_j$
  2. $\bar c_j = c_j - {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_j$
  3. $\bar c_j = c_j - \pi_j$
  4. $\bar c_j = {\boldsymbol \pi}\,{\boldsymbol A}_j - c_j$
Explanation. $\bar c_j = c_j - {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_j = c_j - {\boldsymbol \pi}\,{\boldsymbol A}_j$: one scalar product per non-basic column is enough. ${\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_j$ is a vector, not a scalar.
lp-f-11-11 · level facile · notes
In the revised simplex algorithm for an LP problem in standard maximization form, the current basis is ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 1 & 1 \\ 0 & 2 \end{pmatrix}$ and the pivot column has ${\boldsymbol A}_p = (3, 4)'$. What is the vector ${\boldsymbol d}$ solving ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_p$?
  1. ${\boldsymbol d} = (1, 2)'$
  2. ${\boldsymbol d} = (3, \frac{1}{2})'$
  3. ${\boldsymbol d} = (3, 4)'$
  4. ${\boldsymbol d} = (7, 8)'$
Explanation. From the second equation $2d_2 = 4$, hence $d_2 = 2$; from the first $d_1 + d_2 = 3$, hence $d_1 = 1$. $(3, \frac{1}{2})$ solves the transposed system, $(7, 8)$ is ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol A}_p$.
lp-f-11-12 · level facile · notes
The simplex algorithm with the whole dictionary updates at every iteration the whole matrix $\bar{\boldsymbol A} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$. How many columns of $\bar{\boldsymbol A}$ does the revised simplex algorithm compute at every iteration instead?
  1. One for every non-basic variable with a positive reduced cost
  2. All of them, like the simplex algorithm with the dictionary
  3. Only one: the pivot column ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_p$
  4. None: ${\boldsymbol \pi}$ and the reduced costs are enough
Explanation. The reduced costs come from ${\boldsymbol \pi}$ ($\bar c_j = c_j - {\boldsymbol \pi}{\boldsymbol A}_j$); the ratio test needs only the column of the entering variable, ${\boldsymbol d}$.
lp-f-11-k01 · level teorema · notes
Which statement about the revised simplex compared with the dictionary simplex is correct?
  1. It does not use the ratio test
  2. Same bases, fewer computations
  3. It requires a dual feasible basis
  4. It visits different bases
Explanation. Linear systems with ${\boldsymbol A}_{\pazocal{B}}$ are solved instead of updating the whole dictionary.
lp-f-11-k02 · level teorema · notes
In the revised simplex for a problem in standard maximization form, how are the reduced costs $\bar c_j$ computed?
  1. Solve ${\boldsymbol y}'{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}_{\pazocal{B}}'$ and set $\bar c_j = c_j - {\boldsymbol y}'{\boldsymbol A}_j$
  2. $\bar c_j = c_j$ at every iteration
  3. Solve ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_j$ and set $\bar c_j = d_j$
  4. $\bar c_j = {\boldsymbol c}_{\pazocal{B}}'{\boldsymbol b}$
Explanation. The vector ${\boldsymbol y}$ is the dual vector ${\boldsymbol c}_{\pazocal{B}}'{\boldsymbol A}_{\pazocal{B}}^{-1}$.
lp-f-11-k03 · level ipotesi · notes
In the revised simplex, the pivot column ${\boldsymbol d}$ is obtained by solving ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_p$. What guarantees a unique solution?
  1. That ${\boldsymbol b} \ge {\boldsymbol 0}$
  2. That ${\boldsymbol A}_p \ge {\boldsymbol 0}$
  3. That ${\boldsymbol A}_{\pazocal{B}}$ is invertible
  4. That $\bar c_p > 0$
Explanation. A basis is by definition a square invertible submatrix.
lp-f-11-k04 · level ipotesi · notes
The revised simplex and the dictionary simplex visit the same bases. Which condition is needed?
  1. The same pivot rules
  2. That ${\boldsymbol c} \le {\boldsymbol 0}$
  3. That the problem is nondegenerate
  4. That ${\boldsymbol A}$ is square
Explanation. The two methods compute the same quantities differently: with the same rules they make the same pivots.

12. Revised dual simplex algorithm (20)

lp-f-12-01 · level facile · notes
In the revised dual simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with a dual feasible basis ${\boldsymbol A}_{\pazocal{B}}$ (reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, which system gives the values $\bar{\boldsymbol b}$ of the basic variables, used to choose the pivot row?
  1. ${\boldsymbol A}_{\pazocal{B}}\,\bar{\boldsymbol b} = {\boldsymbol b}$
  2. ${\boldsymbol \pi}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$
  3. ${\boldsymbol A}_{\pazocal{B}}\,{\boldsymbol d} = {\boldsymbol A}_p$
  4. ${\boldsymbol u}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_r$
Explanation. The first system of the revised dual simplex algorithm gives $\bar{\boldsymbol b}$; the second one, ${\boldsymbol u}{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_r$, gives the pivot row.
lp-f-12-02 · level facile · notes
In the revised dual simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with a dual feasible basis ${\boldsymbol A}_{\pazocal{B}}$ (reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, the pivot row $x_r$ has been chosen; ${\boldsymbol e}_r$ is the unit vector of the position of $x_r$ in $\pazocal{B}$. How are the coefficients $\bar a_{rj}$ ($j \in \pazocal{N}$) of the row of $x_r$ in the dictionary obtained?
  1. We compute the whole $\bar{\boldsymbol A} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and read its row
  2. We solve ${\boldsymbol A}_{\pazocal{B}}\,{\boldsymbol d} = {\boldsymbol A}_r$ and set $\bar a_{rj} = d_j$
  3. We solve ${\boldsymbol u}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_r$ and set $\bar a_{rj} = {\boldsymbol u}\,{\boldsymbol A}_j$
  4. We set $\bar a_{rj} = a_{rj}$, i.e., we use row $r$ of ${\boldsymbol A}$
Explanation. ${\boldsymbol u} = {\boldsymbol e}'_r{\boldsymbol A}_{\pazocal{B}}^{-1}$ selects the row of $\bar{\boldsymbol A}$ associated with $x_r$ without computing the whole matrix.
lp-f-12-03 · level facile · notes
In the revised dual simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with a dual feasible basis ${\boldsymbol A}_{\pazocal{B}}$ (reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, what does the algorithm update at every iteration, instead of recomputing it with a linear system?
  1. The reduced costs $\bar{\boldsymbol c}$
  2. The vector ${\boldsymbol u}$
  3. The matrix ${\boldsymbol A}_{\pazocal{B}}^{-1}$
  4. The values of the basic variables $\bar{\boldsymbol b}$
Explanation. The two revised algorithms are symmetric: the revised simplex algorithm updates $\bar{\boldsymbol b}$, the revised dual one updates $\bar{\boldsymbol c}$.
lp-f-12-04 · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dictionary of the basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$) is ${\boldsymbol x}_{\pazocal{B}} = \bar{\boldsymbol b} - \bar{\boldsymbol A}\,{\boldsymbol x}_{\pazocal{N}}$, $z = \bar z + \bar{\boldsymbol c}'{\boldsymbol x}_{\pazocal{N}}$, with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$, $\bar{\boldsymbol A} = (\bar a_{ij}) = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$ and reduced costs $\bar{\boldsymbol c}$. In the dual simplex algorithm a pivoting operation is performed with row $x_r$ (it leaves the basis) and column $x_p$ (it enters). What is the reduced cost of $x_r$ in the new dictionary?
  1. $\bar c_r = \bar c_p - \bar a_{rp}$
  2. $\bar c_r = -\bar c_p / \bar a_{rp}$
  3. $\bar c_r = 0$
  4. $\bar c_r = \bar c_p / \bar a_{rp}$
Explanation. It is the coefficient $-s$ of $x_r$ with $s = s_m = \bar c_p / \bar a_{rp} \ge 0$: the new reduced cost is non-positive, as required.
lp-f-12-05 · level facile · notes
The pseudo-code of the revised dual simplex algorithm starts from the basis of the slack variables, without an initial phase. Which assumption does it make on the input problem?
  1. Canonical maximization form with ${\boldsymbol c} \le {\boldsymbol 0}$: the basis of the slack variables is dual feasible
  2. Any dual feasible solution, even a non-basic one, is given
  3. Canonical maximization form with ${\boldsymbol b} \ge {\boldsymbol 0}$: the basis of the slack variables is primal feasible
  4. Standard minimization form with ${\boldsymbol b} \ge {\boldsymbol 0}$: it starts from the dual solution ${\boldsymbol \pi} = {\boldsymbol 0}$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$ and $\bar c_j = c_j \le 0$ the initial basis is dual feasible; a non-basic dual solution is the input of the primal-dual method.
lp-f-12-06 · level facile · notes
In the revised dual simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with a dual feasible basis ${\boldsymbol A}_{\pazocal{B}}$ (reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, when is it concluded that the problem is infeasible?
  1. When $\bar c_j = 0$ for some non-basic variable $x_j$
  2. When the pivot row $x_r$ has $\bar a_{rj} \le 0$ for every $j \in \pazocal{N}$
  3. When $\bar b_r < 0$ for some $r \in \pazocal{B}$, i.e., at every iteration
  4. When the pivot row $x_r$ has $\bar a_{rj} \ge 0$ for every $j \in \pazocal{N}$
Explanation. The ratio test on the columns with $\bar a_{rj} < 0$ has no candidate: this is the certificate of infeasibility.
lp-f-12-07 · level media · notes
In the revised dual simplex algorithm for an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with a dual feasible basis ${\boldsymbol A}_{\pazocal{B}}$ (reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$) and ${\boldsymbol A}_j$ column $j$ of ${\boldsymbol A}$, the pivot row $x_r$ ($\bar b_r < 0$) has $\bar a_{r1} = -1$, $\bar a_{r2} = -3$, with $\pazocal{N} = \{1, 2\}$, $\bar c_1 = -2$, $\bar c_2 = -3$. The pivot column minimizes $\bar c_j / \bar a_{rj}$ over the $j$ with $\bar a_{rj} < 0$. Which column enters and which reduced costs are obtained?
  1. $x_1$ enters; $\bar c_2 = 3$, $\bar c_r = -2$
  2. $x_2$ enters; $\bar c_1 = -3$, $\bar c_r = -1$
  3. $x_2$ enters; $\bar c_1 = -1$, $\bar c_r = -1$
  4. $x_2$ enters; $\bar c_1 = -1$, $\bar c_r = 1$
Explanation. Ratios $\frac{-2}{-1} = 2$ and $\frac{-3}{-3} = 1$: $x_2$ enters with $s_m = 1$. Then $\bar c_1 = -2 - 1 \cdot (-1) = -1$ and $\bar c_r = -s_m = -1$.
lp-f-12-08 · level facile · notes
In the revised dual simplex algorithm, after a dual pivoting operation with pivot row $x_r$ and pivot column $x_p$ (coefficients $\bar a_{rj}$ of the row of $x_r$ and reduced costs $\bar c_j \le 0$), how are the reduced costs of the other non-basic variables $x_j$, $j \ne p$, updated?
  1. $\bar c_j \leftarrow \bar c_j + \frac{\bar c_p}{\bar a_{rp}}\,\bar a_{rj}$
  2. $\bar c_j \leftarrow \frac{\bar c_j}{\bar a_{rj}}$
  3. $\bar c_j \leftarrow \bar c_j - \frac{\bar b_r}{\bar a_{rp}}\,\bar a_{rj}$
  4. $\bar c_j \leftarrow \bar c_j - \frac{\bar c_p}{\bar a_{rp}}\,\bar a_{rj}$
Explanation. It is the update of the objective function row in a pivoting operation: the pivot row multiplied by $\bar c_p / \bar a_{rp}$, the minimum of the ratio test already computed, is subtracted.
lp-f-12-09 · level facile · notes
In the revised dual simplex algorithm the reduced costs are updated with $\bar c_j \leftarrow \bar c_j - \frac{\bar c_p}{\bar a_{rp}}\,\bar a_{rj}$, where $x_r$ is the pivot row and $x_p$ the pivot column. Why do the new reduced costs remain non-positive?
  1. Because $\bar b_r < 0$ and hence the value $\bar z$ does not increase
  2. Because $\frac{\bar c_p}{\bar a_{rp}} \le \frac{\bar c_j}{\bar a_{rj}}$ for every $j$ with $\bar a_{rj} < 0$
  3. Because $\bar a_{rp} > 0$ and $\bar c_p < 0$ by the choice of the column
  4. Because ${\boldsymbol A}_{\pazocal{B}}$ remains invertible after the pivoting operation
Explanation. The pivot column attains the minimum of the ratio test over the columns with $\bar a_{rj} < 0$: for these the inequality gives the right sign, and for $\bar a_{rj} \ge 0$ a non-negative quantity is subtracted from $\bar c_j \le 0$ (with $\frac{\bar c_p}{\bar a_{rp}} \ge 0$).
lp-f-12-10 · level facile · notes
The revised simplex algorithm and the revised dual simplex algorithm solve at every iteration two systems with the matrix ${\boldsymbol A}_{\pazocal{B}}$ and update a third vector instead of recomputing it. Which one?
  1. ${\boldsymbol d}$ in the revised simplex, ${\boldsymbol u}$ in the revised dual simplex
  2. $\bar{\boldsymbol b}$ in the revised simplex, $\bar{\boldsymbol c}$ in the revised dual simplex
  3. ${\boldsymbol \pi}$ in both algorithms
  4. $\bar{\boldsymbol c}$ in the revised simplex, $\bar{\boldsymbol b}$ in the revised dual simplex
Explanation. The revised simplex algorithm obtains $\bar{\boldsymbol c}$ from ${\boldsymbol \pi}$ and updates $\bar{\boldsymbol b}$ with $t_m$ and ${\boldsymbol d}$; the revised dual simplex obtains $\bar{\boldsymbol b}$ from the first system and updates $\bar{\boldsymbol c}$ with the row $\bar a_{rj}$.
lp-f-12-11 · level facile · notes
The problem $\max\{-2x_1 - 4x_2 : -x_1 - x_2 + x_3 = -2,~ x_1 - x_2 + x_4 = 0,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ (slack variables $x_3, x_4$) is solved by the revised dual simplex algorithm, starting from the dual feasible basis $\pazocal{B} = \{3, 4\}$, $\pazocal{N} = \{1, 2\}$, with ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$ and reduced costs $\bar c_1 = -2$, $\bar c_2 = -4$. Pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$. What is the partition after the first iteration?
  1. $\pazocal{B} = \{1, 4\}$, $\pazocal{N} = \{2, 3\}$
  2. $\pazocal{B} = \{3, 4\}$, $\pazocal{N} = \{1, 2\}$
  3. $\pazocal{B} = \{2, 4\}$, $\pazocal{N} = \{1, 3\}$
  4. $\pazocal{B} = \{1, 3\}$, $\pazocal{N} = \{2, 4\}$
Explanation. $\bar{\boldsymbol b} = {\boldsymbol b} = (-2, 0)$: the pivot row is $x_3$. With ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$ its row is $\bar a_{31} = -1$, $\bar a_{32} = -1$; the ratios are $\frac{-2}{-1} = 2$ and $\frac{-4}{-1} = 4$, hence $x_1$ enters and $x_3$ leaves.
lp-f-12-12 · level facile · notes
The problem $\max\{-2x_1 - 4x_2 : -x_1 - x_2 + x_3 = -2,~ x_1 - x_2 + x_4 = 0,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is solved by the revised dual simplex algorithm. At the second iteration $\pazocal{B} = \{1, 4\}$, $\pazocal{N} = \{2, 3\}$, with reduced costs $\bar c_2 = -2$, $\bar c_3 = -2$. Pivot row: the basic variable with the smallest index and $\bar b_r < 0$ ($\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$); pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, with $\bar a_{rj} = {\boldsymbol u}{\boldsymbol A}_j$ and ${\boldsymbol u}{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_r$. What are the pivot row and column?
  1. Pivot row $x_1$, pivot column $x_2$
  2. None: the basis is already optimal
  3. Pivot row $x_4$, pivot column $x_3$
  4. Pivot row $x_4$, pivot column $x_2$
Explanation. ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} -1 & 0 \\ 1 & 1 \end{pmatrix}$ gives $\bar b_1 = 2$, $\bar b_4 = -2$: pivot row $x_4$. With ${\boldsymbol u} = (1, 1)$ we get $\bar a_{42} = -2$ and $\bar a_{43} = 1$: the only candidate is $x_2$. After the pivot the optimum $(1, 1)$ with $z = -6$ is reached.
lp-f-12-k01 · level facile · notes
In the revised dual simplex for a problem in standard maximization form, what must be computed of the pivot row $x_r$?
  1. The nonbasic coefficients $\bar a_{rj}$
  2. Only $\bar z$
  3. The column ${\boldsymbol A}_r$
  4. The whole dictionary
Explanation. They feed the dual ratio test: they come from row $r$ of ${\boldsymbol A}_{\pazocal{B}}^{-1}$ for the nonbasic columns.
lp-f-12-k02 · level facile · notes
In the revised dual simplex, how many linear systems with the basis matrix are solved at each iteration, according to the notes?
  1. One
  2. None
  3. Two
  4. Three
Explanation. One for the values of the basic variables and one for the pivot row.
lp-f-12-k03 · level teorema · notes
In the revised dual simplex, how are the reduced costs updated after a pivot with row $x_r$, column $x_p$ and step $s_m$?
  1. They are recomputed from scratch with ${\boldsymbol A}_{\pazocal{B}}^{-1}$
  2. They stay unchanged
  3. $\bar c_j \leftarrow \bar c_j - s_m \bar a_{rj}$
  4. $\bar c_j \leftarrow \bar c_j + s_m$
Explanation. The update uses only the row $\bar a_{rj}$ already computed.
lp-f-12-k04 · level teorema · notes
Which input does the pseudocode of the revised dual simplex in the notes require?
  1. The optimal dictionary of the primal
  2. Any primal feasible basis
  3. Canonical maximization form with ${\boldsymbol c} \le {\boldsymbol 0}$
  4. A problem with ${\boldsymbol b} \ge {\boldsymbol 0}$
Explanation. At step 0 the basis is the slack basis, with $\bar c_j = c_j \le 0$.
lp-f-12-k05 · level facile · notes
In the pseudocode of the revised dual simplex, when does it stop with an infeasibility certificate?
  1. When $\bar z < 0$
  2. When a column has $\bar c_j = 0$
  3. When all $\bar b_i \ge 0$
  4. When the pivot row has $\bar a_{rj} \ge 0$
Explanation. It is the same certificate as the dictionary dual simplex.
lp-f-12-k06 · level facile · notes
In the pseudocode of the revised dual simplex, at the start (slack basis) what are the reduced costs?
  1. $\bar c_j = 0$
  2. $\bar c_j = b_j$
  3. $\bar c_j = c_j$
  4. $\bar c_j = -c_j$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$ and ${\boldsymbol c}_{\pazocal{B}} = {\boldsymbol 0}$ we get ${\boldsymbol \pi} = {\boldsymbol 0}$.
lp-f-12-k07 · level facile · notes
The problem $\max\ -x_1 - 3x_2$, $-x_1 - 2x_2 \le -6$, ${\boldsymbol x} \ge {\boldsymbol 0}$ is solved by the revised dual simplex starting from the basis of the slack $x_3$. Which variable leaves at the first pivot?
  1. $x_3$, because it equals $-6$
  2. $x_1$
  3. $x_2$
  4. None: the basis is optimal
Explanation. The only negative basic variable is the slack $x_3 = -6$.
lp-f-12-k08 · level facile · notes
In the same problem ($\max\ -x_1 - 3x_2$, $-x_1 - 2x_2 \le -6$, ${\boldsymbol x} \ge {\boldsymbol 0}$), with the row $x_3 = -6 + x_1 + 2x_2$ (i.e. $\bar a_{31} = -1$, $\bar a_{32} = -2$) and reduced costs $\bar c_1 = -1$, $\bar c_2 = -3$, which column enters in the dual ratio test?
  1. $x_2$, with ratio $3$
  2. $x_1$, with ratio $1$
  3. $x_2$, with ratio $\frac32$
  4. $x_1$, with ratio $-1$
Explanation. Ratios $\bar c_j / \bar a_{3j}$: $\frac{-1}{-1} = 1$ and $\frac{-3}{-2} = \frac32$; the minimum is $1$.

13. The primal-dual method (30)

lp-f-13-01 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), let ${\boldsymbol \pi}$ be a dual feasible solution. What is the admissible set $\pazocal{J}({\boldsymbol \pi})$?
  1. The set of the basic indices of an optimal basis
  2. The set of the indices $i$ with $\pi_i > 0$
  3. The set of the indices $j$ with ${\boldsymbol A}_j'{\boldsymbol \pi} = c_j$
  4. The set of the indices $j$ with ${\boldsymbol A}_j'{\boldsymbol \pi} < c_j$
Explanation. By Complementary Slackness only the variables $x_j$ with $j \in \pazocal{J}({\boldsymbol \pi})$ may be positive.
lp-f-13-02 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), $\pazocal{J} = \pazocal{J}({\boldsymbol \pi}) = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ is the admissible set of a dual feasible solution ${\boldsymbol \pi}$. What is the restricted primal problem $RP(\pazocal{J})$, with artificial variables ${\boldsymbol a} \ge {\boldsymbol 0}$?
  1. $\min {\boldsymbol c}'{\boldsymbol x}$ subject to ${\boldsymbol A}{\boldsymbol x} = {\boldsymbol b}$, $x_j = 0$ for $j \in \pazocal{J}$
  2. $\min \sum_i a_i$ subject to ${\boldsymbol A}{\boldsymbol x} + {\boldsymbol a} = {\boldsymbol b}$ with all the variables $x_j$
  3. $\min \sum_i a_i$ subject to $\sum_{j \in \pazocal{J}} {\boldsymbol A}_j x_j + {\boldsymbol a} = {\boldsymbol b}$, $x_j \ge 0$, ${\boldsymbol a} \ge {\boldsymbol 0}$
  4. $\max {\boldsymbol b}'{\boldsymbol y}$ subject to ${\boldsymbol A}_j'{\boldsymbol y} \le 0$ for $j \in \pazocal{J}$, $y_i \le 1$
Explanation. Primal solutions using only the admissible variables are sought, with $m$ artificial variables as in Phase $0$; the third option is its dual.
lp-f-13-03 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), $\pazocal{J} = \pazocal{J}({\boldsymbol \pi}) = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ is the admissible set of a dual feasible solution ${\boldsymbol \pi}$, and $\xi(\pazocal{J})$ is the optimal value of the restricted primal problem $\min\{\sum_i a_i : \sum_{j \in \pazocal{J}} {\boldsymbol A}_j x_j + {\boldsymbol a} = {\boldsymbol b},~ x_j \ge 0,~ {\boldsymbol a} \ge {\boldsymbol 0}\}$. What is concluded if $\xi(\pazocal{J}) = 0$?
  1. The primal problem is infeasible, since the artificial variables are zero
  2. The solution of the restricted primal, with $x_j = 0$ for $j \notin \pazocal{J}$, and ${\boldsymbol \pi}$ are optimal
  3. The dual solution ${\boldsymbol \pi}$ must be improved with a dual step $\theta > 0$
  4. The dual problem is unbounded, hence the primal is infeasible
Explanation. With $\xi = 0$ the artificial variables are zero: we have a primal feasible solution satisfying Complementary Slackness together with ${\boldsymbol \pi}$.
lp-f-13-04 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), $\pazocal{J} = \pazocal{J}({\boldsymbol \pi}) = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ is the admissible set of a dual feasible solution ${\boldsymbol \pi}$. The restricted primal problem is $RP(\pazocal{J}) = \min\{\sum_i a_i : \sum_{j \in \pazocal{J}} {\boldsymbol A}_j x_j + {\boldsymbol a} = {\boldsymbol b},~ x_j \ge 0,~ {\boldsymbol a} \ge {\boldsymbol 0}\}$. What are the constraints of its dual $DRP(\pazocal{J})$, with variables ${\boldsymbol y}$?
  1. ${\boldsymbol A}_j'{\boldsymbol y} \le c_j$ for every $j$ and ${\boldsymbol y}$ free
  2. ${\boldsymbol A}_j'{\boldsymbol y} \ge 0$ for every $j \in \pazocal{J}$ and $y_i \ge 0$ for every $i$
  3. ${\boldsymbol A}_j'{\boldsymbol y} \le 0$ for every $j \in \pazocal{J}$ and $y_i \le 1$ for every $i$
  4. ${\boldsymbol A}_j'{\boldsymbol y} = 0$ for every $j \notin \pazocal{J}$
Explanation. The columns ${\boldsymbol A}_j$ ($j \in \pazocal{J}$) give ${\boldsymbol A}_j'{\boldsymbol y} \le 0$, those of the artificial variables give $y_i \le 1$.
lp-f-13-05 · level facile · notes
The dual simplex algorithm keeps a dual feasible basis. What distinguishes the primal-dual method, for a problem $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, from the dual simplex algorithm?
  1. It works towards dual feasibility starting from a primal basis
  2. It keeps a primal feasible basis and a dual infeasible basis
  3. It keeps a dual feasible solution which need not be basic
  4. It does not use duality: it works on the primal problem only
Explanation. The dual simplex algorithm keeps a dual feasible basis; the primal-dual method can start from any dual feasible solution.
lp-f-13-06 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), the admissible set of a dual feasible solution ${\boldsymbol \pi}$ is $\pazocal{J} = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$. If ${\boldsymbol c} \ge {\boldsymbol 0}$, which initial dual feasible solution is immediate?
  1. None: Phase $0$ on the dual is always needed
  2. ${\boldsymbol \pi} = {\boldsymbol b}$, with $\pazocal{J} = \{1, \dots, n\}$
  3. ${\boldsymbol \pi} = {\boldsymbol c}$, with $\pazocal{J} = \emptyset$
  4. ${\boldsymbol \pi} = {\boldsymbol 0}$, with $\pazocal{J} = \{j : c_j = 0\}$
Explanation. With ${\boldsymbol \pi} = {\boldsymbol 0}$ the dual constraints become $0 \le c_j$; the active ones are those with $c_j = 0$.
lp-f-13-07 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), $\pazocal{J} = \pazocal{J}({\boldsymbol \pi}) = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ is the admissible set of a dual feasible solution ${\boldsymbol \pi}$; the restricted primal problem has optimal value $\xi(\pazocal{J}) > 0$, ${\boldsymbol y}$ is the optimal solution of its dual and the dual step is ${\boldsymbol \pi} + \theta{\boldsymbol y}$, $\theta > 0$. What is concluded if ${\boldsymbol A}_j'{\boldsymbol y} \le 0$ for every $j \notin \pazocal{J}$?
  1. The primal is unbounded
  2. $\theta = 0$ and the step is repeated
  3. The current pair is optimal
  4. The dual is unbounded and hence the primal is infeasible
Explanation. $\theta$ can grow without bound keeping dual feasibility, while ${\boldsymbol b}'{\boldsymbol \pi}$ grows by $\theta\,\xi(\pazocal{J}) > 0$.
lp-f-13-08 · level ipotesi · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), $\pazocal{J} = \pazocal{J}({\boldsymbol \pi}) = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ is the admissible set of a dual feasible solution ${\boldsymbol \pi}$; $\xi(\pazocal{J}) > 0$ is the optimal value of the restricted primal $RP(\pazocal{J})$ and ${\boldsymbol y}$ the optimal solution of its dual $DRP(\pazocal{J})$. Why does the step ${\boldsymbol \pi} \leftarrow {\boldsymbol \pi} + \theta{\boldsymbol y}$, with $\theta > 0$, strictly increase ${\boldsymbol b}'{\boldsymbol \pi}$?
  1. Because $y_i \le 1$ for every $i$ and $\theta$ is chosen as the minimum ratio
  2. By Weak Duality between the primal problem and its dual, applied to ${\boldsymbol \pi}$
  3. Because ${\boldsymbol b} \ge {\boldsymbol 0}$ and ${\boldsymbol y} \ge {\boldsymbol 0}$, hence ${\boldsymbol b}'{\boldsymbol y} \ge 0$
  4. By Strong Duality between $RP(\pazocal{J})$ and $DRP(\pazocal{J})$: ${\boldsymbol b}'{\boldsymbol y} = \xi(\pazocal{J}) > 0$
Explanation. The increase is $\theta\,{\boldsymbol b}'{\boldsymbol y}$, and ${\boldsymbol b}'{\boldsymbol y}$ is the optimal value of $DRP$, equal to that of $RP$, positive when the method does not stop. ${\boldsymbol y}$ is not necessarily non-negative.
lp-f-13-09 · level teorema · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$, and the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$ (${\boldsymbol A}_j$ is column $j$ of ${\boldsymbol A}$), let ${\boldsymbol x}$ be primal feasible and ${\boldsymbol \pi}$ dual feasible, with admissible set $\pazocal{J}({\boldsymbol \pi}) = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$. Which statement is correct?
  1. They are optimal if and only if $x_j = 0$ for every $j \notin \pazocal{J}({\boldsymbol \pi})$
  2. They are optimal if and only if $x_j > 0$ for every $j \in \pazocal{J}({\boldsymbol \pi})$
  3. They are optimal if and only if $x_j = 0$ for every $j \in \pazocal{J}({\boldsymbol \pi})$
  4. They are optimal if and only if $\pazocal{J}({\boldsymbol \pi}) = \{1, \dots, n\}$
Explanation. It is the form of Complementary Slackness for the primal in standard minimization form: only the admissible variables may be positive, but they need not all be.
lp-f-13-10 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, ${\boldsymbol \pi}$ is dual feasible with dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi} \ge 0$, $\pazocal{J} = \{j : s_j = 0\}$, and the step is ${\boldsymbol \pi} + \theta{\boldsymbol y}$ with maximum $\theta$. Which index enters $\pazocal{J}$?
  1. The index $j \notin \pazocal{J}$ minimizing $s_j / {\boldsymbol A}_j'{\boldsymbol y}$ among those with ${\boldsymbol A}_j'{\boldsymbol y} > 0$
  2. The index $j \notin \pazocal{J}$ maximizing $s_j / {\boldsymbol A}_j'{\boldsymbol y}$ among those with ${\boldsymbol A}_j'{\boldsymbol y} > 0$
  3. An index $j \in \pazocal{J}$ with ${\boldsymbol A}_j'{\boldsymbol y} < 0$, whose dual slack becomes positive
  4. The index $j \notin \pazocal{J}$ with the smallest dual slack $s_j$, whatever ${\boldsymbol A}_j'{\boldsymbol y}$ is
Explanation. The new slack is $s_j - \theta\,{\boldsymbol A}_j'{\boldsymbol y}$: the maximum step $\theta$ is the minimum ratio, and the index attaining it has zero slack, so it enters the admissible set. The indices of $\pazocal{J}$ with ${\boldsymbol A}_j'{\boldsymbol y} < 0$ may instead leave it.
lp-f-13-11 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, in which order are the steps of an iteration executed, starting from a dual feasible solution ${\boldsymbol \pi}$?
  1. Dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ and admissible set $\pazocal{J}$, restricted primal $RP(\pazocal{J})$ and its dual, step ${\boldsymbol \pi} \leftarrow {\boldsymbol \pi} + \theta{\boldsymbol y}$
  2. Step ${\boldsymbol \pi} \leftarrow {\boldsymbol \pi} + \theta{\boldsymbol y}$, dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ and admissible set $\pazocal{J}$, restricted primal $RP(\pazocal{J})$
  3. Dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$, step ${\boldsymbol \pi} \leftarrow {\boldsymbol \pi} + \theta{\boldsymbol y}$, admissible set $\pazocal{J}$ and restricted primal $RP(\pazocal{J})$
  4. Restricted primal $RP(\pazocal{J})$, step ${\boldsymbol \pi} \leftarrow {\boldsymbol \pi} + \theta{\boldsymbol y}$, dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ and admissible set $\pazocal{J}$
Explanation. $\pazocal{J}$ depends on ${\boldsymbol \pi}$; $RP(\pazocal{J})$ uses only the admissible variables and gives ${\boldsymbol y}$ (optimal solution of the restricted dual), which the dual step needs.
lp-f-13-12 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, the restricted primal problem is $RP(\pazocal{J}) = \min\{\sum_i a_i : \sum_{j \in \pazocal{J}} {\boldsymbol A}_j x_j + {\boldsymbol a} = {\boldsymbol b},~ x_j \ge 0,~ {\boldsymbol a} \ge {\boldsymbol 0}\}$, with artificial variables ${\boldsymbol a}$. What is the assumption ${\boldsymbol b} \ge {\boldsymbol 0}$ for?
  1. To make the solution with the artificial variables only, ${\boldsymbol a} = {\boldsymbol b}$, feasible for $RP(\pazocal{J})$
  2. To guarantee that the primal problem is feasible
  3. To guarantee that ${\boldsymbol \pi} = {\boldsymbol 0}$ is dual feasible
  4. To obtain $\xi(\pazocal{J}) = 0$ already at the first iteration
Explanation. With ${\boldsymbol b} \ge {\boldsymbol 0}$, ${\boldsymbol x} = {\boldsymbol 0}$ and ${\boldsymbol a} = {\boldsymbol b}$ form a basic feasible solution of $RP(\pazocal{J})$, from which the simplex algorithm starts. The feasibility of ${\boldsymbol \pi} = {\boldsymbol 0}$ depends instead on ${\boldsymbol c} \ge {\boldsymbol 0}$.
lp-f-13-13 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, with ${\boldsymbol c} > {\boldsymbol 0}$ one starts from ${\boldsymbol \pi} = {\boldsymbol 0}$. The admissible set is $\pazocal{J} = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ (${\boldsymbol A}_j$: column $j$ of ${\boldsymbol A}$) and the restricted primal is $\min\{\sum_i a_i : \sum_{j \in \pazocal{J}} {\boldsymbol A}_j x_j + {\boldsymbol a} = {\boldsymbol b},~ x_j \ge 0,~ {\boldsymbol a} \ge {\boldsymbol 0}\}$. What is the first restricted primal like?
  1. $\pazocal{J} = \{1, \dots, n\}$: it contains all the variables $x_j$
  2. $\pazocal{J} = \emptyset$: it has only the artificial variables and optimal value $\xi(\pazocal{J}) = \sum_i b_i$
  3. $\pazocal{J} = \emptyset$: it has optimal value $\xi(\pazocal{J}) = 0$
  4. $\pazocal{J} = \{j : b_j > 0\}$: it contains the variables of the constraints with positive right-hand side
Explanation. With ${\boldsymbol \pi} = {\boldsymbol 0}$ we have $s_j = c_j > 0$ for every $j$, hence $\pazocal{J} = \emptyset$; the constraints become ${\boldsymbol a} = {\boldsymbol b}$ and $\xi(\pazocal{J}) = \sum_i b_i$, positive if ${\boldsymbol b} \ne {\boldsymbol 0}$.
lp-f-13-14 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, with ${\boldsymbol b} = (4, 2)'$, the current dual solution is ${\boldsymbol \pi} = (1, 0)'$, the optimal solution of the dual of the restricted primal is ${\boldsymbol y} = (1, -1)'$ and the step is $\theta = 2$. What are the new dual solution ${\boldsymbol \pi} + \theta{\boldsymbol y}$ and the change of ${\boldsymbol b}'{\boldsymbol \pi}$?
  1. ${\boldsymbol \pi} = (-1, 2)'$; ${\boldsymbol b}'{\boldsymbol \pi}$ decreases by $4$
  2. ${\boldsymbol \pi} = (3, -2)'$; ${\boldsymbol b}'{\boldsymbol \pi}$ increases by $4$
  3. ${\boldsymbol \pi} = (2, -1)'$; ${\boldsymbol b}'{\boldsymbol \pi}$ increases by $2$
  4. ${\boldsymbol \pi} = (3, -2)'$; ${\boldsymbol b}'{\boldsymbol \pi}$ increases by $8$
Explanation. ${\boldsymbol \pi} + 2{\boldsymbol y} = (1 + 2, 0 - 2) = (3, -2)$. The change is $\theta\,{\boldsymbol b}'{\boldsymbol y} = 2 \cdot (4 - 2) = 4 > 0$: the dual value strictly increases, as it must.
lp-f-13-15 · level facile · notes
The (primal) simplex algorithm, the dual simplex algorithm and the primal-dual method for an LP problem are compared. What does the (primal) simplex algorithm keep and what does it work towards?
  1. It keeps a primal feasible basis ($\bar{\boldsymbol b} \ge {\boldsymbol 0}$) and works towards dual feasibility ($\bar{\boldsymbol c} \le {\boldsymbol 0}$)
  2. It keeps a dual feasible solution, not basic, and works towards primal feasibility
  3. It keeps a primal and dual feasible basis and works towards a larger optimal value
  4. It keeps a dual feasible basis ($\bar{\boldsymbol c} \le {\boldsymbol 0}$) and works towards primal feasibility ($\bar{\boldsymbol b} \ge {\boldsymbol 0}$)
Explanation. The simplex algorithm preserves $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and stops when $\bar{\boldsymbol c} \le {\boldsymbol 0}$; the dual simplex algorithm does the opposite and the primal-dual method keeps a dual feasible solution which need not be basic.
lp-f-13-k01 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, what does the method maintain at every iteration?
  1. A dual feasible basis
  2. A dual feasible solution
  3. An integer primal solution
  4. A primal feasible basis
Explanation. This is the main difference from the dual simplex, which keeps a basis.
lp-f-13-k02 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, for which form of the primal problem is it naturally formulated?
  1. Canonical maximization form
  2. Standard maximization form with ${\boldsymbol c} \le {\boldsymbol 0}$
  3. Standard minimization form with ${\boldsymbol b} \ge {\boldsymbol 0}$
  4. Any form, with no assumption
Explanation. With ${\boldsymbol b} \ge {\boldsymbol 0}$ the restricted primal has a feasible basis of artificial variables.
lp-f-13-k03 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, with ${\boldsymbol c} = (3, 5, 4)$ and ${\boldsymbol A}_j'{\boldsymbol \pi} = (3, 2, 4)$ for $j = 1, 2, 3$, what is the admitted set $\pazocal{J} = \{j : s_j = 0\}$, with $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$?
  1. $\{1, 3\}$
  2. $\{2\}$
  3. $\emptyset$
  4. $\{1, 2, 3\}$
Explanation. Dual slacks $s = (0, 3, 0)$.
lp-f-13-k04 · level teorema · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, what does the restricted primal $RP(\pazocal{J})$ minimize?
  1. ${\boldsymbol c}'{\boldsymbol x}$ over the variables of $\pazocal{J}$
  2. The number of variables in $\pazocal{J}$
  3. The sum of the dual slacks
  4. The sum of the artificials
Explanation. As in Phase $0$: value $0$ if and only if a feasible ${\boldsymbol x}$ supported on $\pazocal{J}$ exists.
lp-f-13-k05 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, the restricted primal has optimal value $\xi(\pazocal{J}) = 0$. What is concluded?
  1. The solution found and ${\boldsymbol \pi}$ are optimal
  2. A dual step is taken
  3. The primal is infeasible
  4. A variable is added to $\pazocal{J}$
Explanation. ${\boldsymbol x}$ is feasible and uses only variables with $s_j = 0$: complementary slackness holds.
lp-f-13-k06 · level ipotesi · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, to conclude optimality when $\xi(\pazocal{J}) = 0$, which theorem is used?
  1. The complementary slackness theorem
  2. The fundamental theorem of linear programming
  3. The theorem on basic solutions and vertices
  4. Bland's rule
Explanation. $x_j > 0$ only for $j \in \pazocal{J}$, where the dual constraint is active.
lp-f-13-k07 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, in the dual step ${\boldsymbol \pi} \leftarrow {\boldsymbol \pi} + \theta{\boldsymbol y}$, with slacks $s_4 = 6$, $s_5 = 2$ and ${\boldsymbol A}_4'{\boldsymbol y} = 3$, ${\boldsymbol A}_5'{\boldsymbol y} = -1$ (with $4, 5 \notin \pazocal{J}$), what is $\theta$?
  1. $6$
  2. $2$
  3. $-2$
  4. $\frac23$
Explanation. Only ${\boldsymbol A}_j'{\boldsymbol y} > 0$ limits: $\theta = s_4 / 3 = 2$.
lp-f-13-k08 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, in which order are the steps of an iteration executed?
  1. Phase $0$, simplex, dual simplex
  2. Admitted set, restricted primal and its dual, dual step
  3. Dual step, admitted set, restricted primal
  4. Primal pivot, dual pivot, ratio test
Explanation. Compute slacks, solve $RP(\pazocal{J})$ with $DRP(\pazocal{J})$, then update ${\boldsymbol \pi}$.
lp-f-13-k09 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, what is concluded if in the dual step no $j \notin \pazocal{J}$ has ${\boldsymbol A}_j'{\boldsymbol y} > 0$?
  1. Set $\theta = 0$
  2. The primal is infeasible.
  3. The primal is unbounded
  4. The current solution is optimal
Explanation. $\theta$ can grow without limit and ${\boldsymbol b}'{\boldsymbol \pi}$ with it.
lp-f-13-k10 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, how does the dual value ${\boldsymbol b}'{\boldsymbol \pi}$ change at each dual step with $\theta > 0$?
  1. It becomes zero
  2. It increases by $\theta\,{\boldsymbol b}'{\boldsymbol y} > 0$
  3. It stays the same
  4. It decreases
Explanation. The restricted dual has ${\boldsymbol b}'{\boldsymbol y} = \xi(\pazocal{J}) > 0$: the dual value grows.
lp-f-13-k11 · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, after a dual step, what happens to the admitted set?
  1. The index giving $\theta$ enters
  2. It stays unchanged
  3. It loses all previous indices
  4. It becomes empty
Explanation. For that index the new dual slack becomes $0$.
lp-f-13-k12 · level facile · notes
What distinguishes the primal-dual method from the dual simplex?
  1. It never uses auxiliary problems
  2. It keeps a dual feasible point, not a basis
  3. It keeps a primal feasible basis
  4. It works only with ${\boldsymbol c} \le {\boldsymbol 0}$
Explanation. It can start from any dual feasible solution, even one suggested by the problem.
lp-f-13-k13 · level facile · notes
Why is the primal-dual method interesting in practice?
  1. It does not require solving LP problems
  2. The restricted primal is often easy
  3. It always needs fewer iterations than the simplex
  4. It gives integer solutions
Explanation. In many combinatorial problems the restricted primal has a simple structure.
lp-f-13-k14 · level teorema · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, which statement about the dual step ${\boldsymbol \pi} + \theta{\boldsymbol y}$ with the maximum $\theta$ is correct?
  1. The new dual solution is always optimal
  2. It stays feasible and the value grows
  3. The dual value stays unchanged
  4. The new dual solution is infeasible
Explanation. $\theta$ is the largest step with ${\boldsymbol A}_j'({\boldsymbol \pi} + \theta{\boldsymbol y}) \le c_j$ for every $j$.
lp-f-13-k15 · level ipotesi · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol b} \ge {\boldsymbol 0}$ and dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$, in the dual step the constraints with $j \in \pazocal{J}$ do not limit $\theta$. Why?
  1. Because for $j \in \pazocal{J}$ we have $c_j = 0$
  2. There $s_j = 0$ and ${\boldsymbol A}_j'{\boldsymbol y} \le 0$
  3. Because $\theta \le 0$
  4. Because $\pazocal{J}$ is empty
Explanation. Then ${\boldsymbol A}_j'({\boldsymbol \pi} + \theta{\boldsymbol y}) = c_j + \theta{\boldsymbol A}_j'{\boldsymbol y} \le c_j$.

14. Sensitivity analysis (33)

lp-f-14-01 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form, given a basis ${\boldsymbol A}_{\pazocal{B}}$ with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, which two conditions define an optimal basis?
  1. ${\boldsymbol A}_{\pazocal{B}}$ invertible and $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
  2. $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  3. $\bar{\boldsymbol b} > {\boldsymbol 0}$ and $\bar{\boldsymbol c} < {\boldsymbol 0}$
  4. ${\boldsymbol b} \ge {\boldsymbol 0}$ and ${\boldsymbol c} \le {\boldsymbol 0}$
Explanation. The two conditions are sufficient for optimality; a change of the data preserves the optimality of the basis as long as both hold.
lp-f-14-02 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, which of the two optimality conditions of the basis can a change of the right-hand side vector ${\boldsymbol b}$ violate?
  1. Only $\bar{\boldsymbol b} \ge {\boldsymbol 0}$
  2. None: the basis always remains optimal
  3. Only $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  4. Both conditions
Explanation. ${\boldsymbol b}$ appears only in $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$; ${\boldsymbol c}$ appears only in the reduced costs.
lp-f-14-03 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, $c_k$ is replaced by $c_k + \delta$, with $k \in \pazocal{N}$. For which $\delta$ does the basis remain optimal?
  1. $\delta \le -\bar c_k$
  2. $\delta \le \bar c_k$
  3. $\delta \ge -\bar c_k$
  4. For every $\delta$, since $x_k$ is $0$
Explanation. Only the reduced cost of $x_k$ changes; it becomes $\bar c_k + \delta$ and must remain non-positive.
lp-f-14-04 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, $c_k$ is replaced by $c_k + \delta$, with $k \in \pazocal{B}$, and $\delta$ is such that the basis remains optimal. What changes?
  1. Same optimal solution, optimal value $z(LP) + \delta\,\tilde x_k$
  2. Different optimal solution, same optimal value $z(LP)$
  3. Same optimal solution, optimal value $z(LP) + \delta$
  4. Both the optimal solution and the optimal value unchanged
Explanation. $\bar{\boldsymbol b}$ does not depend on ${\boldsymbol c}$, so the solution does not change; its value changes by $\delta\,\tilde x_k$.
lp-f-14-05 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, what are the shadow prices of the optimal basis (${\boldsymbol c}_{\pazocal{B}}$: costs of the basic variables)?
  1. The reduced costs $\bar{\boldsymbol c}$ of the non-basic variables, with the opposite sign
  2. The entries of ${\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$: increase of $z(LP)$ per unit increase of $b_k$
  3. The values $\bar{\boldsymbol b}$ of the basic variables, i.e., the optimal quantities
  4. The entries of ${\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol c}_{\pazocal{B}}$: increase of $z(LP)$ per unit increase of $c_k$
Explanation. As long as the basis remains optimal, $z(LP) \to z(LP) + \delta\,\pi_k$: $\pi_k$ is the marginal value of constraint $k$.
lp-f-14-06 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, constraint $k$ is not active at $\tilde{\boldsymbol x}$: its slack variable is basic with a positive value. What is the shadow price $\pi_k$ of the constraint?
  1. $\pi_k = 0$
  2. $\pi_k$ equals the value of the slack variable
  3. $\pi_k < 0$
  4. $\pi_k > 0$
Explanation. A small change of $b_k$ does not change the optimal value; this agrees with Complementary Slackness.
lp-f-14-07 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, a new variable $x_\star \ge 0$ with cost $c_\star$ and column ${\boldsymbol A}_\star$ is added. With ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$, when does $\tilde{\boldsymbol x}$ (with $x_\star = 0$) remain optimal?
  1. When $c_\star \le 0$
  2. When ${\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_\star \ge {\boldsymbol 0}$
  3. When $\bar c_\star = c_\star - {\boldsymbol \pi}{\boldsymbol A}_\star \le 0$
  4. Never: the dual simplex algorithm must always be restarted
Explanation. The basis remains primal feasible; if $\bar c_\star > 0$ the (primal) simplex algorithm is restarted with $x_\star$ as first pivot column.
lp-f-14-08 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, a new less-than-or-equal-to constraint violated by $\tilde{\boldsymbol x}$ is added, with a new slack variable. How is the problem re-optimized?
  1. With the dual simplex algorithm from the basis extended with the new slack variable, which is the first pivot row
  2. It is not needed: the extended basis remains optimal
  3. With the simplex algorithm from the extended basis, with the new slack variable as first pivot column
  4. With Phase $0$ and then the simplex algorithm, from scratch
Explanation. The extended basis remains dual feasible (the reduced costs do not change) but the new slack variable is negative.
lp-f-14-09 · level teorema · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, the dual is $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c}\}$. Which statement on the shadow prices ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ is correct?
  1. ${\boldsymbol \pi}$ is an optimal solution of the dual problem and $z(LP) = \sum_i \pi_i b_i$
  2. $z(LP) = \sum_i \pi_i c_i$
  3. ${\boldsymbol \pi}$ is a feasible solution of the primal with value $z(LP)$
  4. ${\boldsymbol \pi}$ is optimal for the dual only if the primal solution is degenerate
Explanation. The optimal basis is dual feasible, so ${\boldsymbol \pi}$ is dual feasible, and $\bar z = {\boldsymbol \pi}{\boldsymbol b}$: by duality ${\boldsymbol \pi}$ is optimal.
lp-f-14-10 · level ipotesi · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (basic indices $\pazocal{B}$, non-basic indices $\pazocal{N}$), optimal solution $\tilde{\boldsymbol x}$, optimal value $z(LP)$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar{\boldsymbol c}$, to show that the shadow prices ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ are an optimal solution of the dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c}\}$, which facts are enough?
  1. Only primal feasibility $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and the formula $\bar z = {\boldsymbol \pi}{\boldsymbol b}$
  2. Non-degeneracy $\bar{\boldsymbol b} > {\boldsymbol 0}$ of the optimal solution and Bland's rule
  3. Complementary Slackness only, without the dual feasibility of ${\boldsymbol \pi}$
  4. $\bar{\boldsymbol c} \le {\boldsymbol 0}$ gives ${\boldsymbol \pi}{\boldsymbol A}_j \ge c_j$ for every column $j$, $\bar z = {\boldsymbol \pi}{\boldsymbol b}$ and Weak Duality
Explanation. A dual feasible solution whose value equals that of a primal feasible solution is optimal by Weak Duality.
lp-f-14-11 · level media · notes
An LP problem in canonical maximization form with two constraints has optimal value $z(LP) = 28$ and shadow prices ${\boldsymbol \pi} = (3, 2)$ of the optimal basis. If $b_1$ increases by $2$ and the basis remains optimal, what is the new optimal value?
  1. $30$
  2. $56$
  3. $32$
  4. $34$
Explanation. $z(LP) + \delta\,\pi_1 = 28 + 2 \cdot 3 = 34$; using $\pi_2$ would give $32$.
lp-f-14-12 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$ and reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$), the shadow prices are ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1} = (0, 2, 1)$. A variable $x_\star \ge 0$ is added with cost $c_\star = 4$ and column ${\boldsymbol A}_\star = (1, 1, 1)'$. What is concluded?
  1. $\bar c_\star = 1 > 0$: the basis remains optimal, with $x_\star = 0$
  2. $\bar c_\star = 7 > 0$: the dual simplex algorithm restarts with $x_\star$ as pivot row
  3. $\bar c_\star = -1 \le 0$: the basis remains optimal, with $x_\star = 0$
  4. $\bar c_\star = 1 > 0$: the basis is no longer optimal and the simplex algorithm restarts with $x_\star$ as pivot column
Explanation. $\bar c_\star = c_\star - {\boldsymbol \pi}{\boldsymbol A}_\star = 4 - 3 = 1 > 0$: the basis stays primal feasible but is no longer dual feasible, hence the simplex algorithm resumes with $x_\star$ entering.
lp-f-14-13 · level facile · notes
The LP problem of the paint production example $\max\{5x_1 + 2x_2 : -x_1 + 3x_2 \le 12,~ x_1 + 2x_2 \le 12,~ 3x_1 - 2x_2 \le 8,~ x_1, x_2 \ge 0\}$ has optimal solution $\tilde{\boldsymbol x} = (5, \frac{7}{2})$. The constraint $x_1 + x_2 \le 6$ is added, with slack variable $x_6$, and the optimal basis is extended with $x_6$. What is concluded?
  1. $x_6 = \frac{5}{2}$: the extended basis remains optimal
  2. $x_6 = 6$: the extended basis remains optimal
  3. $x_6 = -\frac{5}{2}$: re-optimize with the simplex algorithm, with $x_6$ as the first pivot column
  4. $x_6 = -\frac{5}{2}$: re-optimize with the dual simplex algorithm, with $x_6$ as the first pivot row
Explanation. $x_6 = 6 - (5 + \frac{7}{2}) = -\frac{5}{2} < 0$: the extended basis stays dual feasible (the reduced costs do not change) but it is not primal feasible, hence the dual simplex algorithm is used.
lp-f-14-14 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$ and reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$), a single datum is changed. Which changes can make the basis lose primal feasibility ($\bar{\boldsymbol b} \ge {\boldsymbol 0}$), so that one re-optimizes with the dual simplex algorithm?
  1. The change of a cost $c_k$ and the addition of a new variable
  2. Any change of the data of the problem
  3. Only the addition of a new variable
  4. The change of a right-hand side $b_k$ and the addition of a new constraint
Explanation. $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ changes with ${\boldsymbol b}$, and a violated new constraint gives a negative slack variable. Costs and new variables affect instead the reduced costs, i.e., dual feasibility.
lp-f-14-15 · level facile · notes
In the sensitivity analysis of an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with optimal basis ${\boldsymbol A}_{\pazocal{B}}$ (with $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b} \ge {\boldsymbol 0}$ and reduced costs $\bar{\boldsymbol c} \le {\boldsymbol 0}$), a single datum is changed. Which changes can make the basis lose dual feasibility ($\bar{\boldsymbol c} \le {\boldsymbol 0}$), so that one re-optimizes with the simplex algorithm starting from the previous basis?
  1. Only the change of a right-hand side $b_k$
  2. The change of a right-hand side $b_k$ and the addition of a new constraint
  3. The change of a cost $c_k$ and the addition of a new variable
  4. None: the reduced costs do not depend on the data
Explanation. The reduced costs $\bar c_j = c_j - {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_j$ depend on the costs, and a new variable brings a new reduced cost; in both cases the basis stays primal feasible.
lp-f-14-k01 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, what are the two conditions making the basis optimal?
  1. $\bar{\boldsymbol b} \le {\boldsymbol 0}$ and $\bar{\boldsymbol c} \ge {\boldsymbol 0}$
  2. $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ (primal) and $\bar{\boldsymbol c} \le {\boldsymbol 0}$.
  3. $\bar{\boldsymbol b} > {\boldsymbol 0}$ and $\bar z > 0$
  4. ${\boldsymbol A}_{\pazocal{B}} = {\boldsymbol I}$ and ${\boldsymbol c} \le {\boldsymbol 0}$
Explanation. Primal and dual feasibility together.
lp-f-14-k02 · level teorema · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, which statement about changes in the data is correct?
  1. Changing ${\boldsymbol c}$ affects only the dual condition.
  2. Every change requires solving from scratch
  3. Changing ${\boldsymbol b}$ changes the reduced costs
  4. Changing ${\boldsymbol c}$ affects only the primal condition
Explanation. $\bar{\boldsymbol b}$ does not depend on ${\boldsymbol c}$, the reduced costs do not depend on ${\boldsymbol b}$.
lp-f-14-k03 · level ipotesi · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, changing $b_k$ into $b_k + \delta$, why is it enough to check $\bar{\boldsymbol b} + \delta\,{\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol e}_k \ge {\boldsymbol 0}$?
  1. Because $\delta$ is small
  2. Because the basis always changes
  3. Reduced costs do not depend on ${\boldsymbol b}$
  4. Because ${\boldsymbol \pi}$ changes with ${\boldsymbol b}$
Explanation. The dual condition is unchanged: only the primal one remains.
lp-f-14-k04 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, changing a cost $c_k$, which condition must be rechecked?
  1. Neither
  2. Only dual feasibility $\bar{\boldsymbol c} \le {\boldsymbol 0}$
  3. Only primal feasibility
  4. Both
Explanation. ${\boldsymbol b}$ does not change, so $\bar{\boldsymbol b}$ stays nonnegative.
lp-f-14-k05 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, the nonbasic variable $x_k$ has $\bar c_k = -3$. For which $\delta$ (with $c_k \to c_k + \delta$) does the basis stay optimal?
  1. $\delta \le -3$
  2. $\delta \le 3$
  3. $\delta \ge -3$
  4. $-3 \le \delta \le 3$
Explanation. The new reduced cost is $-3 + \delta \le 0$.
lp-f-14-k06 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, changing the cost of a nonbasic variable within the interval that keeps optimality, what happens to the optimal solution and value?
  1. Only the value changes
  2. Both change
  3. Only the solution changes
  4. They do not change
Explanation. $x_k = 0$: its cost does not enter the value, and the dictionary changes only in $\bar c_k$.
lp-f-14-k07 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, the basic variable $x_k$ has in its row $\bar a_{k1} = 2$, $\bar a_{k2} = -1$, with $\bar c_1 = -4$, $\bar c_2 = -2$. With $c_k \to c_k + \delta$ the reduced costs become $\bar c_j - \delta\bar a_{kj}$. For which $\delta$ does the basis stay optimal?
  1. $-2 \le \delta \le 2$
  2. $\delta \ge -2$
  3. $-4 \le \delta \le 2$
  4. $\delta \le 2$
Explanation. $-4 - 2\delta \le 0 \Rightarrow \delta \ge -2$; $-2 + \delta \le 0 \Rightarrow \delta \le 2$.
lp-f-14-k08 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, changing the cost of a basic variable $x_k$ within the optimality interval, what happens?
  1. Nothing changes
  2. The optimal value stays the same
  3. Same solution, value $+\delta\,\bar b_k$
  4. The optimal solution changes
Explanation. The basis does not change; $x_k = \bar b_k$ contributes $(c_k + \delta)\bar b_k$.
lp-f-14-k09 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, what are the shadow prices?
  1. The components of ${\boldsymbol \pi} = {\boldsymbol c}_{\pazocal{B}}'{\boldsymbol A}_{\pazocal{B}}^{-1}$.
  2. The values of the slack variables
  3. The reduced costs of the basic variables
  4. The objective coefficients
Explanation. While the basis stays optimal, $z = {\boldsymbol \pi}{\boldsymbol b}$ is linear in ${\boldsymbol b}$.
lp-f-14-k10 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, constraint $1$ has shadow price $\pi_1 = 2.5$. If $b_1$ increases by $2$ and the basis stays optimal, how does the optimal value change?
  1. It does not change
  2. It decreases by $5$
  3. It increases by $5$
  4. It increases by $2.5$
Explanation. $\Delta z = \pi_1 \cdot \delta = 2.5 \cdot 2$.
lp-f-14-k11 · level teorema · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, which statement about the shadow price of a constraint not active at the optimum is correct?
  1. It is not defined
  2. It is $0$
  3. It is positive
  4. It equals $b_i$
Explanation. By complementary slackness $\tilde\pi_i = 0$ if the slack is positive.
lp-f-14-k12 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, a variable $x_\star \ge 0$ with cost $c_\star$ and column ${\boldsymbol A}_\star$ is added. When does the optimal basis stay optimal?
  1. If $c_\star \le 0$
  2. Always
  3. If $\bar c_\star = c_\star - {\boldsymbol \pi}{\boldsymbol A}_\star \le 0$
  4. If ${\boldsymbol A}_\star \ge {\boldsymbol 0}$
Explanation. The basis stays primal feasible; only the reduced cost of the new variable matters.
lp-f-14-k13 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, with shadow prices ${\boldsymbol \pi} = (1, 2)$, a variable $x_\star$ with $c_\star = 6$ and column ${\boldsymbol A}_\star = (2, 1)$ is added. What is concluded?
  1. $\bar c_\star = 2 > 0$: no longer optimal
  2. $\bar c_\star = -2$: the basis stays optimal
  3. The problem becomes unbounded
  4. The basis becomes infeasible
Explanation. $\bar c_\star = 6 - (1 \cdot 2 + 2 \cdot 1) = 2$.
lp-f-14-k14 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, a $\le$ constraint is added with its slack. The extended basis is:
  1. always optimal
  2. neither primal nor dual feasible
  3. dual feasible; primal only if it holds
  4. primal feasible but not dual
Explanation. Reduced costs do not change (the slack has reduced cost $0$); if the constraint is violated the dual simplex is used.
lp-f-14-k15 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, the optimal solution $(2, 3)$ is compared with the new constraint $x_1 + x_2 \le 4$. How does one continue?
  1. Discard the constraint
  2. Restart with Phase $0$
  3. It is violated: re-optimize with the dual simplex
  4. It is satisfied: the solution stays optimal
Explanation. $2 + 3 = 5 > 4$: the slack of the new constraint is negative in the extended basis.
lp-f-14-k16 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, which algorithm is used when a change makes the basis no longer primal feasible?
  1. The primal simplex from the current basis
  2. The dual simplex, starting from the current basis
  3. Phase $0$ from scratch
  4. The graphical method
Explanation. The basis stays dual feasible: it is the starting point of the dual simplex.
lp-f-14-k17 · level facile · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, which algorithm is used when a change makes the basis no longer dual feasible but still primal feasible?
  1. The dual simplex from the current basis
  2. The primal simplex, starting from the current basis
  3. Phase $0$
  4. None: the basis stays optimal
Explanation. With $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and some $\bar c_j > 0$ primal pivots are done.
lp-f-14-k18 · level ipotesi · notes
In the sensitivity analysis of a problem in standard maximization form with optimal basis ${\boldsymbol A}_{\pazocal{B}}$, $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and reduced costs $\bar c_j$, adding a new variable, why does the optimal basis stay primal feasible?
  1. Because the new column is nonnegative
  2. Because ${\boldsymbol \pi}$ changes
  3. Because the new variable has negative cost
  4. Because neither ${\boldsymbol A}_{\pazocal{B}}$ nor ${\boldsymbol b}$ change
Explanation. $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ is the same and the new variable is nonbasic, at zero.

15. The geometry of Linear Programming (28)

lp-f-15-01 · level facile · notes
When does a non-empty polyhedron $F \subseteq \R^n$ have dimension $k$?
  1. When it has exactly $k$ distinct vertices
  2. When it is defined by exactly $k$ linear constraints
  3. When it contains $k+1$ affinely independent points, but not $k+2$
  4. When $n - k$ variables are $0$ at each of its points
Explanation. The dimension is that of the affine hull: the number of independent directions along which one can move inside $F$.
lp-f-15-02 · level facile · notes
Which statement about the dimension of polyhedra is correct?
  1. $F \subseteq \R^n$ is full-dimensional if $\dim(F) = n$; $\dim(\emptyset) = -1$
  2. Every non-empty polyhedron in $\R^n$ has dimension $n$; $\dim(\emptyset) = 0$
  3. A polyhedron formed by a single point has dimension $1$
  4. The dimension of a polyhedron is the number of its variables
Explanation. A point has dimension $0$; the dimension is not the number of variables.
lp-f-15-03 · level facile · notes
What can be said about the non-empty feasible region $F = \{{\boldsymbol x} \in \R^n : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with $\rank({\boldsymbol A}) \ge 1$?
  1. It is always full-dimensional: $\dim(F) = n$
  2. It is not full-dimensional: $\dim(F) \le n - \rank({\boldsymbol A})$
  3. It always has dimension $0$, since it is formed by vertices
  4. It always has dimension $\rank({\boldsymbol A})$, the number of independent constraints
Explanation. All the points of $F$ satisfy the equalities, and each independent equality reduces the dimension by one.
lp-f-15-04 · level facile · notes
An inequality ${\boldsymbol a}'{\boldsymbol x} \le \beta$ is valid for the polyhedron $F$ if it is satisfied by all the points of $F$. What is a face of $F$?
  1. Any convex subset of $F$
  2. The set $\{{\boldsymbol x} : {\boldsymbol a}'{\boldsymbol x} = \beta\}$ for any inequality ${\boldsymbol a}'{\boldsymbol x} \le \beta$
  3. The set of the points of $F$ satisfying all the constraints with equality
  4. The set $\{{\boldsymbol x} \in F : {\boldsymbol a}'{\boldsymbol x} = \beta\}$ for an inequality ${\boldsymbol a}'{\boldsymbol x} \le \beta$ valid for $F$
Explanation. The inequality must be valid (satisfied by all of $F$); $F$ and $\emptyset$ are faces of $F$.
lp-f-15-05 · level facile · notes
A face of the polyhedron $F$ is a set $\{{\boldsymbol x} \in F : {\boldsymbol a}'{\boldsymbol x} = \beta\}$, with ${\boldsymbol a}'{\boldsymbol x} \le \beta$ valid for $F$. What are the dimensions of a facet and of a vertex of $F$?
  1. Facet: $1$; vertex: $0$
  2. Facet: always $n - 1$; vertex: $0$
  3. Facet: $\dim(F)$; vertex: $1$
  4. Facet: $\dim(F) - 1$; vertex: $0$
Explanation. Facets are the largest proper faces, vertices the smallest non-empty faces (a point).
lp-f-15-06 · level teorema · notes
A vertex of a polyhedron $F$ is a face of dimension $0$; an extreme point of $F$ is a point which does not lie strictly between two distinct points of $F$. Which statement, for ${\boldsymbol x} \in F$, is correct?
  1. $\{{\boldsymbol x}\}$ is a vertex of $F$ if and only if ${\boldsymbol x}$ is an extreme point of $F$
  2. ${\boldsymbol x}$ is an extreme point if and only if it satisfies at least one constraint with equality
  3. Every extreme point is the midpoint of two distinct points of $F$
  4. Every point of the boundary of $F$ is an extreme point
Explanation. An extreme point does not lie strictly between two distinct points of $F$; the points inside an edge are on the boundary but not extreme.
lp-f-15-07 · level teorema · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. Let $F$ be its feasible region. Which statement is correct?
  1. $\bar{\boldsymbol x} \in F$ is a basic feasible solution if and only if it is a vertex of $F$
  2. The basic feasible solutions are the interior points of $F$, not the vertices
  3. Every vertex of $F$ corresponds to one and only one basis ${\boldsymbol A}_{\pazocal{B}}$
  4. Every basic solution, feasible or not, is a vertex of $F$
Explanation. The correspondence between bases and vertices is onto but not necessarily one-to-one: a degenerate vertex may have several bases.
lp-f-15-08 · level ipotesi · notes
Consider an LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} \in \R^{m \times (n+m)}$ and $\rank({\boldsymbol A}) = m$. In the proof that every basic feasible solution $\bar{\boldsymbol x}$ is a vertex of the feasible region $F$, which facts are used?
  1. The columns ${\boldsymbol A}_j$ with $\bar x_j > 0$ are independent, hence $\bar{\boldsymbol x}$ is an extreme point, and extreme points and vertices coincide
  2. Strong Duality and Complementary Slackness applied to the basic solution $\bar{\boldsymbol x}$
  3. The non-degeneracy of $\bar{\boldsymbol x}$ and Bland's rule, which avoid repeated bases
  4. The boundedness of $F$, which makes each of its points a convex combination of vertices
Explanation. If $\bar{\boldsymbol x} = \lambda{\boldsymbol x}^{(1)} + (1-\lambda){\boldsymbol x}^{(2)}$, the difference ${\boldsymbol d}$ is supported on independent columns and ${\boldsymbol A}{\boldsymbol d} = {\boldsymbol 0}$, hence ${\boldsymbol d} = {\boldsymbol 0}$.
lp-f-15-09 · level teorema · notes
Which statement justifies, for LP problems in standard form, the graphical method and the search for an optimal solution among the vertices of the feasible region?
  1. If the feasible region is bounded, the unique optimum is a vertex
  2. Every LP problem with a non-empty feasible region has an optimal vertex
  3. If an LP problem admits an optimal solution, at least one vertex of the feasible region is optimal
  4. Every optimal solution of an LP problem is a vertex
Explanation. The optimal solutions may form a face of positive dimension, but among them there is at least one vertex; an unbounded problem has no optimum.
lp-f-15-10 · level ipotesi · notes
For an LP problem in standard form, from which results does it follow that, if an optimal solution exists, a vertex of the feasible region is optimal?
  1. From Strong Duality and Complementary Slackness applied to the pair
  2. From the boundedness of the feasible region and the linearity of the objective function
  3. From Bland's rule and the definition of face of the polyhedron
  4. From the Fundamental Theorem and the equivalence between basic feasible solutions and vertices
Explanation. It is a geometric reading of the Fundamental Theorem: a basic optimum is a vertex.
lp-f-15-11 · level facile · notes
In the simplex algorithm for an LP problem in standard form with feasible region $F$, what does a pivoting operation do geometrically?
  1. It always moves to an adjacent vertex along an edge, even when it is degenerate
  2. It moves to an interior point of $F$ along the direction of the gradient ${\boldsymbol c}$
  3. If non-degenerate it moves to an adjacent vertex along an edge; if degenerate it stays at the same vertex
  4. It moves to any vertex with a larger value, even one not adjacent to the current one
Explanation. Two vertices are adjacent if the segment joining them is an edge; the simplex algorithm is a walk on the edges of the polyhedron.
lp-f-15-12 · level media · notes
What is the dimension of the polyhedron $F = \{{\boldsymbol x} \in \R^3 : x_1 + x_2 + x_3 = 1,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$?
  1. $3$
  2. $2$
  3. $1$
  4. $0$
Explanation. $F$ is the triangle with vertices $(1,0,0)$, $(0,1,0)$, $(0,0,1)$: the differences $(-1,1,0)$ and $(-1,0,1)$ are independent and the equality removes one dimension, $3 - 1 = 2$.
lp-f-15-13 · level facile · notes
For the feasible region $F$ of an LP problem in standard maximization form, which correspondence between a geometric notion and an algebraic notion is correct?
  1. Vertex: basic solution, even infeasible
  2. Degenerate vertex: one single associated basis
  3. Edge between two adjacent vertices: non-degenerate pivoting operation
  4. Facet of $F$: basic variable
Explanation. A non-degenerate pivot moves from a vertex to an adjacent one along an edge. The vertices are the basic feasible solutions; a degenerate vertex is associated with several bases; a facet corresponds to a constraint which cannot be removed.
lp-f-15-14 · level facile · notes
The simplex algorithm visits one vertex of the feasible region at a time. Why is counting the vertices not enough to prove that it is an efficient algorithm?
  1. Because the simplex algorithm can also visit points which are not vertices
  2. Because the number of vertices can grow exponentially with the number of variables and constraints
  3. Because the vertices are infinitely many when the feasible region is unbounded
  4. Because every vertex requires an exponential number of pivoting operations
Explanation. For a problem in standard form the vertices are at most $\binom{n+m}{m}$, a number which can be exponential; the practical behaviour of the simplex algorithm is much better than its worst case.
lp-f-15-k01 · level facile · notes
For a polyhedron $P \subseteq \R^n$, when is the inequality ${\boldsymbol \alpha}'{\boldsymbol x} \le \beta$ valid?
  1. When a vertex satisfies it with equality
  2. When it is satisfied by at least one point of $P$
  3. When it is satisfied by all points of $P$
  4. When it is one of the constraints defining $P$
Explanation. Valid: all of $P$ lies in the half-space ${\boldsymbol \alpha}'{\boldsymbol x} \le \beta$.
lp-f-15-k02 · level facile · notes
What is a face of a polyhedron $P$?
  1. The boundary of $P$
  2. Any convex subset of $P$
  3. A constraint of $P$
  4. $P$ cut by a valid hyperplane
Explanation. Vertices, edges and facets are special faces.
lp-f-15-k03 · level facile · notes
When is a point ${\boldsymbol x} \in P$ an extreme point of the polyhedron $P$?
  1. When it lies on the boundary of $P$
  2. When it is not a midpoint in $P$
  3. When all its coordinates are integer
  4. When it maximizes every linear function
Explanation. Extreme points coincide with vertices.
lp-f-15-k04 · level facile · notes
In a full-dimensional polyhedron of $\R^3$, what is the dimension of facets and vertices?
  1. Facets of dimension $3$, vertices of dimension $1$
  2. Facets and vertices of dimension $0$
  3. Facets of dimension $1$, vertices of dimension $0$
  4. Facets of dimension $2$, vertices of dimension $0$
Explanation. Facet: dimension $\dim P - 1$; vertex: dimension $0$.
lp-f-15-k05 · level facile · notes
For $P = \{{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, which statement links basic feasible solutions and vertices?
  1. There is no relation
  2. Every basic feasible solution is a vertex, but not conversely
  3. They are the same: every basic feasible solution is a vertex and conversely
  4. Every vertex is a basic solution, but not conversely
Explanation. It is the theorem linking the algebra of the simplex to geometry.
lp-f-15-k06 · level ipotesi · notes
In the proof that a basic feasible solution of $\{{\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ is an extreme point, which fact is used?
  1. That the problem has an optimal solution
  2. The basic columns are independent.
  3. That the solution is nondegenerate
  4. That ${\boldsymbol b} > {\boldsymbol 0}$
Explanation. If ${\boldsymbol x} = \frac12({\boldsymbol y} + {\boldsymbol w})$ with ${\boldsymbol y}, {\boldsymbol w} \in P$, also ${\boldsymbol y}_{\pazocal{N}} = {\boldsymbol w}_{\pazocal{N}} = {\boldsymbol 0}$ hence ${\boldsymbol y} = {\boldsymbol w} = {\boldsymbol x}$.
lp-f-15-k07 · level facile · notes
A degenerate basic feasible solution of $\{{\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ may correspond to several bases. What happens to the vertices?
  1. Several bases give the same vertex
  2. The vertex does not exist
  3. The polyhedron is not bounded
  4. Every basis gives a different vertex
Explanation. With zero basic variables, different bases can describe the same point.
lp-f-15-k08 · level facile · notes
In the simplex, a nondegenerate pivot moves from a vertex to which vertex?
  1. To any vertex
  2. To an adjacent vertex
  3. To the same vertex
  4. To the opposite vertex
Explanation. The bases differ by one column: the vertices are adjacent.
lp-f-15-k09 · level facile · notes
In geometric terms, what does the fundamental theorem state for an LP problem over a polyhedron with at least one vertex?
  1. With an optimum, an optimal vertex exists
  2. Every optimal solution is a vertex
  3. The polyhedron is bounded
  4. Every vertex is optimal
Explanation. It is enough to search for the optimum among the vertices.
lp-f-15-k10 · level teorema · notes
Which statement about the set of optimal solutions of an LP problem with finite optimal value is correct?
  1. It is a face of the polyhedron
  2. It is the whole polyhedron
  3. It is always a vertex
  4. It is always a single point
Explanation. It is $P \cap \{{\boldsymbol c}'{\boldsymbol x} = z\}$ with ${\boldsymbol c}'{\boldsymbol x} \le z$ valid: a face.
lp-f-15-k11 · level facile · notes
Which summary describes the simplex algorithm in geometric terms?
  1. It moves through the interior of the polyhedron
  2. It projects the gradient onto the polyhedron
  3. It enumerates all vertices
  4. It goes from vertex to adjacent vertex
Explanation. Every nondegenerate pivot travels along an edge.
lp-f-15-k12 · level facile · notes
What is the dimension of the polyhedron $\{{\boldsymbol x} \in \R^2 : x_1 + x_2 = 1,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$?
  1. $0$
  2. $1$
  3. $2$
  4. $3$
Explanation. It is a segment: the equality removes one dimension.
lp-f-15-k13 · level teorema · notes
Which statement about vertices and polyhedra is correct?
  1. A bounded polyhedron may have no vertex
  2. Every polyhedron has at least one vertex
  3. Vertices are always integer
  4. A nonempty standard polyhedron has a vertex
Explanation. A line or a half-plane has no vertex; with ${\boldsymbol x} \ge {\boldsymbol 0}$ it contains no line.
lp-f-15-k14 · level ipotesi · notes
To conclude that an LP problem with finite optimal value has an optimal vertex, which assumption on the polyhedron is needed?
  1. That it is bounded
  2. That it is full-dimensional
  3. That it has at least one vertex.
  4. That it has integer vertices
Explanation. On a half-plane $\max\ x_2$ with $x_2 \le 0$ has optima but no vertex.

Generated questions (48)

Each generator builds a new instance, with different numbers, at every start: a few examples here.

1. Linear functions (2)

Example 1 · lp-g-insieme-livello · level facile · notes
Consider the linear function $f({\boldsymbol x}) = 4\,x_1 - 5\,x_2$. Which of the following points belongs to the level set $\{{\boldsymbol x} \in \R^2 : f({\boldsymbol x}) = 26\}$?
  1. $\begin{pmatrix} -4 \\ 2 \end{pmatrix}$
  2. $\begin{pmatrix} 8 \\ -7 \end{pmatrix}$
  3. $\begin{pmatrix} 4 \\ -2 \end{pmatrix}$
  4. $\begin{pmatrix} -2 \\ 4 \end{pmatrix}$
Explanation. We have $4 \cdot 4 - 5 \cdot (-2) = 26$. The level sets are lines perpendicular to the gradient $\nabla f = (4, -5)$: moving along the gradient changes the value, the opposite point gives the value $-26$ and swapping the coordinates does not preserve the value.
Example 2 · lp-g-insieme-livello · level facile · notes
Consider the linear function $f({\boldsymbol x}) = -x_1 + 4\,x_2$. Which of the following points belongs to the level set $\{{\boldsymbol x} \in \R^2 : f({\boldsymbol x}) = -11\}$?
  1. $\begin{pmatrix} -1 \\ -3 \end{pmatrix}$
  2. $\begin{pmatrix} 1 \\ 3 \end{pmatrix}$
  3. $\begin{pmatrix} -2 \\ 1 \end{pmatrix}$
  4. $\begin{pmatrix} -3 \\ -1 \end{pmatrix}$
Explanation. We have $-1 \cdot (-1) + 4 \cdot (-3) = -11$. The level sets are lines perpendicular to the gradient $\nabla f = (-1, 4)$: moving along the gradient changes the value, the opposite point gives the value $11$ and swapping the coordinates does not preserve the value.
Example 1 · lp-g-variazione-direzione · level facile · notes
Consider the linear function $f({\boldsymbol x}) = x_1 + 4\,x_2$ on $\R^2$, the point $\bar{\boldsymbol x} = (-2, -1)$ and the direction ${\boldsymbol d} = (-3, 3)$. What is the change $f(\bar{\boldsymbol x} + 2\,{\boldsymbol d}) - f(\bar{\boldsymbol x})$?
  1. $-30$
  2. $9$
  3. $12$
  4. $18$
Explanation. By linearity $f(\bar{\boldsymbol x} + t\,{\boldsymbol d}) - f(\bar{\boldsymbol x}) = t\,{\boldsymbol c}'{\boldsymbol d} = 2 \cdot (1 \cdot (-3) + 4 \cdot 3) = 18$, whatever $\bar{\boldsymbol x}$ is; the value $12$ is $f(\bar{\boldsymbol x} + 2\,{\boldsymbol d})$, not the change.
Example 2 · lp-g-variazione-direzione · level facile · notes
Consider the linear function $f({\boldsymbol x}) = -x_1 + 4\,x_2$ on $\R^2$, the point $\bar{\boldsymbol x} = (0, 3)$ and the direction ${\boldsymbol d} = (-1, -3)$. What is the change $f(\bar{\boldsymbol x} + 4\,{\boldsymbol d}) - f(\bar{\boldsymbol x})$?
  1. $-44$
  2. $-11$
  3. $-32$
  4. $52$
Explanation. By linearity $f(\bar{\boldsymbol x} + t\,{\boldsymbol d}) - f(\bar{\boldsymbol x}) = t\,{\boldsymbol c}'{\boldsymbol d} = 4 \cdot (-1 \cdot (-1) + 4 \cdot (-3)) = -44$, whatever $\bar{\boldsymbol x}$ is; the value $-32$ is $f(\bar{\boldsymbol x} + 4\,{\boldsymbol d})$, not the change.

2. Half-spaces and polyhedra (2)

Example 1 · lp-g-poliedro-punto · level facile · notes
Consider the polyhedron $P = \{{\boldsymbol x} \in \R^2 : 2\,x_2 \le 2,~ x_1 - 2\,x_2 \le 1,~ 3\,x_1 + 2\,x_2 \le 4\}$. Which of the following points belongs to $P$?
  1. $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$
  2. $\begin{pmatrix} -2 \\ 3 \end{pmatrix}$
  3. $\begin{pmatrix} 2 \\ -1 \end{pmatrix}$
  4. $\begin{pmatrix} 3 \\ 1 \end{pmatrix}$
Explanation. The point $(1, 0)$ satisfies the three inequalities, so it belongs to the intersection of the three half-spaces. The others: $(-2, 3)$ violates constraint 1 ($6 > 2$); $(2, -1)$ violates constraint 2 ($4 > 1$); $(3, 1)$ violates constraint 3 ($11 > 4$).
Example 2 · lp-g-poliedro-punto · level facile · notes
Consider the polyhedron $P = \{{\boldsymbol x} \in \R^2 : -x_1 \le 0,~ x_1 - 3\,x_2 \le -5,~ -x_1 - 3\,x_2 \le -11\}$. Which of the following points belongs to $P$?
  1. $\begin{pmatrix} 5 \\ 2 \end{pmatrix}$
  2. $\begin{pmatrix} 1 \\ 3 \end{pmatrix}$
  3. $\begin{pmatrix} 2 \\ 3 \end{pmatrix}$
  4. $\begin{pmatrix} -1 \\ 5 \end{pmatrix}$
Explanation. The point $(2, 3)$ satisfies the three inequalities, so it belongs to the intersection of the three half-spaces. The others: $(-1, 5)$ violates constraint 1 ($1 > 0$); $(5, 2)$ violates constraint 2 ($-1 > -5$); $(1, 3)$ violates constraint 3 ($-10 > -11$).
Example 1 · lp-g-vincoli-attivi · level facile · notes
Consider the polyhedron $P = \{{\boldsymbol x} \in \R^2 : (1)~ -2\,x_1 + 3\,x_2 \le 6,~ (2)~ 2\,x_1 \le 4,~ (3)~ 2\,x_1 - 2\,x_2 \le -4,~ (4)~ 3\,x_1 + 3\,x_2 \le 10\}$ and its point $\bar{\boldsymbol x} = (0, 2)$. A constraint is active at $\bar{\boldsymbol x}$ if it is satisfied with equality, i.e., if $\bar{\boldsymbol x}$ lies on its supporting hyperplane. Which constraints are active at $\bar{\boldsymbol x}$?
  1. constraints 2 and 4
  2. constraints 1 and 3
  3. constraints 1, 2, 3 and 4
  4. only constraint 1
Explanation. Substituting $\bar{\boldsymbol x}$: $(1)~ 6 = 6,~ (2)~ 0 < 4,~ (3)~ -4 = -4,~ (4)~ 6 < 10$. The constraints with equality are active; the others are satisfied with strict inequality.
Example 2 · lp-g-vincoli-attivi · level facile · notes
Consider the polyhedron $P = \{{\boldsymbol x} \in \R^2 : (1)~ -2\,x_1 - 2\,x_2 \le -3,~ (2)~ x_1 + 2\,x_2 \le 2,~ (3)~ -x_1 \le 2,~ (4)~ x_1 - 3\,x_2 \le 2\}$ and its point $\bar{\boldsymbol x} = (2, 0)$. A constraint is active at $\bar{\boldsymbol x}$ if it is satisfied with equality, i.e., if $\bar{\boldsymbol x}$ lies on its supporting hyperplane. Which constraints are active at $\bar{\boldsymbol x}$?
  1. constraints 1 and 3
  2. constraints 1, 2 and 4
  3. constraints 2 and 4
  4. constraints 1, 2, 3 and 4
Explanation. Substituting $\bar{\boldsymbol x}$: $(1)~ -4 < -3,~ (2)~ 2 = 2,~ (3)~ -2 < 2,~ (4)~ 2 = 2$. The constraints with equality are active; the others are satisfied with strict inequality.

3. Linear optimization problems (2)

Example 1 · lp-g-ottimo-una-variabile · level facile · notes
Consider the LP problem in one variable $\min\{x + 1 : x \ge -4\}$, with optimal solution $\tilde x$ and optimal value $z(LP)$ if they exist. Which statement is correct?
  1. $\tilde x = -4$, $z(LP) = -3$
  2. The problem is unbounded
  3. $\tilde x = -3$, $z(LP) = -2$
  4. $\tilde x = -4$, $z(LP) = -5$
Explanation. The coefficient of $x$ is $1$: in a minimization problem it pays to decrease $x$ up to the endpoint $\tilde x = -4$, with $z(LP) = 1 \cdot (-4) + 1 = -3$.
Example 2 · lp-g-ottimo-una-variabile · level facile · notes
Consider the LP problem in one variable $\max\{-x + 4 : -2 \le x \le 6\}$, with optimal solution $\tilde x$ and optimal value $z(LP)$ if they exist. Which statement is correct?
  1. $\tilde x = -2$, $z(LP) = 6$
  2. $\tilde x = -2$, $z(LP) = -2$
  3. $\tilde x = 6$, $z(LP) = -2$
  4. The problem is unbounded
Explanation. The coefficient of $x$ is $-1$: in a maximization problem it pays to decrease $x$ up to the endpoint $\tilde x = -2$, with $z(LP) = -1 \cdot (-2) + 4 = 6$.
Example 1 · lp-g-proprieta-scala · level facile · notes
Let $F \subseteq \R^n$ be the feasible region of an LP problem and assume that $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = 0$ and $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = 6$. What is $\min\{2\,{\boldsymbol c}'{\boldsymbol x} + 5 : {\boldsymbol x} \in F\}$?
  1. $5$
  2. $10$
  3. $17$
  4. $-5$
Explanation. The constant is added to the optimal value and the factor multiplies it, but with a positive factor the minimization stays as it is: $2 \cdot 0 + 5 = 5$.
Example 2 · lp-g-proprieta-scala · level facile · notes
Let $F \subseteq \R^n$ be the feasible region of an LP problem and assume that $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = -2$ and $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol x} \in F\} = 6$. What is $\max\{2\,{\boldsymbol c}'{\boldsymbol x} + 2 : {\boldsymbol x} \in F\}$?
  1. $14$
  2. $16$
  3. $-2$
  4. $8$
Explanation. The constant is added to the optimal value and the factor multiplies it, but with a positive factor the maximization stays as it is: $2 \cdot 6 + 2 = 14$.

4. Linear Programming problems (3)

Example 1 · lp-g-lower-bound · level facile · notes
Consider the LP problem in canonical maximization form $\begin{array}{rl} \max & 5\,x_1 + 6\,x_2 \\ \text{subject to} & -2\,x_1 + 3\,x_2 \le 10 \\ & 2\,x_1 + 4\,x_2 \le 4 \\ & 4\,x_1 - x_2 \le 6 \\ & x_1, x_2 \ge 0 \end{array}$, with optimal value $z(LP)$. Every feasible solution $\bar{\boldsymbol x}$ gives the lower bound $LB(\bar{\boldsymbol x}) = {\boldsymbol c}'\bar{\boldsymbol x} \le z(LP)$. Which of the following statements is correct?
  1. $\bar x_1 = 0,~ \bar x_2 = 7$: feasible solution with $LB(\bar{\boldsymbol x}) = 42$
  2. $\bar x_1 = 0,~ \bar x_2 = 1$: feasible solution with $LB(\bar{\boldsymbol x}) = 5$
  3. $\bar x_1 = 1,~ \bar x_2 = 0$: feasible solution with $LB(\bar{\boldsymbol x}) = 5$
  4. $\bar x_1 = -2,~ \bar x_2 = 2$: feasible solution with $LB(\bar{\boldsymbol x}) = 2$
Explanation. The point $(1, 0)$ satisfies the three constraints and non-negativity, and $LB(\bar{\boldsymbol x}) = 5 \cdot 1 + 6 \cdot 0 = 5 \le z(LP)$. The point $(0, 7)$ violates constraint 1, $(-2, 2)$ violates non-negativity and for $(0, 1)$ the correct value is $6$.
Example 2 · lp-g-lower-bound · level facile · notes
Consider the LP problem in canonical maximization form $\begin{array}{rl} \max & 6\,x_1 + 5\,x_2 \\ \text{subject to} & -2\,x_1 + 4\,x_2 \le 14 \\ & 2\,x_1 + 2\,x_2 \le 6 \\ & 2\,x_1 + x_2 \le 4 \\ & x_1, x_2 \ge 0 \end{array}$, with optimal value $z(LP)$. Every feasible solution $\bar{\boldsymbol x}$ gives the lower bound $LB(\bar{\boldsymbol x}) = {\boldsymbol c}'\bar{\boldsymbol x} \le z(LP)$. Which of the following statements is correct?
  1. $\bar x_1 = 3,~ \bar x_2 = 2$: feasible solution with $LB(\bar{\boldsymbol x}) = 28$
  2. $\bar x_1 = 1,~ \bar x_2 = 0$: feasible solution with $LB(\bar{\boldsymbol x}) = 6$
  3. $\bar x_1 = -1,~ \bar x_2 = 2$: feasible solution with $LB(\bar{\boldsymbol x}) = 4$
  4. $\bar x_1 = 0,~ \bar x_2 = 3$: feasible solution with $LB(\bar{\boldsymbol x}) = 18$
Explanation. The point $(1, 0)$ satisfies the three constraints and non-negativity, and $LB(\bar{\boldsymbol x}) = 6 \cdot 1 + 5 \cdot 0 = 6 \le z(LP)$. The point $(3, 2)$ violates constraint 2, $(-1, 2)$ violates non-negativity and for $(0, 3)$ the correct value is $15$.
Example 1 · lp-g-metodo-grafico · level media · notes
Solve with the graphical method the LP problem $\begin{array}{rl} \max & 4\,x_1 + 4\,x_2 \\ \text{subject to} & 4\,x_1 + 5\,x_2 \le 27 \\ & x_1 + 5\,x_2 \le 18 \\ & x_1, x_2 \ge 0 \end{array}$ (the optimal solution is unique). What are the optimal solution $\tilde{\boldsymbol x}$ and the optimal value $z(LP)$?
  1. $\tilde x_1 = 0,~ \tilde x_2 = \frac{18}{5},~ z(\, LP \,) = \frac{72}{5}$
  2. $\tilde x_1 = 3,~ \tilde x_2 = 3,~ z(\, LP \,) = 24$
  3. $\tilde x_1 = \frac{27}{4},~ \tilde x_2 = 0,~ z(\, LP \,) = 27$
  4. $\tilde x_1 = 18,~ \tilde x_2 = 0,~ z(\, LP \,) = 72$
Explanation. The vertices of the feasible region other than the origin are $(\frac{27}{4}, 0)$: $27$, $(3, 3)$: $24$, $(0, \frac{18}{5})$: $\frac{72}{5}$: the maximum value is attained at $(\frac{27}{4}, 0)$. The point $(18, 0)$ is the intercept of the less restrictive constraint on the axis and it is not feasible.
Example 2 · lp-g-metodo-grafico · level media · notes
Solve with the graphical method the LP problem $\begin{array}{rl} \max & 5\,x_1 + 4\,x_2 \\ \text{subject to} & 2\,x_1 + x_2 \le 9 \\ & 2\,x_1 + 5\,x_2 \le 29 \\ & x_1, x_2 \ge 0 \end{array}$ (the optimal solution is unique). What are the optimal solution $\tilde{\boldsymbol x}$ and the optimal value $z(LP)$?
  1. $\tilde x_1 = 2,~ \tilde x_2 = 5,~ z(\, LP \,) = 30$
  2. $\tilde x_1 = \frac{9}{2},~ \tilde x_2 = 0,~ z(\, LP \,) = \frac{45}{2}$
  3. $\tilde x_1 = 0,~ \tilde x_2 = \frac{29}{5},~ z(\, LP \,) = \frac{116}{5}$
  4. $\tilde x_1 = \frac{29}{2},~ \tilde x_2 = 0,~ z(\, LP \,) = \frac{145}{2}$
Explanation. The vertices of the feasible region other than the origin are $(\frac{9}{2}, 0)$: $\frac{45}{2}$, $(2, 5)$: $30$, $(0, \frac{29}{5})$: $\frac{116}{5}$: the maximum value is attained at $(2, 5)$. The point $(\frac{29}{2}, 0)$ is the intercept of the less restrictive constraint on the axis and it is not feasible.
Example 1 · lp-g-grafico-misto · level complessa · notes
Solve with the graphical method (or by enumerating the vertices) the LP problem $\begin{array}{rl} \max & 2\,x_1 + 2\,x_2 \\ \text{subject to} & x_1 + x_2 \le 12 \\ & 2\,x_1 + 3\,x_2 \le 15 \\ & x_1 + 2\,x_2 \ge 2 \\ & x_1, x_2 \ge 0 \end{array}$. What are the optimal solution and the optimal value?
  1. $(2, 0)$, $z = 4$
  2. $(0, 5)$, $z = 10$
  3. $(\frac{15}{2}, 0)$, $z = 15$
  4. $(0, 1)$, $z = 2$
Explanation. The vertices of the region are $(\frac{15}{2}, 0)$, $(0, 5)$, $(2, 0)$, $(0, 1)$; the largest value is $15$. The $\ge$ constraint excludes the origin.
Example 2 · lp-g-grafico-misto · level complessa · notes
Solve with the graphical method (or by enumerating the vertices) the LP problem $\begin{array}{rl} \max & x_1 + 2\,x_2 \\ \text{subject to} & x_1 + x_2 \le 16 \\ & 3\,x_1 + 4\,x_2 \le 14 \\ & x_1 + 2\,x_2 \ge 2 \\ & x_1, x_2 \ge 0 \end{array}$. What are the optimal solution and the optimal value?
  1. $(\frac{14}{3}, 0)$, $z = \frac{14}{3}$
  2. $(2, 0)$, $z = 2$
  3. $(0, \frac{7}{2})$, $z = 7$
  4. $(0, 1)$, $z = 2$
Explanation. The vertices of the region are $(0, \frac{7}{2})$, $(\frac{14}{3}, 0)$, $(0, 1)$, $(2, 0)$; the largest value is $7$. The $\ge$ constraint excludes the origin.

5. Possible outcomes and equivalent formulations (2)

Example 1 · lp-g-forme-equivalenti · level facile · notes
Consider the LP problem $\begin{array}{rl} \max & -4\,x_1 + 5\,x_2 - 2\,x_3 - 2\,x_4 \\ \text{subject to} & -3\,x_1 - 3\,x_2 - x_3 + x_4 \le -2 \\ & x_2 + 3\,x_3 - 3\,x_4 = 5 \\ & -x_1 + 5\,x_2 - x_3 \ge -2 \\ & -2\,x_1 + x_2 + 3\,x_3 + 2\,x_4 = 3 \\ & x_1 \le 0,~ x_2 \gtreqless 0,~ x_3 \gtreqless 0,~ x_4 \ge 0 \end{array}$. The equivalent LP problem in standard maximization form is obtained with the usual transformations (a minimization problem becomes a maximization one by changing the sign of the objective function, $x_j = -x_j^+$ for the non-positive variables, $x_j = x_j^+ - x_j^-$ for the free variables, one slack or surplus variable for each inequality). How many variables and constraints does it have?
  1. $8$ non-negative variables and $4$ equality constraints
  2. $8$ non-negative variables and $6$ equality constraints
  3. $6$ non-negative variables and $4$ equality constraints
  4. $10$ non-negative variables and $4$ equality constraints
Explanation. The variables become $1 + 1 + 2 \cdot 2 = 6$ (each free variable requires two), plus one slack or surplus variable for each of the $2$ inequalities: $8$ in total. The constraints remain $4$, all equalities; the equality constraints receive no additional variable.
Example 2 · lp-g-forme-equivalenti · level facile · notes
Consider the LP problem $\begin{array}{rl} \min & 6\,x_1 + 4\,x_2 + 3\,x_3 \\ \text{subject to} & 4\,x_1 + 4\,x_2 - 2\,x_3 \le 9 \\ & 5\,x_1 + 3\,x_2 + 3\,x_3 \ge -1 \\ & 2\,x_1 + x_2 - 3\,x_3 = -2 \\ & -x_1 - x_2 - 3\,x_3 \ge 4 \\ & x_1 \gtreqless 0,~ x_2 \ge 0,~ x_3 \ge 0 \end{array}$. The equivalent LP problem in standard maximization form is obtained with the usual transformations (a minimization problem becomes a maximization one by changing the sign of the objective function, $x_j = -x_j^+$ for the non-positive variables, $x_j = x_j^+ - x_j^-$ for the free variables, one slack or surplus variable for each inequality). How many variables and constraints does it have?
  1. $7$ non-negative variables and $4$ equality constraints
  2. $6$ non-negative variables and $4$ equality constraints
  3. $7$ non-negative variables and $5$ equality constraints
  4. $8$ non-negative variables and $4$ equality constraints
Explanation. The variables become $2 + 0 + 2 \cdot 1 = 4$ (each free variable requires two), plus one slack or surplus variable for each of the $3$ inequalities: $7$ in total. The constraints remain $4$, all equalities; the equality constraints receive no additional variable.
Example 1 · lp-g-esito-due-variabili · level media · notes
Consider the LP problem $\begin{array}{rl} \max & -4\,x_1 + 4\,x_2 \\ \text{subject to} & x_1 + 3\,x_2 \le 10 \\ & 3\,x_1 + x_2 \ge 5 \\ & x_1, x_2 \ge 0 \end{array}$. Which statement about its outcome is correct?
  1. The LP problem has an optimal solution, with $z(LP) = 0$
  2. The LP problem has an optimal solution, with $z(LP) = 20$
  3. The LP problem is infeasible
  4. The LP problem has an optimal solution, with $z(LP) = 10$
Explanation. The feasible region is non-empty and no feasible direction makes the objective function grow without bound; the maximum over the feasible vertices is $z(LP) = 10$. The other values come from infeasible basic points or non-optimal vertices.
Example 2 · lp-g-esito-due-variabili · level media · notes
Consider the LP problem $\begin{array}{rl} \max & 3\,x_1 + 2\,x_2 \\ \text{subject to} & 3\,x_1 - x_2 \le -5 \\ & 3\,x_1 + 3\,x_2 \ge 6 \\ & x_1, x_2 \ge 0 \end{array}$. Which statement about its outcome is correct?
  1. The LP problem is unbounded
  2. The LP problem is infeasible
  3. The LP problem has an optimal solution, with $z(LP) = 6$
  4. The LP problem has an optimal solution, with $z(LP) = 4$
Explanation. The feasible region is non-empty and contains a half-line along a direction ${\boldsymbol d} \ge {\boldsymbol 0}$ which respects the constraints and has ${\boldsymbol c}'{\boldsymbol d} > 0$: the objective function grows without bound.

6. Simplex algorithm (3)

Example 1 · lp-g-pivot-nuovo-z · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{2, 4, 5\}$, $\pazocal{N} = \{1, 3\}$: $\begin{array}{rcl} x_2 & = & 1 - 2\,x_1 + 2\,x_3 \\ x_4 & = & 9 + x_1 + x_3 \\ x_5 & = & 1 + 2\,x_1 - x_3 \\ z & = & 9 + 3\,x_1 + 2\,x_3 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). A pivoting operation is performed with pivot column $x_1$ and the pivot row chosen by the ratio test. What is the value of $\bar z$ in the new dictionary?
  1. $\frac{19}{2}$
  2. $\frac{15}{2}$
  3. $12$
  4. $\frac{21}{2}$
Explanation. Ratio test: $t_m = \min\{\frac{1}{2}\} = \frac{1}{2}$ (only the rows with $\bar a_{i1} > 0$). The new value is $\bar z + t_m \, \bar c_{1} = 9 + \frac{1}{2} \cdot 3 = \frac{21}{2}$.
Example 2 · lp-g-pivot-nuovo-z · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 3, 5\}$, $\pazocal{N} = \{2, 4\}$: $\begin{array}{rcl} x_1 & = & 8 - 3\,x_2 - 2\,x_4 \\ x_3 & = & 9 - 3\,x_2 - 2\,x_4 \\ x_5 & = & 8 - 3\,x_2 + 2\,x_4 \\ z & = & 5 + 5\,x_2 + 5\,x_4 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). A pivoting operation is performed with pivot column $x_4$ and the pivot row chosen by the ratio test. What is the value of $\bar z$ in the new dictionary?
  1. $9$
  2. $\frac{55}{2}$
  3. $25$
  4. $-15$
Explanation. Ratio test: $t_m = \min\{\frac{8}{2},~ \frac{9}{2}\} = 4$ (only the rows with $\bar a_{i4} > 0$). The new value is $\bar z + t_m \, \bar c_{4} = 5 + 4 \cdot 5 = 25$.
Example 1 · lp-g-esito-dizionario · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 2, 5\}$, $\pazocal{N} = \{3, 4\}$: $\begin{array}{rcl} x_1 & = & 6 - x_3 - 3\,x_4 \\ x_2 & = & 0 - 3\,x_3 + 2\,x_4 \\ x_5 & = & 3 + 3\,x_3 + 3\,x_4 \\ z & = & 10 + 3\,x_3 - 3\,x_4 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). Pivoting follows Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index); $t_m$ is the step given by the ratio test. Which of the following statements is correct?
  1. With Bland's rule a non-degenerate pivoting operation is needed, with $t_m = 1$.
  2. The basic feasible solution of the dictionary is optimal.
  3. With Bland's rule a degenerate pivoting operation is needed ($t_m = 0$).
  4. The LP problem is unbounded: the variable $x_3$ gives the certificate of unboundedness.
Explanation. The pivot column is $x_3$ and a row with $\bar a_{i3} > 0$ has $\bar b_i = 0$: the ratio test gives $t_m = 0$, the solution is degenerate and the value of $z$ does not change.
Example 2 · lp-g-esito-dizionario · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 3, 4\}$, $\pazocal{N} = \{2, 5\}$: $\begin{array}{rcl} x_1 & = & 8 - x_2 + x_5 \\ x_3 & = & 7 - x_2 + 3\,x_5 \\ x_4 & = & 8 + 3\,x_2 + 3\,x_5 \\ z & = & 11 - 2\,x_2 + 2\,x_5 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). Pivoting follows Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index); $t_m$ is the step given by the ratio test. Which of the following statements is correct?
  1. With Bland's rule a degenerate pivoting operation is needed ($t_m = 0$).
  2. The basic feasible solution of the dictionary is optimal.
  3. With Bland's rule a non-degenerate pivoting operation is needed, with $t_m = 2$.
  4. The LP problem is unbounded: the variable $x_5$ gives the certificate of unboundedness.
Explanation. The variable $x_5$ has a positive reduced cost and $\bar a_{i5} \le 0$ for every $i \in \pazocal{B}$: increasing it no basic variable becomes negative and $z$ grows without bound.
Example 1 · lp-g-simplesso-completo · level complessa · notes
Solve the LP problem $\begin{array}{rl} \max & 6\,x_1 + 6\,x_2 \\ \text{subject to} & x_1 - x_2 \le 7 \\ & 2\,x_1 + 4\,x_2 \le 14 \\ & 2\,x_1 \le 4 \\ & x_1, x_2 \ge 0 \end{array}$ with the simplex algorithm, starting from the basis of the slack variables $x_3, x_4, x_5$ and using Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index). What are the optimal solution $\tilde{\boldsymbol x}$ and the optimal value $z(LP)$?
  1. $\tilde x_1 = 2,~ \tilde x_2 = 0,~ z(\, LP \,) = 12$
  2. $\tilde x_1 = 2,~ \tilde x_2 = \frac{5}{2},~ z(\, LP \,) = 27$
  3. $\tilde x_1 = 0,~ \tilde x_2 = \frac{7}{2},~ z(\, LP \,) = 21$
  4. $\tilde x_1 = 7,~ \tilde x_2 = 0,~ z(\, LP \,) = 42$
Explanation. Pivoting operations: $x_1$ enters, $x_5$ leaves; $x_2$ enters, $x_4$ leaves. The final dictionary has all reduced costs negative, hence $(2, \frac{5}{2})$ with $z(LP) = 27$ is the unique optimal solution. The other options are a vertex visited earlier, non-optimal vertices or infeasible basic solutions.
Example 2 · lp-g-simplesso-completo · level complessa · notes
Solve the LP problem $\begin{array}{rl} \max & 2\,x_1 + 2\,x_2 \\ \text{subject to} & 5\,x_1 \le 15 \\ & 4\,x_1 + 2\,x_2 \le 9 \\ & x_1 + 3\,x_2 \le 14 \\ & x_1, x_2 \ge 0 \end{array}$ with the simplex algorithm, starting from the basis of the slack variables $x_3, x_4, x_5$ and using Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index). What are the optimal solution $\tilde{\boldsymbol x}$ and the optimal value $z(LP)$?
  1. $\tilde x_1 = 0,~ \tilde x_2 = \frac{9}{2},~ z(\, LP \,) = 9$
  2. $\tilde x_1 = 3,~ \tilde x_2 = \frac{11}{3},~ z(\, LP \,) = \frac{40}{3}$
  3. $\tilde x_1 = 14,~ \tilde x_2 = 0,~ z(\, LP \,) = 28$
  4. $\tilde x_1 = \frac{9}{4},~ \tilde x_2 = 0,~ z(\, LP \,) = \frac{9}{2}$
Explanation. Pivoting operations: $x_1$ enters, $x_4$ leaves; $x_2$ enters, $x_1$ leaves. The final dictionary has all reduced costs negative, hence $(0, \frac{9}{2})$ with $z(LP) = 9$ is the unique optimal solution. The other options are a vertex visited earlier, non-optimal vertices or infeasible basic solutions.

7. Optimality conditions and pivot rules (4)

Example 1 · lp-g-pivot-bland · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 2, 6\}$, $\pazocal{N} = \{3, 4, 5\}$: $\begin{array}{rcl} x_1 & = & 7 - x_3 - 3\,x_4 \\ x_2 & = & 9 - x_3 - 2\,x_4 + 3\,x_5 \\ x_6 & = & 3 - x_3 - 3\,x_5 \\ z & = & 3 + 4\,x_3 + 3\,x_4 + 3\,x_5 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). With Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index), what are the pivot column and the pivot row?
  1. pivot column $x_3$, pivot row $x_6$
  2. pivot column $x_4$, pivot row $x_1$
  3. pivot column $x_3$, pivot row $x_1$
  4. pivot column $x_3$, pivot row $x_2$
Explanation. The pivot column is the non-basic variable with the smallest index and a positive reduced cost: $x_3$ ($\bar c_{3} = 4$), not the one with the largest reduced cost. Ratio test on the rows with $\bar a_{i3} > 0$: $t_m = \min\{\frac{7}{1},~ \frac{9}{1},~ \frac{3}{1}\} = 3$, attained by $x_6$ (smallest index in case of ties).
Example 2 · lp-g-pivot-bland · level facile · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 4, 6\}$, $\pazocal{N} = \{2, 3, 5\}$: $\begin{array}{rcl} x_1 & = & 1 + 3\,x_2 + 3\,x_3 + x_5 \\ x_4 & = & 6 - x_2 + 2\,x_3 + x_5 \\ x_6 & = & 9 - 2\,x_2 + x_3 - 2\,x_5 \\ z & = & 4 + 3\,x_2 + 4\,x_3 + 5\,x_5 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). With Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index), what are the pivot column and the pivot row?
  1. pivot column $x_2$, pivot row $x_4$
  2. pivot column $x_2$, pivot row $x_6$
  3. pivot column $x_5$, pivot row $x_6$
  4. pivot column $x_2$, pivot row $x_1$
Explanation. The pivot column is the non-basic variable with the smallest index and a positive reduced cost: $x_2$ ($\bar c_{2} = 3$), not the one with the largest reduced cost. Ratio test on the rows with $\bar a_{i2} > 0$: $t_m = \min\{\frac{6}{1},~ \frac{9}{2}\} = \frac{9}{2}$, attained by $x_6$ (smallest index in case of ties).
Example 1 · lp-g-ottimi-multipli · level media · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 2, 4\}$, $\pazocal{N} = \{3, 5\}$: $\begin{array}{rcl} x_1 & = & 8 - x_3 - x_5 \\ x_2 & = & 8 + 3\,x_3 - 3\,x_5 \\ x_4 & = & 2 + 2\,x_3 + 3\,x_5 \\ z & = & 1 - x_3 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). The dictionary is optimal and the reduced cost of $x_5$ is zero. A pivoting operation is performed with column $x_5$ (pivot row from the ratio test, ties broken by the smallest index). What is obtained?
  1. $x_2$ leaves, the new solution has $x_5 = \frac{8}{3}$ and $z = 1$
  2. $x_1$ leaves, the new solution has $x_5 = 8$ and $z = 1$
  3. $x_2$ leaves, the new solution has $x_5 = 8$ and $z = 1$
  4. $x_2$ leaves, the new solution has $x_5 = \frac{8}{3}$ and $z = \frac{11}{3}$
Explanation. Ratio test: $t_m = \min\{\frac{8}{1},~ \frac{8}{3}\} = \frac{8}{3}$, attained by $x_2$. The value becomes $\bar z + t_m\,\bar c_{5} = \bar z = 1$ since $\bar c_{5} = 0$: another optimal basic feasible solution is obtained, hence the optimum is not unique.
Example 2 · lp-g-ottimi-multipli · level media · notes
In the simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dictionary with $\pazocal{B} = \{1, 3, 5\}$, $\pazocal{N} = \{2, 4\}$: $\begin{array}{rcl} x_1 & = & 8 - 2\,x_2 - x_4 \\ x_3 & = & 9 - 2\,x_2 - x_4 \\ x_5 & = & 8 - 2\,x_2 + 3\,x_4 \\ z & = & 5 - 4\,x_2 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). The dictionary is optimal and the reduced cost of $x_4$ is zero. A pivoting operation is performed with column $x_4$ (pivot row from the ratio test, ties broken by the smallest index). What is obtained?
  1. $x_3$ leaves, the new solution has $x_4 = 9$ and $z = 14$
  2. $x_3$ leaves, the new solution has $x_4 = 9$ and $z = 5$
  3. $x_1$ leaves, the new solution has $x_4 = 8$ and $z = 13$
  4. $x_1$ leaves, the new solution has $x_4 = 8$ and $z = 5$
Explanation. Ratio test: $t_m = \min\{\frac{8}{1},~ \frac{9}{1}\} = 8$, attained by $x_1$. The value becomes $\bar z + t_m\,\bar c_{4} = \bar z = 5$ since $\bar c_{4} = 0$: another optimal basic feasible solution is obtained, hence the optimum is not unique.
Example 1 · lp-g-bland-colonna · level facile · notes
In the simplex algorithm for a problem in standard maximization form, the current dictionary has nonbasic variables $x_1, x_2, x_3, x_5$ with reduced costs $\bar c_{1} = 1$, $\bar c_{2} = 1$, $\bar c_{3} = 4$, $\bar c_{5} = -5$. With Bland's rule (pivot column: the nonbasic variable of smallest index with $\bar c_j > 0$), which variable enters the basis?
  1. $x_3$
  2. $x_5$
  3. $x_1$
  4. None: the dictionary is optimal
Explanation. Candidates: the variables with $\bar c_j > 0$; take the smallest index, $x_1$, not the one with the largest reduced cost.
Example 2 · lp-g-bland-colonna · level facile · notes
In the simplex algorithm for a problem in standard maximization form, the current dictionary has nonbasic variables $x_1, x_4, x_5, x_7$ with reduced costs $\bar c_{1} = 3$, $\bar c_{4} = 2$, $\bar c_{5} = 5$, $\bar c_{7} = 3$. With Bland's rule (pivot column: the nonbasic variable of smallest index with $\bar c_j > 0$), which variable enters the basis?
  1. $x_1$
  2. $x_5$
  3. $x_7$
  4. None: the dictionary is optimal
Explanation. Candidates: the variables with $\bar c_j > 0$; take the smallest index, $x_1$, not the one with the largest reduced cost.
Example 1 · lp-g-pivot-completo · level media · notes
In the simplex algorithm for a problem in standard maximization form, the current feasible dictionary is $\begin{array}{rcl} x_3 & = & 18 - 5\,x_1 \\ x_4 & = & 4 - x_1 - x_2 \\ z & = & 0 + x_1 + 3\,x_2 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$). With Bland's rule (column: smallest index with $\bar c_j > 0$; row: minimum ratio $\bar b_i / \bar a_{ip}$ with $\bar a_{ip} > 0$, ties by smallest index), which pivot is performed and which value $\bar z$ is obtained?
  1. $x_1$ enters, $x_3$ leaves, new $\bar z = 1$
  2. $x_1$ enters, $x_3$ leaves, new $\bar z = -\frac{18}{5}$
  3. $x_1$ enters, $x_3$ leaves, new $\bar z = \frac{18}{5}$
  4. $x_1$ enters, $x_4$ leaves, new $\bar z = \frac{18}{5}$
Explanation. $x_1$ enters; the ratio test gives $t_m = \frac{18}{5}$ on the row of $x_3$; $\bar z$ becomes $0 + 1 \cdot \frac{18}{5} = \frac{18}{5}$.
Example 2 · lp-g-pivot-completo · level media · notes
In the simplex algorithm for a problem in standard maximization form, the current feasible dictionary is $\begin{array}{rcl} x_3 & = & 7 - x_1 - x_2 \\ x_4 & = & 19 - 5\,x_1 \\ z & = & 0 + 5\,x_1 + 6\,x_2 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$). With Bland's rule (column: smallest index with $\bar c_j > 0$; row: minimum ratio $\bar b_i / \bar a_{ip}$ with $\bar a_{ip} > 0$, ties by smallest index), which pivot is performed and which value $\bar z$ is obtained?
  1. $x_1$ enters, $x_4$ leaves, new $\bar z = 5$
  2. $x_1$ enters, $x_4$ leaves, new $\bar z = 19$
  3. $x_1$ enters, $x_4$ leaves, new $\bar z = -19$
  4. $x_1$ enters, $x_3$ leaves, new $\bar z = 19$
Explanation. $x_1$ enters; the ratio test gives $t_m = \frac{19}{5}$ on the row of $x_4$; $\bar z$ becomes $0 + 5 \cdot \frac{19}{5} = 19$.

8. Phase 0 of the simplex algorithm (3)

Example 1 · lp-g-fase0-pivot-speciale · level facile · notes
Consider the LP problem $\begin{array}{rl} \max & 5\,x_1 + x_2 \\ \text{subject to} & -x_1 - 3\,x_2 \le -6 \\ & -3\,x_1 - x_2 \le -8 \\ & x_1 - 2\,x_2 \le 6 \\ & x_1, x_2 \ge 0 \end{array}$ and its simplex auxiliary problem $\max\{-x_0 : \sum_j a_{ij} x_j - x_0 \le b_i~ \forall i,~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, in standard form with the slack variables $x_3, x_4, x_5$ in the basis (infeasible initial dictionary). What does the special pivoting operation of Phase $0$ produce?
  1. $x_4$ leaves the basis and $x_0 = 8$
  2. $x_4$ leaves the basis and $x_0 = -8$
  3. no variable can leave the basis: the ratio test has no candidate
  4. $x_3$ leaves the basis and $x_0 = 6$
Explanation. In the special pivoting operation $x_0$ enters the basis and the basic variable with the most negative right-hand side leaves: $r \in \argmin\{b_i\}$, i.e., $x_4$ with $b_2 = -8$. After the pivot $x_0 = -b_2 = 8$ and $x_i = b_i - b_2 \ge 0$ for the other basic variables.
Example 2 · lp-g-fase0-pivot-speciale · level facile · notes
Consider the LP problem $\begin{array}{rl} \max & 5\,x_1 + 4\,x_2 \\ \text{subject to} & 2\,x_1 + 4\,x_2 \le -8 \\ & 3\,x_1 + 2\,x_2 \le 3 \\ & 3\,x_1 + 3\,x_2 \le -4 \\ & x_1, x_2 \ge 0 \end{array}$ and its simplex auxiliary problem $\max\{-x_0 : \sum_j a_{ij} x_j - x_0 \le b_i~ \forall i,~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$, in standard form with the slack variables $x_3, x_4, x_5$ in the basis (infeasible initial dictionary). What does the special pivoting operation of Phase $0$ produce?
  1. no variable can leave the basis: the ratio test has no candidate
  2. $x_5$ leaves the basis and $x_0 = 4$
  3. $x_3$ leaves the basis and $x_0 = -8$
  4. $x_3$ leaves the basis and $x_0 = 8$
Explanation. In the special pivoting operation $x_0$ enters the basis and the basic variable with the most negative right-hand side leaves: $r \in \argmin\{b_i\}$, i.e., $x_3$ with $b_1 = -8$. After the pivot $x_0 = -b_1 = 8$ and $x_i = b_i - b_1 \ge 0$ for the other basic variables.
Example 1 · lp-g-fase0-esito · level complessa · notes
Apply to the LP problem $\begin{array}{rl} \max & -x_1 + x_2 \\ \text{subject to} & x_1 \le 4 \\ & -x_1 - 3\,x_2 \le -2 \\ & 2\,x_1 + x_2 \le 8 \\ & x_1, x_2 \ge 0 \end{array}$ Phase $0$, i.e., the simplex auxiliary problem $\max\{-x_0 : \sum_j a_{ij} x_j - x_0 \le b_i~ \forall i,~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$ solved by the simplex algorithm after the special pivoting operation, and, if needed, the simplex algorithm; both use Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index). Which statement is correct?
  1. The LP problem admits an optimal solution with $z(\, LP \,) = 8$.
  2. The LP problem admits an optimal solution with $z(\, LP \,) = -2$.
  3. The LP problem is unbounded.
  4. The LP problem is infeasible: the optimal value of the auxiliary problem is $-2$.
Explanation. Phase $0$ ends with optimal value $0$ (the problem is feasible) and gives the initial basis; after substituting the original objective function, the simplex algorithm ends with $z(LP) = 8$ at the vertex $(0, 8)$.
Example 2 · lp-g-fase0-esito · level complessa · notes
Apply to the LP problem $\begin{array}{rl} \max & 4\,x_1 - 2\,x_2 \\ \text{subject to} & 3\,x_1 + 3\,x_2 \le 5 \\ & x_1 - 2\,x_2 \le 4 \\ & -3\,x_2 \le -4 \\ & x_1, x_2 \ge 0 \end{array}$ Phase $0$, i.e., the simplex auxiliary problem $\max\{-x_0 : \sum_j a_{ij} x_j - x_0 \le b_i~ \forall i,~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$ solved by the simplex algorithm after the special pivoting operation, and, if needed, the simplex algorithm; both use Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index). Which statement is correct?
  1. The LP problem admits an optimal solution with $z(\, LP \,) = \frac{20}{3}$.
  2. The LP problem is unbounded.
  3. The LP problem admits an optimal solution with $z(\, LP \,) = -\frac{4}{3}$.
  4. The LP problem is infeasible: the optimal value of the auxiliary problem is $-4$.
Explanation. Phase $0$ ends with optimal value $0$ (the problem is feasible) and gives the initial basis; after substituting the original objective function, the simplex algorithm ends with $z(LP) = -\frac{4}{3}$ at the vertex $(\frac{1}{3}, \frac{4}{3})$.
Example 1 · lp-g-fase0-x0 · level facile · notes
In Phase $0$ for a problem in canonical maximization form with $n = 2$ variables and right-hand sides ${\boldsymbol b} = $ $(1, -7, -1)$, the auxiliary problem $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$ has the slacks $x_3, \dots, x_{5}$ basic. In the special pivot $x_0$ enters: which value does $x_0$ take and which slack leaves?
  1. $x_0 = 1$, $x_3$ leaves
  2. $x_0 = 7$, $x_4$ leaves
  3. $x_0 = 7$, $x_5$ leaves
  4. $x_0 = 1$, $x_5$ leaves
Explanation. The slack with the most negative right-hand side leaves, $b_{2} = -7$, and $x_0 = 7$: so all slacks become nonnegative.
Example 2 · lp-g-fase0-x0 · level facile · notes
In Phase $0$ for a problem in canonical maximization form with $n = 2$ variables and right-hand sides ${\boldsymbol b} = $ $(6, -4, -8)$, the auxiliary problem $\max\{-x_0 : {\boldsymbol A}{\boldsymbol x} - x_0 {\boldsymbol 1} \le {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0},~ x_0 \ge 0\}$ has the slacks $x_3, \dots, x_{5}$ basic. In the special pivot $x_0$ enters: which value does $x_0$ take and which slack leaves?
  1. $x_0 = 8$, $x_5$ leaves
  2. $x_0 = 6$, $x_3$ leaves
  3. $x_0 = 8$, $x_4$ leaves
  4. $x_0 = 4$, $x_4$ leaves
Explanation. The slack with the most negative right-hand side leaves, $b_{3} = -8$, and $x_0 = 8$: so all slacks become nonnegative.

9. Duality theory (6)

Example 1 · lp-g-scrivere-duale · level facile · notes
What is the dual problem of the LP problem in canonical maximization form $\begin{array}{rl} \max & 5\,x_1 + 5\,x_2 \\ \text{subject to} & 2\,x_1 + 2\,x_2 \le 2 \\ & 4\,x_1 + 4\,x_2 \le 10 \\ & x_1, x_2 \ge 0 \end{array}$, with the dual variable $\pi_i$ associated with constraint $i$?
  1. $\begin{array}{rl} \min & 2\,\pi_1 + 10\,\pi_2 \\ \text{subject to} & 2\,\pi_1 + 4\,\pi_2 \le 5 \\ & 2\,\pi_1 + 4\,\pi_2 \le 5 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
  2. $\begin{array}{rl} \min & 2\,\pi_1 + 10\,\pi_2 \\ \text{subject to} & 2\,\pi_1 + 2\,\pi_2 \ge 5 \\ & 4\,\pi_1 + 4\,\pi_2 \ge 5 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
  3. $\begin{array}{rl} \min & 2\,\pi_1 + 10\,\pi_2 \\ \text{subject to} & 2\,\pi_1 + 4\,\pi_2 \ge 5 \\ & 2\,\pi_1 + 4\,\pi_2 \ge 5 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
  4. $\begin{array}{rl} \min & 5\,\pi_1 + 5\,\pi_2 \\ \text{subject to} & 2\,\pi_1 + 4\,\pi_2 \ge 2 \\ & 2\,\pi_1 + 4\,\pi_2 \ge 10 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
Explanation. The dual is $\min {\boldsymbol b}'{\boldsymbol \pi}$ subject to ${\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c}$, ${\boldsymbol \pi} \ge {\boldsymbol 0}$: the right-hand sides become the costs, and dual constraint $j$ uses column $j$ of ${\boldsymbol A}$ (not the row) with direction $\ge$.
Example 2 · lp-g-scrivere-duale · level facile · notes
What is the dual problem of the LP problem in canonical maximization form $\begin{array}{rl} \max & 7\,x_1 + 6\,x_2 \\ \text{subject to} & x_1 + 4\,x_2 \le 5 \\ & -2\,x_2 \le 11 \\ & x_1, x_2 \ge 0 \end{array}$, with the dual variable $\pi_i$ associated with constraint $i$?
  1. $\begin{array}{rl} \min & 5\,\pi_1 + 11\,\pi_2 \\ \text{subject to} & \pi_1 \ge 7 \\ & 4\,\pi_1 - 2\,\pi_2 \ge 6 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
  2. $\begin{array}{rl} \min & 5\,\pi_1 + 11\,\pi_2 \\ \text{subject to} & \pi_1 + 4\,\pi_2 \ge 7 \\ & -2\,\pi_2 \ge 6 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
  3. $\begin{array}{rl} \min & 5\,\pi_1 + 11\,\pi_2 \\ \text{subject to} & \pi_1 \le 7 \\ & 4\,\pi_1 - 2\,\pi_2 \le 6 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
  4. $\begin{array}{rl} \min & 7\,\pi_1 + 6\,\pi_2 \\ \text{subject to} & \pi_1 \ge 5 \\ & 4\,\pi_1 - 2\,\pi_2 \ge 11 \\ & \pi_1, \pi_2 \ge 0 \end{array}$
Explanation. The dual is $\min {\boldsymbol b}'{\boldsymbol \pi}$ subject to ${\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c}$, ${\boldsymbol \pi} \ge {\boldsymbol 0}$: the right-hand sides become the costs, and dual constraint $j$ uses column $j$ of ${\boldsymbol A}$ (not the row) with direction $\ge$.
Example 1 · lp-g-duale-da-dizionario · level facile · notes
The LP problem in canonical maximization form $\begin{array}{rl} \max & 6\,x_1 + 4\,x_2 \\ \text{subject to} & 3\,x_1 + x_2 \le 20 \\ & x_1 + 2\,x_2 \le 5 \\ & x_1 + 3\,x_2 \le 16 \\ & x_1, x_2 \ge 0 \end{array}$, with slack variables $x_3, x_4, x_5$, has the optimal dictionary $\begin{array}{rcl} x_1 & = & 5 - 2\,x_2 - x_4 \\ x_3 & = & 5 + 5\,x_2 + 3\,x_4 \\ x_5 & = & 11 - x_2 + x_4 \\ z & = & 30 - 8\,x_2 - 6\,x_4 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). What is the optimal solution of the dual problem ($\tilde\pi_i$ is the dual variable associated with constraint $i$)?
  1. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (5, 0, 11)$
  2. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, -6, 0)$
  3. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, 8, 0)$
  4. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, 6, 0)$
Explanation. As in the proof of Strong Duality, $\tilde\pi_i = -\bar c_{2+i}$: the reduced cost of the slack variable $x_{2+i}$ with the opposite sign, and $0$ if the slack variable is basic. Check: $\sum_i b_i \tilde\pi_i = 20 \cdot 0 + 5 \cdot 6 + 16 \cdot 0 = 30 = z(LP)$.
Example 2 · lp-g-duale-da-dizionario · level facile · notes
The LP problem in canonical maximization form $\begin{array}{rl} \max & 5\,x_1 + x_2 \\ \text{subject to} & 5\,x_1 + 4\,x_2 \le 6 \\ & 5\,x_1 + 5\,x_2 \le 15 \\ & 4\,x_1 + x_2 \le 14 \\ & x_1, x_2 \ge 0 \end{array}$, with slack variables $x_3, x_4, x_5$, has the optimal dictionary $\begin{array}{rcl} x_1 & = & \frac{6}{5} - \frac{4}{5}\,x_2 - \frac{1}{5}\,x_3 \\ x_4 & = & 9 - x_2 + x_3 \\ x_5 & = & \frac{46}{5} + \frac{11}{5}\,x_2 + \frac{4}{5}\,x_3 \\ z & = & 6 - 3\,x_2 - x_3 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). What is the optimal solution of the dual problem ($\tilde\pi_i$ is the dual variable associated with constraint $i$)?
  1. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (-1, 0, 0)$
  2. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, 9, \frac{46}{5})$
  3. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, 3, 1)$
  4. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (1, 0, 0)$
Explanation. As in the proof of Strong Duality, $\tilde\pi_i = -\bar c_{2+i}$: the reduced cost of the slack variable $x_{2+i}$ with the opposite sign, and $0$ if the slack variable is basic. Check: $\sum_i b_i \tilde\pi_i = 6 \cdot 1 + 15 \cdot 0 + 14 \cdot 0 = 6 = z(LP)$.
Example 1 · lp-g-scarti-complementari · level media · notes
The solution $\tilde x_1 = 3,~ \tilde x_2 = 3$ is optimal for the LP problem $\begin{array}{rl} \max & 3\,x_1 + 12\,x_2 \\ \text{subject to} & 3\,x_1 + 4\,x_2 \le 21 \\ & 4\,x_2 \le 12 \\ & 3\,x_1 + 3\,x_2 \le 22 \\ & x_1, x_2 \ge 0 \end{array}$. Using Complementary Slackness, what is the optimal solution of the dual problem ($\tilde\pi_i$ is the dual variable associated with constraint $i$)?
  1. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (2, 1, 0)$
  2. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (-3, 3, 0)$
  3. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (9, 0, -8)$
  4. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (1, 2, 0)$
Explanation. Constraint 3 is not active at $\tilde{\boldsymbol x}$, hence $\tilde\pi_3 = 0$. Since $\tilde x_1, \tilde x_2 > 0$, both dual constraints are active: $3\,\pi_1 = 3$ and $4\,\pi_1 + 4\,\pi_2 = 12$ (columns of ${\boldsymbol A}$), which give $\tilde\pi_1 = 1$, $\tilde\pi_2 = 2$.
Example 2 · lp-g-scarti-complementari · level media · notes
The solution $\tilde x_1 = 2,~ \tilde x_2 = 4$ is optimal for the LP problem $\begin{array}{rl} \max & 8\,x_1 + 16\,x_2 \\ \text{subject to} & x_1 \le 2 \\ & x_1 + 4\,x_2 \le 18 \\ & 3\,x_1 + 3\,x_2 \le 21 \\ & x_1, x_2 \ge 0 \end{array}$. Using Complementary Slackness, what is the optimal solution of the dual problem ($\tilde\pi_i$ is the dual variable associated with constraint $i$)?
  1. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (-4, -4, 0)$
  2. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (8, 2, 0)$
  3. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (-8, 0, \frac{16}{3})$
  4. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (4, 4, 0)$
Explanation. Constraint 3 is not active at $\tilde{\boldsymbol x}$, hence $\tilde\pi_3 = 0$. Since $\tilde x_1, \tilde x_2 > 0$, both dual constraints are active: $\pi_1 + \pi_2 = 8$ and $4\,\pi_2 = 16$ (columns of ${\boldsymbol A}$), which give $\tilde\pi_1 = 4$, $\tilde\pi_2 = 4$.
Example 1 · lp-g-coppia-primale-duale · level complessa · notes
Solve the LP problem $\begin{array}{rl} \max & 6\,x_1 + 6\,x_2 \\ \text{subject to} & x_1 - x_2 \le 7 \\ & 2\,x_1 + 4\,x_2 \le 14 \\ & 2\,x_1 \le 4 \\ & x_1, x_2 \ge 0 \end{array}$ with the simplex algorithm, starting from the basis of the slack variables $x_3, x_4, x_5$ and using Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index). What is the optimal solution of the dual problem ($\tilde\pi_i$ is the dual variable associated with constraint $i$)?
  1. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, 0, 3)$
  2. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, \frac{3}{2}, \frac{3}{2})$
  3. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (\frac{15}{2}, 0, 0)$
  4. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, -\frac{3}{2}, -\frac{3}{2})$
Explanation. Pivoting operations: $x_1$ enters, $x_5$ leaves; $x_2$ enters, $x_4$ leaves. In the optimal dictionary $\tilde\pi_i = -\bar c_{2+i}$ (reduced cost of the slack variable $x_{2+i}$ with the opposite sign, $0$ if basic). Check with Strong Duality: $7 \cdot 0 + 14 \cdot \frac{3}{2} + 4 \cdot \frac{3}{2} = 27 = z(LP)$.
Example 2 · lp-g-coppia-primale-duale · level complessa · notes
Solve the LP problem $\begin{array}{rl} \max & 2\,x_1 + 2\,x_2 \\ \text{subject to} & 5\,x_1 \le 15 \\ & 4\,x_1 + 2\,x_2 \le 9 \\ & x_1 + 3\,x_2 \le 14 \\ & x_1, x_2 \ge 0 \end{array}$ with the simplex algorithm, starting from the basis of the slack variables $x_3, x_4, x_5$ and using Bland's rule (pivot column: the non-basic variable with the smallest index and $\bar c_j > 0$; pivot row: ratio test $\min\{\bar b_i / \bar a_{ip} : \bar a_{ip} > 0\}$, ties broken by the smallest index). What is the optimal solution of the dual problem ($\tilde\pi_i$ is the dual variable associated with constraint $i$)?
  1. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, 1, 0)$
  2. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (15, 0, \frac{1}{2})$
  3. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, -1, 0)$
  4. $(\tilde\pi_1, \tilde\pi_2, \tilde\pi_3) = (0, \frac{1}{2}, 0)$
Explanation. Pivoting operations: $x_1$ enters, $x_4$ leaves; $x_2$ enters, $x_1$ leaves. In the optimal dictionary $\tilde\pi_i = -\bar c_{2+i}$ (reduced cost of the slack variable $x_{2+i}$ with the opposite sign, $0$ if basic). Check with Strong Duality: $15 \cdot 0 + 9 \cdot 1 + 14 \cdot 0 = 9 = z(LP)$.
Example 1 · lp-g-duale-bound · level facile · notes
For the LP problem $\begin{array}{rl} \max & 4\,x_1 + 4\,x_2 \\ \text{subject to} & 3\,x_1 + 3\,x_2 \le 5 \\ & 4\,x_1 + 5\,x_2 \le 17 \\ & x_1, x_2 \ge 0 \end{array}$ whose dual is $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$, the solution $\bar{\boldsymbol \pi} = (4, 0)$ is dual feasible. What follows for the optimal value $z(LP)$?
  1. $z(LP) \ge 20$
  2. $z(LP) \le 16$
  3. $z(LP) \le 20$
  4. $z(LP) = 20$
Explanation. By weak duality ${\boldsymbol c}'{\boldsymbol x} \le {\boldsymbol b}'\bar{\boldsymbol \pi} = 20$ for every feasible ${\boldsymbol x}$; equality is not guaranteed.
Example 2 · lp-g-duale-bound · level facile · notes
For the LP problem $\begin{array}{rl} \max & 5\,x_1 + 4\,x_2 \\ \text{subject to} & 2\,x_1 + 5\,x_2 \le 10 \\ & 2\,x_1 + x_2 \le 18 \\ & x_1, x_2 \ge 0 \end{array}$ whose dual is $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$, the solution $\bar{\boldsymbol \pi} = (4, 3)$ is dual feasible. What follows for the optimal value $z(LP)$?
  1. $z(LP) \le 94$
  2. $z(LP) \ge 94$
  3. $z(LP) = 94$
  4. $z(LP) \le 32$
Explanation. By weak duality ${\boldsymbol c}'{\boldsymbol x} \le {\boldsymbol b}'\bar{\boldsymbol \pi} = 94$ for every feasible ${\boldsymbol x}$; equality is not guaranteed.
Example 1 · lp-g-cs-duale · level complessa · notes
The LP problem $\begin{array}{rl} \max & 3\,x_1 + 3\,x_2 \\ \text{subject to} & 3\,x_1 + x_2 \le 14 \\ & x_2 \le 5 \\ & x_1, x_2 \ge 0 \end{array}$ has optimal solution $\tilde{\boldsymbol x} = (3, 5)$, with both components positive. Using complementary slackness ($\tilde x_j > 0 \Rightarrow$ dual constraint $j$ active), which optimal solution does the dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$ have, and with which value?
  1. $\tilde{\boldsymbol \pi} = (2, 1)$, $z = 33$
  2. $\tilde{\boldsymbol \pi} = (1, 2)$, $z = 24$
  3. $\tilde{\boldsymbol \pi} = (1, 2)$, $z = 25$
  4. $\tilde{\boldsymbol \pi} = (-1, -2)$, $z = 24$
Explanation. Both dual constraints are active: solve ${\boldsymbol A}'{\boldsymbol \pi} = {\boldsymbol c}$, giving $\tilde{\boldsymbol \pi} = (1, 2)$; by strong duality ${\boldsymbol b}'\tilde{\boldsymbol \pi} = 24 = {\boldsymbol c}'\tilde{\boldsymbol x}$.
Example 2 · lp-g-cs-duale · level complessa · notes
The LP problem $\begin{array}{rl} \max & 2\,x_1 + 5\,x_2 \\ \text{subject to} & x_1 + 2\,x_2 \le 6 \\ & x_1 + 3\,x_2 \le 8 \\ & x_1, x_2 \ge 0 \end{array}$ has optimal solution $\tilde{\boldsymbol x} = (2, 2)$, with both components positive. Using complementary slackness ($\tilde x_j > 0 \Rightarrow$ dual constraint $j$ active), which optimal solution does the dual $\min\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \ge {\boldsymbol c},~ {\boldsymbol \pi} \ge {\boldsymbol 0}\}$ have, and with which value?
  1. $\tilde{\boldsymbol \pi} = (-1, -1)$, $z = 14$
  2. $\tilde{\boldsymbol \pi} = (1, 1)$, $z = 14$
  3. $\tilde{\boldsymbol \pi} = (1, 1)$, $z = 15$
  4. $\tilde{\boldsymbol \pi} = (2, 5)$, $z = 14$
Explanation. Both dual constraints are active: solve ${\boldsymbol A}'{\boldsymbol \pi} = {\boldsymbol c}$, giving $\tilde{\boldsymbol \pi} = (1, 1)$; by strong duality ${\boldsymbol b}'\tilde{\boldsymbol \pi} = 14 = {\boldsymbol c}'\tilde{\boldsymbol x}$.

10. Dual Simplex algorithm (5)

Example 1 · lp-g-pivot-duale · level media · notes
In the dual simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dual feasible dictionary ($\bar c_j \le 0$ for every $j$) with $\pazocal{B} = \{1, 2, 5\}$, $\pazocal{N} = \{3, 4, 6\}$: $\begin{array}{rcl} x_1 & = & -4 - x_3 - 3\,x_4 + 3\,x_6 \\ x_2 & = & -3 + 2\,x_3 + 2\,x_4 + 3\,x_6 \\ x_5 & = & -7 + x_3 + 3\,x_6 \\ z & = & -5 - 3\,x_3 - 5\,x_4 - x_6 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). A dual pivoting operation is performed with Bland's rule of the dual simplex algorithm (pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, ties broken by the smallest index). What are the pivot row, the pivot column and the new value of $\bar z$?
  1. pivot row $x_1$, pivot column $x_6$, new $\bar z = -\frac{11}{3}$
  2. pivot row $x_1$, pivot column $x_4$, new $\bar z = -\frac{35}{3}$
  3. pivot row $x_5$, pivot column $x_6$, new $\bar z = -\frac{22}{3}$
  4. pivot row $x_1$, pivot column $x_6$, new $\bar z = -\frac{19}{3}$
Explanation. The pivot row is the basic variable with the smallest index and a negative value: $x_1$ ($\bar b_{1} = -4$). On the columns with $\bar a_{1j} < 0$: $s_m = \min\{\frac{-1}{-3}\} = \frac{1}{3}$, attained by $x_6$. The new value is $\bar z + s_m \bar b_{1} = -5 + \frac{1}{3} \cdot (-4) = -\frac{19}{3}$, which does not increase.
Example 2 · lp-g-pivot-duale · level media · notes
In the dual simplex algorithm for an LP problem in standard maximization form (all variables $x_j \ge 0$), consider the dual feasible dictionary ($\bar c_j \le 0$ for every $j$) with $\pazocal{B} = \{1, 5, 6\}$, $\pazocal{N} = \{2, 3, 4\}$: $\begin{array}{rcl} x_1 & = & -7 + 2\,x_2 - 3\,x_3 + 3\,x_4 \\ x_5 & = & -3 - 2\,x_3 - 2\,x_4 \\ x_6 & = & 2 + 3\,x_2 + 2\,x_3 \\ z & = & -1 - 3\,x_2 - 4\,x_3 - 3\,x_4 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). A dual pivoting operation is performed with Bland's rule of the dual simplex algorithm (pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, ties broken by the smallest index). What are the pivot row, the pivot column and the new value of $\bar z$?
  1. pivot row $x_1$, pivot column $x_4$, new $\bar z = -8$
  2. pivot row $x_1$, pivot column $x_4$, new $\bar z = 6$
  3. pivot row $x_1$, pivot column $x_3$, new $\bar z = -\frac{31}{3}$
  4. pivot row $x_1$, pivot column $x_2$, new $\bar z = -\frac{23}{2}$
Explanation. The pivot row is the basic variable with the smallest index and a negative value: $x_1$ ($\bar b_{1} = -7$). On the columns with $\bar a_{1j} < 0$: $s_m = \min\{\frac{-3}{-2},~ \frac{-3}{-3}\} = 1$, attained by $x_4$. The new value is $\bar z + s_m \bar b_{1} = -1 + 1 \cdot (-7) = -8$, which does not increase.
Example 1 · lp-g-simplesso-duale-completo · level complessa · notes
Solve the LP problem $\begin{array}{rl} \max & -8\,x_1 - x_2 \\ \text{subject to} & 4\,x_1 - 2\,x_2 \le 5 \\ & -x_1 - 3\,x_2 \le 7 \\ & -3\,x_1 + x_2 \le -4 \\ & x_1, x_2 \ge 0 \end{array}$ with the dual simplex algorithm, starting from the basis of the slack variables $x_3, x_4, x_5$ (dual feasible since ${\boldsymbol c} \le {\boldsymbol 0}$) and using Bland's rule of the dual simplex algorithm (pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, ties broken by the smallest index). What are the optimal solution $\tilde{\boldsymbol x}$ and the optimal value $z(LP)$?
  1. $\tilde x_1 = \frac{5}{4},~ \tilde x_2 = 0,~ z(\, LP \,) = -10$
  2. $\tilde x_1 = 0,~ \tilde x_2 = 0,~ z(\, LP \,) = 0$
  3. $\tilde x_1 = \frac{3}{2},~ \tilde x_2 = \frac{1}{2},~ z(\, LP \,) = -\frac{25}{2}$
  4. $\tilde x_1 = \frac{4}{3},~ \tilde x_2 = 0,~ z(\, LP \,) = -\frac{32}{3}$
Explanation. Dual pivoting operations (row first, then column): $x_5$ leaves, $x_1$ enters; $x_3$ leaves, $x_2$ enters. The final dictionary has $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and negative reduced costs: $(\frac{3}{2}, \frac{1}{2})$ with $z(LP) = -\frac{25}{2}$. The intermediate solutions are infeasible and have a larger value.
Example 2 · lp-g-simplesso-duale-completo · level complessa · notes
Solve the LP problem $\begin{array}{rl} \max & -6\,x_1 - 7\,x_2 \\ \text{subject to} & -x_1 \le -3 \\ & -x_1 + x_2 \le 5 \\ & -x_1 - 4\,x_2 \le -11 \\ & x_1, x_2 \ge 0 \end{array}$ with the dual simplex algorithm, starting from the basis of the slack variables $x_3, x_4, x_5$ (dual feasible since ${\boldsymbol c} \le {\boldsymbol 0}$) and using Bland's rule of the dual simplex algorithm (pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, ties broken by the smallest index). What are the optimal solution $\tilde{\boldsymbol x}$ and the optimal value $z(LP)$?
  1. $\tilde x_1 = 0,~ \tilde x_2 = 0,~ z(\, LP \,) = 0$
  2. $\tilde x_1 = 0,~ \tilde x_2 = \frac{11}{4},~ z(\, LP \,) = -\frac{77}{4}$
  3. $\tilde x_1 = 3,~ \tilde x_2 = 0,~ z(\, LP \,) = -18$
  4. $\tilde x_1 = 3,~ \tilde x_2 = 2,~ z(\, LP \,) = -32$
Explanation. Dual pivoting operations (row first, then column): $x_3$ leaves, $x_1$ enters; $x_5$ leaves, $x_2$ enters. The final dictionary has $\bar{\boldsymbol b} \ge {\boldsymbol 0}$ and negative reduced costs: $(3, 2)$ with $z(LP) = -32$. The intermediate solutions are infeasible and have a larger value.
Example 1 · lp-g-duale-riga · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_j \bar a_{ij} x_j$, a dual feasible basis ($\bar c_j \le 0$) and Bland's rule (row: smallest index with $\bar b_i < 0$; column: minimum ratio $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$, ties by smallest index), the basic variables $x_3, x_4, x_5$ have values $\bar b_{3} = -2$, $\bar b_{4} = 0$, $\bar b_{5} = -5$. Which variable leaves the basis?
  1. $x_3$
  2. $x_4$
  3. None: the basis is optimal
  4. $x_5$
Explanation. Candidates are the variables with $\bar b_i < 0$; the one with smallest index leaves, $x_3$, not the most negative.
Example 2 · lp-g-duale-riga · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_j \bar a_{ij} x_j$, a dual feasible basis ($\bar c_j \le 0$) and Bland's rule (row: smallest index with $\bar b_i < 0$; column: minimum ratio $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$, ties by smallest index), the basic variables $x_5, x_6, x_7$ have values $\bar b_{5} = -3$, $\bar b_{6} = -5$, $\bar b_{7} = 1$. Which variable leaves the basis?
  1. $x_7$
  2. $x_6$
  3. $x_5$
  4. None: the basis is optimal
Explanation. Candidates are the variables with $\bar b_i < 0$; the one with smallest index leaves, $x_5$, not the most negative.
Example 1 · lp-g-duale-colonna · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_j \bar a_{ij} x_j$, a dual feasible basis ($\bar c_j \le 0$) and Bland's rule (row: smallest index with $\bar b_i < 0$; column: minimum ratio $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$, ties by smallest index), the pivot row $x_r$ has, for the nonbasic variables: $\bar a_{r1} = -4$, $\bar c_{1} = -4$; $\bar a_{r3} = 1$, $\bar c_{3} = -4$; $\bar a_{r5} = 3$, $\bar c_{5} = -2$; $\bar a_{r7} = -3$, $\bar c_{7} = -3$. Which variable enters the basis?
  1. $x_1$
  2. $x_7$
  3. $x_3$
  4. None: the problem is infeasible
Explanation. Only columns with $\bar a_{rj} < 0$ count; the minimum ratio $\bar c_j / \bar a_{rj} = 1$ is attained by $x_1$.
Example 2 · lp-g-duale-colonna · level facile · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_j \bar a_{ij} x_j$, a dual feasible basis ($\bar c_j \le 0$) and Bland's rule (row: smallest index with $\bar b_i < 0$; column: minimum ratio $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$, ties by smallest index), the pivot row $x_r$ has, for the nonbasic variables: $\bar a_{r1} = 0$, $\bar c_{1} = 0$; $\bar a_{r2} = -3$, $\bar c_{2} = -1$; $\bar a_{r3} = -3$, $\bar c_{3} = 0$; $\bar a_{r5} = 0$, $\bar c_{5} = -5$. Which variable enters the basis?
  1. $x_3$
  2. $x_1$
  3. None: the problem is infeasible
  4. $x_2$
Explanation. Only columns with $\bar a_{rj} < 0$ count; the minimum ratio $\bar c_j / \bar a_{rj} = 0$ is attained by $x_3$.
Example 1 · lp-g-duale-pivot-z · level media · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_j \bar a_{ij} x_j$, a dual feasible basis ($\bar c_j \le 0$) and Bland's rule (row: smallest index with $\bar b_i < 0$; column: minimum ratio $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$, ties by smallest index), we start from the dictionary $\begin{array}{rcl} x_3 & = & -4 + 4\,x_1 + x_2 \\ x_4 & = & -8 - 3\,x_1 + x_2 \\ z & = & 0 - x_1 - 2\,x_2 \end{array}$. Which variable enters at the first dual pivot and which value $\bar z$ is obtained?
  1. $x_2$ enters, new $\bar z = -8$
  2. $x_1$ enters, new $\bar z = 1$
  3. $x_1$ enters, new $\bar z = -1$
  4. $x_2$ enters, new $\bar z = -1$
Explanation. $x_3$ leaves (smallest index with $\bar b_i < 0$); the minimum ratio $\bar c_j / \bar a_{rj} = \frac{1}{4}$ brings in $x_1$; the new value is $\bar z = -1$.
Example 2 · lp-g-duale-pivot-z · level media · notes
In the dual simplex algorithm for a problem in standard maximization form, with dictionary $x_i = \bar b_i - \sum_j \bar a_{ij} x_j$, a dual feasible basis ($\bar c_j \le 0$) and Bland's rule (row: smallest index with $\bar b_i < 0$; column: minimum ratio $\bar c_j / \bar a_{rj}$ over $j$ with $\bar a_{rj} < 0$, ties by smallest index), we start from the dictionary $\begin{array}{rcl} x_3 & = & -6 + 2\,x_1 + 4\,x_2 \\ x_4 & = & 6 + x_1 + x_2 \\ z & = & 0 - 5\,x_1 - 4\,x_2 \end{array}$. Which variable enters at the first dual pivot and which value $\bar z$ is obtained?
  1. $x_2$ enters, new $\bar z = -6$
  2. $x_1$ enters, new $\bar z = -15$
  3. $x_1$ enters, new $\bar z = -6$
  4. $x_2$ enters, new $\bar z = 6$
Explanation. $x_3$ leaves (smallest index with $\bar b_i < 0$); the minimum ratio $\bar c_j / \bar a_{rj} = 1$ brings in $x_2$; the new value is $\bar z = -6$.

11. Revised simplex algorithm (3)

Example 1 · lp-g-rivisto-pi · level facile · notes
In an LP problem in standard maximization form with ${\boldsymbol A} = \begin{pmatrix} 2 & 2 & 1 & 0 \\ 4 & 4 & 0 & 1 \end{pmatrix}$, ${\boldsymbol c}' = (1, 7, 0, 0)$ and ${\boldsymbol b} \ge {\boldsymbol 0}$, consider the basis $\pazocal{B} = \{1, 4\}$ (columns ${\boldsymbol A}_j$ of ${\boldsymbol A}$, costs ${\boldsymbol c}_{\pazocal{B}}$ of the basic variables in the order of $\pazocal{B}$). The revised simplex algorithm computes the row vector ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ by solving a linear system. What are ${\boldsymbol \pi}$ and the reduced cost $\bar c_2$ of the non-basic variable $x_2$?
  1. ${\boldsymbol \pi} = (\frac{1}{2}, -2)$, $\bar c_2 = 14$
  2. ${\boldsymbol \pi} = (\frac{1}{2}, 0)$, $\bar c_2 = -6$
  3. ${\boldsymbol \pi} = (\frac{1}{2}, 0)$, $\bar c_2 = 6$
  4. ${\boldsymbol \pi} = (\frac{1}{2}, -2)$, $\bar c_2 = -14$
Explanation. The first system is ${\boldsymbol \pi} \, {\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$ with ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 2 & 0 \\ 4 & 1 \end{pmatrix}$ and ${\boldsymbol c}'_{\pazocal{B}} = (1, 0)$ (row vector on the left, not ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol \pi}' = {\boldsymbol c}_{\pazocal{B}}$): ${\boldsymbol \pi} = (\frac{1}{2}, 0)$. Then $\bar c_2 = c_2 - {\boldsymbol \pi} {\boldsymbol A}_2 = 6$.
Example 2 · lp-g-rivisto-pi · level facile · notes
In an LP problem in standard maximization form with ${\boldsymbol A} = \begin{pmatrix} -1 & 3 & 1 & 0 \\ 2 & -2 & 0 & 1 \end{pmatrix}$, ${\boldsymbol c}' = (2, 3, 0, 0)$ and ${\boldsymbol b} \ge {\boldsymbol 0}$, consider the basis $\pazocal{B} = \{2, 3\}$ (columns ${\boldsymbol A}_j$ of ${\boldsymbol A}$, costs ${\boldsymbol c}_{\pazocal{B}}$ of the basic variables in the order of $\pazocal{B}$). The revised simplex algorithm computes the row vector ${\boldsymbol \pi} = {\boldsymbol c}'_{\pazocal{B}}{\boldsymbol A}_{\pazocal{B}}^{-1}$ by solving a linear system. What are ${\boldsymbol \pi}$ and the reduced cost $\bar c_4$ of the non-basic variable $x_4$?
  1. ${\boldsymbol \pi} = (0, -\frac{3}{2})$, $\bar c_4 = \frac{3}{2}$
  2. ${\boldsymbol \pi} = (0, -\frac{3}{2})$, $\bar c_4 = -\frac{3}{2}$
  3. ${\boldsymbol \pi} = (0, 3)$, $\bar c_4 = 3$
  4. ${\boldsymbol \pi} = (0, 3)$, $\bar c_4 = -3$
Explanation. The first system is ${\boldsymbol \pi} \, {\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}'_{\pazocal{B}}$ with ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 3 & 1 \\ -2 & 0 \end{pmatrix}$ and ${\boldsymbol c}'_{\pazocal{B}} = (3, 0)$ (row vector on the left, not ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol \pi}' = {\boldsymbol c}_{\pazocal{B}}$): ${\boldsymbol \pi} = (0, -\frac{3}{2})$. Then $\bar c_4 = c_4 - {\boldsymbol \pi} {\boldsymbol A}_4 = \frac{3}{2}$.
Example 1 · lp-g-rivisto-passo · level media · notes
In the revised simplex algorithm for the LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A} = \begin{pmatrix} 5 & 0 & 1 & 0 \\ 2 & 3 & 0 & 1 \end{pmatrix}$, ${\boldsymbol b} = (9, 8)'$, ${\boldsymbol c}' = (1, 1, 0, 0)$, the current basis is $\pazocal{B} = \{2, 3\}$ and the pivot column is $x_1$ ($\bar c_1 > 0$). One computes $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_1$ (entries in the order of $\pazocal{B}$) and the step $t_m$ of the ratio test. Which variable leaves the basis and what is $t_m$?
  1. $x_3$ leaves, $t_m = \frac{9}{5}$
  2. $x_2$ leaves, $t_m = \frac{4}{3}$
  3. $x_2$ leaves, $t_m = 4$
  4. $x_3$ leaves, $t_m = 45$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 0 & 1 \\ 3 & 0 \end{pmatrix}$ we get $\bar{\boldsymbol b} = (\frac{8}{3}, 9)'$ and ${\boldsymbol d} = (\frac{2}{3}, 5)'$ (system ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_1$, not transposed). Then $t_m = \min\{\frac{\frac{8}{3}}{\frac{2}{3}},~ \frac{9}{5}\} = \frac{9}{5}$, attained by $x_3$.
Example 2 · lp-g-rivisto-passo · level media · notes
In the revised simplex algorithm for the LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A} = \begin{pmatrix} 1 & 2 & 1 & 0 \\ 2 & 2 & 0 & 1 \end{pmatrix}$, ${\boldsymbol b} = (11, 4)'$, ${\boldsymbol c}' = (6, 8, 0, 0)$, the current basis is $\pazocal{B} = \{1, 3\}$ and the pivot column is $x_2$ ($\bar c_2 > 0$). One computes $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and ${\boldsymbol d} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_2$ (entries in the order of $\pazocal{B}$) and the step $t_m$ of the ratio test. Which variable leaves the basis and what is $t_m$?
  1. $x_3$ leaves, $t_m = 9$
  2. $x_3$ leaves, $t_m = 2$
  3. $x_1$ leaves, $t_m = 2$
  4. $x_1$ leaves, $t_m = 1$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 1 & 1 \\ 2 & 0 \end{pmatrix}$ we get $\bar{\boldsymbol b} = (2, 9)'$ and ${\boldsymbol d} = (1, 1)'$ (system ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_2$, not transposed). Then $t_m = \min\{\frac{2}{1},~ \frac{9}{1}\} = 2$, attained by $x_1$.
Example 1 · lp-g-rivisto-iterazione · level complessa · notes
Revised simplex (Bland's rule) for the problem in standard maximization form with ${\boldsymbol A} = \begin{pmatrix} 5 & 0 & 1 & 0 \\ 1 & 1 & 0 & 1 \end{pmatrix}$, ${\boldsymbol b} = \begin{pmatrix} 18 \\ 4 \end{pmatrix}$, ${\boldsymbol c} = (1, 3, 0, 0)$. The current basis is $\pazocal{B} = \{1, 4\}$. Compute ${\boldsymbol y}$ with ${\boldsymbol y}'{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}_{\pazocal{B}}'$, the reduced costs $\bar c_j = c_j - {\boldsymbol y}'{\boldsymbol A}_j$, the column ${\boldsymbol d}$ with ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_p$ and the ratio test. Which pivot is performed?
  1. $x_2$ enters, $x_1$ leaves, step $t_m = \frac{2}{5}$
  2. $x_3$ enters, $x_4$ leaves, step $t_m = \frac{2}{5}$
  3. $x_2$ enters, $x_4$ leaves, step $t_m = \frac{2}{5}$
  4. $x_2$ enters, $x_4$ leaves, step $t_m = \frac{4}{5}$
Explanation. With this basis the first nonbasic variable with $\bar c_j > 0$ is $x_2$; the minimum ratio $\bar b_i / d_i$ is $\frac{2}{5}$ on the row of $x_4$; after the pivot $\bar z = \frac{24}{5}$.
Example 2 · lp-g-rivisto-iterazione · level complessa · notes
Revised simplex (Bland's rule) for the problem in standard maximization form with ${\boldsymbol A} = \begin{pmatrix} 1 & 1 & 1 & 0 \\ 5 & 0 & 0 & 1 \end{pmatrix}$, ${\boldsymbol b} = \begin{pmatrix} 7 \\ 19 \end{pmatrix}$, ${\boldsymbol c} = (5, 6, 0, 0)$. The current basis is $\pazocal{B} = \{1, 3\}$. Compute ${\boldsymbol y}$ with ${\boldsymbol y}'{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol c}_{\pazocal{B}}'$, the reduced costs $\bar c_j = c_j - {\boldsymbol y}'{\boldsymbol A}_j$, the column ${\boldsymbol d}$ with ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol d} = {\boldsymbol A}_p$ and the ratio test. Which pivot is performed?
  1. $x_2$ enters, $x_1$ leaves, step $t_m = \frac{16}{5}$
  2. $x_2$ enters, $x_3$ leaves, step $t_m = \frac{16}{5}$
  3. $x_4$ enters, $x_3$ leaves, step $t_m = \frac{16}{5}$
  4. $x_2$ enters, $x_3$ leaves, step $t_m = \frac{32}{5}$
Explanation. With this basis the first nonbasic variable with $\bar c_j > 0$ is $x_2$; the minimum ratio $\bar b_i / d_i$ is $\frac{16}{5}$ on the row of $x_3$; after the pivot $\bar z = \frac{191}{5}$.

12. Revised dual simplex algorithm (2)

Example 1 · lp-g-rivisto-duale-u · level facile · notes
In an LP problem in standard maximization form with ${\boldsymbol A} = \begin{pmatrix} 2 & 2 & 1 & 0 \\ 4 & 4 & 0 & 1 \end{pmatrix}$, ${\boldsymbol c}' = (1, 7, 0, 0)$, the current basis is $\pazocal{B} = \{1, 4\}$ and the pivot row of the revised dual simplex algorithm is $x_1$. Solving the second system ${\boldsymbol u} \, {\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_{1}$ (${\boldsymbol e}_{1}$: unit vector of the position of $x_1$ in $\pazocal{B}$), what are ${\boldsymbol u}$ and the coefficient $\bar a_{13}$ of the row of $x_1$ in $\bar{\boldsymbol A} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$?
  1. ${\boldsymbol u} = (\frac{1}{2}, -2)$, $\bar a_{13} = \frac{1}{2}$
  2. ${\boldsymbol u} = (2, 0)$, $\bar a_{13} = 2$
  3. ${\boldsymbol u} = (-\frac{1}{2}, 0)$, $\bar a_{13} = -\frac{1}{2}$
  4. ${\boldsymbol u} = (\frac{1}{2}, 0)$, $\bar a_{13} = \frac{1}{2}$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 2 & 0 \\ 4 & 1 \end{pmatrix}$, the vector ${\boldsymbol u} = {\boldsymbol e}'_{1} {\boldsymbol A}_{\pazocal{B}}^{-1} = (\frac{1}{2}, 0)$ is the row of ${\boldsymbol A}_{\pazocal{B}}^{-1}$ associated with $x_1$ (not the column). Then $\bar a_{13} = {\boldsymbol u} \, {\boldsymbol A}_{3} = \frac{1}{2}$.
Example 2 · lp-g-rivisto-duale-u · level facile · notes
In an LP problem in standard maximization form with ${\boldsymbol A} = \begin{pmatrix} -1 & 3 & 1 & 0 \\ 2 & -2 & 0 & 1 \end{pmatrix}$, ${\boldsymbol c}' = (2, 3, 0, 0)$, the current basis is $\pazocal{B} = \{2, 3\}$ and the pivot row of the revised dual simplex algorithm is $x_3$. Solving the second system ${\boldsymbol u} \, {\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_{3}$ (${\boldsymbol e}_{3}$: unit vector of the position of $x_3$ in $\pazocal{B}$), what are ${\boldsymbol u}$ and the coefficient $\bar a_{31}$ of the row of $x_3$ in $\bar{\boldsymbol A} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol A}_{\pazocal{N}}$?
  1. ${\boldsymbol u} = (1, \frac{3}{2})$, $\bar a_{31} = 2$
  2. ${\boldsymbol u} = (-\frac{1}{2}, \frac{3}{2})$, $\bar a_{31} = \frac{7}{2}$
  3. ${\boldsymbol u} = (-1, -\frac{3}{2})$, $\bar a_{31} = -2$
  4. ${\boldsymbol u} = (-2, 0)$, $\bar a_{31} = 2$
Explanation. With ${\boldsymbol A}_{\pazocal{B}} = \begin{pmatrix} 3 & 1 \\ -2 & 0 \end{pmatrix}$, the vector ${\boldsymbol u} = {\boldsymbol e}'_{3} {\boldsymbol A}_{\pazocal{B}}^{-1} = (1, \frac{3}{2})$ is the row of ${\boldsymbol A}_{\pazocal{B}}^{-1}$ associated with $x_3$ (not the column). Then $\bar a_{31} = {\boldsymbol u} \, {\boldsymbol A}_{1} = 2$.
Example 1 · lp-g-rivisto-duale-passo · level media · notes
In the revised dual simplex algorithm for the LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A} = \begin{pmatrix} 2 & 2 & 1 & 0 \\ -1 & 4 & 0 & 1 \end{pmatrix}$, ${\boldsymbol b} = (10, 4)'$, ${\boldsymbol c}' = (-3, -4, 0, 0)$, the current basis $\pazocal{B} = \{1, 3\}$ is dual feasible, with reduced costs $\bar c_2 = -16$, $\bar c_4 = -3$. One uses Bland's rule of the dual simplex algorithm (pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, ties broken by the smallest index), where $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and $\bar a_{rj} = {\boldsymbol u}\,{\boldsymbol A}_j$ with ${\boldsymbol u}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_r$. What are the pivot row and the pivot column?
  1. pivot row $x_1$, pivot column $x_2$
  2. pivot row $x_3$, pivot column $x_2$
  3. pivot row $x_1$, pivot column $x_4$
  4. pivot row $x_3$, pivot column $x_4$
Explanation. We have $\bar{\boldsymbol b} = (-4, 18)'$: the pivot row is $x_1$, the smallest index among the negative basic variables. Then ${\boldsymbol u} = (0, -1)$ and $\bar a_{12} = -4$, $\bar a_{14} = -1$: $\min\{\frac{-16}{-4},~ \frac{-3}{-1}\}$ is attained by $x_4$.
Example 2 · lp-g-rivisto-duale-passo · level media · notes
In the revised dual simplex algorithm for the LP problem in standard maximization form $\max\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A} = \begin{pmatrix} 4 & -2 & 1 & 0 \\ 4 & 0 & 0 & 1 \end{pmatrix}$, ${\boldsymbol b} = (5, 1)'$, ${\boldsymbol c}' = (-4, -3, 0, 0)$, the current basis $\pazocal{B} = \{2, 4\}$ is dual feasible, with reduced costs $\bar c_1 = -10$, $\bar c_3 = -\frac{3}{2}$. One uses Bland's rule of the dual simplex algorithm (pivot row: the basic variable with the smallest index and $\bar b_r < 0$; pivot column: $\min\{\bar c_j / \bar a_{rj} : \bar a_{rj} < 0\}$, ties broken by the smallest index), where $\bar{\boldsymbol b} = {\boldsymbol A}_{\pazocal{B}}^{-1}{\boldsymbol b}$ and $\bar a_{rj} = {\boldsymbol u}\,{\boldsymbol A}_j$ with ${\boldsymbol u}\,{\boldsymbol A}_{\pazocal{B}} = {\boldsymbol e}'_r$. What are the pivot row and the pivot column?
  1. pivot row $x_2$, pivot column $x_3$
  2. pivot row $x_4$, pivot column $x_3$
  3. pivot row $x_2$, pivot column $x_1$
  4. pivot row $x_4$, pivot column $x_1$
Explanation. We have $\bar{\boldsymbol b} = (-\frac{5}{2}, 1)'$: the pivot row is $x_2$, the smallest index among the negative basic variables. Then ${\boldsymbol u} = (-\frac{1}{2}, 0)$ and $\bar a_{21} = -2$, $\bar a_{23} = -\frac{1}{2}$: $\min\{\frac{-10}{-2},~ \frac{-\frac{3}{2}}{-\frac{1}{2}}\}$ is attained by $x_3$.

13. The primal-dual method (4)

Example 1 · lp-g-primale-duale-passo · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ (${\boldsymbol A}_j$: column $j$ of ${\boldsymbol A}$), the dual feasible solution ${\boldsymbol \pi}$ has dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi} \ge 0$ and admissible set $\pazocal{J} = \{j : s_j = 0\}$. The restricted primal problem has optimal value $\xi(\pazocal{J}) > 0$, ${\boldsymbol y}$ is the optimal solution of its dual and the dual step ${\boldsymbol \pi} + \theta\,{\boldsymbol y}$ uses the largest $\theta$ keeping all $s_j \ge 0$. For the indices $j \notin \pazocal{J}$: $s_{1} = 7,~ {\boldsymbol A}_{1}'{\boldsymbol y} = 4$; $s_{2} = 7,~ {\boldsymbol A}_{2}'{\boldsymbol y} = 2$; $s_{4} = 8,~ {\boldsymbol A}_{4}'{\boldsymbol y} = 3$; $s_{7} = 5,~ {\boldsymbol A}_{7}'{\boldsymbol y} = -3$. What is $\theta$ and which index enters $\pazocal{J}$?
  1. $\theta = \frac{7}{4}$, the index $1$ enters the admissible set
  2. $\theta = \frac{5}{3}$, the index $7$ enters the admissible set
  3. $\theta = \frac{2}{7}$, the index $2$ enters the admissible set
  4. $\theta = \frac{7}{2}$, the index $2$ enters the admissible set
Explanation. $\theta = \min\{ s_j / {\boldsymbol A}_j'{\boldsymbol y} : j \notin \pazocal{J},~ {\boldsymbol A}_j'{\boldsymbol y} > 0\} = \min\{\frac{7}{4},~ \frac{7}{2},~ \frac{8}{3}\} = \frac{7}{4}$: the indices with ${\boldsymbol A}_j'{\boldsymbol y} \le 0$ do not restrict the step. The minimum is attained by $j = 1$, whose dual slack becomes zero.
Example 2 · lp-g-primale-duale-passo · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ (${\boldsymbol A}_j$: column $j$ of ${\boldsymbol A}$), the dual feasible solution ${\boldsymbol \pi}$ has dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi} \ge 0$ and admissible set $\pazocal{J} = \{j : s_j = 0\}$. The restricted primal problem has optimal value $\xi(\pazocal{J}) > 0$, ${\boldsymbol y}$ is the optimal solution of its dual and the dual step ${\boldsymbol \pi} + \theta\,{\boldsymbol y}$ uses the largest $\theta$ keeping all $s_j \ge 0$. For the indices $j \notin \pazocal{J}$: $s_{1} = 8,~ {\boldsymbol A}_{1}'{\boldsymbol y} = 2$; $s_{4} = 6,~ {\boldsymbol A}_{4}'{\boldsymbol y} = 3$; $s_{5} = 9,~ {\boldsymbol A}_{5}'{\boldsymbol y} = 3$; $s_{7} = 7,~ {\boldsymbol A}_{7}'{\boldsymbol y} = -2$. What is $\theta$ and which index enters $\pazocal{J}$?
  1. $\theta = 2$, the index $4$ enters the admissible set
  2. $\theta = 4$, the index $1$ enters the admissible set
  3. $\theta = \frac{1}{4}$, the index $1$ enters the admissible set
  4. $\theta = -\frac{7}{2}$, the index $7$ enters the admissible set
Explanation. $\theta = \min\{ s_j / {\boldsymbol A}_j'{\boldsymbol y} : j \notin \pazocal{J},~ {\boldsymbol A}_j'{\boldsymbol y} > 0\} = \min\{\frac{8}{2},~ \frac{6}{3},~ \frac{9}{3}\} = 2$: the indices with ${\boldsymbol A}_j'{\boldsymbol y} \le 0$ do not restrict the step. The minimum is attained by $j = 4$, whose dual slack becomes zero.
Example 1 · lp-g-primale-duale-ammesso · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} = \begin{pmatrix} -2 & -2 & 3 & -2 \\ 0 & 1 & -1 & -1 \end{pmatrix}$ and ${\boldsymbol c}' = (1, -1, 2, 0)$, consider the dual solution ${\boldsymbol \pi} = (1, 1)'$ of the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$. The admissible set is $\pazocal{J} = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ (${\boldsymbol A}_j$: column $j$ of ${\boldsymbol A}$). Which set is obtained?
  1. $\pazocal{J} = \{4\}$
  2. $\pazocal{J} = \{2, 3\}$
  3. $\pazocal{J} = \{1, 4\}$
  4. $\pazocal{J} = \emptyset$
Explanation. The dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ are $s_1 = 3,~ s_2 = 0,~ s_3 = 0,~ s_4 = 3$: they are all $\ge 0$, hence ${\boldsymbol \pi}$ is dual feasible, and $\pazocal{J}$ contains the indices with $s_j = 0$.
Example 2 · lp-g-primale-duale-ammesso · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, with ${\boldsymbol A} = \begin{pmatrix} -1 & 3 & 2 & -2 \\ -2 & 2 & 1 & 3 \end{pmatrix}$ and ${\boldsymbol c}' = (-7, 13, 9, 10)$, consider the dual solution ${\boldsymbol \pi} = (1, 3)'$ of the dual $\max\{{\boldsymbol b}'{\boldsymbol \pi} : {\boldsymbol A}'{\boldsymbol \pi} \le {\boldsymbol c}\}$. The admissible set is $\pazocal{J} = \{j : {\boldsymbol A}_j'{\boldsymbol \pi} = c_j\}$ (${\boldsymbol A}_j$: column $j$ of ${\boldsymbol A}$). Which set is obtained?
  1. $\pazocal{J} = \{1, 4\}$
  2. $\pazocal{J} = \{2, 3, 4\}$
  3. $\pazocal{J} = \{1\}$
  4. $\pazocal{J} = \emptyset$
Explanation. The dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ are $s_1 = 0,~ s_2 = 4,~ s_3 = 4,~ s_4 = 3$: they are all $\ge 0$, hence ${\boldsymbol \pi}$ is dual feasible, and $\pazocal{J}$ contains the indices with $s_j = 0$.
Example 1 · lp-g-pd-theta · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dual feasible solution ${\boldsymbol \pi}$ is updated to ${\boldsymbol \pi} + \theta{\boldsymbol y}$ with the largest $\theta$ keeping ${\boldsymbol A}_j'{\boldsymbol \pi} \le c_j$. The variables outside the admitted set have dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ and values: $s_{4} = 5$, ${\boldsymbol A}_{4}'{\boldsymbol y} = 2$; $s_{5} = 9$, ${\boldsymbol A}_{5}'{\boldsymbol y} = 1$; $s_{6} = 2$, ${\boldsymbol A}_{6}'{\boldsymbol y} = -2$. What is $\theta$?
  1. $9$
  2. $\frac{5}{2}$
  3. $1$
  4. $2$
Explanation. Only $j$ with ${\boldsymbol A}_j'{\boldsymbol y} > 0$ limit $\theta$: $\theta = \min s_j / {\boldsymbol A}_j'{\boldsymbol y} = \frac{5}{2}$, for $j = 4$.
Example 2 · lp-g-pd-theta · level facile · notes
In the primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, the dual feasible solution ${\boldsymbol \pi}$ is updated to ${\boldsymbol \pi} + \theta{\boldsymbol y}$ with the largest $\theta$ keeping ${\boldsymbol A}_j'{\boldsymbol \pi} \le c_j$. The variables outside the admitted set have dual slacks $s_j = c_j - {\boldsymbol A}_j'{\boldsymbol \pi}$ and values: $s_{4} = 4$, ${\boldsymbol A}_{4}'{\boldsymbol y} = 2$; $s_{5} = 3$, ${\boldsymbol A}_{5}'{\boldsymbol y} = -3$; $s_{6} = 4$, ${\boldsymbol A}_{6}'{\boldsymbol y} = 3$. What is $\theta$?
  1. $\frac{4}{3}$
  2. $1$
  3. $2$
  4. $3$
Explanation. Only $j$ with ${\boldsymbol A}_j'{\boldsymbol y} > 0$ limit $\theta$: $\theta = \min s_j / {\boldsymbol A}_j'{\boldsymbol y} = \frac{4}{3}$, for $j = 6$.
Example 1 · lp-g-pd-aggiorna · level complessa · notes
Primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A} = \begin{pmatrix} 2 & 2 & 3 & 1 \\ 3 & 1 & 3 & 1 \end{pmatrix}$ and ${\boldsymbol c} = (10, 4, 7, 2)$. The dual feasible solution is ${\boldsymbol \pi} = (1, 1)$, with admitted set $\pazocal{J} = \{j : c_j - {\boldsymbol A}_j'{\boldsymbol \pi} = 0\}$, and the dual of the restricted primal gives the direction ${\boldsymbol y} = (-1, 1)$. With the largest step $\theta$ keeping dual feasibility, what are the new ${\boldsymbol \pi}$ and the new admitted set?
  1. ${\boldsymbol \pi} = (6, -4)$, $\pazocal{J} = \{1, 4\}$
  2. ${\boldsymbol \pi} = (-4, 6)$, $\pazocal{J} = \{4\}$
  3. ${\boldsymbol \pi} = (0, 2)$, $\pazocal{J} = \{1, 4\}$
  4. ${\boldsymbol \pi} = (-4, 6)$, $\pazocal{J} = \{1, 4\}$
Explanation. Slacks $s = (5, 1, 1, 0)$; $\theta = \min\{s_j / {\boldsymbol A}_j'{\boldsymbol y} : {\boldsymbol A}_j'{\boldsymbol y} > 0\} = 5$; new ${\boldsymbol \pi} = (-4, 6)$ and $\pazocal{J}$ is recomputed with the new slacks.
Example 2 · lp-g-pd-aggiorna · level complessa · notes
Primal-dual method for $\min\{{\boldsymbol c}'{\boldsymbol x} : {\boldsymbol A}{\boldsymbol x} = {\boldsymbol b},~ {\boldsymbol x} \ge {\boldsymbol 0}\}$ with ${\boldsymbol A} = \begin{pmatrix} 1 & 2 & 3 & 1 \\ 2 & 1 & 3 & 1 \end{pmatrix}$ and ${\boldsymbol c} = (5, 4, 0, 5)$. The dual feasible solution is ${\boldsymbol \pi} = (0, 0)$, with admitted set $\pazocal{J} = \{j : c_j - {\boldsymbol A}_j'{\boldsymbol \pi} = 0\}$, and the dual of the restricted primal gives the direction ${\boldsymbol y} = (1, -1)$. With the largest step $\theta$ keeping dual feasibility, what are the new ${\boldsymbol \pi}$ and the new admitted set?
  1. ${\boldsymbol \pi} = (-4, 4)$, $\pazocal{J} = \{2, 3\}$
  2. ${\boldsymbol \pi} = (1, -1)$, $\pazocal{J} = \{2, 3\}$
  3. ${\boldsymbol \pi} = (4, -4)$, $\pazocal{J} = \{2, 3\}$
  4. ${\boldsymbol \pi} = (4, -4)$, $\pazocal{J} = \{3\}$
Explanation. Slacks $s = (5, 4, 0, 5)$; $\theta = \min\{s_j / {\boldsymbol A}_j'{\boldsymbol y} : {\boldsymbol A}_j'{\boldsymbol y} > 0\} = 4$; new ${\boldsymbol \pi} = (4, -4)$ and $\pazocal{J}$ is recomputed with the new slacks.

14. Sensitivity analysis (5)

Example 1 · lp-g-sens-costo-fuori-base · level facile · notes
The LP problem $\begin{array}{rl} \max & 8\,x_1 + x_2 + 8\,x_3 \\ \text{subject to} & 3\,x_1 + 3\,x_2 + 4\,x_3 \le 18 \\ & 4\,x_2 + 3\,x_3 \le 14 \\ & x_1, x_2, x_3 \ge 0 \end{array}$, with slack variables $x_4, x_5$, has the optimal dictionary $\begin{array}{rcl} x_1 & = & 6 - x_2 - \frac{4}{3}\,x_3 - \frac{1}{3}\,x_4 \\ x_5 & = & 14 - 4\,x_2 - 3\,x_3 \\ z & = & 48 - 7\,x_2 - \frac{8}{3}\,x_3 - \frac{8}{3}\,x_4 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). Only the objective-function coefficient $c_2$ is changed. For which values of $c_2$ does the basis of this dictionary remain optimal?
  1. $c_2 \le 7$
  2. $c_2 \ge 8$
  3. $c_2 \le 8$
  4. $c_2 \le -6$
Explanation. The variable $x_2$ is non-basic: with $c_2 + \delta$ only its reduced cost changes, and it becomes $\bar c_2 + \delta = -7 + \delta$. The basis remains optimal if $\delta \le -\bar c_2 = 7$, i.e., $c_2 \le 1 + 7 = 8$.
Example 2 · lp-g-sens-costo-fuori-base · level facile · notes
The LP problem $\begin{array}{rl} \max & 6\,x_1 + 5\,x_2 + x_3 \\ \text{subject to} & 5\,x_1 + 4\,x_2 \le 20 \\ & 5\,x_1 + 4\,x_2 + 4\,x_3 \le 7 \\ & x_1, x_2, x_3 \ge 0 \end{array}$, with slack variables $x_4, x_5$, has the optimal dictionary $\begin{array}{rcl} x_2 & = & \frac{7}{4} - \frac{5}{4}\,x_1 - x_3 - \frac{1}{4}\,x_5 \\ x_4 & = & 13 + 4\,x_3 + x_5 \\ z & = & \frac{35}{4} - \frac{1}{4}\,x_1 - 4\,x_3 - \frac{5}{4}\,x_5 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). Only the objective-function coefficient $c_1$ is changed. For which values of $c_1$ does the basis of this dictionary remain optimal?
  1. $c_1 \le \frac{1}{4}$
  2. $c_1 \ge \frac{25}{4}$
  3. $c_1 \le \frac{25}{4}$
  4. $c_1 \le \frac{23}{4}$
Explanation. The variable $x_1$ is non-basic: with $c_1 + \delta$ only its reduced cost changes, and it becomes $\bar c_1 + \delta = -\frac{1}{4} + \delta$. The basis remains optimal if $\delta \le -\bar c_1 = \frac{1}{4}$, i.e., $c_1 \le 6 + \frac{1}{4} = \frac{25}{4}$.
Example 1 · lp-g-sens-costo-in-base · level media · notes
The LP problem $\begin{array}{rl} \max & x_1 + 7\,x_2 + x_3 \\ \text{subject to} & 3\,x_2 + 5\,x_3 \le 10 \\ & 2\,x_1 + 2\,x_2 + 3\,x_3 \le 17 \\ & x_1, x_2, x_3 \ge 0 \end{array}$, with slack variables $x_4, x_5$, has the optimal dictionary $\begin{array}{rcl} x_1 & = & \frac{31}{6} + \frac{1}{6}\,x_3 + \frac{1}{3}\,x_4 - \frac{1}{2}\,x_5 \\ x_2 & = & \frac{10}{3} - \frac{5}{3}\,x_3 - \frac{1}{3}\,x_4 \\ z & = & \frac{57}{2} - \frac{21}{2}\,x_3 - 2\,x_4 - \frac{1}{2}\,x_5 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). Only the objective-function coefficient $c_1$ is changed. For which values of $c_1$ does the basis of this dictionary remain optimal?
  1. $0 \le c_1 \le 7$
  2. $0 \le c_1 \le 64$
  3. $-1 \le c_1 \le 6$
  4. $-5 \le c_1 \le 2$
Explanation. $x_1$ is basic: with $c_1 + \delta$ the reduced costs become $\bar c_j - \delta \bar a_{1j}$. They remain non-positive if $\max\{-1\} \le \delta \le \min\{63,~ 6\}$, i.e., $-1 \le \delta \le 6$; then $c_1 = 1$ is added.
Example 2 · lp-g-sens-costo-in-base · level media · notes
The LP problem $\begin{array}{rl} \max & 7\,x_1 + 5\,x_2 + 4\,x_3 \\ \text{subject to} & 3\,x_1 + 2\,x_2 \le 6 \\ & 3\,x_1 + 2\,x_2 + 4\,x_3 \le 15 \\ & x_1, x_2, x_3 \ge 0 \end{array}$, with slack variables $x_4, x_5$, has the optimal dictionary $\begin{array}{rcl} x_2 & = & 3 - \frac{3}{2}\,x_1 - \frac{1}{2}\,x_4 \\ x_3 & = & \frac{9}{4} + \frac{1}{4}\,x_4 - \frac{1}{4}\,x_5 \\ z & = & 24 - \frac{1}{2}\,x_1 - \frac{3}{2}\,x_4 - x_5 \end{array}$ (in the row of $x_i$ the coefficient of $x_j$ is $-\bar a_{ij}$; the row of $z$ shows the value $\bar z$ and the reduced costs $\bar c_j$). Only the objective-function coefficient $c_3$ is changed. For which values of $c_3$ does the basis of this dictionary remain optimal?
  1. $c_3 \ge 0$
  2. $0 \le c_3 \le 10$
  3. $-4 \le c_3 \le 6$
  4. $-2 \le c_3 \le 8$
Explanation. $x_3$ is basic: with $c_3 + \delta$ the reduced costs become $\bar c_j - \delta \bar a_{3j}$. They remain non-positive if $\max\{-4\} \le \delta \le \min\{6\}$, i.e., $-4 \le \delta \le 6$; then $c_3 = 4$ is added.
Example 1 · lp-g-sens-termine-noto · level media · notes
The LP problem $\begin{array}{rl} \max & 6\,x_1 + 4\,x_2 \\ \text{subject to} & 3\,x_1 + x_2 \le 20 \\ & x_1 + 2\,x_2 \le 5 \\ & x_1 + 3\,x_2 \le 16 \\ & x_1, x_2 \ge 0 \end{array}$, with slack variables $x_3, x_4, x_5$, has the optimal basis $\pazocal{B} = \{1, 3, 5\}$ with ${\boldsymbol A}_{\pazocal{B}}^{-1} = \begin{pmatrix} 0 & 1 & 0 \\ 1 & -3 & 0 \\ 0 & -1 & 1 \end{pmatrix}$ and $\bar{\boldsymbol b} = \begin{pmatrix} 5 \\ 5 \\ 11 \end{pmatrix}$ (values of the basic variables, in the order of $\pazocal{B}$). Only the right-hand side $b_2$ is changed. For which values of $b_2$ does this basis remain optimal?
  1. $b_2 \ge 0$
  2. $-5 \le b_2 \le \frac{5}{3}$
  3. $\frac{10}{3} \le b_2 \le 10$
  4. $0 \le b_2 \le \frac{20}{3}$
Explanation. With $b_2 + \delta$ we need $\bar{\boldsymbol b} + \delta \, {\boldsymbol A}_{\pazocal{B}}^{-1} {\boldsymbol e}_2 \ge {\boldsymbol 0}$, where ${\boldsymbol A}_{\pazocal{B}}^{-1} {\boldsymbol e}_2 = \begin{pmatrix} 1 \\ -3 \\ -1 \end{pmatrix}$ is column 2 (not the row). It follows that $-5 \le \delta \le \frac{5}{3}$, and $b_2 = 5$ is added.
Example 2 · lp-g-sens-termine-noto · level media · notes
The LP problem $\begin{array}{rl} \max & 5\,x_1 + x_2 \\ \text{subject to} & 5\,x_1 + 4\,x_2 \le 6 \\ & 5\,x_1 + 5\,x_2 \le 15 \\ & 4\,x_1 + x_2 \le 14 \\ & x_1, x_2 \ge 0 \end{array}$, with slack variables $x_3, x_4, x_5$, has the optimal basis $\pazocal{B} = \{1, 4, 5\}$ with ${\boldsymbol A}_{\pazocal{B}}^{-1} = \begin{pmatrix} \frac{1}{5} & 0 & 0 \\ -1 & 1 & 0 \\ -\frac{4}{5} & 0 & 1 \end{pmatrix}$ and $\bar{\boldsymbol b} = \begin{pmatrix} \frac{6}{5} \\ 9 \\ \frac{46}{5} \end{pmatrix}$ (values of the basic variables, in the order of $\pazocal{B}$). Only the right-hand side $b_1$ is changed. For which values of $b_1$ does this basis remain optimal?
  1. $b_1 \ge 0$
  2. $-6 \le b_1 \le 9$
  3. $0 \le b_1 \le 15$
  4. $-3 \le b_1 \le 12$
Explanation. With $b_1 + \delta$ we need $\bar{\boldsymbol b} + \delta \, {\boldsymbol A}_{\pazocal{B}}^{-1} {\boldsymbol e}_1 \ge {\boldsymbol 0}$, where ${\boldsymbol A}_{\pazocal{B}}^{-1} {\boldsymbol e}_1 = \begin{pmatrix} \frac{1}{5} \\ -1 \\ -\frac{4}{5} \end{pmatrix}$ is column 1 (not the row). It follows that $-6 \le \delta \le 9$, and $b_1 = 6$ is added.
Example 1 · lp-g-sens-nuova-var · level facile · notes
A problem in standard maximization form has an optimal basis with shadow prices ${\boldsymbol \pi} = (\frac{3}{2}, \frac{5}{2})$. A variable $x_\star \ge 0$ with cost $c_\star = 8$ and column ${\boldsymbol A}_\star = (1, 4)$ is added. What is its reduced cost $\bar c_\star = c_\star - {\boldsymbol \pi}{\boldsymbol A}_\star$ and what is concluded?
  1. $\bar c_\star = -\frac{7}{2}$: the basis is no longer optimal
  2. $\bar c_\star = -\frac{7}{2}$: the basis stays optimal
  3. $\bar c_\star = -\frac{39}{2}$: the basis stays optimal
  4. $\bar c_\star = \frac{7}{2}$: the basis is no longer optimal
Explanation. $\bar c_\star = 8 - (\frac{3}{2} \cdot 1 + \frac{5}{2} \cdot 4) = -\frac{7}{2}$; the basis stays optimal if and only if $\bar c_\star \le 0$.
Example 2 · lp-g-sens-nuova-var · level facile · notes
A problem in standard maximization form has an optimal basis with shadow prices ${\boldsymbol \pi} = (2, \frac{5}{2})$. A variable $x_\star \ge 0$ with cost $c_\star = 2$ and column ${\boldsymbol A}_\star = (4, 4)$ is added. What is its reduced cost $\bar c_\star = c_\star - {\boldsymbol \pi}{\boldsymbol A}_\star$ and what is concluded?
  1. $\bar c_\star = -16$: the basis stays optimal
  2. $\bar c_\star = -16$: the basis is no longer optimal
  3. $\bar c_\star = 16$: the basis is no longer optimal
  4. $\bar c_\star = -20$: the basis stays optimal
Explanation. $\bar c_\star = 2 - (2 \cdot 4 + \frac{5}{2} \cdot 4) = -16$; the basis stays optimal if and only if $\bar c_\star \le 0$.
Example 1 · lp-g-sens-b-valore · level complessa · notes
A problem in standard maximization form has an optimal basis with values $\bar{\boldsymbol b} = (4, 6)$ of the two basic variables and optimal value $40$. Column $k$ of ${\boldsymbol A}_{\pazocal{B}}^{-1}$ is $(-3, 1)$ and the shadow price of constraint $k$ is $\pi_k = 2$. For which $\delta$ (with $b_k \to b_k + \delta$) does the basis stay optimal, and what is the optimal value for $\delta = -1$?
  1. $-6 \le \delta \le \frac{4}{3}$; new value $39$
  2. $-6 \le \delta \le \frac{4}{3}$; new value $42$
  3. $-6 \le \delta \le \frac{4}{3}$; new value $38$
  4. $-\frac{4}{3} \le \delta \le 6$; new value $38$
Explanation. We need $\bar{\boldsymbol b} + \delta\,(-3, 1) \ge {\boldsymbol 0}$: $-6 \le \delta \le \frac{4}{3}$. In that interval the value changes by $\pi_k \delta$: $40 + 2 \cdot (-1) = 38$.
Example 2 · lp-g-sens-b-valore · level complessa · notes
A problem in standard maximization form has an optimal basis with values $\bar{\boldsymbol b} = (7, 6)$ of the two basic variables and optimal value $12$. Column $k$ of ${\boldsymbol A}_{\pazocal{B}}^{-1}$ is $(-3, 2)$ and the shadow price of constraint $k$ is $\pi_k = 2$. For which $\delta$ (with $b_k \to b_k + \delta$) does the basis stay optimal, and what is the optimal value for $\delta = -2$?
  1. $-3 \le \delta \le \frac{7}{3}$; new value $8$
  2. $-\frac{7}{3} \le \delta \le 3$; new value $8$
  3. $-3 \le \delta \le \frac{7}{3}$; new value $16$
  4. $-3 \le \delta \le \frac{7}{3}$; new value $10$
Explanation. We need $\bar{\boldsymbol b} + \delta\,(-3, 2) \ge {\boldsymbol 0}$: $-3 \le \delta \le \frac{7}{3}$. In that interval the value changes by $\pi_k \delta$: $12 + 2 \cdot (-2) = 8$.

15. The geometry of Linear Programming (2)

Example 1 · lp-g-dimensione-poliedro · level facile · notes
Consider the polyhedron $F = \{{\boldsymbol x} \in \R^{4} : x_1 + x_2 + 3\,x_3 - 2\,x_4 = 3,~ 3\,x_1 - x_2 - x_3 - 2\,x_4 = -1,~ 4\,x_1 + 2\,x_3 - 4\,x_4 = 2,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, which contains the point $\bar{\boldsymbol x} = (3, 3, 1, 3)$ with all entries positive. The dimension $\dim(F)$ is the maximum number of affinely independent points of $F$ minus one. What is $\dim(F)$?
  1. $3$
  2. $2$
  3. $4$
  4. $1$
Explanation. Since $\bar{\boldsymbol x} > {\boldsymbol 0}$, no constraint $x_j \ge 0$ holds with equality on the whole of $F$: the only implicit equalities are those of the system, of rank $2$ (the third equation is the sum of the first two). Hence $\dim(F) = n - \rank({\boldsymbol A}) = 4 - 2 = 2$.
Example 2 · lp-g-dimensione-poliedro · level facile · notes
Consider the polyhedron $F = \{{\boldsymbol x} \in \R^{4} : 2\,x_1 + x_2 + 3\,x_3 + 2\,x_4 = 15,~ x_1 + 3\,x_2 + 2\,x_3 - 2\,x_4 = 2,~ 3\,x_1 + 4\,x_2 + 5\,x_3 = 17,~ {\boldsymbol x} \ge {\boldsymbol 0}\}$, which contains the point $\bar{\boldsymbol x} = (1, 1, 2, 3)$ with all entries positive. The dimension $\dim(F)$ is the maximum number of affinely independent points of $F$ minus one. What is $\dim(F)$?
  1. $3$
  2. $2$
  3. $1$
  4. $4$
Explanation. Since $\bar{\boldsymbol x} > {\boldsymbol 0}$, no constraint $x_j \ge 0$ holds with equality on the whole of $F$: the only implicit equalities are those of the system, of rank $2$ (the third equation is the sum of the first two). Hence $\dim(F) = n - \rank({\boldsymbol A}) = 4 - 2 = 2$.
Example 1 · lp-g-base-vertice · level media · notes
Let $F = \{{\boldsymbol x} \in \R^2 : 2\,x_1 + x_2 \le 5,~ -x_1 + 2\,x_2 \le 10,~ 3\,x_1 + 4\,x_2 \le 6,~ x_1, x_2 \ge 0\}$ be the feasible region of an LP problem in canonical maximization form, brought to standard form with the slack variables $x_3, x_4, x_5$. Consider the basis $\pazocal{B} = \{1, 3, 4\}$ (basic variables) and its basic solution, with the non-basic variables at $0$. Which statement is correct?
  1. $(\bar x_1, \bar x_2) = (2, 0)$: it is a vertex of $F$
  2. $(\bar x_1, \bar x_2) = (-10, 0)$: it is infeasible, hence not a vertex of $F$
  3. $(\bar x_1, \bar x_2) = (0, 2)$: it is a vertex of $F$
  4. $(\bar x_1, \bar x_2) = (2, 0)$: it is infeasible, hence not a vertex of $F$
Explanation. The non-basic variables are $0$ and the basic ones solve ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol x}_{\pazocal{B}} = {\boldsymbol b}$: we get $(2, 0, 1, 12, 0)$. All the entries are non-negative: it is a basic feasible solution, hence a vertex of $F$.
Example 2 · lp-g-base-vertice · level media · notes
Let $F = \{{\boldsymbol x} \in \R^2 : 2\,x_2 \le 4,~ 4\,x_1 + 4\,x_2 \le 9,~ 2\,x_1 + 4\,x_2 \le 5,~ x_1, x_2 \ge 0\}$ be the feasible region of an LP problem in canonical maximization form, brought to standard form with the slack variables $x_3, x_4, x_5$. Consider the basis $\pazocal{B} = \{1, 2, 5\}$ (basic variables) and its basic solution, with the non-basic variables at $0$. Which statement is correct?
  1. $(\bar x_1, \bar x_2) = (2, \frac{1}{4})$: it is a vertex of $F$
  2. $(\bar x_1, \bar x_2) = (\frac{1}{4}, 2)$: it is a vertex of $F$
  3. $(\bar x_1, \bar x_2) = (2, \frac{1}{4})$: it is infeasible, hence not a vertex of $F$
  4. $(\bar x_1, \bar x_2) = (\frac{1}{4}, 2)$: it is infeasible, hence not a vertex of $F$
Explanation. The non-basic variables are $0$ and the basic ones solve ${\boldsymbol A}_{\pazocal{B}}{\boldsymbol x}_{\pazocal{B}} = {\boldsymbol b}$: we get $(\frac{1}{4}, 2, 0, 0, -\frac{7}{2})$. Some entry is negative: the basic solution is infeasible and does not correspond to a vertex of $F$.