Graphics Programs Reference
In-Depth Information
Jane should canvass 4000 residences in each of Gotham, Metropolis, and
River City and ignore Oz.
(c)
Finally, if in addition she needs to raise $20,000 in contributions, then
b = [50000; 40000; 36000; 0; 0; -20000; 0; 0; 0; 0];
simlp(f, A, b)
Optimization terminated successfully.
ans =
1.0e+003 *
2.5366
2.5366
2.6341
5.1707
Jane needs to canvass 2537 residences in eachof Gotham and Metropolis,
2634 residences in Oz, and 5171 in River City.
Problem 9
We let w, x , y , and z , denote the number of hours that Nerv spends with the
quarterback, the running backs, the receivers, and the linemen, respectively.
Then the linear inequalities specified by the given data are as follows:
Nonnegative data: w 0 , x 0 , y 0 , z 0;
Time available: w + x + y + z 50;
Point production: 0 . 5 w + 0 . 3 x + 0 . 4 y + 0 . 1 z 20;
Criticisms: w + 2 x + 3 y + 0 . 5 z 75;
Prima Donna status: x = y ,w x + y , x z .
The quantity to be maximized is:
Personal satisfaction: 0 . 2 w + 0 . 4 x + 0 . 3 y + 0 . 6 z .
(a)
This enables us to set up and solve the linear programming problem in
MATLAB as follows:
f = [-0.2 -0.4 -0.3 -0.6];
A=[1111;-0.5 -0.3 -0.4 -0.1; 1230.5;0-110;...
 
Search WWH ::




Custom Search