-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
When setting starting_point, the random walk does not move and remains at the starting point.
> library(volesti)
Loading required package: Rcpp
> P = gen_cube(3, 'H')
# Generate 1 point
point = sample_points(P, n = 1,
random_walk = list("walk" = "BaW", "walk_length" = 5))
# Use generated point as starting_point
sample_points(P, n = 10,
random_walk = list("walk" = "BaW", "walk_length" = 5, starting_point=point))
sessionInfo()
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] -0.1359049 -0.1359049 -0.1359049 -0.1359049 -0.1359049 -0.1359049
[2,] -0.9145357 -0.9145357 -0.9145357 -0.9145357 -0.9145357 -0.9145357
[3,] 0.5827428 0.5827428 0.5827428 0.5827428 0.5827428 0.5827428
[,7] [,8] [,9] [,10]
[1,] -0.1359049 -0.1359049 -0.1359049 -0.1359049
[2,] -0.9145357 -0.9145357 -0.9145357 -0.9145357
[3,] 0.5827428 0.5827428 0.5827428 0.5827428
R version 4.5.1 (2025-06-13)
Platform: aarch64-apple-darwin24.4.0
Running under: macOS Sequoia 15.5
Matrix products: default
BLAS: /opt/homebrew/Cellar/openblas/0.3.30/lib/libopenblasp-r0.3.30.dylib
LAPACK: /opt/homebrew/Cellar/r/4.5.1/lib/R/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: GMT
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] volesti_1.1.2-9 Rcpp_1.1.0
loaded via a namespace (and not attached):
[1] compiler_4.5.1
Metadata
Metadata
Assignees
Labels
No labels