R/TwoStageDesign.R
, R/OneStageDesign.R
tunable_parameters.Rd
Get tunable parameters of a design as numeric vector via
tunable_parameters
or update
a design object with a suitable
vector of values for its tunable parameters.
TwoStageDesign
object to update
further optional arguments
vector of design parameters, must be in same order as returned
by tunable_parameters
The tunable
slot of a TwoStageDesign
stores information about
the set of design parameters which are considered fixed (not changed during
optimization) or tunable (changed during optimization).
For details on how to fix certain parameters or how to make them tunable
again, see make_fixed
and make_tunable
.
design <- TwoStageDesign(25, 0, 2, 25, 2, order = 5)
tunable_parameters(design)
#> [1] 25 0 2 25 25 25 25 25 2 2 2 2 2
design2 <-update(design, tunable_parameters(design) + 1)
tunable_parameters(design2)
#> [1] 26 1 3 26 26 26 26 26 3 3 3 3 3