make_tunable {adoptr} | R Documentation |
Fix parameters during optimization
Description
The methods make_fixed
and make_tunable
can be used to modify
the 'tunability' status of parameters in a TwoStageDesign
object.
Tunable parameters are optimized over, non-tunable ('fixed') parameters are
considered given and not altered during optimization.
Usage
make_tunable(x, ...)
## S4 method for signature 'TwoStageDesign'
make_tunable(x, ...)
make_fixed(x, ...)
## S4 method for signature 'TwoStageDesign'
make_fixed(x, ...)
Arguments
x |
|
... |
unquoted names of slots for which the tunability status should be changed. |
Value
an updated object of class TwoStageDesign
See Also
TwoStageDesign
, tunable_parameters
for
converting tunable parameters of a design object to a numeric vector (and back),
and minimize
for the actual minimzation procedure
Examples
design <- TwoStageDesign(25, 0, 2, 25, 2, order = 5)
# default: all parameters are tunable (except integration pivots,
# weights and tunability status itself)
design@tunable
# make n1 and the pivots of n2 fixed (not changed during optimization)
design <- make_fixed(design, n1, n2_pivots)
design@tunable
# make them tunable again
design <- make_tunable(design, n1, n2_pivots)
design@tunable
[Package adoptr version 1.0.1 Index]