Академический Документы
Профессиональный Документы
Культура Документы
3.1 Introduction
In this article we consider a horizont al road illuminated by two lights , where Pi
is th e illumination power and hi the height of a lamp. The coordinates of th e
lamps are (0, hl) and (8, h2 ) where 8 is the horizont al dist ance between th e
two light sources. Let X = (x, 0) be a point on t he road somewhere between
th e two light s. In this chapte r we will look for a point X which is minimally
illuminated. In Figure 3.1 we have made a sketch of the situation we will refer
to later in this chapte r.
P1
h2
r2
h1 r1
o x
In t he first section we will find X given th e height and th e inte nsity of both
lamps. In th e second section we will maximize th e illumination at X by varying
th e height of the second lamp. In th e last section we will go even further and
optimize th e illum ination at X with respect to the heights of both lamps. In
effect , we will opt imize th e illumination of th e road by varying t he heights of
th e lamps.
W. Gander et al., Solving Problems in Scientific Computing Using Maple and MATLAB®
© Springer-Verlag Berlin Heidelberg 2004
40 S. Barton and D. Gruntz
If the impact angles of t he light rays are a l and a 2, the road illumination
depends on sin a l and sin a 2 which are given by
P I 2h I 2 X2 9 P22 h 22 (- 2 8 + 2 x )2
eq := 9 (h12 + X2)5 -"4 (hl + (8 _ X)2 )5
> eq : = collect (primpart(numer(eq», x);
The result of the last comma nd is a degree-12 polynom ial in x,
To do so, we vary h 2 from 3 [m] to 9 [m] and resolve the problem for each value
of h2 as in the last section.
> h [2] : = 'h [2]':
Chapter 3. Th e Illumination Problem 43
FIGURE 3.3.
x-Coordinate of the Minimal Illum inated Point for
3 ~ h2 ~ 9.
9.8
9.7
9.4
3 4 5 6 7 8 h2 9
300
250
200
150
3
100 4
5
50 6 h2
7
30 8
20 10
x o . -10 9
As a second step we find the point of maximal illuminat ion on the cur ve x(h 2 ) .
This point is among t he stationary points of the function C( x , h2 ) , i.e. among
the points where the gradient of C( x , h2 ) becomes zero.
> wi th (linalg) ;
> g ; = grad( C, [x, h [2]]);
-.2777372198, 1.080645343
T he different signs of th e eigenvalues t ell us th at we have found a saddle point.
Since H[l , 1] = fPCjf)x 2 == 1.06 > 0 we have a minimum in x-direct ion, and
since H[2 , 2] = f)2C j f)h2 2 == - 0.25 < 0 we have a maximum in h 2-dir ection,
hence we found what we were looking for, namely the maxim ally illuminated
point among all minimally illuminat ed points (x(h 2 ) , 0).
Note that we can analyt ically solve the second equat ion g 2 = 0 for h 2 in our
num erical example.
> {solve(g[2] = O. h[2])};
1 1
{-2 V2 (-20 + x ), 2V2 (-20 + x )}
This means that for t he optimal height of the second lamp, t he imp act angle a2
is given by
> tan(alpha[2]) = normal(%[l]/(s-x)) ;
1
tan (a 2) = 2 V2
> evalf(arctan(rhs(%))) ;
.6154797085
> evalf(convert(%. degrees));
35.26438965 degrees
or a 2 = 35° 15' 51.8028".
To simplify the next comput at ions we sha ll subs titute s - x =a and we convert
the vector variable 9 into a list.
> g := subs(s = sigma + x , convert(g, list));
Plhl X 3 P2 h 2 a
g := [ -3 (h12 + X2)5/2 + (hl + ( 2)5/2'
2
PI 3 PI h 1 P2 3 P2 hl ]
(h1 2
+ x 2)3/2 - (h1 2 + X2)5/2' (hl + ( 2)3/2 - (hl + ( 2)5/2
MAPLE can not solve ana lyt ically for the roo ts of the system of equat ions 9 = O.
However , we can solve the second equation for hI and the third for h2 •
> shl := {solve(g[2] = 0, h[l])};
1 1
shl := {2" V2 x, -2" V2 x}
> sh2 := {solve(g[3] = 0, h[2])} ;
1 1
sh2 := {2" V2a, - 2" V20-}
We ar e int erested in positive values only since it is rather unusual to illuminate
a road from below.
> ho[l] : = remove(has, shl, -1/2)[];
1
ha l ,' = -2 V2 x
> ho[2] := remove(has, sh2, -1/2)[];
1
ho 2 := - V2a
2
Not e that the optimal height for each lamp is independent of the illumination
power. This result defines the geometry! Hence t he impact angles are th e same
as the one we compute d in Sect ion 3.3, namely
t an o - = tan o -,
V2
=2 ::::} al = a2 = 35° 15' 51.8028".
By sub stituting the optimal heights into gl we can find the overall solution. We
assign the real solution to the variable Xo since it is the only physically realistic
solution.
Q := simplify(subs(h[l] = ho[l], h[2] = ho[2], g[l]),symbolic);
Q := _~ V3 (PI 0- 3 - 3
P2 x )
9 x 3 0- 3
> q := subs(P[1] = p[1J-3, P[2] = p[2]-3,
> select(has, numer(Q), P[l])) = 0;
3 3 3
x3 = 0
q : = P 1 0- - P 2
> q : = map(u -> simplify((u + p[2] -3*x-3) -(1/3), symbolic), q);
a = P2 X
q := PI
As we can see from Figure 3.5, for a wide range of power values th e optimal
illuminated point Xo is around 8/ 2 = 10. This can also be seen by comparing
the valu es of Xo and Xm , the position of minimal illumination compu ted in the
first secti on. Th e relat ive difference is
> evalf( (Xm - Xo)/Xm ) ;
.0013972025
F IGU R E 3.5 . Xo as
a Fun ct ion of
P I an d P
z·
F IG UR E 3.6 . Th e O
p tim al Illum
in ati on .
Cin
801L, I
/--\
I ,
I \ I ,
I
f ' : ,
\
\ I
\
;
I
\ I
I
I
I
\
\
\
\
I
I \
,,
I \
I \ I \
\ \
I
I
: 60 \
\
, I
\
\
\
\
I \ : COP
I I \
I
I
I
\
\
\
\ I
, I
\
\
\
I
I
I
\
\ ,
I
I \
\
\ I \
\
: 40 I \
\
I \ I
\
! \
I
I
\
I
: \ I \
\
\
/ \
\
I
II /
I
\
I " ' /, '
I ' \
I '
\
I
20 " ~"
"
.--~.\---
-----------
.10
0
10 --------~ 20 30
Chapter 3. The Illumination Problem 49
3.5 Conclusion
Based on our computations we can make some recommendations to persons
involved with illumination.
• If we insert X 0 into the optimal heights then they depend on the light
powers H, P2 and the distance s only.
• For the special case PI = P2 the optimal height for both lamps is
References
[1] M . E. GETTYS and F . J . KELLER, Classical and modern Physics, Me. Graw
Hill, 1989.
[2] R . G. LERNER and G. L . TRIGG, Encyclopedia of physics, VCH Publishers,
New York, 1991.