Learn R Programming

walkr (version 0.4.0)

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 {
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) 
# }

Run the code above in your browser using DataLab