Skip to content

Commit

Permalink
v0.2.5 Modified example
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-watson committed Jul 3, 2023
1 parent 5982cbc commit 1708ac4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/R6designspace.R
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,8 @@ DesignSpace <- R6::R6Class("DesignSpace",
#' )
#' ds <- DesignSpace$new(des)
#'
#' #find the optimal design of size 30 individuals using local search
#' opt <- ds$optimal(30,C=list(c(rep(0,5),1)),algo=1)
#' #find the optimal design of size 30 individuals using reverse greedy search
#' # change algo=1 for local search, and algo = 2 for greedy search
#' opt2 <- ds$optimal(30,C=list(c(rep(0,5),1)),algo=3)
#'
#' #let the experimental condition be the cluster
Expand All @@ -257,7 +256,7 @@ DesignSpace <- R6::R6Class("DesignSpace",
#' )
#' ds <- DesignSpace$new(des,des2)
#' #weighted average assuming equal weights using local search
#' opt <- ds$optimal(30,C=list(c(rep(0,5),1),c(rep(0,5),1)))
#' opt <- ds$optimal(30,C=list(c(rep(0,5),1),c(rep(0,5),1),algo=3))
optimal = function(m,
C,
attenuate_pars = FALSE,
Expand Down

0 comments on commit 1708ac4

Please sign in to comment.