• 沒有找到結果。

(b) (i) This is a LP

N/A
N/A
Protected

Academic year: 2022

Share "(b) (i) This is a LP"

Copied!
9
0
0

加載中.... (立即查看全文)

全文

(1)

Solutions for Operations Research HWK#1

1. (a) This is not a LP because the objective function can not be transformed to a linear combination.

(b) (i) This is a LP.

(ii) But this is not in the standard form. To convert it into the stan- dard form, we add a slack variable associated with the first con- straint, s1 ≥ 0, and a surplus variable associated with the second constraint, e2 ≥ 0. Moreover, we let

x2 = x2 − bx2, x2 ≥ 0, bx2 ≥ 0.

since there is no sign restriction on x2. Then we have

(log 5)x1− (cos 4)x2 = (log 5)x1− (cos 4)(x2− bx2)

= (log 5)x1− (cos 4)x2+ (cos 4) bx2,

e4x1− 7x2 = e4x1− 7(x2− bx2)

= e4x1− 7x2+ 7 bx2, and

x1+ 22x2 = x1+ 22(x2− bx2)

= x1+ 22x2− 22xb2. Therefore in the standard form it will be

min (log 5)x1− (cos 4)x2+ (cos 4) bx2

s.t. e4x1 − 7x2+ 7 bx2+ s1 = 1

x1+ 22x2− 22xb2− e2 = − log 0.01 x1, x2, bx2, s1, e2 ≥ 0.

(iii) The constraint matrix A is

e4 −7 7 1 0 1 22 −22 0 −1

 . The right hand side vector b is

 1

− log 0.01

 . The cost coefficient C is

log 5 − cos 4 cos 4 0 0 .

(2)

(c) (i) This is a LP.

(ii) To solve

max 7

s.t. x1− 8 ≥ 0.

is to solve

max 0 · x1 s.t. x1− 8 ≥ 0.

since 7 is a constant.

Let

x1 = x1− 8,

we convert the problem into the standard form, max 0 · (x1+ 8)

s.t. x1 ≥ 0.

That is,

− min −0 · x1 s.t. x1 ≥ 0.

(iii) The constraint matrix A is

0 . The right hand side vector b is

0 . The cost coefficient C is

0 . (d) (i) This is a LP.

(ii) (There may be other solutions.) To solve

max √

7 − x1+ x2

√7 s.t. x1 − |x2| + 3|x3| ≤ 9

2x1+ 5x2− |x3| = 1 x2 ≥ 0.

(3)

is to solve

max −x1+ x2

√7

s.t. x1 − |x2| + 3|x3| ≤ 9 2x1+ 5x2− |x3| = 1 x2 ≥ 0.

since √

7 is a constant.

To convert

max −x1+ x2

√7

s.t. x1 − |x2| + 3|x3| ≤ 9 2x1+ 5x2− |x3| = 1 x2 ≥ 0.

into the standard form, firstly we let x1 = x1 − bx1, x1 ≥ 0, bx1 ≥ 0.

since there is no sign restriction on x1. Secondly, we use the fact that

|x2| = x2, when x2 ≥ 0.

And let

x3 = |x3|, x3 ≥ 0.

Then the problem becomes

max −(x1 − bx1) + 1

√7x2

s.t. (x1− bx1) − x2+ 3x3 ≤ 9 2(x1 − bx1) + 5x2− x3 = 1 x1, bx1, x2, x3 ≥ 0.

After adding the slack variable associated with the first constraint, s1 ≥ 0, the problem will be converted into the standard form

max −x1 + bx1+ 1

√7x2

s.t. x1− bx1 − x2 + 3x3+ s1 = 9 2x1− 2 bx1+ 5x2− x3 = 1 x1, bx1, x2, x3, s1 ≥ 0.

(4)

(iii) The constraint matrix A is

1 −1 −1 3 1

2 −2 5 −1 0

 . The right hand side vector b is

9 1

 . The cost coefficient C is

h−1 1 √71 0 0i . (e) (i) This is a LP.

(ii) But this is not in the standard form. To convert it into the stan- dard form, we add slack variables associated with the constraints, s1, s2, s3, s4 ≥ 0. And we convert the maximization problem into the minimization problem. Therefore in the standard form it will be

− min (−5x1− 5x2− 3x3) s.t. x1 + 3x2+ x2+ s1 = 3

−x1 + 3x3+ x2 = 2 2x1− x2+ 2x3+ x3 = 4 2x1+ 3x2− x3+ s4 = 2 x1, x2, x3, s1, s2, s3, s4 ≥ 0.

(iii) The constraint matrix A is



1 3 1 1 0 0 0

−1 0 3 0 1 0 0

2 −1 2 0 0 1 0

2 3 −1 0 0 0 1



.

The right hand side vector b is



 3 2 4 2



.

The cost coefficient C is

−5 −5 −3 0 0 0 0 .

(5)

2. (a) The LP problem has an optimal solution when s > 0, t > 0, and s 6= t.

(b) The LP problem is always feasible since (0, 0) is always a feasible so- lution.

(c) The LP problem is unbounded when t > 0, s ≤ 0, or t ≤ 0.

(d) The LP problem has multiple optimal solutions when s = t > 0.

3. (a) The problem

min x1+ x2 s.t. 2x1 − x2 ≤ 1

x1 ≥ 0, x2 ≥ 0

is bounded with minimum 0, but its feasible domain {(x1, x2)|2x1− x2 ≤ 1, x1 ≥ 0, x2 ≥ 0}

is unbounded.

(b) The problem

max x1+ x2 s.t. x1+ x2 ≤ 1

x1 ≥ 0, x2 ≥ 0

is bounded with maximum 1, and has infinitely many optimal solutions {(x1, x2)|x1+ x2 = 1, x1 ≥ 0, x2 ≥ 0}.

(c) The problem

min x1− x2 s.t. x1− x2 ≥ 0

x1 ≥ 0, x2 ≥ 0

is bounded with minimum 0, but its optimal soluiton set {(x1, x2)|x1 = x2, x1 ≥ 0, x2 ≥ 0}

is unbounded.

(d) Each optimal soluiton belongs to the feasible domain. The optimal so- lution set can not be unbounded when the feasible domain is bounded.

(6)

4. (a)

0 0.2 0.4 0.6 0.8 1 1.2

0 0.2 0.4 0.6 0.8 1

optimal solution x+2y=1

x+2y=2 x+y=1

feasible domain

(b)

|x − 1| + y =

 (x − 1) + y, if x ≥ 1;

−(x − 1) + y, if x < 1.

0 0.5 1 1.5 2 2.5 3

0 0.5 1 1.5 2 2.5 3

x+2y=2 x+2y=3

−(x−1)+y=1 (x−1)+y=1

optimal solution

feasible domain

(7)

(c)

||x − 1| − 2| + |y − 3| =

 |x − 1| − 2 + |y − 3|, if |x − 1| ≥ 2;

−|x − 1| + 2 + |y − 3|, if |x − 1| < 2.

=







(x − 1) − 2 + |y − 3|, if |x − 1| ≥ 2, x ≥ 1;

−(x − 1) − 2 + |y − 3|, if |x − 1| ≥ 2, x < 1;

−(x − 1) + 2 + |y − 3|, if |x − 1| < 2, x ≥ 1;

(x − 1) + 2 + |y − 3|, if |x − 1| < 2, x < 1.

=























(x − 1) − 2 + (y − 3), if |x − 1| ≥ 2, x ≥ 1, y ≥ 3;

(x − 1) − 2 − (y − 3), if |x − 1| ≥ 2, x ≥ 1, y < 3;

−(x − 1) − 2 + (y − 3), if |x − 1| ≥ 2, x < 1, y ≥ 3;

−(x − 1) − 2 − (y − 3), if |x − 1| ≥ 2, x < 1, y < 3;

−(x − 1) + 2 + (y − 3), if |x − 1| < 2, x ≥ 1, y ≥ 3;

−(x − 1) + 2 − (y − 3), if |x − 1| < 2, x ≥ 1, y < 3;

(x − 1) + 2 + (y − 3), if |x − 1| < 2, x < 1, y ≥ 3;

(x − 1) + 2 − (y − 3), if |x − 1| < 2, x < 1, y < 3.

=























x+ y − 6, if x ≥ 3, y ≥ 3;

x− y, if x ≥ 3, y < 3;

−x + y − 4, if x ≤ −1, y ≥ 3;

−x − y + 2, if x ≤ −1, y < 3;

−x + y, if 1 ≤ x < 3, y ≥ 3;

−x − y + 6, if 1 ≤ x < 3, y < 3;

x+ y − 2, if − 1 < x < 1, y ≥ 3;

x− y + 4, if − 1 < x < 1, y < 3.

0 1 2 3 4 5 6 7 8 9 10

0 1 2 3 4 5 6 7 8 9 10

x+y-6=3

x+y-2=3

-x-y+6=3

-x+y=3

x-y=3 x-y+4=3

feasible domain

y-1/4x=1

y-1/4x=0 optimal

solution

(8)

5. (a) Following is the three-dimensional graph for the three systems.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0 0.2 0.4 0.6 0.8 1

−2

−1.5

−1

−0.5 0 0.5 1

X1+X 2=1

feasible domian

(b) To show that the three systems are equivalent, we show the equiva- lence between (f1, s1) and (f2, s2), the equivalence between (f2, s2) and (f3, s3), and the equivalence between (f3, s3) and (f1, s1).

the equivalence between (f1, s1) and (f2, s2):

Consider x3 in the problem (f2, s2) as a slack variable associated with the first constraint in (f1, s1), then

(f1, s1) : min −2x1+ x2 s.t. x1 + x2 ≤ 1

x1, x2 ≥ 0.

is equivalent to

(f2, s2) : min −2x1+ x2 s.t. x1+ x2+ x3 = 1

x1, x2, x3 ≥ 0.

the equivalence between (f2, s2) and (f3, s3) : By the constraints of (f2, s2), we have

x1 = 1 − x2− x3 ≥ 0.

Therefore the objective function of (f2, s2),

−2x1+ x2, becomes

−2(1 − x2− x3) + x2 = 3x2+ 2x3− 2

(9)

and the constraints are

1 − x2− x3 ≥ 0 (or x2+ x3 ≤ 1) x2, x3 ≥ 0.

This shows that

(f2, s2) : min −2x1+ x2 s.t. x1+ x2+ x3 = 1

x1, x2, x3 ≥ 0.

is equivalent to

(f3, s3) : min 3x2+ 2x3− 2 s.t. x2 + x3 ≤ 1

x2, x3 ≥ 0.

the equivalence between (f3, s3) and (f1, s1):

To show the equivalence between (f3, s3) and (f1, s1), we let 1 − x2− x3 = x1.

Then we have

3x2+ 2x3− 2 = −2(1 − x2− x3) + x2

= −2x1+ x2 for the objective function of (f3, s3) and

1 − x2− x3 = x1 ≥ 0 (which is equivalent to 1 − x2− x3 = x1 with x2+ x3 ≤ 1.) x2, x3 ≥ 0.

for the constraints. That is,

(f3, s3) : min 3x2+ 2x3− 2 s.t. x2 + x3 ≤ 1

x2, x3 ≥ 0.

is equivalent to

(f1, s1) : min −2x1+ x2

s.t. x1 + x2 ≤ 1 x1, x2 ≥ 0.

參考文獻

相關文件

In this way, we can take these bits and by using the IFFT, we can create an output signal which is actually a time-domain OFDM signal.. The IFFT is a mathematical concept and does

Use definition to show that cf is also differentiable and D(αf ) =

So we check derivative of f and g, the small one would correspond to graph (b) and the other to (c)(i.e.. Moreover, f is

(18%) Determine whether the given series converges or diverges... For what values of x does the series

[r]

(Set up hypothesis) (a) In the legal world, a null hypothesis might be ”This person is innocent.” A type I error would be judging the person guilty when he is innocent.. A Type II

In this case, the domain of ζ is the set of real numbers x such that the series

The molal-freezing-point-depression constant (Kf) for ethanol is 1.99 °C/m. The density of the resulting solution is 0.974 g/mL.. 21) Which one of the following graphs shows the