start_point: start point

Description Usage Arguments Value Examples

Description

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

Usage

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

Arguments

A

is the lhs of Ax ≤ b

b

is the rhs of Ax ≤ 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

1
2
3
A <- rbind(c(-1, 0), c(0, -1), c(1, 1))
b <- c(0, 0, 1)
start_point(A = A, b = b, n = 1, average = 10) 

walkr documentation built on June 29, 2019, 9:02 a.m.