spotGetOptions {SPOT} | R Documentation |
spotGetOptions: set all options by conf-file or by default
spotGetOptions(srcPath=".", configFileName)
srcPath |
the absolute path to the SPOT sources |
configFileName |
users config file (.conf) the absolute path including filespecifier of the user config File |
spotGetOptions
1.) sets default values
2.) overwrites all default values by the settings the user provides with the config file (.conf-file)
All options described here, that are not marked as "internal variable" may be changed
by the user. This will be done by reading the ".conf"-file that the user has specified
as the first (and maybe sole) parameter to the function spot().
To change this default value of a variable, simply write a line into the ".conf"-file following
this syntax:
<variable>=<value> e.g.: spot.seed=54321
This function will do even more: the user may define his own variables in the .conf-file and may use them
in user written plugins. All plugins will get the whole list of options with the parameter
"spotConfig". As a result a variable given in the .conf file as
my.var=37
may be refered to by spotConfig$my.var and can be used in all functions - especially in the functions
that are designed to be open to adaptions where ever necessary.
spotGetOptions returns the list of all SPOT options created by this function:
srcPath |
[see 3rd Parameter of spot] internal variable: global path to all user written sources that should be added to SPOT. |
auto.loop.steps |
[1 ] number of iterations the loop over all SPOT-steps should be repeated |
auto.loop.nevals |
[Inf ] budget of algorithm/simulator runs
- most important parameter for run-time of the algorithm in case the spot-function is called with the "auto"-task |
spot.fileMode |
[TRUE ] boolean, that defines if files are used to read and
write results (which is the "classic" spot procedure) or if SPOT will
only use the workspace to store variables. |
spot.seed |
[123 ] global seed setting for all random generator dependent calls within SPOT. same seed shall repeat same results, BUT: please note: this is NOT the seed for the algorithm!!! see alg.seed |
alg.language |
["sourceR" ] language the algorithm is written in. Can either be "sourceR" or "unixSh".
We rcommend to use an R-function and see the examples for how best several sources may be called with a wrapper written in R |
alg.func |
["spotFuncStartBranin" ] the function-name of the algorithm. |
|
The interpretation and handling strongly depends on the setting of the parameter alg.language : if alg.language="sourceR" SPOT searches for a file <alg.func>.R in the <alg.path> if alg.language="unixSh" the name will be used without any changes in a system call |
alg.path |
[NA defaults to srcPath ] path to find the R-source for the <alg.func> |
alg.resultColumn |
["Y" ] string to indicate the name of the result column. |
alg.seed |
[1234 ] seed for random generator to be used by the user defined algorithm.
This is needed to reproduce the results |
alg.roi |
internal parameter for the initial region of interest (do not try to set this one, it will be overwritten with default values). It is used to provide an easy to use matrix with the data from the ".roi"-file (= Region Of Interest) |
alg.aroi |
internal parameter for the actual region of interest (do not try to set this one, it will be overwritten with default values). It is used to provide an easy to use matrix with the data from the ".aroi"-file (= Actual Region Of Interest) |
alg.currentDesign |
[usually not changed by user] data frame of the design that will be evaluated by the next call to spotStepRunAlg |
alg.currentResult |
[usually not changed by user] data frame that contains the results of the target algorithm runs |
alg.currentBest |
[usually not changed by user] data frame that contains the best results of each step conducted by spot |
io.columnSep |
["" ] column seperator for the input/output files, default means: arbitrary whitespace sequence,
should be set by the value you want to have between your columns |
io.colname.repeats |
["REPEATS" ] string holding the name of the column in the
.des-file that indicates how much (randomly different) repeats with a
design should be performed by the algorithm |
io.colname.step |
["STEP" ] string holding the name of the column documenting the number of different configurations so far (steps-column) |
io.apdFileName |
[depends: <configFileName>.apd ] name of the .apd
-file (Algorithm Problem Definition file, holding all specification the
user written algorithm needs to perfom a complete optimization) |
io.roiFileName |
[depends: <configFileName>.roi ] name of the .roi -file (Region Of Interest - File, holding all varying parameters and constraints) |
io.desFileName |
[depends: <configFileName>.des ] name of the .des -file (DESign file, the file the user written algorithm uses as input to the parameters it should change) |
io.resFileName |
[depends: <configFileName>.res ] name of the .res -file (RESult file) the user written algorithm has to write its results into this file |
io.bstFileName |
[depends: <configFileName>.bst ] name of the .bst -file (BeST file) the result-file will be condensed to this file |
io.pdfFileName |
[depends: <configFileName>.pdf ] name of the .pdf -file the default report will write its summary of results in this pdf file |
io.metaFileName |
[depends: <configFileName>.meta ] name of the .meta -file, a file holding additional parameters for a full-factorial test-field starting several "auto" tasks |
io.fbsFileName |
[depends: <configFileName>.bst ] name of the .fbs -file (Final BestSolution file) collects all final best values of all .bst files during a .meta-run |
io.verbosity |
[3 ] level of verbosity of the programm, 0 should be silent
and 3 should produce all output- sometimes just interesting for the
developer... |
init.design.func |
["spotCreateDesignLhs" ] name of the function to create an initial design. Please also see the notes SPOT - extensions |
init.design.path |
[NA defaults to srcPath ] path where to find the <init.design.func>.R -file |
init.design.size |
[NA ] number of initial design points to be created.
Required by some space filling desing generators. Will be used in the
<init.design.func>.R-file. Default (NA) will start a formula to
calculate a good value. |
init.design.retries |
[100 ] number of retries the initial designs should be retried to find randomly a design with maximum distance between the points
This parameter will be ignored if the function is deterministic (like doe) |
init.design.repeats |
[1 ] number of repeats for each design point to be called with the <alg.func> |
init.delete.resFile |
[TRUE ] delete an existing resultfile |
init.delete.bstFile |
[TRUE ] delete an existing bst file |
design.paramSignif |
[NA ] number of significant digits that should be considered in the design process of building an initial AND a sequential design |
seq.design.size |
[10000 ] number of sequential design points to be created |
seq.design.retries |
[10 ] number of retries the initial designs should be retried to find randomly a design with maximum distance between the points,
This parameter will be ignored if the function is deterministic (like doe) |
seq.design.oldBest.size |
[1 ] number of the best already evaluated design points that
should be taken into consideration for the next sequential designs
(e.g. for to have an appropriate number of repeats |
seq.design.new.size |
[2 ] according to the predictor the new design pounts during
the seq step are ordered by their expected values. This parameter
states how much new design points should be evaluated |
seq.design.maxRepeats |
[NA ] each design point is to be evaluated several times for
statistically sound results. The number of "repeats" will increase, but
will not exceed this seq.design.maxRepeats - value |
seq.design.increase.func |
["spotSeqDesignIncreasePlusOne" ] functional description of
how the repeats are increased (until the seq.design.maxRepeats are
reached). Default increases the number of repeats by adding one. |
seq.design.increase.path |
[NA defaults to srcPath ] path where to find the <seq.design.increase.func>.R -file. Please also see the notes SPOT - extensions |
seq.design.func |
["spotCreateDesignLhs" ] name of the function to create sequential design. Please also see the notes SPOT - extensions |
seq.design.path |
[NA defaults to srcPath ] path where to find the <seq.design.func>.R -file |
seq.predictionModel.func |
["spotPredictLm" ] name of the function calling a predictor. Default uses a Linear Model. Please also see the notes SPOT - extensions |
seq.predictionModel.path |
[NA defaults to srcPath ] path where to find the <seq.predictionModel.func>.R -file |
seq.log.x |
[FALSE ] use log(x) values for the prediction model |
seq.log.y |
[FALSE ] use log(y) values for the prediction model |
seq.merge.func |
[mean ] defines the function that merges the results from
the different repeat-runs for a design. Default is to calculate the mean
value. |
seq.transformation.func |
[I ] function for transformation of "Y" before new model is created, default: Identitity function |
seq.useGradient |
[FALSE ] use gradient information for the prediction model |
seq.useCanonicalPath |
[FALSE ] if gradient information is used, start at saddle
point and follow the most steeply rising ridge in both directions.
Default: start at origin and follow the path of the steepest descent in
one direction |
seq.useAdaptiveRoi |
[FALSE ] use region of intereset adaptation |
meta.keepAllFiles |
[FALSE ] Meta optimization produces lots of temporary files - to keep these files for analysis this switch must be set to TRUE |
report.func |
["spotReportDefault" ] name of the function providing the report (default="spotReportDefault" Please also see the notes SPOT - extensions |
report.meta.func |
["spotReportMetaDefault" ] name of the function providing the report for meta runs, do not use these functions for report.func . |
report.path |
[NA defaults to srcPath ] path where to find the <report.func>.R -file |
report.meta.path |
[NA defaults to srcPath ] path where to find the <report.meta.func>.R -file |
report.hist |
[0 ] report should hold a histogramme (0=no, 1=yes) |
report.scatter |
[0 ] report should hold a scatterplot (0=no, 1=yes) |
report.io.screen |
[FALSE ] report graphics will be printed to screen (FALSE=no, TRUE=yes) |
report.io.pdf |
[TRUE ] report graphics will be printed to pdf (FALSE=no, TRUE=yes) |
report.io.maxPlots |
[11 ] a plot of the performance is continuosly updated,
showing the .roi variables in the order given in that file. The graphic
is limited to 11 variables. A smaller value here may focus to the
relevant variables only |
SPOT
spotPrepare