Learn R Programming

walkr (version 0.3.3)

start_point: start point

Description

Given $Ax \le b$, which defines a convex polytope, this function picks n random starting "center" points using linear programming.

Usage

start_point(A, b, n = 1, average = 10)

Arguments

A
is the lhs of $Ax \le b$
b
is the rhs of $Ax \le b$
n
is the number of points we want to return
average
is the number of boundary points we want to take the average of

Value

a matrix, with each column as a point

Examples

Run this code
## Not run: 
# ## note that this Ax <= b is different from Ax=b that the
# ## user specifies for walkr (see transformation section in vignette)
# start_point(A = A, b = b, n = 1, average = 10)
# ## End(Not run)

Run the code above in your browser using DataLab