선정목록으로
SPOT Sequential Parameter Optimization Toolbox
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(22) POM(폴리아세탈)
기본 정보
- 저자
- DOI
- 10.17877/de290r-9033
- 저널
- Technische Universität Dortmund Eldorado (Technische Universität Dortmund)
- 발행년도
- 2015
- 발행기관
- Erich-Brost-Institut
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- http://hdl.handle.net/2003/26163
- 토픽
- High voltage insulation and dielectric phenomena
- OpenAlex ID
- W6887946804
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (21) 에폭시수지, (22) POM(폴리아세탈)
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- Sequential Parameter Optimization, stochastic process model, optimization algorithms, design of mold temperature control
- 판단 근거
- 이 논문은 알고리즘의 파라미터를 최적화하는 SPOT 툴박스에 관한 연구로, 직접적인 소재 연구는 아니나 공정 조건(금형 온도 제어 등)이나 복합 소재 배합 최적화 등 코오롱인더스트리의 제조 공정 및 컴파운드 설계 시 분석·모델링 기법으로 활용 가능합니다.
- R&D 활용 포인트
- 컴파운드 배합 비율 최적화, 화학 수지 중합 조건 설정, 또는 필름 제조 공정의 변수 최적화 등 데이터 기반의 공정 설계 및 물성 예측 모델링에 활용할 수 있습니다.
- 평가 입력
- 본문 36,962자 중 30,032자 발췌
초록
초록이 없습니다.
본문 36,962자
본문 펼치기
# SPOT Sequential Parameter Optimization Toolbox
Thomas Bartz-Beielstein
Faculty of Computer Science and Engineering Science
Cologne University of Applied Sciences
D-51643 Gummersbach
Germany
Christian Lasarczyk, Mike Preuß
Algorithm Engineering
Dept. of Computer Science
Dortmund University
D-44221 Dortmund
Germany
Version 0.3
January 11, 2007
## Contents
1 Introduction 2
2 Requirements 3
3 Installation 4
3.1 A first example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 Adapting SPOT Settings to Your Needs . . . . . . . . . . . . . . 5
3.2.1 Modifying the Region of Interest (Algorithm Design) . . . 5
3.2.2 Modifying the Problem Dimension (Problem Design) . . . 9
3.2.3 Modifying Factors that Remain Constant (Algorithm Design) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4 Design and Result Files 9
4.1 Design Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 Result Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1
5 Examples 10
5.1 Downloading and installing the SPOT program . . . . . . . . . . 11
5.2 Optimizing a JAVA algorithm . . . . . . . . . . . . . . . . . . . . 11
5.2.1 Downloading and installing the JAVA program . . . . . . 11
5.2.2 The SPOT interface to the JAVA program . . . . . . . . 11
5.2.3 Files for the JAVA ES Optimization . . . . . . . . . . . . 12
5.3 Optimizing a particle swarm optimization (MATLAB) . . . . . . 12
5.3.1 Downloading and installing the particle swarm optimization 12
5.3.2 The SPOT interface to the PSOTOOLBOX . . . . . . . . 12
6 Common Errors 12
7 Questions 12
8 Functions 15
8.1 SPOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
8.2 Additional files for the SPO toolbox . . . . . . . . . . . . . . . . 16
8.3 esmatlab Toolbox . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
9 Parameters, Variables, Factors 18
9.1 SPOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
9.2 esmatlab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
## 1 Introduction
This article describes the SPO toolbox. SPO is an acronym for _sequential_
_parameter_ _optimization_ (Bartz-Beielstein, 2006). The SPO _toolbox_ described in
this article is referred to as SPOT. It was developed over the last years by
Thomas Bartz-Beielstein, Christian Lasarczyk, and Mike Preuß at the Chair of
Algorithm Engineering, Dortmund University. The main purpose of SPO is to
determine improved parameter settings for optimization algorithms to analyze
and understand their performance.
SPO was successfully applied to numerous optimization algorithms, especially in the field of evolutionary computation, i.e., evolution strategies, particle
swarm optimization, algorithmic chemistries etc. in the following domains:
_•_ machine engineering: design of mold temperature control (Mehnen et al.,
2005; Weinert et al., 2004; Mehnen et al., 2004)
_•_ aerospace industry: airfoil design optimization (Bartz-Beielstein & Naujoks, 2004)
_•_ simulation and optimization: elevator group control (Bartz-Beielstein et al.,
2005c; Markon et al., 2006)
_•_ technical thermodynamics: non sharp separation (Bartz-Beielstein et al.,
2005b)
2
_•_ economy: agri-environmental policy-switchings (de Vegt, 2005)
Other fields of application are in fundamental research:
_•_ algorithm engineering: graph drawing (Tosic, 2006)
_•_ statistics: selection under uncertainty (optimal computational budget allocation) for PSO (Bartz-Beielstein et al., 2005a)
_•_ evolution strategies: threshold selection and step-size adaptation (BartzBeielstein, 2005)
_•_ other evolutionary algorithms: genetic chromodynamics (Stoean et al.,
2005)
_•_ computational intelligence: algorithmic chemistry (Bartz-Beielstein et al.,
2005b)
_•_ particle swarm optimization: analysis and application (Bartz-Beielstein
et al., 2004a)
_•_ numerics: comparison and analysis of classical and modern optimization
algorithms (Bartz-Beielstein et al., 2004b)
Further projects, e.g., vehicle routing and door-assignment problems and the
application of methods from computational intelligence to problems from bioinformatics are subject of current research.
SPOT relies on functions provided by the MATLAB Kriging Toolbox DACE
developed by Lophaven et al. (2002).
## 2 Requirements
SPOT requires MATLAB, the MATLAB statistics toolbox, and the MATLABDACE toolbox. It runs under different operating systems. Experiments
described in Bartz-Beielstein (2006) were performed on various Linux Systems
(Debian, Suse).
MATLAB’s `tdfread` function, which belongs to the statistic toolbox, uses
the `assignin` function to export data from a function to the MATLAB workspace.
This has to be modified, because the data should be exported to the caller function. Please perform the following steps to fix this problem:
1. Enter in the command window: `type` `tdfread`
2. Copy the result and save it as a new MATLAB function, i.e., `spottdf-`
```
read.m
```
3. Replace every occurence of the string `‘base’` with `‘caller’` in `spottd-`
```
fread.m
```
4. Save the modified `spottdfread.m` in your MATLAB path.
3
Figure 1: Directory
structure after the files
have been unzipped
Due to copyright restrictions, a modified `tdfread.m` is not delivered with the
SPO toolbox. We have contacted MathWorks Inc. already, so that this problem
may be solved in further versions.
## 3 Installation
3.1 A first example
1. Create a new directory, e.g., `g:` _\_ `myspot` .
2. Download the [spot03.zip](http://ls11-www.cs.uni-dortmund.de/people/tom/spot03.zip) file from
`[http://ls11-www.cs.uni-dortmund.de/people/tom/spot03.zip](http://ls11-www.cs.uni-dortmund.de/people/tom/spot03.zip)` and unzip it to `g:` _\_ `myspot` .
3. Download and unzip the MATLAB [DACE](http://www2.imm.dtu.dk/~hbn/dace/) toolbox, which is freely available from: `[http://www2.imm.dtu.dk/~hbn/dace/](http://www2.imm.dtu.dk/~hbn/dace/)` to a directory of your
choice, e.g., `g:` _\_ `myspot` .
4. Start MATLAB. SPOT can be used to tune every algorithm that allows
(or requires) the specification of exogenous parameters. Since there are
several algorithms available, we use an _evolution strategy_ (ES) to exemplify
the procedure first. In a second step, we illustrate how this procedur
can be generalized. To continue with the ES example, the reader should
download and unzip the ES package to a directory of her choice, e.g.,
`g:` _\_ `myspot` . The ES [package](http://ls11-www.cs.uni-dortmund.de/people/tom/esmatlab03.zip) is freely available from `[http://ls11-www.](http://ls11-www.cs.uni-dortmund.de/people/tom/esmatlab03.zip)`
```
cs.uni-dortmund.de/people/tom/esmatlab03.zip
```
5. The resulting directory structure is shown in Fig. 1. MATLAB should be
started in `g:` _\_ `myspot` .
6. Add the ES toolbox directories to the MATLAB path. This can be done
manually or you can also use `startspot.m` to add myspot and its subdirectories to the path from the command line. Please note, that the ES
and the SPOT package can be used independently.
7. That is all. Now you can call `demoSpotMatlab(’demo1’)` to generate the
initial designs and improve the performance of the ES algorithm sequentially. First `demoSpotMatlab` generates the initial design and starts the
sequential parameter optimization next. You can delete results from previouss run by selecting `new=1` . Otherwise, if you have chosen `new=0` existing
4
results are included in the current model. After the runs are finished,
Fig. 2 and 3 are displayed.
Figure 2: _Left:_ Predicted values. _Right:_ Mean squared error
3.2 Adapting SPOT Settings to Your Needs
Based on the example from Sect. 3.1, we demonstrate several features of the
SPO toolbox. Note, there are configuration files related to SPOT:
1. ROI files, e.g., `demo1.roi`
2. CONF files, e.g., `demo1.m`
and files related to the algorithm
1. `esdemo1.m`
3.2.1 Modifying the Region of Interest (Algorithm Design)
The _region_ _of_ _interest_ (ROI) contains interesting algorithm design points, e.g.,
interesting settings for the population size. Figure 4 reveals that small population sizes (NPARENTS) and low selective pressures (NU) worsen the performance of the ES. To adjust the region of interest, the ROI file can be modified
Figure 3: Effect plots
5
Figure 4: _Left:_ Predicted values. _Right:_ Effects
```
name low high isint pretty
NPARENTS 1 10 TRUE ’NPARENTS’
NU 1 5 FALSE ’NU’
TAU1 0.5 3 FALSE ’TAU1’
```
Figure 5: demo1.roi
using a simple text editor. Figure 5 shows the roi file `demo1.roi` from the example. The region of interest was modified as shown in Fig. 6 and saved as a new
file `demo2.roi` . Alternatively, a modification of the file `demo1.roi` would have
been possible, too. However, by saving the modifications in new files results
can be reproduced very easily. SPOT uses a configuration files like `demo1.m` to
specify SPOT related variables. `demo1` is the prefix of the names used for all
files related to one experimental run, i.e., the resultfile, the designfile, and the
roifile: `demo1.res`, `demo1.des`, `demo1.roi`, respectively.
The optimization algorithm, i.e., the ES, reads a design file written by SPOT
and writes a result file which will be used by SPOT to fit the stochastic process
model. The name of design file is `demo1.des` . The ES in our example adds
the string ‘es’ to the filenames, so it reads automatically the configuration file
‘esdemo1.m’.
If the ES is started, it opens a file `demo1.des` to read the parameter an writes
results to the resultfile `demo1.res` .
```
name low high isint pretty
NPARENTS 2 10 TRUE ’NPARENTS’
NU 2 5 FALSE ’NU’
TAU1 1 3 FALSE ’TAU1’
```
Figure 6: demo2.roi. It defines an improved design based on results from the
design specified in Fig. 5.
6
```
new=0
defaulttheta=1
loval=1E-3
upval=100
spotrmodel=’regpoly2’
spotcmodel=’corrgauss’
isotropic=0
repeats=3
maxrepeats=100
mergetype=1
ntestpointsperdim=10000
seed=0
na=40
newdesignsize=4
lhdsamples=30
lhdintervals=0
budget=250
nsteps=Inf
spotdirname=’spot03/’
dacemodelname=’’
npoints=10
tol=1.e-2
algorithmname= ’’
yname=’YALL’
```
Figure 7: demo1.m. Table 1 explains these variables.
<u>Table</u> <u>1:</u> <u>SPOT</u>
`new` To start a new run, especially with filenames that have
been used for other runs and these files should be overwritten, set this value to ”1”. To continue an existing experiment, choose ”0”.
`spotdirname` Directory where the optimization algorithm reads configuration and writes results files (use a closing _\_ or /). Default:
Directory where the spot files reside.
`isotropoic` Define number of theta values, default is # of factors,
which defines anisotropic models. Set nTheta to 1 to use
isotropic models.
`nsteps` Number of sequential optimization steps to be performed.
`algorithmname` Call to the algorithm to be tuned. A script or batch file
that calls the optimization algorithm has to be specified
here.
7
```
esdirname=pwd
nparents = 1
nu = 1
sigmanull = 1
nsigma = 1
taunull = 1
tauone = 1
rho = 2
xreco = ’disc’
sreco = ’inter’
xrscale = 0.5
srscale = 0.5
kappa = Inf
fname = ’Sphere’
startpoint = 1000
lb = -22
ub = 42
stepinit = ’detmod’
delta = 0
dim = 10
init = ’nunirnd’
tmax = 1000
termcriteria = ’iterations’
noisetype = ’noNoise’
noisedistribution = ’noNoise’
noiselevel = 0
testset = ’standard’
gm = 0
xopt = 0
successlimit = 0.01
showrun = 0
showpoints = 0
showendpoints = 0
showsuccessfullstartpoints = 0
showunsuccessfullstartpoints = 0
interval = 0
intervalsize = 100
```
Figure 8: esdemo1.m
<u>Table</u> <u>2:</u> <u>SPOT:</u> <u>esdemo1</u>
`esdirname` Path to the *des and *res-files
8
3.2.2 Modifying the Problem Dimension (Problem Design)
The experimenter might be interested in the question if similar algorithm designs
are beneficial for different problem dimensions. Therefore, he has to modify the
problem design. The problem design subsumes information about the objective
function, e.g., the problem dimension, and specifies the available budget, e.g.,
time, number of function evaluations etc. To modify the problem dimension,
the file `esdemo1.m` (Fig. 8) has to be edited. For example, using a text editor,
you can change `dim` `=` `2` to `dim` `=10` to analyze a 10 dimensional problem.
3.2.3 Modifying Factors that Remain Constant (Algorithm Design)
Factors that are varied during the sequential parameter optimization are specified in the ROI file. Many algorithms have factors that remain constant during
the sequential parameter optimization. They are specified in the `esdemo1.m`
file. By default, every factor of the optimization algorithm is specified in the
`esdemo1.m` file, SPO overwrites these values with values generated in the ROI
file. Since `nparents`, `nu`, and `tau1` are listed in the ROI file, we can modifiy the
`kappa` value in the `esdemo1.m` file.
3.2.4 Summary
SPO requires the specification of the following parameters:
1. Algorithm parameters to be tuned and varied. They are specified in the
ROI file, e.g., `demo1.roi` .
2. SPOT specific parameters, e.g., ( `demo1.m` )
In addition, the algorithm which should be tuned requires the specification of
the following parameters:
1. Algorithm parameters that remain constant
2. Problem specific parameters
In our example ( `esdemo1.m` ) was used to specify these parameters.
## 4 Design and Result Files
The SPOT concept is very simple and can be used for any optimization algorithm that can read and write ASCII files.
SPOT proposes algorithm designs for the algorithm. The algorithm is run
with these designs, results from these runs are written to _result_ _files_ (res-files).
SPOT reads the res-files and builds a stochastic process model. Based on this
model, new algorithm design points are generated and written to the _design_ _file_
(des-file). See also Bartz-Beielstein et al. (2005b).
9
4.1 Design Files
Design files are ASCII files which store information columnwise. They consist of
two parts: Header and body. The first line of a design file, the header, describes
the variable names. Entries are separated by blanks. Each of the following lines
contains information from one algorithm run. A minimum design file has two
lines. It might contain the following information:
```
A REPEATS CONFIG SEED
2 3 1 123
```
“A” denotes the name of algorithm parameter to be tuned, e.g., NPARENTS.
Each run is repeated three times with different random seeds, the first run uses
seed 123. This is configuration 1.
Based on the values from the des-file the optimization algorithm is run. Its
results are written to the res-file.
The header has to be the first line while the order of the other lines (rows) is
arbitrary. The order of the columns is arbitrary, too. The example from above
could be written as:
```
REPEATS CONFIG SEED A
3 1 123 2
```
4.2 Result Files
The structure of result files is the same as for design files: They are des-files with
one additional column which contains the result from the optimization runs. A
minimum result file contains the following information:
```
Y A REPEATS CONFIG SEED
0.2 2 3 1 123
```
This might be one result from an experiment which is based on the des-file from
above. The algorithm run yields an function value of _Y_ = 0 _._ 2.
Based on the values from the res-file SPOT will fit a stochastic process
model to predict promising design points.
## 5 Examples
The following examples describe simple parameter optimization scenarios. Section 5.1 describes the installation of the SPOTMATLAB files. This installation
is required for any of the following scenarios:
_•_ Section ?? shows how SPOT can be used to tune an evolution strategy
that was written in MATLAB.
_•_ Section 5.3 demonstrates how an existing optimization toolbox, the particle swarm optimization toolbox written by Jagatpreet Singh
[http://psotoolbox.sourceforge.net/](http://psotoolbox.sourceforge.net/)
can be integrated into SPOT.
10
_•_ Section 5.2 explains how to tune an evolution strategy which was implemented in JAVA with SPOT.
5.1 Downloading and installing the SPOT program
1. Download the [SPOT](http://ls11-www.cs.uni-dortmund.de/people/tom/spot03.zip\protect \let \futurelet \@let@token ) and [DACE](http://www2.imm.dtu.dk/~hbn/dace/) packages. In our example, both files
are downloaded to a newly generated directory, i.e., c: _\_ myspot. After the
SPOT and DACE packages are unzipped, the following directories exists:
(a) `c:` _\_ `myspot` _\_ `spot03`
(b) `c:` _\_ `myspot` _\_ `imm1460` _\_ `dace25`
2. Add these directories to the MATLAB path.
Note, the previous step were already described in Sect. 3. Now we consider how
implementing interfaces to other optimizers.
5.2 Optimizing a JAVA algorithm
5.2.1 Downloading and installing the JAVA program
We use an evolution strategy (ES) which is implemented in JAVA. The zip file
can be downloaded from:
[http://ls11-www.cs.uni-dortmund.de/people/tom/esjava.zip.](http://ls11-www.cs.uni-dortmund.de/people/tom/esjava.zip) Again, download
the zip file and unzip it to a newly generated directory, i.e., c: _\_ myspot _\_ esjava.
The directory should now contain the evolution strategy and a parameter file
demojava1.par <sup>1</sup>, that is needed to start the ES run.
5.2.2 The SPOT interface to the JAVA program
The command
```
java -jar es.jar demojava1.par
```
should be written to a batch file (Windows, e.g., runJava.bat) or to a shell
script (UNIX, e.g., runJava.sh), which can be called from within MATLAB.
The passage from the MATLAB script demoSpotJava.m reads:
```
%(8) Call the algorithm to be tuned.
if SpotOptions.System.Unix
[u v] = unix(’../esjava/runJava.sh’)
else
[u v] = dos(’..\esjava\runJava.bat’);
end
```
The batch file runJava.bat reads:
`cd` `c:` _\_ `myspot` _\_ `esjava`
`java` `-jar` `es.jar` `demojava1.par` The batch file from this example can be
[downloaded from http://ls11-www.cs.uni-dortmund.de/people/tom/runJava.bat](http://ls11-www.cs.uni-dortmund.de/people/tom/runJava.bat)
1The documentation of the parameters in the file demoSpot.par can be downloaded from
[http://ls11-www.cs.uni-dortmund.de/people/tom/esParameter.htm](http://ls11-www.cs.uni-dortmund.de/people/tom/esParameter.htm)
11
5.2.3 Files for the JAVA ES Optimization
The following files are used to specify the experimental setup:
1. `demojava1.roi` : Region of interest.
2. `demojava1.m` : SPOT settings.
3. `demojava1.par` : ES parameter file.
4. `runJava.bat` (WINDOWS) or `runJava.sh` (UNIX): Batch file/script for
calling the optimization algorithm from SPO.
5.3 Optimizing a particle swarm optimization (MATLAB)
5.3.1 Downloading and installing the particle swarm optimization
We use the psotoolbox which can be downloaded from
[http://psotoolbox.sourceforge.net/.](http://psotoolbox.sourceforge.net) This toolbox is a collection of MATLAB
files. Downloading and unzipping the toolbox might create the following directory:
`c:` _\_ `myspot` _\_ `spot03` _\_ `pso` _\_ `psotb-beta-0.3` Add this directory to the MATLAB
path and test the toolbox by starting the function `RunExp.m` .
5.3.2 The SPOT interface to the PSOTOOLBOX
Based on the `RunExp.m` function we implement an interface to SPOT.
TBD
## 6 Common Errors
Table 3 lists errors, possible causes, and solutions.
## 7 Questions
_•_ _Where_ _can_ _I_ _find_ _more_ _information_ _about_ _the_ DACE _toolbox?_
Check: http://www2.imm.dtu.dk/˜hbn/dace/
_•_ _My_ _optimization_ _algorithm_ _was_ _written_ _in_ _JAVA,_ _C,_ _C++,..._ _Can_ _I_ _use_
SPOT _?_
You can use any language if your algorithm is able to handle des- and
res-files.
_•_ _Does_ SPOT _run_ _without_ MATLAB _?_
No.
_•_ _My_ _optimization_ _algorithm_ _is_ _written_ _in_ MATLAB _._ _Is_ _there_ _a_ _generic_
_method_ _to_ _read_ _des-files?_
Yes. Reading des-files from MATLAB can be done as follows.
12
<u>Table</u> <u>3:</u> <u>Common</u> <u>errors.</u>
<u>Error</u> <u>message</u> <u>Possible</u> <u>cause</u> <u>Solution</u>
`Unable` `to` `open` Wrong MATLAB Change
`file.` working directory working
`???` `Undefined` The
`function` `or` command
`variable` `’Y’.` working
Wrong MATLAB
working directory
Wrong MATLAB Change the MATLAB
working directory working directory.
The MATLAB cd
command changes the
working directory. Alternatively you can use
the Current Directory
field in the MATLAB
desktop toolbar.
Batch file/shell script is Test the script (pernot executed correctly missions etc.) in a
Batch file/shell script is Test the script (pernot executed correctly missions etc.) in a
DOS/UNIX shell separately. If it works
fine, you can execute it
in the MATLAB com<u>mand</u> <u>window.</u>
`???` `Error` `using` Not enough design Increase the number
`==>` `dacefit` points of design points by
`least` `squares` modifying the value of
```
problem is SpotOptions.Design.
underdetermined LHDSamples
```
`???` `Error` `using` Not enough design Increase the number
`==>` `dacefit` points of design points by
`least` `squares` modifying the value of
```
problem is SpotOptions.Design.
underdetermined LHDSamples
```
Reduce the model com<u>plexity.</u>
`???` `Error` `using` Wrong `spotdirname` Select the correct value
`==>` `textread` `File` for `spotdirname` in
`not` `found.` `demoSpotJava.m` or
`Error` `in` `==>` related files.
```
spotreadroi at 6
[factornames, lb,
ub, whole, pp] =
textread(spotoptions.File.roifilename,...
Error in ==>
demoSpotJava at
18 SpotOptions =
spotreadroi(SpotOptions);
```
Not enough design
points
Wrong `spotdirname` Select the correct value
for `spotdirname` in
`demoSpotJava.m` or
related files.
`???` `Error` `using` Wrong dir for external
`==>` `eval` `Undefined` batch file (shell script)
```
function or
variable ’Y’.
Error in ==>
demoSpotJava at 64
Y=eval(SpotOptions.Vars.yname)
```
Select the correct setting in external files,
e.g., `runJava.bat`
1. Modify algorithm
or problem designs
to avoid divergent
behaviour or 2. Replace
”Inf” with large values
(not recommended)
```
??? Error using
==> predictor
DMODEL has not been
found
Error in ==>
demoSpotMatlab
at 147 [yLhd0,
dy0 mse0] =
```
Result file contains non
numerical results (Y
values), e.g., Inf
13
1. Specify the algorithm design variables from your algorithm, e.g., mu
and nu:
```
factornames = {’MU’, ’NU’};
```
2. Read the des-file:
```
tdfread(designfilename, ’ ’);
```
3. Overwrite default values with values from the des-file:
```
for i=1:length(factornames)
A(i)=factornames(i);
end
for i=1:length(eval(A{i})) %number of experiments
for j=1:REPEATS(i) %each experimental setting is
% repeated REPEAT(i) times.
% Overwrite default values with algorithm
% design values.
if ismember(’MU’, A)
mu = MU(i);
end
if ismember(’NU’, A)
nu = NU(i);
end
...
RUN YOUR ALGORITHM
...
WRITE RESULT FILE
end
end
```
_•_ _I_ _found_ _a_ _bug_ _in_ _the_ _toolbox._
Please report bugs and suggestions for improvement to
`thomas.bartz-beielstein[at]udo.edu` .
_•_ _Is_ _there_ _any_ _support_ _available?_
Currently we cannot provide any support.
_•_ _Is_ SPOT _free?_
Yes.
_•_ _Where_ _can_ _I_ _find_ _more_ _information_ _about_ _experimental_ _research,_ _design_
_of_ _experiments_ _(DOE),_ _and_ _design_ _and_ _analysis_ _of_ _computer_ _experiments_
_(DACE)?_
Bartz-Beielstein (2006) and Santner et al. (2003) are good starting points.
_•_ _How_ _can_ _I_ _quote_ _this_ _article?_
Please mention Bartz-Beielstein et al. (2006) if you have used the SPO
toolbox.
14
## 8 Functions
8.1 SPOT
The SPO toolbox contains the following MATLAB functions
`startspot.m` : Helper function to set the path and working directory.
`spotWriteNewDesign.m` : Update the design file based on predictions from the
DACE model.
`spotWriteInitialDesign.m` : Write the initial design based on the LHD.
`spotWriteDaceModel.m` : Write DACE model parameters to a `*.dac` file.
`spottdfread.m` : This function is required, but due to copyright problems not
included in the SPOT packages. Users have to copy the `tdfread.m` to a
new file, i.e., `spottdfread.m` and perform some minor editing as explained
in Sect. 2.
`spotreadroi.m` : Read the region of interest file.
`spotreadfactornames.m` : Returns factornames from res and des files.
`spotPlotEffectsSchonlau.m` : Plot the factor effects. Based on Schonlau
(1997).
`spotPlotDACEModel.m` : Plot the 3 dim DACE model (the first two factors from
the ROI file and the predicted response).
`spotMergeData.m` : Merge data from several repeats of one run configuration.
The following merge functions are implemented:
1. mean (1)
2. median (2)
3. min (3)
4. max (4)
5. spotbestoutof (4)
This function can also return the standard deviation (0).
`spotLatinHypercube.m` : Generate Latin hypercube distributed random num
bers:
_•_ _m_ : number of sample points to generate, if unspecified m = 1.
_•_ _n_ : number of dimensions, if unspecified n = m
15
Returns _S_, the generated n dimensional m sample points chosen from
uniform distributions on m subdivions of the interval (0.0, 1.0) Example:
Let _a_ = [1 2 3 4 5 6 7], be the vector of the lower bounds for 7 variables,
e.g., PSO, and _b_ = [10 20 30 40 50 60 70] the vector of the upper bounds.
Then `latinHypercube(10,7,a,b)` generates 10 design points.
`spotGetOptions.m` : Read the SPOT options file.
`spotGenerateFileNames.m` : Generate generic file names, i.e.,
1. des
2. bst
3. res
4. dac
5. bcl
6. xbst
7. fbst
8. roi
`spotCleanUp.m` : Delete the following files to enable a clean start:
1. des
2. bst
3. res
4. dac
5. bcl
6. xbst
7. fbst
`spotbestoutof.m` : Determines the average from nSamples that have been cre
ated as the minimum from a random sample of size sampleSize. Note:
`spotbestoutof(x,inf,1)` `=` `mean(x)`, `spotbestoutof(x,1,inf)` `=` `min(x)`
`demoSpotMatlab.m` : Main program.
8.2 Additional files for the SPO toolbox
`demospotplotresfile.m:` Visualize the results from an existing resfile.
16
8.3 esmatlab Toolbox
The `esmatlab` toolbox contains the following MATLAB functions
`addNoise.m` : Add noise to the function value.
`eseval.m` : Enable evaluation of test functions from the More et al. (1981) test
set.
`esInitPopulation` : Implement initialization schemes from Bartz-Beielstein
(2006, pp. 88) To initialize the set of search points _X_ <sup>(0)</sup> = _{x_ <sup>(0)</sup> 1 <sup>_, . . ., x_</sup> _p_ <sup>(0)</sup> <sup>_}_</sup> <sup>,</sup>
the following methods can be used:
(DETEQ) _Deterministic._ Each search point uses the same vector, which
is selected deterministically, i.e., _x_ init = 1 <sup>_T_</sup> _∈_ R <sup>_d_</sup> . As this method
uses only one starting point _x_ init, it is not suitable to visualize the
starting points for which the algorithm converged to the optimum.
Example 1 Schwefel (1995) proposed the following initialization scheme
for high-dimensional nonquadratic problems:
<sup>(0)</sup> _i_ = _x_ <sup>_∗_</sup> + <sup><u>(</u></sup> <sup>_<u>−</u>_</sup> _~~√~~_ <sup><u>1)</u></sup> <sup>_i_</sup>
_,_ for _i_ = 1 _, . . ., d._ (1)
_x_ <sup>(0)</sup> _i_
_~~√~~_
_d_
(DETMOD) _Deterministically_ _modified_ _starting_ _vectors._ The algorithm
can be tested with starting vectors _x_ <sup>(0)</sup>, 10 _x_ <sup>(0)</sup>, and 100 _x_ <sup>(0)</sup> More
et al. (1981), or any other scheme that generates starting points deterministically.
(UNIRND) _Uniform_ _random_ _starts._ Every search point ( _i_ = 1 _, . . ., p_ )
uses the same vector _x_ init _∈_ R <sup>_d_</sup>, where the _d_ components are realizations of independent _U_ [ _xl, xu_ ] random variables. This method
introduces an additional source of randomness. It is suitable to visualize the starting points for which the algorithm converged to the
optimum. This visualization technique is useful to get some insight
into the behavior of the algorithm.
(NUNIRND) _Nonuniform_ _random_ _starts._ Every search point uses a
different vector _x_ <sup>(0)</sup> _i_ <sup>,</sup> <sup>(</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_, . . ., p_</sup> <sup>),</sup> <sup>that</sup> <sup>is,</sup> <sup>_X_</sup> <sup>(0)</sup> <sup>=</sup> <sup>_{x_</sup> 1 <sup>(0)</sup> <sup>_, . . ., x_</sup> _p_ <sup>(0)</sup> <sup>_}_</sup> <sup>,</sup>
different vector _x_ <sup>(0)</sup> _i_ <sup>,</sup> <sup>(</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_, . . ., p_</sup> <sup>),</sup> <sup>that</sup> <sup>is,</sup> <sup>_X_</sup> <sup>(0)</sup> <sup>=</sup> <sup>_{x_</sup> 1 <sup>(0)</sup> <sup>_, . . ., x_</sup> _p_ <sup>(0)</sup> <sup>_}_</sup> <sup>,</sup>
with _x_ <sup>(0)</sup> _i_ = _x_ <sup>(0)</sup> _j_ _∀_ _i̸_ = _j_ . Each of the _p_ vectors _x_ init _∈_ R <sup>_d_</sup> consists of
with _x_ <sup>(0)</sup> _i_ = _x_ <sup>(0)</sup> _j_ _∀_ _i̸_ = _j_ . Each of the _p_ vectors _x_ init _∈_ R <sup>_d_</sup> consists of
_d_ components that are realizations of independent _U_ [ _xl, xu_ ] random
variables. This initialization method is used by many authors. It
introduces an additional source of randomness, and it is not suitable
to visualize the starting points for which the algorithm converged to
the optimum.
<sup>(0)</sup> _i_ = _x_ <sup>(0)</sup> _j_
<sup>(0)</sup> _i_ <sup>,</sup> <sup>(</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_, . . ., p_</sup> <sup>),</sup> <sup>that</sup> <sup>is,</sup> <sup>_X_</sup> <sup>(0)</sup> <sup>=</sup> <sup>_{x_</sup> 1 <sup>(0)</sup>
_̸_
`esInitStepSizes.m` : Initialization of the step sizes.
17
`esKappaSelection.m` : Environmental selection for ES.
`esMakeHandle.m` : Function handle.
`esMutation.m` : Mutation as described in Beyer & Schwefel (2002).
`esrecombination.m` : Implements discrete, intermediate, scalable, and no re
combination.
`eswritexbest.m` : Write object variables ( _x_ values) of the best individual to
the xbest file.
`terminate.m` : Implement three termination criteria, see Bartz-Beielstein (2006,
p.89):
1. budget (number of function evaluations) exhausted
2. minimum distance in the objective space reached
3. minimum distance to the optimum reached
`esdemo1.m` : Example ES configuration file. Note, that in our implementation
the name of the ES configuration file is generated by adding the prefix ‘es’
to the SPOT configuration file name, i.e., ‘demo1’ results in ‘esdemo1’.
This is done in `esGetOptions.m` .
`esGetOptions.m` : Read options (problem and algorithm designs) from an op
tions file, e.g., `esdemo1.m` .
`generateresfile.m` : Write data to the resultfile.
`esSpot.m` : The ES in MATLAB, i.e., the main class/function/method. It can
also be used as a stand alone ES without the SPOT framework.
## 9 Parameters, Variables, Factors
This section describes factors and their meaning.
9.1 SPOT
TBD
9.2 esmatlab
lb lower initialization bounds for object variables
ub upper initialization bounds for object variables
18
## References
Bartz-Beielstein, T. (2005). Evolution strategies and threshold selection. In
M. J. Blesa Aguilera, C. Blum, A. Roli, & M. Sampels (Eds.), _Proceedings_
_Second_ _International_ _Workshop_ _Hybrid_ _Metaheuristics (HM’05)_, volume 3636
of _Lecture_ _Notes_ _in_ _Computer_ _Science_ (pp. 104–115). Berlin, Heidelberg, New
York: Springer.
Bartz-Beielstein, T. (2006). _Experimental_ _Research_ _in_ _Evolutionary_
_Computation—The_ _New_ _Experimentalism_ . Berlin, Heidelberg, New York:
Springer.
Bartz-Beielstein, T., Blum, D., & Branke, J. (2005a). Particle swarm optimiza
tion and sequential sampling in noisy environments. In R. Hartl & K. Doerner
(Eds.), _Proceedings_ _6th_ _Metaheuristics_ _International_ _Conference_ _(MIC2005)_
(pp. 89–94). Vienna, Austria.
Bartz-Beielstein, T., de Vegt, M., Parsopoulos, K. E., & Vrahatis, M. N.
(2004a). _Designing_ _Particle_ _Swarm_ _Optimization_ _with_ _Regression_ _Trees_ . Interner Bericht des Sonderforschungsbereichs 531 Computational Intelligence
CI–173/04, Universit¨at Dortmund, Germany.
Bartz-Beielstein, T., Lasarczyk, C., & Preuß, M. (2005b). Sequential parame
ter optimization. In B. McKay & others (Eds.), _Proceedings_ _2005_ _Congress_
_on_ _Evolutionary_ _Computation_ _(CEC’05),_ _Edinburgh,_ _Scotland_, volume 1 (pp.
773–780). Piscataway NJ: IEEE Press.
Bartz-Beielstein, T., Lasarczyk, C., & Preuß, M. (2006). _Sequential_ _Parameter_
_Optimization_ _Toolbox_ . Technical Report CI–15x/06, Universit¨at Dortmund,
Germany.
Bartz-Beielstein, T. & Naujoks, B. (2004). _Tuning_ _Multicriteria_ _Evolution-_
_ary_ _Algorithms_ _for_ _Airfoil_ _Design_ _Optimization_ . Interner Bericht des Sonderforschungsbereichs 531 Computational Intelligence CI–159/04, Universit¨at
Dortmund, Germany.
Bartz-Beielstein, T., Parsopoulos, K. E., & Vrahatis, M. N. (2004b). Design and
analysis of optimization algorithms using computational statistics. _Applied_
_Numerical Analysis & Computational Mathematics (ANACM)_, 1(2), 413–433.
Bartz-Beielstein, T., Preuß, M., & Markon, S. (2005c). Validation and opti
mization of an elevator simulation model with modern search heuristics. In
T. Ibaraki, K. Nonobe, & M. Yagiura (Eds.), _Metaheuristics:_ _Progress_ _as_
_Real_ _Problem_ _Solvers_, Operations Research/Computer Science Interfaces (pp.
109–128). Berlin, Heidelberg, New York: Springer.
Beyer, H.-G. & Schwefel, H.-P. (2002). Evolution strategies—A comprehensive
introduction. _Natural_ _Computing_, 1, 3–52.
19
de Vegt, M. (2005). _Einfluss_ _verschiedener_ _Parametrisierungen_ _auf_ _die_ _Dy-_
_namik_ _des_ _Partikel-Schwarm-Verfahrens:_ _Eine_ _empirische_ _Analyse_ . Interner
Bericht der Systems Analysis Research Group SYS–3/05, Universit¨at Dortmund, Fachbereich Informatik, Germany.
Lophaven, S., Nielsen, H., & Søndergaard, J. (2002). _DACE—A_ _Matlab_ _Kriging_
_Toolbox_ . Technical Report IMM-REP-2002-12, Informatics and Mathematical
Modelling, Technical University of Denmark, Copenhagen, Denmark.
Markon, S., Kita, H., Kise, H., & Bartz-Beielstein, T., Eds. (2006). _Modern_ _Su-_
_pervisory_ _and_ _Optimal_ _Control_ _with_ _Applications_ _in_ _the_ _Control_ _of_ _Passenger_
_Traffic_ _Systems_ _in_ _Buildings_ . Berlin, Heidelberg, New York: Springer.
Mehnen, J., Michelitsch, T., Bartz-Beielstein, T., & Henkenjohann, N. (2004).
Systematic analyses of multi-objective evolutionary algorithms applied to realworld problems using statistical design of experiments. In R. Teti (Ed.),
_Proceedings_ _Fourth_ _International_ _Seminar_ _Intelligent_ _Computation_ _in_ _Man-_
_ufacturing_ _Engineering_ _(CIRP_ _ICME’04)_, volume 4 (pp. 171–178). Naples,
Italy.
Mehnen, J., Michelitsch, T., Bartz-Beielstein, T., & Lasarczyk, C. W. G.
(2005). Multiobjective evolutionary design of mold temperature control using
DACE for parameter optimization. In H. Pf¨utzner & E. Leiss (Eds.), _Pro-_
_ceedings Twelfth International Symposium Interdisciplinary Electromagnetics,_
_Mechanics,_ _and_ _Biomedical_ _Problems_ _(ISEM_ _2005)_, volume L11-1 (pp. 464–
465). Vienna, Austria: Vienna Magnetics Group Reports.
More, J. J., Garbow, B. S., & Hillstrom, K. E. (1981). Testing unconstrained
optimization software. _ACM_ _Transactions_ _on_ _Mathematical_ _Software_, 7(1),
17–41.
Santner, T. J., Williams, B. J., & Notz, W. I. (2003). _The_ _Design_ _and_ _Analysis_
_of_ _Computer_ _Experiments_ . Berlin, Heidelberg, New York: Springer.
Schonlau, M. (1997). _Computer_ _Experiments_ _and_ _Global_ _Optimization_ . PhD
thesis, University of Waterloo, Ontario, Canada.
Schwefel, H.-P. (1995). _Evolution and Optimum Seeking_ . Sixth-Generation Com
puter Technology. New York NY: Wiley.
Stoean, C., Preuss, M., Gorunescu, R., & Dumitrescu, D. (2005). Elitist Gen
erational Genetic Chromodynamics - a New Radii-Based Evolutionary Algorithm for Multimodal Optimization. In B. McKay & others (Eds.), _Proc. 2005_
_Congress_ _on_ _Evolutionary_ _Computation_ _(CEC’05)_, volume 2 (pp. 1839 1846). Piscataway NJ: IEEE Press.
Tosic, M. (2006). Evolution¨are Kreuzungsminimierung. Diploma thesis, Uni
versity of Dortmund, Germany.
20
Weinert, K., Mehnen, J., Michelitsch, T., Schmitt, K., & Bartz-Beielstein, T.
(2004). A multiobjective approach to optimize temperature control systems of
moulding tools. _Production_ _Engineering_ _Research_ _and_ _Development,_ _Annals_
_of_ _the_ _German_ _Academic_ _Society_ _for_ _Production_ _Engineering_, XI(1), 77–80.
21
## Index
CONFIG, 10
des-file, _see_ design file
design file, 9, 10
evolution strategy (ES), 11
initialization method
DETEQ, 17
DETMOD, 17
NUNIRND, 17
UNIRND, 17
installation, 4
MATLAB DACE toolbox, 3
matlab path, 11
region of interest (ROI), 5
REPEATS, 10
res-file, _see_ result file
result file, 9, 10
SEED, 10
sequential parameter optimization (SPO),
2
sequential parameter optimization tool
box (SPOT), 2
startspot.m, 4
22
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.