기본 정보
- 저자
- DOI
- 10.1371/journal.pone.0176252
- 저널
- PLoS ONE
- 발행년도
- 2017
- 발행기관
- Public Library of Science
- 피인용수
- 4
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1371/journal.pone.0176252
- 토픽
- Color Science and Applications
- OpenAlex ID
- W2608425572
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
The rapid worldwide evolution of LEDs as light sources has brought new challenges, which means that new methods are needed and new algorithms have to be developed. Since the majority of LED luminaries are of the multi-source type, established methods for the design of light engines cannot be used in the design of LED light engines. This is because in the latter case what is involved is not just the design of a good reflector or projector lens, but the design of several lenses which have to work together in order to achieve satisfactory results. Since lenses can also be bought off the shelf from several manufacturers, it should be possible to combine together different off the shelf lenses in order to design a good light engine. However, with so many different lenses to choose from, it is almost impossible to find an optimal combination by hand, which means that some optimization algorithms need to be applied. In order for them to work properly, it is first necessary to describe the input data (i.e. spatial light distribution) in a functional form using as few as possible parameters. In this paper the focus is on the approximation of the input data, and the implementation of the well-known mathematical procedure for the separation of linear and nonlinear parameters, which can provide a substantial increase in performance.
본문 47,492자
본문 펼치기
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0176252&domain=pdf&date_stamp=2017-04-28)</u>~~
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0176252&domain=pdf&date_stamp=2017-04-28)</u>~~
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0176252&domain=pdf&date_stamp=2017-04-28)</u>~~
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0176252&domain=pdf&date_stamp=2017-04-28)</u>~~
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0176252&domain=pdf&date_stamp=2017-04-28)</u>~~
OPEN ACCESS
Citation: Kaljun D, Novak T, Z <sup>ˇ</sup> erovnik J (2017)
Improved approximation of spatial light
[distribution. PLoS ONE 12(4): e0176252. https://](https://doi.org/10.1371/journal.pone.0176252)
[doi.org/10.1371/journal.pone.0176252](https://doi.org/10.1371/journal.pone.0176252)
Editor: J. Alberto Conejero, IUMPA - Universitat
Politecnica de Valencia, SPAIN
Received: September 11, 2016
Accepted: April 8, 2017
Published: April 28, 2017
Copyright: © 2017 Kaljun et al. This is an open
access article distributed under the terms of the
[Creative Commons Attribution License, which](http://creativecommons.org/licenses/by/4.0/)
permits unrestricted use, distribution, and
reproduction in any medium, provided the original
author and source are credited.
Data Availability Statement: All relevant data are
within the paper and its Supporting Information
files.
Funding: This work was supported by Research
[Agency of Slovenia (https://www.arrs.gov.si/), P1-](https://www.arrs.gov.si/)
0285, P2-0248, and ARRS-100015-0510. The
funders had no role in study design, data collection
and analysis, decision to publish, or preparation of
the manuscript.
Competing interests: The authors have declared
that no competing interests exist.
RESEARCH ARTICLE
# Improved approximation of spatial light distribution
David Kaljun <sup>1</sup> , Tina Novak <sup>1</sup> *, Janez Z <sup>ˇ</sup> erovnik <sup>1,2</sup>
1 Faculty of Mechanical Engineering, University of Ljubljana, 1000 Ljubljana, Slovenia, 2 Institute of
Mathematics, Physics and Mechanics, 1000 Ljubljana, Slovenia
- tina.novak@fs.uni-lj.si
## Abstract
The rapid worldwide evolution of LEDs as light sources has brought new challenges, which
means that new methods are needed and new algorithms have to be developed. Since the
majority of LED luminaries are of the multi-source type, established methods for the design
of light engines cannot be used in the design of LED light engines. This is because in the lat
ter case what is involved is not just the design of a good reflector or projector lens, but the
design of several lenses which have to work together in order to achieve satisfactory results.
Since lenses can also be bought off the shelf from several manufacturers, it should be possi
ble to combine together different off the shelf lenses in order to design a good light engine.
However, with so many different lenses to choose from, it is almost impossible to find an
optimal combination by hand, which means that some optimization algorithms need to be
applied. In order for them to work properly, it is first necessary to describe the input data (i.e.
spatial light distribution) in a functional form using as few as possible parameters. In this
paper the focus is on the approximation of the input data, and the implementation of the
well-known mathematical procedure for the separation of linear and nonlinear parameters,
which can provide a substantial increase in performance.
Introduction
The rapid worldwide evolution of the LED (Light emitting diode) industry has resulted in the
implementation of LED elements in all kind of luminaries. Their technology means that
energy consumption is much reduced, while at the same time there are endless possibilities of
light engine design. In the case of LEDs lighting systems it is possible to deliver the light to the
environment in a controlled way, although this leads to new problems such as finding the optimal lens or lens combination, the optimal LED to use, the optimal number of LEDs and the
optimal rotation of each lens. The key to discovering a successful design process is the choice
of the secondary optics. Currently there are more or less just two options for designing light
engines. The first option is to have the know-how and the resources to design a specific lens in
order to accomplish the task. However, the cost of resources coupled with the development
and production of optical elements can be enormous. For this reason a lot of manufactures
now make use of the second option, which is to use ready-made off the shelf lenses. These
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 1 / 16
Improved approximation of spatial light distribution
lenses are manufactured by a number of specialized companies, which offer different types of
lenses for all the major LED brands. The trick here is to choose the best combination of lenses
in order to get the most efficient system. The developer frequently makes use of a trial and
error method, first choosing a good combination of lenses, and then simulating the system via
Monte Carlo ray-tracing methods. The success of such procedures heavily depends on the
engineer’s intuition and experience, sizeable computation resources are also needed to check
the proposed design by means of simulations. However, analytical models and optimization
tools could be used to speed up the design process, as well as to possibly improve the quality of
solutions. An analytical model which could be used to describe the far field radiation pattern
of a LED was recently proposed in [1, 2]. Later it was observed that the model could also be
applied to LEDs with attached secondary optics [3]. Several optimization algorithms were
designed and tested, showing that the model is accurate and provides an improvement in the
field [4, 5]. In particular, the metaheuristics, such as the multi-start local search algorithm and
genetic algorithms, proved to be excellent pre-processing methods for Newton’s method [6].
The Luminous intensity pattern of LEDs is mathematically described in form Eq (1). T3his
form is a linear combination of nonlinear functions ∑ _ajφj_ ( _α_ ; _θ_ ) (see Eqs (7 and 28). Thus, for
the calculation of the RMS error (see Eq (3)) it is more efficient to use the procedure which
involves reduction of the linear parameters, which is well known from [7]. Using this procedure it has been possible to find desired solutions in a fraction of the time needed if usual discrete optimization methods are used. In turn this means that we are no longer confined to a
HPC (High Performance Computing) unit but can run the approximation on a single processor desktop unit.
Materials and methods
The model
It is well-known that the luminous intensity pattern of LEDs can be represented as a sum of
cosine-power functions
X _n_
_I_ ðy; _a_ _;_ _b_ _;_ _c_ Þ ¼ _I_ max
_j_ ¼1
_aj_ cos <sup>_cj_</sup> ðy � _bj_ Þ ð1Þ
(see in [2, 6]), where _θ_ is the polar angle, _K_ is the number of functions to sum, and _aj_, _bj_ and _cj_
are the function coefficients. For brevity, coefficients are written as vectors _a_ = ( _a_ 1, _a_ 2,. . ., _an_ ) <sup>_T_</sup>,
_b_ = ( _b_ 1, _b_ 2,. . ., _bn_ ) <sup>_T_</sup> and _c_ = ( _c_ 1, _c_ 2,. . ., _cn_ ) <sup>_T_</sup> . In the paper, after the separation of the parameters _a_,
_b_ and _c_, vector notation _α_ = ( _b_ 1, _b_ 2,. . ., _bn_, _c_ 1, _c_ 2,. . ., _cn_ ) <sup>_T_</sup> is also used. The interval range of the
coefficients is: _aj_ 2 [0, 1], _bj_ 2 [−90,90] and _cj_ 2 [0, 100] for every _j_ = 1,2,. . ., _n_ . In [6], discrete
optimization algorithms work on finite subsets where the possible values are
_aj_ 2 f0 _;_ 0 _:_ 001 _;_ 0 _:_ 002 _;_ . . . _;_ 1g _;_
_bj_ 2 f� 90 _;_ - 89 _:_ 9 _;_ - 89 _:_ 8 _;_ . . . _;_ 89 _:_ 9 _;_ 90g _;_
_cj_ 2 f0 _;_ 1 _;_ 2 _; :::;_ 100g _:_
For given data ( _θi_, _IM_ ( _θi_ )), _i_ = 1,2,. . ., _m_, ( _N >>_ 39 _n_ ) the optimal parameters minimizing
the function
ð2Þ
ð3Þ
f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f
f f f f f f f f f f f f f f f f f f f f f f f f f f f f
X _m_
_i_ ¼1
_RMS_ ð _a_ _;_ _b_ _;_ _c_ Þ ¼
sf f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f
<u>1</u> X _m_ 2
<u>1</u>
_N_
ð _IM_ ðy _i_ Þ � _I_ ðy _i_ ; _a_ _;_ _b_ _;_ _c_ ÞÞ
are determined. In Eq (3), _N_ is the number of measured points in the input data, _IM_ ( _θi_ ) is the
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 2 / 16
Improved approximation of spatial light distribution
measured luminous intensity value at a polar angle _θi_, and _I_ ( _θi_, _a_, _b_, _c_ ) the calculated luminous
intensity value at the given polar angle _θ_, and the given triplet of vectors ( _a_, _b_, _c_ ) from the finite
discrete subset of [0, 1] <sup>_n_</sup> × [−90, 90] <sup>_n_</sup> × [0, 100] <sup>_n_</sup> . The _RMS_ function represents the error of the
approximation named _RMSp_, and is defined by the equation
_RMSb_ ð _a_ _;_ _b_ _;_ _c_ Þ ¼ <sup>100 �</sup> ~~P~~ <sup>_<u>m</u>_</sup> <sup>�</sup> _<u>m</u>_ <sup>_<u>RMS</u>_</sup> <sup>ð</sup> <sup>_<u>a</u>_</sup> <sup>_;_</sup> <sup>_<u>b</u>_</sup> <sup>_;_</sup> <sup>_<u>c</u>_</sup> <sup>Þ</sup> ½%� _:_ ð4Þ
_i_ ¼1 <sup>_I_</sup> _M_ <sup>ðy</sup> _i_ <sup>Þ</sup>
In order to simplify the problem, it is sufficient to consider the standard least squares problem
_G_ ð _a_ _;_ _b_ _;_ _c_ Þ ¼
X _m_
ð _IM_ ðy _i_ Þ � _I_ ðy _i_ ; _a_ _;_ _b_ _;_ _c_ ÞÞ
_i_ ¼1
2 _:_ ð5Þ
The function _G_ can be used since to minimize the _RMS_ function (3), i.e. finding parameter
values _a_ <sup>�</sup>, _b_ <sup>�</sup>, _c_ <sup>�</sup> for which the value RMS s minimal, is equivalent to minimize the function _G_ .
Due to the form of the function (1), the problem (5) is one of the so-called “separable nonlinear least squares problems”, which were studied already in [7, 8]. In the next subsection we
present the procedure for reducing one third of the parameters in the nonlinear least square
problems where the functions in the linear square problem have a special form.
Nonlinear least square problems whose variables can be separated
Separation of the linear variables. Consider the real given data as
ð _ti; yi_ Þ _;_ _i_ ¼ 1 _;_ . . . _; m:_ ð6Þ
Denote by _a_ and _α_ two independent vectors
_T_ 2 R _n_ and _α_ ¼ ða1 _;_ . . . _;_ a _k_ Þ
_a_ ¼ ð _a_ 1 _;_ . . . _; an_ Þ
Þ _T_ 2 R _k_
and let
Zð _a_ _;_ _α_ ; _t_ Þ ¼
X _n_
_ajφj_ ð _α_ ; _t_ Þ ð7Þ
_j_ ¼1
be nonlinear models, where _φj_ are functions, continuously differentiable with respect to _α_, and
_t_ is a real variable. If instead of _t_ a vector _t_ = ( _t_ 1,. . ., _tm_ ) <sup>_T_</sup> is taken, one should write
_η_ ð _a_ _;_ _α_ Þ ¼ ðZð _a_ _;_ _α_ ; _t_ 1Þ _;_ . . . _;_ Zð _a_ _;_ _α_ ; _tm_ ÞÞ
_T_
and
_φ_ _j_ ð _α_ Þ ¼ ð _φj_ ð _α_ ; _t_ 1Þ _; φj_ ð _α_ ; _t_ 2Þ _;_ . . . _; φ_ ð _α_ ; _tm_ ÞÞ _T:_
We also write _y_ = ( _y_ 1,. . ., _ym_ ) <sup>_T_</sup> for the given values in Eq (6).
Problem : Find the values of parameters _a_ and _α_ that minimize the nonlinear functional
_r_ ð _a_ _;_ _α_ Þ ¼ jj _y_ - _η_ ð _a_ _;_ _α_ Þjj2 ¼
2 ¼ ð8Þ
_j_ ¼1
X _n_
X _m_
ð _yi_ - Zð _a_ _;_ _α_ ; _ti_ ÞÞ
_i_ ¼1
!2
_:_ ð9Þ
_ajφj_ ð _α_ ; _ti_ Þ
¼
X _m_
_i_ ¼1
_yi_
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 3 / 16
Improved approximation of spatial light distribution
Let F( _α_ ) be the matrix function
Fð _α_ Þ ¼ ½ _φ_ 1ð _α_ Þ _;_ _φ_ 2ð _α_ Þ _;_ . . . _;_ _φ_ _n_ ð _α_ Þ�¼
2
666666664
_φ_ 1ð _α_ ; _t_ 1Þ _φ_ 2ð _α_ ; _t_ 1Þ . . . _φn_ ð _α_ : _t_ 1Þ
_φ_ 1ð _α_ ; _t_ 2Þ _φ_ 2ð _α_ ; _t_ 2Þ . . . _φn_ ð _α_ : _t_ 2Þ
.. <sup>.</sup> .. <sup>.</sup> . .. .. <sup>.</sup>
_φ_ 1ð _α_ ; _tm_ Þ _φ_ 2ð _α_ ; _tm_ Þ . . . _φn_ ð _α_ : _tm_ Þ
3
777777775
_:_ ð10Þ
2
The sum
X _n_
_j_ ¼1
_ajφj_ ð _α_ ; _ti_ Þ (see Eq (9)) is the _i_ -th component of the vector
_a_ 1 _φ_ 1ð _α_ ; _t_ 1Þ þ _a_ 2 _φ_ 2ð _α_ ; _t_ 1Þþ . . . þ _anφn_ ð _α_ ; _t_ 1Þ
_a_ 1 _φ_ 1ð _α_ ; _t_ 2Þ þ _a_ 2 _φ_ 2ð _α_ ; _t_ 2Þþ . . . þ _anφn_ ð _α_ ; _t_ 2Þ
.. <sup>.</sup>
_a_ 1 _φ_ 1ð _α_ ; _tm_ Þ þ _a_ 2 _φ_ 2ð _α_ ; _tm_ Þþ . . . þ _anφn_ ð _α_ ; _tm_ Þ
3
777777775
_a_ 1 _φ_ 1ð _α_ Þþ _a_ 2 _φ_ 2ð _α_ Þþ . . . þ _an_ _φ_ _n_ ð _α_ Þ¼
666666664
_:_ ð11Þ
Therefore, the functional _r_ is geometrically the length of the vector
_y_ - ð _a_ 1 _φ_ 1ð _α_ Þ þ _a_ 2 _φ_ 2ð _α_ Þ þ . . . þ _an_ _φ_ _n_ ð _α_ ÞÞ _:_
For a given vector _y_ the value of _r_ is minimal if and only if the sum (vector) _a_ 1 _φ_ 1( _α_ ) +
_a_ 2 _φ_ 2( _α_ ) + . . . + _an_ _φ_ _n_ ( _α_ ) is the orthogonal projection of _y_ onto the subspace
L f _φ_ 1ð _α_ Þ _;_ _φ_ 2ð _α_ Þ _;_ . . . _;_ _φ_ _n_ ð _α_ Þg. For each _α_, the linear operator
_P_ Fð _α_ Þ ¼ Fð _α_ ÞF <sup>þ</sup> ð _α_ Þ
is the orthogonal projection on the linear space spanned by the columns of the matrix F( _α_ )
(see Remark 2), i.e. the linear space L f _φ_ 1ð _α_ Þ _;_ _φ_ 2ð _α_ Þ _;_ . . . _;_ _φ_ _n_ ð _α_ Þg.
Remark 1 _The matrix_ F <sup>+</sup> ( _α_ ) _is the generalized inverse or so called Moore-Penrose_ _pseudoin-_
_verse_ . _For every m_ × _n matrix A_, _there exists a unique n_ × _m matrix X_, _such that_
_AXA_ ¼ _A_ ð12Þ
_XAX_ ¼ _X_ ð13Þ
ð _AX_ Þ> ¼ _AX_ ð14Þ
ð _XA_ Þ> ¼ _XA:_ ð15Þ
_A_ <sup>+</sup> _is defined to be X_ . _The proof can be found in_ [9].
Remark 2 _From the definition of the Moore-Penrose_ _pseudoinverse we obtain_
_P_ Fð _α_ ÞFð _α_ Þ ¼ Fð _α_ ÞF <sup>þ</sup> ð _α_ ÞFð _α_ Þ ¼ Fð _α_ Þ
_and hence_
_P_ Fð _α_ Þ _φ_ _j_ ð _α_ Þ ¼ _φ_ _j_ ð _α_ Þ
_for every j_ = 1,. . ., _n_ . _Consider that v is a nonzero vector in the orthogonal complement of the sub-_
_space_ L f _φ_ 1ð _α_ Þ _;_ _φ_ 2ð _α_ Þ _;_ . . . _;_ _φ_ _n_ ð _α_ Þg _according to the usual scalar product_ . _Such a vector v is_
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 4 / 16
Improved approximation of spatial light distribution
_characterized by the vanishing of the scalar product of the vectors v and_ _φ_ _j(_ _α_ _) for every j_ = 1,. . ., _n_ .
_Therefore_,
ðFð _α_ ÞÞ
- _v_ ¼ 0 _:_
_Hence the following is true_
- _v_ ¼ 0
- _v_ ¼ 0
ðF <sup>þ</sup> ð _α_ ÞÞ
>ðFð _α_ ÞÞ
ðFð _α_ ÞF <sup>þ</sup> ð _α_ ÞÞ
Fð _α_ ÞF <sup>þ</sup> ð _α_ Þ _v_ ¼ 0
_P_ Fð _α_ Þ _v_ ¼ 0 _:_
Another linear operator needed here is
_P_ F <sup>?</sup> ð _α_ Þ <sup>¼</sup> <sup>_I_</sup> <sup>�</sup> <sup>_P_</sup> Fð _α_ Þ <sup>_:_</sup> ð16Þ
Geometrically, this is the projection onto the orthogonal complement of the linear space
spanned by the columns of the matrix F( _α_ ). For any given _α_ we have
_r_ ð _a_ ^ _;_ _α_ Þ ¼ min _r_ ð _a_ _;_ _α_ Þ ¼ jj _y_ - Fð _α_ ÞF <sup>þ</sup> ð _α_ Þ _y_ jj
_a_
2 ¼ jj _P_ F?ð _α_ Þ <sup>_y_</sup> <sup>jj</sup> 2
and
_a_ ^ð _α_ Þ � F <sup>þ</sup> ð _α_ Þ _y_ _:_ ð17Þ
Define the modified functional as
_r_ 2ð _α_ Þ ¼ jj _P_ F <sup>?</sup> ð _α_ Þ <sup>_y_</sup> <sup>jj</sup>
2 _:_ ð18Þ
Once a critical point (minimizer) _α_ ^ of _r_ 2 is found, ^ _a_ can be calculated using Eq (17) on _α_ ^,
i.e.
_a_ ^ ¼ F <sup>þ</sup> ð _α_ ^ Þ _y_ _:_ ð19Þ
Theorem 3 (Golub, Pereyra 1973) _Let r(_ _a_, _α_ ) _and r2_ ( _α_ ) _be defined as above_ . _We_ _assume_
_that in the open set_ O � R <sup>_k_</sup>, _the matrix_ F( _α_ ) _has a constant rank r_ - min( _m_, _n_ ).
1. _If_ _α_ ^ _is a critical point (or a global minimizer for_ _α_ 2 O _) of r_ 2( _α_ ), _and_
_a_ ^ ¼ F <sup>þ</sup> ð _α_ ^ Þ _y_ ð20Þ
_then_ ð _a_ ^ _;_ ^ _α_ Þ _is a critical point of r_ ( _a_, _α_ ) ( _or a global minimizer for_ _α_ 2 O) _and r_ ð _a_ ^ _;_ ^ _α_ Þ ¼ _r_ 2ð _α_ ^ Þ.
2. _If_ ð _a_ ^ _;_ ^ _α_ Þ _is a global minimizer of r_ ( _a_, _α_ ) _for_ _α_ 2 O, _then_ _α_ ^ _is a global minimizer of r_ 2( _α_ ) _in_ O
_and r_ 2ð _α_ ^ Þ ¼ _r_ ð _a_ ^ _;_ ^ _α_ Þ. _Furthermore, if there is an unique_ ^ _a_ _among the minimizing pairs of_
_r_ ( _a_, _α_ ), _then_ ^ _a_ _must satisfy_ Eq (20).
For the proof see [8], where the method of decimation of the functional _r_ 2 is given after the
theorem. The orthogonal transformation of the matrix F into “trapezoidal” form is used. Since
we use C++ in the computations, in the next paragraph we shall present the method of simplification of the functional _r_ 2 in SVD manner.
Computing in C++, Singular Value Decomposition. In the Armadillo library (a high
quality linear algebra library (matrix maths) for the C++ language, which aims to provide the
[ease of use and performance of MATLAB functions in more low level programming. “http://](http://arma.sourceforge.net/)
[arma.sourceforge.net/”) there is the command](http://arma.sourceforge.net/) svd for calculating the Singular Value
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 5 / 16
Improved approximation of spatial light distribution
Decomposition. For every rectangular _m_ × _n_ matrix F, where _m_ - _n_, the command svd gives us
the matrices _U_ and _V_ and the vector _s_ . The matrices _U_ and _V_ are orthogonal matrices of dimension _m_ × _m_ and _n_ × _n_ respectively. Further, _s_ is the vector of the singular values _s_ 1, _s_ 2,. . ., _sn_ . Let _S_
be the diagonal matrix _S_ = diag( _s_ 1,. . ., _sn_ ). We can assume that
_s_ 1 - _s_ 2 - . . . � _sn_ - 0 _:_ ð21Þ
If rank(F) = _r_, then _sr_ +1 = . . . = _sn_ = 0. If rank(F) = rank( _S_ ) = _r_, then denote by _Sr_ the invertible diagonal matrix
_s_ 1 0 . . . 0
0 _s_ 2 . . . 0
.. <sup>.</sup> .. <sup>.</sup> . .. .. <sup>.</sup>
0 0 . . . _sr_
3
_:_
777777775
_Sr_ ¼
2
666666664
Denote by S the _m_ × _n_ matrix defined by
��
1. if _r_ = _n_, we write S ¼ _<u>S</u>_ 0,
��
-
_<u>Sr</u>_ <u>0</u>
.
��
_<u>Sr</u>_ <u>0</u>
2. if _r < n_, then S ¼ 0 �� 0
Thus,
Fð _α_ Þ ¼ _U_ ð _α_ ÞSð _α_ Þ _V_ <sup>_T_</sup> ð _α_ Þ ð22Þ
(see [10], the alternative representation of SVD). The Moore-Penrose pseudoinverse of the
matrix S is the following _n_ × _m_ matrix
1. if _r_ = _n_, then S <sup>þ</sup> ¼ ½ _S_ <sup>�</sup> <sup>1</sup> j0�,
-
_<u>Sr</u>_ <sup>�</sup> <sup>1</sup> <u>0</u> .
��
_<u>Sr</u>_ <sup>�</sup> <sup>1</sup>
2. if _r < n_, then S <sup>þ</sup> ¼
��
_<u>Sr</u>_ <sup>�</sup> <sup>1</sup> <u>0</u>
0 �� 0
Therefore, the Moore-Penrose pseudoinverse of the matrix F is the matrix
F <sup>þ</sup> ð _α_ Þ ¼ _V_ ð _α_ ÞS <sup>þ</sup> ð _α_ Þ _U_ <sup>_T_</sup> ð _α_ Þ _:_ ð23Þ
The more simple form of the matrix of the projection _P_ F can be easily calculated by
_P_ Fð _α_ Þ ¼ Fð _α_ ÞF <sup>þ</sup> ð _α_ Þ ¼ _U_ ð _α_ ÞSð _α_ Þ _V_ <sup>_T_</sup> ð _α_ Þ _V_ ð _α_ ÞS <sup>þ</sup> ð _α_ Þ _U_ <sup>_T_</sup> ð _α_ Þ ¼
��
-
0
Þ <sup>_<u>Ir</u>_</sup> �� _U_ <sup>_T_</sup> ð _α_ Þ _;_
¼ _U_ ð _α_ ÞSð _α_ ÞS <sup>þ</sup> ð _α_ Þ _U_ <sup>þ</sup> ð _α_ Þ ¼ _U_ ð _α_ Þ <sup>_<u>Ir</u>_</sup> �� 0
0 0
where _Ir_ denote the identity matrix of the dimension _r_ × _r_ for _r_ = 1,. . ., _n_ −1. The orthogonal
projection _P_ F <sup>?</sup> ð _α_ Þ <sup>(see Eq (16)) has the form</sup>
<u>0</u>
F <sup>?</sup> ð _α_ Þ <sup>¼</sup> <sup>_U_</sup> <sup>ð</sup> <sup>_α_</sup> <sup>Þ</sup> <sup><u>0</u></sup> ��
0 _Im_ - _r_
_U_ <sup>_T_</sup> ð _α_ Þ _:_
_P_ F <sup>?</sup>
<sup><u>0</u></sup> ��
0
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 6 / 16
Improved approximation of spatial light distribution
From the given vector _y_ = ( _y_ 1,. . ., _ym_ ) <sup>_T_</sup> another vector ~ _y_ ð _α_ Þ can be defined by
_y_ ~ð _α_ Þ ¼ _U_ <sup>_T_</sup> ð _α_ Þ _y_ _:_ ð24Þ
The functional _r_ 2 (see Eq (18)) can be written as
<sup>0</sup> ��
0
<sup><u>0</u></sup> ��
0
_r_ 2ð _α_ Þ ¼ jj _U_ ð _α_ Þ <sup>0</sup> �� 0
0 _Im_ - _r_
_U_ <sup>_T_</sup> ð _α_ Þ _y_ jj2 ¼
¼ jj _U_ ð _α_ Þ <sup><u>0</u></sup> �� <u>0</u>
0 _Im_ - _r_
_y_ <sup>~</sup> ð _α_ Þjj2 _:_
If we write the vector ~ _y_ in a block form such as
_y_ ~ð _α_ Þ ¼
" #
_<u>y</u>_ ~½ _<u>r</u>_ �ð _α_ Þ
_y_ ~½ _m_ - _r_ �ð _α_ Þ
ð25Þ
and since the orthogonal transformation (in our case _U_ ( _α_ )) is isometric, we obtain
_r_ 2ð _α_ Þ ¼ jj <sup>0</sup> �� 0
0 _Im_ - _r_
Model <sup>P</sup> <sup>3</sup>
_j_ ¼ 1 <sup>_a_</sup> _j_ <sup>cos</sup> <sup>_cj_</sup> <sup>ð</sup> <sup>_θ_</sup> <sup>�</sup> <sup>_b_</sup> _j_ <sup>Þ</sup> <sup>.</sup>
Let
_y_ ~ð _α_ Þjj
2 ¼ jj _y_ ~½ _m_ - _r_ �ð _α_ Þjj2 _:_ ð26Þ
_T_ 2 R6 and _β_ ¼ ð _b; c_ Þ _T_ 2 R2
_a_ ¼ ð _a_ 1 _; a_ 2 _; a_ 3Þ
_T_ 2 R3 _;_ _α_ ¼ ð _b_ 1 _; b_ 2 _; b_ 3 _; c_ 1 _; c_ 2 _; c_ 3Þ
be independent vectors. Denote by pr _j_ the projection
pr _j_ : R <sup>6</sup> 7�! R <sup>2</sup>
_T_
ð _b_ 1 _; b_ 2 _; b_ 3 _; c_ 1 _; c_ 2 _; c_ 3Þ
for _j_ = 1, 2, 3. Let _ψ_ be the function, defined by
_T_ 7�! ð _bj; cj_ Þ
c : R <sup>2</sup> - R �! R
ð _β_ ; yÞ 7�! cos <sup>_c_</sup> ðy � _b_ Þ _:_
ð27Þ
To write the function <sup>P3</sup>
_j_ ¼1 <sup>_a_</sup> _j_ <sup>cos</sup> <sup>ðy �</sup> <sup>_b_</sup> _j_ <sup>Þ</sup>
_cj_ in the form Eq (7), we take
or shortly
_φ_ 1ð _α_ ; y _i_ Þ ¼ cðpr1ð _α_ Þ; y _i_ Þ
_φ_ 2ð _α_ ; y _i_ Þ ¼ cðpr2ð _α_ Þ; y _i_ Þ
_φ_ 3ð _α_ ; y _i_ Þ ¼ cðpr3ð _α_ Þ; y _i_ Þ _;_
_φj_ ð _α_ ; y _i_ Þ ¼ cðpr _j_ ð _α_ Þ; y _i_ Þ ¼ cos <sup>_cj_</sup> ðy _i_ - _bj_ Þ ð28Þ
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 7 / 16
Improved approximation of spatial light distribution
for _j_ = 1, 2, 3 and _i_ = 1,. . ., _m_ . The matrix F( _α_ ) is the _m_ × 3 matrix
cos <sup>_c_</sup> <sup>1</sup> ðy1 � _b_ 1Þ cos <sup>_c_</sup> <sup>2</sup> ðy1 � _b_ 2Þ cos <sup>_c_</sup> <sup>3</sup> ðy1 � _b_ 3Þ
cos <sup>_c_</sup> <sup>1</sup> ðy2 � _b_ 1Þ cos <sup>_c_</sup> <sup>2</sup> ðy2 � _b_ 2Þ cos <sup>_c_</sup> <sup>3</sup> ðy2 � _b_ 3Þ
.. <sup>.</sup> .. <sup>.</sup> .. <sup>.</sup>
cos <sup>_c_</sup> <sup>1</sup> ðy _m_ - _b_ 1Þ cos <sup>_c_</sup> <sup>2</sup> ðy _m_ - _b_ 2Þ cos <sup>_c_</sup> <sup>3</sup> ðy _m_ - _b_ 3Þ
3
777777775
Fð _α_ Þ ¼
2
666666664
_:_ ð29Þ
For given _α_, in C++ we calculate the matrices _U_, _V_ and the vector of the singular values _s_ by
the command svd . The rank _r_ of the matrix F( _α_ ) is equal to the number of nonzero singular
values in _s_ . We calculate the vector ~ _y_ as in Eq (24) and solve the least square problems
_r_ 2ð _α_ Þ ¼ jj _y_ ~½ _m_ - _r_ �ð _α_ Þjj
2 _:_ ð30Þ
As soon as the solution _α_ ^ of the least square problem (30) is found we can calculate ^ _a_ (see
Theorem 3) by ^ _a_ ¼ F <sup>þ</sup> ð _α_ ^ Þ _y_ .
The algorithms
In previous works [4, 6], the model described above was applied in conjunction with several
custom-built algorithms that are based on local search heuristics and some meta-heuristics.
The implemented algorithms include a steepest descen T algorithm, two iterative improvement algorithms with different neighbourhoods, and two genetic algorithms, a standard one
and a hybrid one in which the best individuals of every generation are optimized with an iterative improvement algorithm. For a more detailed description of the algorithms we refer to [4].
The results of the experiments showed that all of the applied algorithms are capable of providing satisfactory results in all the tested instances, and differed mainly in the computational
time needed. The average RMS values obtained on real lenses were around _RMS_ = 2%. Hence,
the above-mentioned results proved that the model is accurate, and that sufficiently good
approximations can be found with a variety of algorithms for a sufficiently good description of
lenses.
However, it should be remembered that the model can also be used for data compression
tasks. A zero or very low RMS error is also essential in the foreseen application, in which premanufactured lenses need to be combined into a more complex luminaire with a prescribed
light distribution.
In the model we use a sum of functions that are smooth, and hence the first and second
derivatives can be calculated allowing application of continuous optimization methods in
addition to the general discrete optimization meta-heuristics that were used before. We
decided to use the Newton (also known as the Newton–Raphson) iterative method [11, 12] in
order to find the sought-for solution. It is well known that convergence of the Newton method
may significantly depend on the initial solution. We therefore applied the method in two ways.
First, we used the Newton method as an optimizer which can pinpoint the local minimum of
solutions found by heuristic algorithms. In a sense this implementation of the Newton method
is an extension of the discrete optimization algorithm, which is used to finalize the search to
end in a local minimum. (Note that the local minima may be missed by discrete optimization
algorithms due to the predefined length of the discrete moves.) Secondly, we use the Newton
method as a stand-alone algorithm that will, on initialization, generate a number of random
(initial) solutions that are uniformly scattered over the whole search space. It then uses the
Newton method on a number of the best initial solutions in order to find the local minima. Of
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 8 / 16
Improved approximation of spatial light distribution
course, for both implementations to be comparable, the iteration method has to be controlled
so that the overall maximum amount of computation time is roughly the same.
Multi-start IF and IF-R. The multi-start iterative improvement with fixed neighbourhood (IF) and IF with reduced parameters IF-R algorithm [4–6] first initializes several initial
solutions. The initial solutions are randomly chosen from the whole search space. Each of the
initial solutions is then optimized using the following steps. At the beginning, the search step
values (the step for numerical differentiation) _da_ = 0.01, _db_ = 1, and _dc_ ¼ <sup>_<u>Imax</u>_</sup> 10 <sup>are initialized, giv-</sup>
ing the 512 neighbours of the initial solution: ( _a_ 1 ± _da_, _b_ 1 ± _db_, _c_ 1 ± _dc_, _a_ 2 ± _da_, _b_ 2 ± _db_, _c_ 2 ± _dc_,
_a_ 3 ± _da_, _b_ 3 ± _db_, _c_ 3 ± _dc_ ). In the case of IF-R we only initialize the step values _db_ = 1 and
_dc_ ¼ <sup>_<u>Imax</u>_</sup> 10 <sup>~~,~~</sup> <sup>giving 64 neighbours of the initial solution: (</sup> <sup>_b_</sup> <sup>1 ±</sup> <sup>_db_</sup> <sup>,</sup> <sup>_c_</sup> <sup>1 ±</sup> <sup>_dc_</sup> <sup>,</sup> <sup>_b_</sup> <sup>2 ±</sup> <sup>_db_</sup> <sup>,</sup> <sup>_c_</sup> <sup>2 ±</sup> <sup>_dc_</sup> <sup>,</sup> <sup>_b_</sup> <sup>3 ±</sup> <sup>_db_</sup> <sup>,</sup>
_c_ 3 ± _dc_ ). The algorithm then randomly chooses a neighbour, and immediately moves to this
neighbour if its RMS value is better than the current RMS value. If no better neighbour is found
after 1000 trials, it is assumed that no better neighbour exists. In this case the algorithm morphs
the neighbourhood by changing the step according to the formula _di_ +1 = _di_ + _d_ 0. More precisely,
_dbi_ +1 = _dbi_ + _db_ 0 where _db_ 0 is the initial step value and by analogy _dci_ +1 = _dci_ + _dc_ 0 where _dc_ 0 is
the initial step value.
This is repeated until _i_ = 10. If there still is no better solution, the initial step value is multiplied by 0.9 and the search is resumed from the current solution with a finer initial step. The
algorithm stops when the number of generated solutions reaches _Tmax_ .
Newton’s method IF-N. Newton’s method [11, 13, 14] is a well-known numerical optimization method, which can provide very good results under certain assumptions about the evaluation function and the initial solution. The evaluation function is indirectly minimized by
looking for a solution of a system of nonlinear equations (the first derivatives of the evaluation
function). Newton’s method solves the system of nonlinear equations iteratively by approximating it, in each step, with a system of linear equations which produce the delta vector. The delta
vector is a part of the iterative scheme x <sup>_i_</sup> _k_ <sup>þ1</sup> ¼ x <sup>_i_</sup> _k_ <sup>�</sup> <sup>d</sup> _k_ <sup>_i_</sup> <sup>. The Newton method converges when the</sup>
delta vector vanishes, _d_ = 0. At this point the evaluation coefficients found are the local minima.
Details are given in [6]. An obvious assumption is that the evaluation function has to be a continuous non-linear function for which first and second order derivatives are defined. For Newton’s method to converge, the initial solution has to be close enough to a local or global
optimum. For this reason the method is very sensitive to the choice of the initial solution.
<sup>_i_</sup> _k_ <sup>�</sup> <sup>d</sup> _k_ <sup>_i_</sup>
<sup>_i_</sup> _k_ <sup>þ1</sup> ¼ x <sup>_i_</sup> _k_
The datasets
The experimental study made use of two batches consisting of 9 and 3 instances. We selected 9
different asymmetrical lenses which are meant to be used with a CREE XT-E series LED, from
one of the world’s leading lens manufacturer LEDIL from Finland. We acquired the photometric
data from LEDIL’s on-line catalogue [15]. The data was provided in.ies format, which we then
converted to a vector list which is more suitable to use in our algorithms. LEDIL measured the
individual lenses with a polar precision of 1˚ on 25 C panels. Additionally, we also ran the approximation on three LEDIL lenses that were measured in the photometric laboratory at the Faculty
of Electrical Engineering in Ljubljana. These three (Komb1, Komb2 and Komb2nr) lenses from
Fig 1 were measured at higher azimuth resolution, which yielded 13032 measurements and the
same number of vectors to be approximated. The total number of real instances was 12.
Experimental results and discussion
In this section the results obtained by using the three presented algorithms are discussed. All
the algorithms ran for _Tmax_ = 4 million iterations. After every ten thousand iterations we saved
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 9 / 16
Improved approximation of spatial light distribution
<u>Fig 1.</u> <u>Graphical representation of the measured Ledil oy. lens combinations.</u>
[https://doi.org/10.1371/journal.pone.0176252.g001](https://doi.org/10.1371/journal.pone.0176252.g001)
the results which are presented in the section Supporting Information in S1, S2 and S3 Tables.
The results are presented as the averages over 25 C-panels for each lens. The input data consisted of 12 lenses. The first 9 lenses were obtained from the manufacturers catalogue [15], and
the last three were measured by us.
In S1, S2 and S3 Tables we present the average, minimum, and maximum RMS error after a
varying number of iterations for the IF, IF-N and IF-R algorithms respectively. The types of
lenses are given in the first columns. Experimentally, we also upgraded the IF algorithm with
reduced parameters by the Newton method. Compared to S3 Table, the results of the IF-R
algorithm upgraded by the Newton method are exactly the same. An obvious conclusion is
that, at least in the cases tested, the results provided by the IF-R algorithm are so good that
there is no room for improvement by the Newton method.
From the paper [6], we know that the IF-N algorithm improved the algorithms in [3, 4] by
an average of 60% increased quality (minimized RMS). Here, S1 and S2 Tables show that the
IF-N algorithm improves the classical algorithm IF slightly. However, we are more interested
in a comparison of the results of the RMS errors of the IF-R algorithm with respect to the data
of the IF algorithm (or the IF-N algorithm).
We can immediately see that our new algorithm (IF-R) is, on average, much better than
both the IF and the IF-N algorithms. The errors after 4M iterations are much lower in our new
algorithm with respect to the usual IF algorithm. On the other hand, the errors after 4M iterations of the new algorithm and the IF-N algorithm are comparable.
In order to analyze the results given in S1, S2 and S3 Tables more closely let us consider the
graphs provided below. On the horizontal axis we have the number of iterations, and on the
vertical axis the RMS error. The average convergence curves for the whole lenses are very similar, so that are not presented here. Instead we chose one lens, the Komb1 (all 25 C-planes) to
present the results and comparisons, so that we can see the characteristic differences between
the C-plane approximations.
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 10 / 16
Improved approximation of spatial light distribution
Fig 2. Convergence curves of the lens Komb1 for the _C_ -planes of the IF algorithm. The curves in the
graph are the best on each C-panel regardless of the multi-start. In other words C0 can be obtained from
<u>multi-start 5 and C1 from multi-start 9. The criteria for the best approximation is the RMS obtained at</u> _<u>Tmax</u>_ <u>.</u>
[https://doi.org/10.1371/journal.pone.0176252.g002](https://doi.org/10.1371/journal.pone.0176252.g002)
In Fig 2, the convergence curves of Komb1 from the IF algorithm are given for each _C_ plane. It can be seen that the improvement of the errors seems to be insignificant between
3.2M and 4M iterations. It can also be observed that, while the majority of the C-planes follow
the same convergence pattern, there are some that deviate. We could attribute this deviation to
poorly chosen initial solutions, or to specific input data which can cause the search algorithms
to struggle (see C17 and C20 in Fig 2). As the experiment was set up in multi-start mode,
which means that every approximation started 10 times with randomly chosen initial solutions,
and that the presented data is the best of the best it is more likely that the convergence curve
deviation is due to specific input data. However it can be seen that, in the end, no matter which
input was used and how the convergence curve looks like, all the RMS at _Tmax_ are similar.
A comparison of the convergence of the IF-N algorithm and of the IF-R algorithm for the
Komb1 lens is represented in the next figures (Figs 3, 4), where in both graphs the same scale
is used.
We chose the IF-N algorithm because it exhibits almost the same convergence rate as the IF
algorithm, but provides slightly better end results (see Fig 5). This makes it more appropriate
for comparisons with the new algorithm.
Clearly, the convergence of the IF-R algorithm is much faster than that of the IF-N algorithm. In fact it is so fast that the scale used does not illustrate any properties of the new algorithm’s convergence apart from its speed. For this reason we looked at the graph in Fig 4 on a
smaller horizontal scale and got the following graph (Fig 6)
The convergence of the IF-R algorithm is 40 times faster than that of the IF and IF-N algorithms, but the curve slopes (gradients) are still similar, just on a smaller scale. Also, similarly
to the previous algorithms the IF-R algorithm shows only minute errors after 100K iterations.
From this it can be concluded that parameter separation has a huge impact on computation
time but does not alter the algorithm behaviour when searching for the best solution, which is
somewhat expected, as we did not change the algorithm workflow, just the pool of possible
solutions.
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 11 / 16
Improved approximation of spatial light distribution
<u>Fig 3.</u> <u>The convergence of the IF-N algorithm.</u>
[https://doi.org/10.1371/journal.pone.0176252.g003](https://doi.org/10.1371/journal.pone.0176252.g003)
Next we take out the graphs for the _C_ 1 plane from the figures above, and from the data of
the iterations we add the convergence curve of the IF-N algorithm. The convergence curves of
all three algorithms (IF, IF-N and IF-R) for the C1 plane of the Komb1 lens are displayed in
Fig 5. From this it can be seen that the IF-N algorithm does not change the convergence curve
as was implied above, it just improves the RMS values slightly at every step. We again observe
the superiority of the algorithm with reduced parameters, which converges in a fraction of the
time needed for the other two algorithms.
<u>Fig 4.</u> <u>The convergence of the IF-R algorithm.</u>
[https://doi.org/10.1371/journal.pone.0176252.g004](https://doi.org/10.1371/journal.pone.0176252.g004)
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 12 / 16
Improved approximation of spatial light distribution
<u>Fig 5.</u> <u>Convergence curves of the Komb1 lens for the</u> _<u>C</u>_ <u>-plane 1.</u>
[https://doi.org/10.1371/journal.pone.0176252.g005](https://doi.org/10.1371/journal.pone.0176252.g005)
<u>Fig 6.</u> <u>Convergence of the IF-R algorithm with reduced parameters in 100K iterations.</u>
[https://doi.org/10.1371/journal.pone.0176252.g006](https://doi.org/10.1371/journal.pone.0176252.g006)
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 13 / 16
Improved approximation of spatial light distribution
<u>Fig 7.</u> <u>Min-Avg-Max scatter diagram.</u>
[https://doi.org/10.1371/journal.pone.0176252.g007](https://doi.org/10.1371/journal.pone.0176252.g007)
For the last comparison of the algorithms, we showcase a scatter diagram of all the lenses in
Fig 7. This diagram shows the RMS values at _Tmax_ for the best, the worst, and the average over
25 C-panels of each lens from the experiment.
Again there is an obvious superiority of the new algorithm drawn in red, where the differences between the maximum (worst) RMS and the minimum (best) RMS are the smallest. It
can be seen that the differences in the case of the new algorithm are mostly two times smaller
than in the case of the old algorithms, but they can also be 4 times smaller as in case of the
CA12087 lens.
It can therefore be concluded that the used method of separating the linear and non-linear
parameters, provides a huge performance boost to the developed algorithms, even to the level
where these algorithms could be used in commercial applications, which are meant to be used
on a daily basis by users who are not programmers or mathematicians.
Remark 4 _Following the recommendation of one of the reviewers, our results were compared_
_with the results of the standard optimization solver in Matlab._ _The standard function_ lsqcurvefit
_for approximation_ _of nonlinear function given by_ Eq (1) _was used_ . _For the initial values, random_
_solutions (i.e. vectors from_ [0, 1] <sup>3</sup> × [−90, 90] <sup>3</sup> × [0, 100] <sup>3</sup> _) were generated, and the measured_
_data were the measured luminous values IM_ ( _θi_ ) at polar angles _θi (see section The model)_ . _We_
_ran_ lsqcurvefit _for all 25 C-panels for each of the first 9 lenses_ . _To_ _allow approximately_ _the same_
_running time (Matlab was run on another computer), we aim to allow approximately_ _the same_
_number of feasible solutions generated by each of the solvers. Therefore, on each instance (each C_
_panel of each lens), function_ lsqcurvefit _was restarted 50 times with 40 000 iterations allowed_
_and precision 1e-6_ . _The best solutions on each instance are memorised_ . _In_ S4 Table, _the RMS_
_error on best, worst and average C panel are reported (right rows)_ . _Roughly speaking, comparison_
_with the average, minimum, and maximum RMS error obtained IF-R algorithm (left rows) shows_
_that in most cases, the solutions are of similar quality_ . _More precisely, on lens CA12087, Matlab_
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 14 / 16
Improved approximation of spatial light distribution
_solver provides solutions with significantly lower RMS error (two to three times better), but on the_
_other hand, on lenses CA13299, CA13300 and CA13805, the IF-R solutions are about 6 times bet-_
_ter on average! Note that on these three lenses, the Matlab solver was in addition run with 500_
_restarts, with 400 000 iterations allowed and with precision 1e-10, and in all cases, the solutions_
_did not improve significantly_ . _On the other hand, note that IF-R finds solutions of the reported_
_quality in much shorter runs (see_ Figs 3 and 4 _), and was allowed 4M iterations just to show the_
_speed up in comparison to the other algorithms tested. This additional experiment thus showed_
_that the reduction of parameters dramatically improves the convergence speed, and sometimes_
_also the quality of approximation_ . _An interesting_ _avenue of further research may be to optimize_
_the implementation and parameter tuning of IF-R, and, on the other hand, understand the prop-_
_erties of the instances (c.f. CA13299, CA13300 and CA13805)that allowed so diverse solution_
_qualities_ .
Supporting information
[S1 Table. RMS error values for IF.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0176252.s001) The Average sub-table presents the average data over 25
C-panels, the Min table the best, and the Max table the worst C-panel.
(PDF)
[S2 Table. RMS error values for IF-N.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0176252.s002) The Average sub-table presents the average data over 25
C-panels, the Min table the best, and the Max table the worst C-panel.
(PDF)
[S3 Table. RMS error values for IF-R.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0176252.s003) The Average sub-table presents the average data over 25
C-panels, the Min table the best, and the Max table the worst C-panel.
(PDF)
[S4 Table. RMS error values for IF-R and Matlab.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0176252.s004) The average, the best and the worst RMS
error of IF-R AND Matlab solver after around 4M iterations.
(PDF)
Acknowledgments
The authors wish to thank to Bor Plestenjak for running the last experiment in which the comparison of the IF-R algorithm with the standard optimisation solver in Matlab was done. The
authors also wish to sincerely thank to the anonymous reviewer for careful reading of the manuscript and for constructive suggestions that contributed to improve the presentation
considerably.
Author Contributions
Conceptualization: DK TN JZ <sup>ˇ</sup> .
Data curation: DK TN JZ <sup>ˇ</sup> .
Formal analysis: DK TN JZ <sup>ˇ</sup> .
Funding acquisition: DK TN JZ <sup>ˇ</sup> .
Investigation: DK TN JZ <sup>ˇ</sup> .
Methodology: DK TN JZ <sup>ˇ</sup> .
Project administration: DK TN JZ <sup>ˇ</sup> .
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 15 / 16
Improved approximation of spatial light distribution
Resources: DK TN JZ <sup>ˇ</sup> .
Software: DK TN JZ <sup>ˇ</sup> .
Supervision: DK TN JZ <sup>ˇ</sup> .
Validation: DK TN JZ <sup>ˇ</sup> .
Visualization: DK TN JZ <sup>ˇ</sup> .
Writing – original draft: DK TN JZ <sup>ˇ</sup> .
Writing – review & editing: DK TN JZ <sup>ˇ</sup> .
References
1. Molina D, Lozano M, Sa´nchez AM, Herrera F. Memetic algorithms based on local search chains for
large scale continuous optimization problems: MA-SSW-Chains. Soft Comput. 2011; [15: 2201. https://](https://doi.org/10.1007/s00500-010-0647-2)
[doi.org/10.1007/s00500-010-0647-2](https://doi.org/10.1007/s00500-010-0647-2)
2. Moreno I, Sun C-C. Modeling the radiation pattering of LEDs. Opt Express. 2014; 16: 1808–1819.
[https://doi.org/10.1364/OE.16.001808](https://doi.org/10.1364/OE.16.001808)
3. Kaljun D, Z <sup>ˇ</sup> erovnik J. Function fitting the symetric radiation pattern of a LED with attached secondary
optics. Opt Express. 2014; [22: 29587–29593. https://doi.org/10.1364/OE.22.029587 PMID: 25606891](https://doi.org/10.1364/OE.22.029587)
4. Kaljun D, Rupnik Poklukar D, Z <sup>ˇ</sup> erovnik J. Heurstic for optimization of led spatial light distribution model.
Informatica. 2015; 39: 317–327.
5. Kaljun D, Z <sup>ˇ</sup> erovnik J. Developing led ilumination optics design. Papa G (Ed). Advances in Evolutionary
Algorithms Research. Nova Science Publishers, Inc. 400 Oser Ave Suite 1600, Hauppauge NY, USA.
2015; 11788–361.
6. Kaljun D, Petrisˇič J, Z <sup>ˇ</sup> erovnik J. Using Newton’s Method to Model the Spatial Light Distribution of an
LED with Attached Secondary Optics. Stroj Vestn-J Mech E. 2016; [62: 307–317. https://doi.org/10.](https://doi.org/10.5545/sv-jme.2015.3234)
[5545/sv-jme.2015.3234](https://doi.org/10.5545/sv-jme.2015.3234)
7. Kaufman L, Pereyra V. A Method for Separable Nonlinear Least Squares Problems with Separable
Nonlinear Equality Constraints. SIAM J Numer Anal. 1978; [15: 12–20. https://doi.org/10.1137/0715002](https://doi.org/10.1137/0715002)
8. Golub GH, Pereyra V. The Differentiation of Pseudo-Inverses and Nonlinear Least Square Problems
Whose Variables Separate. SIAM J Numer Anal. 1973; [10: 413–432. https://doi.org/10.1137/0710036](https://doi.org/10.1137/0710036)
9. Penrose R. A generalized inverse for matrices. Math Proc Cambridge Philos Soc. 1955; 51: 406–413.
[https://doi.org/10.1017/S0305004100030401](https://doi.org/10.1017/S0305004100030401)
10. Golub GH, Reinsch C. Singular Value Decomposition and Least Squares Solutions. Numer Math. 1970;
[14: 403–420. https://doi.org/10.1007/BF02163027](https://doi.org/10.1007/BF02163027)
11. Quateroni A, Saaco R, Saleri F. Nonlinear systes and numerical optimisation. Marsden J, Sirovich L,
Antman S (Eds). Numerical Mathematics. Springer-Verlag GmbH, Tiergartenstrasse 17, D-69121 Heidelberg, Germany; 2015.
12. Yang H, Bergmans JM, Schenk TCW, Linnartz J-PMG, Rietman R.An analytical model for the illuminance distribution of a power LED. OSA 2008.
13. Herceg D, Herceg Dj. Means based modications of Newton’8s method for solving nonlinear equations.
Appl Math Comput. 2013; 219: 6126–6133.
14. Thukral R. Introduction to a newton-type method for solving nonlinear equations. Appl Math Comput.
2008; 195: 663–668.
15. [Ledil oy. from http://www.ledil.com/products/?y, accesed on 07-18-2016](http://www.ledil.com/products/?y)
[PLOS ONE | https://doi org/10 1371/journal pone 0176252](https://doi.org/10.1371/journal.pone.0176252) April 28 2017 16 / 16
섹션 본문
섹션 본문이 없습니다.
참고문헌 12건
- A generalized inverse for matrices Mathematical Proceedings of the Cambridge Philosophical Society · Cambridge University Press · 1955 10.1017/s0305004100030401
- Introduction to a Newton-type method for solving nonlinear equations Applied Mathematics and Computation · Elsevier BV · 2007 10.1016/j.amc.2007.05.013
- The Differentiation of Pseudo-Inverses and Nonlinear Least Squares Problems Whose Variables Separate SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1973 10.1137/0710036
- Memetic algorithms based on local search chains for large scale continuous optimisation problems: MA-SSW-Chains Soft Computing · Springer Science+Business Media · 2010 10.1007/s00500-010-0647-2
- Means based modifications of Newton’s method for solving nonlinear equations Applied Mathematics and Computation · Elsevier BV · 2013 10.1016/j.amc.2012.12.016
- A Method for Separable Nonlinear Least Squares Problems with Separable Nonlinear Equality Constraints SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1978 10.1137/0715002
- Singular value decomposition and least squares solutions Numerische Mathematik · Springer Science+Business Media · 1970 10.1007/bf02163027
- Modeling the radiation pattern of LEDs Optics Express · Optica Publishing Group · 2008 10.1364/oe.16.001808
- An analytical model for the illuminance distribution of a power LED Optics Express · Optica Publishing Group · 2008 10.1364/oe.16.021641
- Function fitting the symmetric radiation pattern of a LED with attached secondary optic Optics Express · Optica Publishing Group · 2014 10.1364/oe.22.029587
- Using Newton’s Method to Model the Spatial Light Distribution of an LED with Attached Secondary Optics Strojniški vestnik – Journal of Mechanical Engineering · University of Ljubljana · 2016 10.5545/sv-jme.2015.3234
- Numerical Mathematics Undergraduate texts in mathematics · Springer Science+Business Media · 1991 10.1007/978-1-4612-4442-4