Skip to content

Commit

Permalink
Update number of iterations on swap function in p-rep design
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierMurilloF committed Mar 25, 2024
1 parent 95bf9ad commit 71166c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils_pREP.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ pREP <- function(
################### Optimization ##########################################
# Perform an optimization by using the function swap_pairs()
if (max(table(field_layout)) == 2) {
swap <- swap_pairs(X = field_layout, starting_dist = 3, stop_iter = 20)
swap <- swap_pairs(X = field_layout, starting_dist = 3, stop_iter = 18)
} else {
swap <- swap_pairs(X = field_layout, starting_dist = 2, stop_iter = 20)
swap <- swap_pairs(X = field_layout, starting_dist = 2, stop_iter = 18)
}
optim_layout <- swap$optim_design
dups <- table(as.vector(optim_layout))
Expand Down

0 comments on commit 71166c3

Please sign in to comment.