Graphics Programs Reference
In-Depth Information
75
70
65
60
55
50
45
40
0
5
10
15
20
25
30
35
40
Now let's superimpose on top of this picture a contour plot of the objective
function P .
hold on
[U V] = meshgrid(0:40, 40:75);
contour(U, V, 143.*U + 60.*V); hold off
75
70
65
60
55
50
45
40
0
5
10
15
20
25
30
35
40
It seems apparent that the maximum value of P will occur on the level curve
(that is, level line) that passes through the vertex of the polygon that lies
near (23, 53). In fact we can compute
[x, y] = solve('x + y = 75', '110*x + 30*y = 4000')
x=
175/8
Search WWH ::




Custom Search