With 5 point-source lights in a square room, what is the optimal configuration for even lighting?
To make this question concrete, say that each wall has length 1, the room has no height (i.e., two dimensional) and we have five identical lights that are pointsized and want to know the optimal placement that maximizes even lighting. That could mean
f = 1/((x - x1)^2 + (y - y1)^2) + 1/((x - x2)^2 + (y - y2)^2) + 1/((x - x3)^2 + (y - y3)^2) + 1/((x - x4)^2 + (y - y4)^2) + 1/((x - x5)^2 + (y - y5)^2);
a) maximizing the value of the minimal illumination
Minimize[f, {x,0,1},{y,0,1}]
or an integral measure like
b) maximizing the total illumination where the brightest areas are considered as being some default value, e.g., the value of
Integrate[Min[f, f0], {x,0,1},{y,0,1}]
For an example configuration of light sources with
f = With[{n = 5}, Sum[1/((x - (.5 + .45 Cos[2 Pi i/n]))^2 + (y - (.5 + .45 Sin[2 Pi i/n]))^2), {i, 0, n - 1}]]
and then here is the minimum illumination
NMinimize[{f, 0 <= x <= 1 && 0 <= y <= 1}, {x, y}] (*{14.349, {x -> 1., y -> 1.}}*)
and here that point is shown on a contour plot
For that configuration here is the integral (which I had to approximate with a Sum)
Sum[Min[1.2 (14.349), f], {x, 0.0001, 1, .01}, {y, 0.0001, 1, .01}]/10^4 (*17.2146*)
I’d be interested in optimization approaches, but also aesthetic approaches, e.g., symmetries, angles, shadows, or patterns made by contour lines.
To generalize, not only other numbers of lights, but try tacking on albedo of 50% so the wall reflect half of the light they receive.









