Homepage › Solution manuals › Dimitris Bertsimas › Introduction to Linear Optimization › Exercise 3.27
Exercise 3.27
-
Suppose that we wish to find a vector that satisfies and , and such that the number of positive components of is maximized. Show that this can be accomplished by solving the linear programming problem
- Suppose that we wish to find a vector that satisfies and , and such that the number of positive components of is maximized. Show how this can be accomplished by solving a single linear programming problem.
Answers
(a) Let
This is not a linear problem, but we can reformulate it as an auxiliary linear program. Let be a vector that indicates whether each component for all :
Now define a new variable . Then the problem becomes
Let this feasible region be denoted by
Suppose is an optimal solution of the above linear program, and define .
Assume, for contradiction, that is not optimal for the original problem. Then there exists some feasible such that
and the number of positive components in is greater than in .
For this , define and as before. Then is feasible for the LP and satisfies
which contradicts the optimality of . Hence, is optimal for the original problem, i.e., it maximizes the number of positive components.
(b) Now suppose that we wish to find a vector satisfying
such that the number of positive components of is maximized.
By analogy with part (a), we can again introduce auxiliary variables and such that
where indicates whether , that is,
However, because the constraint is not homogeneous, we must modify the feasible region. In particular, we replace the equality by , and the nonnegativity of by the constraint . This ensures that the resulting satisfies and .
Hence, the problem can be formulated as the following single linear program:
At optimality, gives a feasible vector that maximizes the number of positive components among all solutions satisfying