Graphics Programs Reference
In-Depth Information
Contributions: w + 0 . 25 x + 0 . 5 y + 3 z 10 , 000.
The quantity to be maximized is:
Voter support: 0 . 6 w + 0 . 6 x + 0 . 5 y + 0 . 3 z .
(a)
This enables us to set up and solve the linear programming problem in
MATLAB as follows:
f = [-0.6 -0.6 -0.5 -0.3];
A=[1111;0.50.512;2314;1-100;011-1;-1-
0.25 -0.5 -3; -1000;0-100;00-10;000-1];
b = [50000; 40000; 18000; 0; 0; -10000; 0; 0; 0; 0];
simlp(f, A, b)
Optimization terminated successfully.
ans =
1.0e+003 *
1.2683
1.2683
1.3171
2.5854
Jane should canvass 1268 residences in each of Gothan and Metropolis,
1317 residences in Oz, and 2585 residences in River City.
(b)
If the allotment for time doubles then
b = [50000; 40000; 36000; 0; 0; -10000; 0; 0; 0; 0];
simlp(f, A, b)
Optimization terminated successfully.
ans =
1.0e+003 *
4.0000
4.0000
0.0000
4.0000
Search WWH ::




Custom Search